/** * 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 { AgentChatServiceGetAgentChatsCounterParams, AgentChatServiceGetAgentChatsParams, WebitelChatGetAgentChatsCounterResponse, WebitelChatGetAgentChatsResponse, WebitelChatMarkChatProcessedResponse, } from '../_models'; // --- header start // export const // --- title start getAgentChatService = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end const agentChatServiceGetAgentChats = ( params?: AgentChatServiceGetAgentChatsParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/agent/chats`, { ...options, params: { ...params, ...options?.params, }, }); }; const agentChatServiceGetAgentChatsCounter = ( params?: AgentChatServiceGetAgentChatsCounterParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/agent/chats/counter`, { ...options, params: { ...params, ...options?.params, }, }); }; const agentChatServiceMarkChatProcessed = ( chatId: string, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.patch( `/agent/chats/${chatId}`, undefined, options, ); }; // --- footer start return { agentChatServiceGetAgentChats, agentChatServiceGetAgentChatsCounter, agentChatServiceMarkChatProcessed, }; }; export type AgentChatServiceGetAgentChatsResult = AxiosResponse; export type AgentChatServiceGetAgentChatsCounterResult = AxiosResponse; export type AgentChatServiceMarkChatProcessedResult = AxiosResponse; // --- footer end