/** * 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 { WebitelImApiGatewayV1Bot, WebitelImApiGatewayV1BotsUpdateBotBody, WebitelImApiGatewayV1CreateBotRequest, } from '../_models'; // --- header start // export const // --- title start getWebitelImApiGatewayV1Bots = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end /** * @summary Create a new bot */ const botsCreateBot = ( webitelImApiGatewayV1CreateBotRequest: WebitelImApiGatewayV1CreateBotRequest, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.post( `/v1/bots`, webitelImApiGatewayV1CreateBotRequest, options, ); }; /** * @summary Delete a bot */ const botsDeleteBot = ( id: string, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.delete(`/v1/bots/${id}`, options); }; /** * @summary Update existing bot */ const botsUpdateBot = ( id: string, webitelImApiGatewayV1BotsUpdateBotBody: WebitelImApiGatewayV1BotsUpdateBotBody, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.patch( `/v1/bots/${id}`, webitelImApiGatewayV1BotsUpdateBotBody, options, ); }; // --- footer start return { botsCreateBot, botsDeleteBot, botsUpdateBot, }; }; export type BotsCreateBotResult = AxiosResponse; export type BotsDeleteBotResult = AxiosResponse; export type BotsUpdateBotResult = AxiosResponse; // --- footer end