/** * 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 { DeleteOutboundResourceGroupParams, DeleteOutboundResourceInGroupParams, EngineCreateOutboundResourceGroupRequest, EngineListOutboundResourceGroup, EngineListOutboundResourceInGroup, EngineOutboundResourceGroup, EngineOutboundResourceGroupServiceCreateOutboundResourceInGroupBody, EngineOutboundResourceGroupServiceUpdateOutboundResourceGroupBody, EngineOutboundResourceGroupServiceUpdateOutboundResourceInGroupBody, EngineOutboundResourceInGroup, ReadOutboundResourceGroupParams, ReadOutboundResourceInGroupParams, SearchOutboundResourceGroupParams, SearchOutboundResourceInGroupParams, } from '../_models'; // --- header start // export const // --- title start getOutboundResourceGroupService = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end /** * @summary List of OutboundResourceGroup */ const searchOutboundResourceGroup = ( params?: SearchOutboundResourceGroupParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/call_center/resource_group`, { ...options, params: { ...params, ...options?.params, }, }); }; /** * @summary Create OutboundResourceGroup */ const createOutboundResourceGroup = ( engineCreateOutboundResourceGroupRequest: EngineCreateOutboundResourceGroupRequest, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.post( `/call_center/resource_group`, engineCreateOutboundResourceGroupRequest, options, ); }; /** * @summary List of OutboundResourceInGroup */ const searchOutboundResourceInGroup = ( groupId: string, params?: SearchOutboundResourceInGroupParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get( `/call_center/resource_group/${groupId}/resource`, { ...options, params: { ...params, ...options?.params, }, }, ); }; /** * @summary Create OutboundResourceGroup */ const createOutboundResourceInGroup = ( groupId: string, engineOutboundResourceGroupServiceCreateOutboundResourceInGroupBody: EngineOutboundResourceGroupServiceCreateOutboundResourceInGroupBody, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.post( `/call_center/resource_group/${groupId}/resource`, engineOutboundResourceGroupServiceCreateOutboundResourceInGroupBody, options, ); }; /** * @summary Remove OutboundResourceInGroup */ const deleteOutboundResourceInGroup = ( groupId: string, id: string, params?: DeleteOutboundResourceInGroupParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.delete( `/call_center/resource_group/${groupId}/resource/${id}`, { ...options, params: { ...params, ...options?.params, }, }, ); }; /** * @summary OutboundResourceInGroup item */ const readOutboundResourceInGroup = ( groupId: string, id: string, params?: ReadOutboundResourceInGroupParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get( `/call_center/resource_group/${groupId}/resource/${id}`, { ...options, params: { ...params, ...options?.params, }, }, ); }; /** * @summary Update OutboundResourceInGroup */ const updateOutboundResourceInGroup = ( groupId: string, id: string, engineOutboundResourceGroupServiceUpdateOutboundResourceInGroupBody: EngineOutboundResourceGroupServiceUpdateOutboundResourceInGroupBody, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.put( `/call_center/resource_group/${groupId}/resource/${id}`, engineOutboundResourceGroupServiceUpdateOutboundResourceInGroupBody, options, ); }; /** * @summary Remove OutboundResourceGroup */ const deleteOutboundResourceGroup = ( id: string, params?: DeleteOutboundResourceGroupParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.delete(`/call_center/resource_group/${id}`, { ...options, params: { ...params, ...options?.params, }, }); }; /** * @summary OutboundResourceGroup item */ const readOutboundResourceGroup = ( id: string, params?: ReadOutboundResourceGroupParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/call_center/resource_group/${id}`, { ...options, params: { ...params, ...options?.params, }, }); }; /** * @summary Update OutboundResourceGroup */ const updateOutboundResourceGroup = ( id: string, engineOutboundResourceGroupServiceUpdateOutboundResourceGroupBody: EngineOutboundResourceGroupServiceUpdateOutboundResourceGroupBody, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.put( `/call_center/resource_group/${id}`, engineOutboundResourceGroupServiceUpdateOutboundResourceGroupBody, options, ); }; // --- footer start return { searchOutboundResourceGroup, createOutboundResourceGroup, searchOutboundResourceInGroup, createOutboundResourceInGroup, deleteOutboundResourceInGroup, readOutboundResourceInGroup, updateOutboundResourceInGroup, deleteOutboundResourceGroup, readOutboundResourceGroup, updateOutboundResourceGroup, }; }; export type SearchOutboundResourceGroupResult = AxiosResponse; export type CreateOutboundResourceGroupResult = AxiosResponse; export type SearchOutboundResourceInGroupResult = AxiosResponse; export type CreateOutboundResourceInGroupResult = AxiosResponse; export type DeleteOutboundResourceInGroupResult = AxiosResponse; export type ReadOutboundResourceInGroupResult = AxiosResponse; export type UpdateOutboundResourceInGroupResult = AxiosResponse; export type DeleteOutboundResourceGroupResult = AxiosResponse; export type ReadOutboundResourceGroupResult = AxiosResponse; export type UpdateOutboundResourceGroupResult = AxiosResponse; // --- footer end