/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { GetTimeTrackingRecordsRequest } from '../models/GetTimeTrackingRecordsRequest';
import type { GetTimeTrackingRecordsResponse } from '../models/GetTimeTrackingRecordsResponse';
import type { UpdateTimeTrackingRecordRequest } from '../models/UpdateTimeTrackingRecordRequest';
import type { UpdateTimeTrackingRecordResponse } from '../models/UpdateTimeTrackingRecordResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class TimeTrackingService {
    /**
     * Get Data
     * @returns GetTimeTrackingRecordsResponse Successful Response
     * @throws ApiError
     */
    public static getTimeTrackingRecords({
        requestBody,
    }: {
        requestBody: GetTimeTrackingRecordsRequest,
    }): CancelablePromise<GetTimeTrackingRecordsResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/time-tracking/get-records',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
    /**
     * Get Data
     * @returns UpdateTimeTrackingRecordResponse Successful Response
     * @throws ApiError
     */
    public static updateTimeTrackingRecord({
        requestBody,
    }: {
        requestBody: UpdateTimeTrackingRecordRequest,
    }): CancelablePromise<UpdateTimeTrackingRecordResponse> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/time-tracking/update-record',
            body: requestBody,
            mediaType: 'application/json',
            errors: {
                422: `Validation Error`,
            },
        });
    }
}
