/** * 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 { ContactsGetTimelineCounterResponse, ContactsGetTimelineResponse, GetTimelineTimelineParams, } from '../_models'; // --- header start // export const // --- title start getTimeline = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end const getTimelineTimeline = ( contactId: string, params?: GetTimelineTimelineParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/contacts/${contactId}/timeline`, { ...options, params: { ...params, ...options?.params, }, }); }; const getTimelineCounterTimeline = ( contactId: string, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get( `/contacts/${contactId}/timeline/counter`, options, ); }; // --- footer start return { getTimelineTimeline, getTimelineCounterTimeline, }; }; export type GetTimelineTimelineResult = AxiosResponse; export type GetTimelineCounterTimelineResult = AxiosResponse; // --- footer end