/** * 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 { EngineChatPlan, EngineCreateChatPlanRequest, EngineListChatPlan, EngineRoutingChatPlanServicePatchChatPlanBody, EngineRoutingChatPlanServiceUpdateChatPlanBody, SearchChatPlanParams, } from '../_models'; // --- header start // export const // --- title start getRoutingChatPlanService = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end const searchChatPlan = ( params?: SearchChatPlanParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/routing/outbound/chat`, { ...options, params: { ...params, ...options?.params, }, }); }; const createChatPlan = ( engineCreateChatPlanRequest: EngineCreateChatPlanRequest, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.post( `/routing/outbound/chat`, engineCreateChatPlanRequest, options, ); }; const deleteChatPlan = ( id: number, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.delete(`/routing/outbound/chat/${id}`, options); }; const readChatPlan = ( id: number, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/routing/outbound/chat/${id}`, options); }; const patchChatPlan = ( id: number, engineRoutingChatPlanServicePatchChatPlanBody: EngineRoutingChatPlanServicePatchChatPlanBody, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.patch( `/routing/outbound/chat/${id}`, engineRoutingChatPlanServicePatchChatPlanBody, options, ); }; const updateChatPlan = ( id: number, engineRoutingChatPlanServiceUpdateChatPlanBody: EngineRoutingChatPlanServiceUpdateChatPlanBody, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.put( `/routing/outbound/chat/${id}`, engineRoutingChatPlanServiceUpdateChatPlanBody, options, ); }; // --- footer start return { searchChatPlan, createChatPlan, deleteChatPlan, readChatPlan, patchChatPlan, updateChatPlan, }; }; export type SearchChatPlanResult = AxiosResponse; export type CreateChatPlanResult = AxiosResponse; export type DeleteChatPlanResult = AxiosResponse; export type ReadChatPlanResult = AxiosResponse; export type PatchChatPlanResult = AxiosResponse; export type UpdateChatPlanResult = AxiosResponse; // --- footer end