/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseEnumListSchema } from '../models/BaseEnumListSchema';
import type { CreateServicesKitRequest } from '../models/CreateServicesKitRequest';
import type { CreateServicesKitResponse } from '../models/CreateServicesKitResponse';
import type { GetAllServicesKitsResponse } from '../models/GetAllServicesKitsResponse';
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 { ServiceDeleteRequest } from '../models/ServiceDeleteRequest';
import type { ServiceDeleteResponse } from '../models/ServiceDeleteResponse';
import type { ServiceGetAllCategoriesResponse } from '../models/ServiceGetAllCategoriesResponse';
import type { ServiceGetAllResponse } from '../models/ServiceGetAllResponse';
import type { ServiceUpdateRequest } from '../models/ServiceUpdateRequest';
import type { ServiceUpdateResponse } from '../models/ServiceUpdateResponse';
import type { UpdateServicesKitRequest } from '../models/UpdateServicesKitRequest';
import type { UpdateServicesKitResponse } from '../models/UpdateServicesKitResponse';
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`,
            },
        });
    }
    /**
     * Update
     * @returns ServiceUpdateResponse Successful Response
     * @throws ApiError
     */
    public static updateService({
        requestBody,
    }: {
        requestBody: ServiceUpdateRequest,
    }): CancelablePromise<ServiceUpdateResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/service/update',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Delete
     * @returns ServiceDeleteResponse Successful Response
     * @throws ApiError
     */
    public static deleteService({
        requestBody,
    }: {
        requestBody: ServiceDeleteRequest,
    }): CancelablePromise<ServiceDeleteResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/service/delete',
            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`,
            },
        });
    }
    /**
     * Get All Service Types
     * @returns BaseEnumListSchema Successful Response
     * @throws ApiError
     */
    public static getAllServiceTypes(): CancelablePromise<BaseEnumListSchema> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/service/types/get-all',
        });
    }
    /**
     * Get All Services Kits
     * @returns GetAllServicesKitsResponse Successful Response
     * @throws ApiError
     */
    public static getAllServicesKits(): CancelablePromise<GetAllServicesKitsResponse> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/service/kits/get-all',
        });
    }
    /**
     * Create Services Kit
     * @returns CreateServicesKitResponse Successful Response
     * @throws ApiError
     */
    public static createServicesKit({
        requestBody,
    }: {
        requestBody: CreateServicesKitRequest,
    }): CancelablePromise<CreateServicesKitResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/service/kits/create',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Update Services Kit
     * @returns UpdateServicesKitResponse Successful Response
     * @throws ApiError
     */
    public static updateServicesKit({
        requestBody,
    }: {
        requestBody: UpdateServicesKitRequest,
    }): CancelablePromise<UpdateServicesKitResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/service/kits/update',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
