/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ServiceCreateCategoryRequest } from '../models/ServiceCreateCategoryRequest';
import type { ServiceCreateCategoryResponse } from '../models/ServiceCreateCategoryResponse';
import type { ServiceCreateRequest } from '../models/ServiceCreateRequest';
import type { ServiceCreateResponse } from '../models/ServiceCreateResponse';
import type { ServiceGetAllCategoriesResponse } from '../models/ServiceGetAllCategoriesResponse';
import type { ServiceGetAllResponse } from '../models/ServiceGetAllResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class ServiceService {
    /**
     * Get All
     * @returns ServiceGetAllResponse Successful Response
     * @throws ApiError
     */
    public static getAllServices(): CancelablePromise<ServiceGetAllResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/service/get-all',
        });
    }
    /**
     * Create
     * @returns ServiceCreateResponse Successful Response
     * @throws ApiError
     */
    public static createService({
        requestBody,
    }: {
        requestBody: ServiceCreateRequest,
    }): CancelablePromise<ServiceCreateResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/service/create',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Get All Categories
     * @returns ServiceGetAllCategoriesResponse Successful Response
     * @throws ApiError
     */
    public static getAllServiceCategories(): CancelablePromise<ServiceGetAllCategoriesResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/service/categories/get-all',
        });
    }
    /**
     * Create Category
     * @returns ServiceCreateCategoryResponse Successful Response
     * @throws ApiError
     */
    public static createServiceCategory({
        requestBody,
    }: {
        requestBody: ServiceCreateCategoryRequest,
    }): CancelablePromise<ServiceCreateCategoryResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/service/categories/create',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
