/** * Generated by orval v8.19.0 🍺 * Do not edit manually. * Webitel API * OpenAPI spec version: 24.04.0 */ import axios from '@aliasedDeps/api-services/axios'; import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; import type { AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody, AgentWorkingScheduleServiceSearchAgentsWorkingScheduleParams, WfmCreateAgentsWorkingScheduleShiftsResponse, WfmSearchAgentsWorkingScheduleResponse, } from '../_models'; // --- header start // export const // --- title start getAgentWorkingScheduleService = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end const agentWorkingScheduleServiceSearchAgentsWorkingSchedule = ( workingScheduleId: string, params?: AgentWorkingScheduleServiceSearchAgentsWorkingScheduleParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get( `/wfm/agents/working_schedules/${workingScheduleId}`, { ...options, params: { ...params, ...options?.params, }, }, ); }; const agentWorkingScheduleServiceCreateAgentsWorkingScheduleShifts = ( workingScheduleId: string, agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody: AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody, options?: AxiosRequestConfig, ): Promise< AxiosResponse > => { return axiosInstance.post( `/wfm/agents/working_schedules/${workingScheduleId}`, agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody, options, ); }; // --- footer start return { agentWorkingScheduleServiceSearchAgentsWorkingSchedule, agentWorkingScheduleServiceCreateAgentsWorkingScheduleShifts, }; }; export type AgentWorkingScheduleServiceSearchAgentsWorkingScheduleResult = AxiosResponse; export type AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsResult = AxiosResponse; // --- footer end