/** * 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 { DataStructList, ProtoDataStruct, SearchTypesParams, } from '../_models'; // --- header start // export const // --- title start getTypes = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end /** * @summary Lookup data types registry. */ const searchTypes = ( params?: SearchTypesParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/types`, { ...options, params: { ...params, ...options?.params, }, }); }; /** * @summary Structured data type details. */ const locate = ( path: string, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/types/${path}`, options); }; // --- footer start return { searchTypes, locate, }; }; export type SearchTypesResult = AxiosResponse; export type LocateResult = AxiosResponse; // --- footer end