/** * 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 { ContactsChatCatalogGetContactChatHistory2Params, ContactsChatCatalogGetContactChatHistoryParams, WebitelChatGetContactChatHistoryResponse, } from '../_models'; // --- header start // export const // --- title start getContactsChatCatalog = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end const contactsChatCatalogGetContactChatHistory2 = ( contactId: string, params?: ContactsChatCatalogGetContactChatHistory2Params, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/contacts/${contactId}/chat/messages`, { ...options, params: { ...params, ...options?.params, }, }); }; const contactsChatCatalogGetContactChatHistory = ( contactId: string, chatId: string, params?: ContactsChatCatalogGetContactChatHistoryParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get( `/contacts/${contactId}/chat/${chatId}/messages`, { ...options, params: { ...params, ...options?.params, }, }, ); }; // --- footer start return { contactsChatCatalogGetContactChatHistory2, contactsChatCatalogGetContactChatHistory, }; }; export type ContactsChatCatalogGetContactChatHistory2Result = AxiosResponse; export type ContactsChatCatalogGetContactChatHistoryResult = AxiosResponse; // --- footer end