/** * 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 { ForecastCalculationServiceExecuteForecastCalculationParams, ForecastCalculationServiceReadForecastCalculationParams, ForecastCalculationServiceSearchForecastCalculationParams, ForecastCalculationServiceUpdateForecastCalculationBody, WfmCreateForecastCalculationRequest, WfmCreateForecastCalculationResponse, WfmDeleteForecastCalculationResponse, WfmExecuteForecastCalculationResponse, WfmReadForecastCalculationResponse, WfmSearchForecastCalculationResponse, WfmUpdateForecastCalculationResponse, } from '../_models'; // --- header start // export const // --- title start getForecastCalculationService = // --- title end (axiosInstance: AxiosInstance = axios) => { // --- header end const forecastCalculationServiceSearchForecastCalculation = ( params?: ForecastCalculationServiceSearchForecastCalculationParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/wfm/lookups/forecast_calculation`, { ...options, params: { ...params, ...options?.params, }, }); }; const forecastCalculationServiceCreateForecastCalculation = ( wfmCreateForecastCalculationRequest: WfmCreateForecastCalculationRequest, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.post( `/wfm/lookups/forecast_calculation`, wfmCreateForecastCalculationRequest, options, ); }; const forecastCalculationServiceDeleteForecastCalculation = ( id: string, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.delete( `/wfm/lookups/forecast_calculation/${id}`, options, ); }; const forecastCalculationServiceReadForecastCalculation = ( id: string, params?: ForecastCalculationServiceReadForecastCalculationParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get(`/wfm/lookups/forecast_calculation/${id}`, { ...options, params: { ...params, ...options?.params, }, }); }; const forecastCalculationServiceExecuteForecastCalculation = ( id: string, params?: ForecastCalculationServiceExecuteForecastCalculationParams, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.get( `/wfm/lookups/forecast_calculation/${id}/execute`, { ...options, params: { ...params, ...options?.params, }, }, ); }; const forecastCalculationServiceUpdateForecastCalculation = ( forecastCalculationServiceUpdateForecastCalculationBody: ForecastCalculationServiceUpdateForecastCalculationBody, options?: AxiosRequestConfig, ): Promise> => { return axiosInstance.put( `/wfm/lookups/forecast_calculation/item.id}`, forecastCalculationServiceUpdateForecastCalculationBody, options, ); }; // --- footer start return { forecastCalculationServiceSearchForecastCalculation, forecastCalculationServiceCreateForecastCalculation, forecastCalculationServiceDeleteForecastCalculation, forecastCalculationServiceReadForecastCalculation, forecastCalculationServiceExecuteForecastCalculation, forecastCalculationServiceUpdateForecastCalculation, }; }; export type ForecastCalculationServiceSearchForecastCalculationResult = AxiosResponse; export type ForecastCalculationServiceCreateForecastCalculationResult = AxiosResponse; export type ForecastCalculationServiceDeleteForecastCalculationResult = AxiosResponse; export type ForecastCalculationServiceReadForecastCalculationResult = AxiosResponse; export type ForecastCalculationServiceExecuteForecastCalculationResult = AxiosResponse; export type ForecastCalculationServiceUpdateForecastCalculationResult = AxiosResponse; // --- footer end