feat: work shifts planning

This commit is contained in:
2025-01-22 18:01:16 +04:00
parent 71332e4ebd
commit f62d2662d6
18 changed files with 575 additions and 49 deletions

View File

@@ -0,0 +1,53 @@
/* 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`,
},
});
}
}