/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { GetPlannedWorkShiftsResponse } from '../models/GetPlannedWorkShiftsResponse';
import type { GetWorkShiftsPlanningDataRequest } from '../models/GetWorkShiftsPlanningDataRequest';
import type { UpdatePlanningWorkShiftRequest } from '../models/UpdatePlanningWorkShiftRequest';
import type { UpdatePlanningWorkShiftResponse } from '../models/UpdatePlanningWorkShiftResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class WorkShiftsPlanningService {
    /**
     * Get Work Shifts
     * @returns GetPlannedWorkShiftsResponse Successful Response
     * @throws ApiError
     */
    public static getWorkShifts({
        requestBody,
    }: {
        requestBody: GetWorkShiftsPlanningDataRequest,
    }): CancelablePromise<GetPlannedWorkShiftsResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/work-shifts-planning/',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Update Work Shift
     * @returns UpdatePlanningWorkShiftResponse Successful Response
     * @throws ApiError
     */
    public static updateWorkShift({
        requestBody,
    }: {
        requestBody: UpdatePlanningWorkShiftRequest,
    }): CancelablePromise<UpdatePlanningWorkShiftResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/work-shifts-planning/update',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
