/** * 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 { ActivityWorkspaceWidgetParams, EngineActivityWorkspaceWidgetResponse, EngineDefaultDeviceConfigResponse, EngineListOpenedWebSocket, OpenedWebSocketsParams, } from '../_models'; // --- header start // export const // --- title start getUserHelperService = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end const defaultDeviceConfig = ( type: string, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/user/device/config/${type}`, options); }; const activityWorkspaceWidget = ( params?: ActivityWorkspaceWidgetParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/user/widget/activity/today`, { ...options, params: { ...params, ...options?.params, }, }); }; const openedWebSockets = ( userId: string[], params?: OpenedWebSocketsParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/user/${userId}/websockets`, { ...options, params: { ...params, ...options?.params, }, }); }; // --- footer start return { defaultDeviceConfig, activityWorkspaceWidget, openedWebSockets, }; }; export type DefaultDeviceConfigResult = AxiosResponse; export type ActivityWorkspaceWidgetResult = AxiosResponse; export type OpenedWebSocketsResult = AxiosResponse; // --- footer end