feat: work shifts planning
This commit is contained in:
53
src/client/services/WorkShiftsPlanningService.ts
Normal file
53
src/client/services/WorkShiftsPlanningService.ts
Normal 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`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user