diff --git a/backend/autogen/bar.gen.go b/backend/autogen/bar.gen.go index c2f7b9f..6848573 100644 --- a/backend/autogen/bar.gen.go +++ b/backend/autogen/bar.gen.go @@ -1,6 +1,6 @@ // Package autogen provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT. +// Code generated by github.com/deepmap/oapi-codegen version v1.16.3 DO NOT EDIT. package autogen import ( @@ -37,8 +37,8 @@ const ( AccountPriceCoutant AccountPriceRole = "coutant" AccountPriceExterne AccountPriceRole = "externe" AccountPriceMenu AccountPriceRole = "menu" - AccountPricePrivilegies AccountPriceRole = "staff_bar" - AccountPriceStaffBar AccountPriceRole = "privilegies" + AccountPricePrivilegies AccountPriceRole = "privilegies" + AccountPriceStaffBar AccountPriceRole = "staff_bar" ) // Defines values for AccountRestrictions. @@ -10332,136 +10332,136 @@ func (sh *strictHandler) GetTransactionsItems(ctx echo.Context, params GetTransa // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+w97XLbOJKvwtLe1iRXduRsMrMz/uc4zqxrx0nGdnbuai6lgkhI4pgCOABox+fyn3ue", - "e6p7kit8kARIkAT1ZclC/sQivhqN7kZ3o9F4GIR4nmIEEaOD44cBDWdwDsSfJ2GIM8T4nynBKSQshqJg", - "DBKAQsj/hN/APE3g4Pj10dHRwWCCyRywwfEgRuyHt4ODAbtPofwJp5AMHg8GISDRKI54Y1VIGYnRtChL", - "Y1QvPBh8O8QgjQ9DHMEpRIfwGyPgkIGpgOgPitHgeHA4eHw8GEQwgQxGIyBAL0DKmmHKW4zveYt/I3Ay", - "OB78ZVhiZqjQMvzy5fw9bwHnIE5GIIoIpNQ6l0lMKBshMIfW4inG0wQ2IUKVpnHIMmLvQLZ0gTUBbYCg", - "OLxpLEwBpXeYRMstSIpjRV39ySUlcQhHBCewa7qKXD/zBpe8/uPBgEAObshijMT4MYNz6tjRpd72sYAN", - "EALuRd/uMOXgUAaYa5sr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AELj+tqVv9R/dUWYChjiRoEQHbh", + "KSt1vjiRNbDenMhg20h8kYqXOlyGebtZhtm15/treMX5egBIkoDXu4OmS+QFJhEk9KXNXNnpOwKbd+ys", + "4wBDQ3HtOcY/4ojLohlmsHy7wwbANI7gUFa3mTojjBMIUPMEs3ead+cMw9+z8PcsnpttY6x0VZ47pLUr", + "Aoxi1CDes8R3rVLe6ZC6EBMiq9U2ZURX5rOfbXrG2XPGES15V5JcU5LwfZCx+Um/n+AQJFNM2cmPgx8H", + "Pb7rFeWUV4DHI0BeMZjAEM8QQOHDKwRZH8zj/t1rSwNe+wHe42T8akx4tZ4GW/VyRALElQgcpBSS76iu", + "Ucu4keyNcz7R6qZs6aAIazafR6dOzUv7S/XKhFs3yjUevCAQJMEMI/jwsnyv3NZT8RBAEX8SI2Fv0Sme", + "V6IyYmjrRQiqAKOAggTWdCCFgw0C/R02EceTPz+djy2rWDEhb7tgoq67cOUzu99W9JAFuj99ffr/AAAA", + "///e08oH8aYBAA==", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/bar.openapi.yml b/bar.openapi.yml index 9c05f08..c783e45 100644 --- a/bar.openapi.yml +++ b/bar.openapi.yml @@ -4806,8 +4806,8 @@ components: example: student enum: - coutant - - privilegies - staff_bar + - privilegies - menu - ceten - externe diff --git a/flake.nix b/flake.nix index d30066f..b4c1afa 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,8 @@ gofumpt go-task + + openapi-generator-cli ]; shellHook = ""; }; diff --git a/frontend/src/lib/api/.openapi-generator/VERSION b/frontend/src/lib/api/.openapi-generator/VERSION index cd802a1..09a6d30 100644 --- a/frontend/src/lib/api/.openapi-generator/VERSION +++ b/frontend/src/lib/api/.openapi-generator/VERSION @@ -1 +1 @@ -6.6.0 \ No newline at end of file +7.8.0 diff --git a/frontend/src/lib/api/api.ts b/frontend/src/lib/api/api.ts index dfec8e1..bc88f5a 100644 --- a/frontend/src/lib/api/api.ts +++ b/frontend/src/lib/api/api.ts @@ -14,14 +14,14 @@ import type { Configuration } from './configuration'; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; import type { RequestArgs } from './base'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base'; +import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** * @@ -154,8 +154,8 @@ export interface Account { export const AccountPriceRole = { AccountPriceCoutant: 'coutant', - AccountPriceStaffBar: 'privilegies', - AccountPricePrivilegies: 'staff_bar', + AccountPriceStaffBar: 'staff_bar', + AccountPricePrivilegies: 'privilegies', AccountPriceMenu: 'menu', AccountPriceCeten: 'ceten', AccountPriceExterne: 'externe' @@ -2337,7 +2337,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - adminToggleAccountWantsToStaff: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + adminToggleAccountWantsToStaff: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('adminToggleAccountWantsToStaff', 'accountId', accountId) const localVarPath = `/accounts/{account_id}/toggles/wants_to_staff` @@ -2372,7 +2372,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccount: async (options: AxiosRequestConfig = {}): Promise => { + getAccount: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2404,7 +2404,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountAdmin: async (options: AxiosRequestConfig = {}): Promise => { + getAccountAdmin: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/admin`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2437,7 +2437,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountId: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + getAccountId: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountId', 'accountId', accountId) const localVarPath = `/accounts/{account_id}` @@ -2475,7 +2475,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccounts: async (page?: number, limit?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + getAccounts: async (page?: number, limit?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2520,7 +2520,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - importAccounts: async (file?: File, options: AxiosRequestConfig = {}): Promise => { + importAccounts: async (file?: File, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/import/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2561,7 +2561,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteAccountId: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteAccountId: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('markDeleteAccountId', 'accountId', accountId) const localVarPath = `/accounts/{account_id}` @@ -2598,7 +2598,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountId: async (accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options: AxiosRequestConfig = {}): Promise => { + patchAccountId: async (accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('patchAccountId', 'accountId', accountId) const localVarPath = `/accounts/{account_id}` @@ -2636,7 +2636,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountPassword: async (patchAccountPasswordRequest?: PatchAccountPasswordRequest, options: AxiosRequestConfig = {}): Promise => { + patchAccountPassword: async (patchAccountPasswordRequest?: PatchAccountPasswordRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/password`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2671,7 +2671,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountPin: async (patchAccountPinRequest?: PatchAccountPinRequest, options: AxiosRequestConfig = {}): Promise => { + patchAccountPin: async (patchAccountPinRequest?: PatchAccountPinRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/pin`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2707,7 +2707,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postAccounts: async (newAccount?: NewAccount, options: AxiosRequestConfig = {}): Promise => { + postAccounts: async (newAccount?: NewAccount, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2743,7 +2743,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - resetAccountPin: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + resetAccountPin: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('resetAccountPin', 'accountId', accountId) const localVarPath = `/account/{account_id}/reset_pin` @@ -2778,7 +2778,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - toggleAccountWantsToStaff: async (options: AxiosRequestConfig = {}): Promise => { + toggleAccountWantsToStaff: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/toggles/wants_to_staff`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2810,7 +2810,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - watchAccount: async (options: AxiosRequestConfig = {}): Promise => { + watchAccount: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/watch`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2853,9 +2853,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async adminToggleAccountWantsToStaff(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async adminToggleAccountWantsToStaff(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.adminToggleAccountWantsToStaff(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.adminToggleAccountWantsToStaff']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get the basic current account\'s information @@ -2863,9 +2865,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccount']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Check if the current account can access the admin panel @@ -2873,9 +2877,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountAdmin(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountAdmin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountAdmin(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccountAdmin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get the account\'s information @@ -2884,9 +2890,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountId(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountId(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountId(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccountId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all accounts informations @@ -2897,9 +2905,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccounts(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccounts(page, limit, search, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccounts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Import accounts from a CSV file @@ -2908,9 +2918,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async importAccounts(file?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async importAccounts(file?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.importAccounts(file, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.importAccounts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete account @@ -2919,9 +2931,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteAccountId(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteAccountId(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteAccountId(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.markDeleteAccountId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update account @@ -2931,9 +2945,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchAccountId(accountId, updateAccountAdmin, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchAccountId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update account\'s password @@ -2941,9 +2957,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchAccountPassword(patchAccountPasswordRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchAccountPassword']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update\'s account card pin / id @@ -2951,9 +2969,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchAccountPin(patchAccountPinRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchAccountPin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Add an account to the database @@ -2962,9 +2982,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postAccounts(newAccount?: NewAccount, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postAccounts(newAccount?: NewAccount, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postAccounts(newAccount, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.postAccounts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Reset the account\'s pin @@ -2973,9 +2995,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async resetAccountPin(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async resetAccountPin(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPin(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.resetAccountPin']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Toggles the wants_to_staff flag @@ -2983,9 +3007,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async toggleAccountWantsToStaff(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async toggleAccountWantsToStaff(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.toggleAccountWantsToStaff(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.toggleAccountWantsToStaff']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Listen for changes on account @@ -2993,9 +3019,11 @@ export const AccountsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async watchAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async watchAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.watchAccount(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AccountsApi.watchAccount']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -3014,7 +3042,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - adminToggleAccountWantsToStaff(accountId: string, options?: any): AxiosPromise { + adminToggleAccountWantsToStaff(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.adminToggleAccountWantsToStaff(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -3023,7 +3051,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccount(options?: any): AxiosPromise { + getAccount(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccount(options).then((request) => request(axios, basePath)); }, /** @@ -3032,7 +3060,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountAdmin(options?: any): AxiosPromise { + getAccountAdmin(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountAdmin(options).then((request) => request(axios, basePath)); }, /** @@ -3042,7 +3070,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountId(accountId: string, options?: any): AxiosPromise { + getAccountId(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountId(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -3054,7 +3082,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccounts(page?: number, limit?: number, search?: string, options?: any): AxiosPromise { + getAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccounts(page, limit, search, options).then((request) => request(axios, basePath)); }, /** @@ -3064,7 +3092,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - importAccounts(file?: File, options?: any): AxiosPromise { + importAccounts(file?: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.importAccounts(file, options).then((request) => request(axios, basePath)); }, /** @@ -3074,7 +3102,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteAccountId(accountId: string, options?: any): AxiosPromise { + markDeleteAccountId(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteAccountId(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -3085,7 +3113,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: any): AxiosPromise { + patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchAccountId(accountId, updateAccountAdmin, options).then((request) => request(axios, basePath)); }, /** @@ -3094,7 +3122,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: any): AxiosPromise { + patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchAccountPassword(patchAccountPasswordRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3103,7 +3131,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: any): AxiosPromise { + patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchAccountPin(patchAccountPinRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3113,7 +3141,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postAccounts(newAccount?: NewAccount, options?: any): AxiosPromise { + postAccounts(newAccount?: NewAccount, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postAccounts(newAccount, options).then((request) => request(axios, basePath)); }, /** @@ -3123,7 +3151,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - resetAccountPin(accountId: string, options?: any): AxiosPromise { + resetAccountPin(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.resetAccountPin(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -3132,7 +3160,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - toggleAccountWantsToStaff(options?: any): AxiosPromise { + toggleAccountWantsToStaff(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.toggleAccountWantsToStaff(options).then((request) => request(axios, basePath)); }, /** @@ -3141,7 +3169,7 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - watchAccount(options?: any): AxiosPromise { + watchAccount(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.watchAccount(options).then((request) => request(axios, basePath)); }, }; @@ -3162,7 +3190,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public adminToggleAccountWantsToStaff(accountId: string, options?: AxiosRequestConfig) { + public adminToggleAccountWantsToStaff(accountId: string, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).adminToggleAccountWantsToStaff(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -3173,7 +3201,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public getAccount(options?: AxiosRequestConfig) { + public getAccount(options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).getAccount(options).then((request) => request(this.axios, this.basePath)); } @@ -3184,7 +3212,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public getAccountAdmin(options?: AxiosRequestConfig) { + public getAccountAdmin(options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).getAccountAdmin(options).then((request) => request(this.axios, this.basePath)); } @@ -3196,7 +3224,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public getAccountId(accountId: string, options?: AxiosRequestConfig) { + public getAccountId(accountId: string, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).getAccountId(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -3210,7 +3238,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public getAccounts(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig) { + public getAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).getAccounts(page, limit, search, options).then((request) => request(this.axios, this.basePath)); } @@ -3222,7 +3250,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public importAccounts(file?: File, options?: AxiosRequestConfig) { + public importAccounts(file?: File, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).importAccounts(file, options).then((request) => request(this.axios, this.basePath)); } @@ -3234,7 +3262,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public markDeleteAccountId(accountId: string, options?: AxiosRequestConfig) { + public markDeleteAccountId(accountId: string, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).markDeleteAccountId(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -3247,7 +3275,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: AxiosRequestConfig) { + public patchAccountId(accountId: string, updateAccountAdmin?: UpdateAccountAdmin, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).patchAccountId(accountId, updateAccountAdmin, options).then((request) => request(this.axios, this.basePath)); } @@ -3258,7 +3286,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: AxiosRequestConfig) { + public patchAccountPassword(patchAccountPasswordRequest?: PatchAccountPasswordRequest, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).patchAccountPassword(patchAccountPasswordRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3269,7 +3297,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: AxiosRequestConfig) { + public patchAccountPin(patchAccountPinRequest?: PatchAccountPinRequest, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).patchAccountPin(patchAccountPinRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3281,7 +3309,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public postAccounts(newAccount?: NewAccount, options?: AxiosRequestConfig) { + public postAccounts(newAccount?: NewAccount, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).postAccounts(newAccount, options).then((request) => request(this.axios, this.basePath)); } @@ -3293,7 +3321,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public resetAccountPin(accountId: string, options?: AxiosRequestConfig) { + public resetAccountPin(accountId: string, options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).resetAccountPin(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -3304,7 +3332,7 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public toggleAccountWantsToStaff(options?: AxiosRequestConfig) { + public toggleAccountWantsToStaff(options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).toggleAccountWantsToStaff(options).then((request) => request(this.axios, this.basePath)); } @@ -3315,12 +3343,13 @@ export class AccountsApi extends BaseAPI { * @throws {RequiredError} * @memberof AccountsApi */ - public watchAccount(options?: AxiosRequestConfig) { + public watchAccount(options?: RawAxiosRequestConfig) { return AccountsApiFp(this.configuration).watchAccount(options).then((request) => request(this.axios, this.basePath)); } } + /** * AuthApi - axios parameter creator * @export @@ -3335,7 +3364,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - callback: async (code: string, state: string, options: AxiosRequestConfig = {}): Promise => { + callback: async (code: string, state: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'code' is not null or undefined assertParamExists('callback', 'code', code) // verify required parameter 'state' is not null or undefined @@ -3378,7 +3407,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectAccount: async (qrNonce: string, options: AxiosRequestConfig = {}): Promise => { + connectAccount: async (qrNonce: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'qrNonce' is not null or undefined assertParamExists('connectAccount', 'qrNonce', qrNonce) const localVarPath = `/auth/google/begin/{qr_nonce}` @@ -3412,7 +3441,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectCard: async (connectCardRequest?: ConnectCardRequest, options: AxiosRequestConfig = {}): Promise => { + connectCard: async (connectCardRequest?: ConnectCardRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/auth/card`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3449,7 +3478,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectGoogle: async (r: string, options: AxiosRequestConfig = {}): Promise => { + connectGoogle: async (r: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'r' is not null or undefined assertParamExists('connectGoogle', 'r', r) const localVarPath = `/auth/google`; @@ -3486,7 +3515,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectPassword: async (connectPasswordRequest?: ConnectPasswordRequest, options: AxiosRequestConfig = {}): Promise => { + connectPassword: async (connectPasswordRequest?: ConnectPasswordRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/auth/password`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3523,7 +3552,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountQR: async (getAccountQRRequest?: GetAccountQRRequest, options: AxiosRequestConfig = {}): Promise => { + getAccountQR: async (getAccountQRRequest?: GetAccountQRRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/qr`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3560,7 +3589,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logout: async (options: AxiosRequestConfig = {}): Promise => { + logout: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/logout`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3606,9 +3635,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async callback(code: string, state: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async callback(code: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.callback(code, state, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.callback']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Connect account to Google @@ -3617,9 +3648,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async connectAccount(qrNonce: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async connectAccount(qrNonce: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.connectAccount(qrNonce, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.connectAccount']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Connect account to card @@ -3628,9 +3661,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async connectCard(connectCardRequest?: ConnectCardRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async connectCard(connectCardRequest?: ConnectCardRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.connectCard(connectCardRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.connectCard']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Connect account to Google @@ -3639,9 +3674,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async connectGoogle(r: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async connectGoogle(r: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.connectGoogle(r, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.connectGoogle']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Connect account with password @@ -3650,9 +3687,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.connectPassword(connectPasswordRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.connectPassword']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get the QR code to connect account to Google @@ -3661,9 +3700,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountQR(getAccountQRRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.getAccountQR']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Logout @@ -3671,9 +3712,11 @@ export const AuthApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async logout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthApi.logout']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -3693,7 +3736,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - callback(code: string, state: string, options?: any): AxiosPromise { + callback(code: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.callback(code, state, options).then((request) => request(axios, basePath)); }, /** @@ -3703,7 +3746,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectAccount(qrNonce: string, options?: any): AxiosPromise { + connectAccount(qrNonce: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.connectAccount(qrNonce, options).then((request) => request(axios, basePath)); }, /** @@ -3713,7 +3756,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectCard(connectCardRequest?: ConnectCardRequest, options?: any): AxiosPromise { + connectCard(connectCardRequest?: ConnectCardRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.connectCard(connectCardRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3723,7 +3766,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectGoogle(r: string, options?: any): AxiosPromise { + connectGoogle(r: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.connectGoogle(r, options).then((request) => request(axios, basePath)); }, /** @@ -3733,7 +3776,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: any): AxiosPromise { + connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.connectPassword(connectPasswordRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3743,7 +3786,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: any): AxiosPromise { + getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountQR(getAccountQRRequest, options).then((request) => request(axios, basePath)); }, /** @@ -3752,7 +3795,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - logout(options?: any): AxiosPromise { + logout(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.logout(options).then((request) => request(axios, basePath)); }, }; @@ -3774,7 +3817,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public callback(code: string, state: string, options?: AxiosRequestConfig) { + public callback(code: string, state: string, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).callback(code, state, options).then((request) => request(this.axios, this.basePath)); } @@ -3786,7 +3829,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public connectAccount(qrNonce: string, options?: AxiosRequestConfig) { + public connectAccount(qrNonce: string, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).connectAccount(qrNonce, options).then((request) => request(this.axios, this.basePath)); } @@ -3798,7 +3841,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public connectCard(connectCardRequest?: ConnectCardRequest, options?: AxiosRequestConfig) { + public connectCard(connectCardRequest?: ConnectCardRequest, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).connectCard(connectCardRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3810,7 +3853,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public connectGoogle(r: string, options?: AxiosRequestConfig) { + public connectGoogle(r: string, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).connectGoogle(r, options).then((request) => request(this.axios, this.basePath)); } @@ -3822,7 +3865,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: AxiosRequestConfig) { + public connectPassword(connectPasswordRequest?: ConnectPasswordRequest, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).connectPassword(connectPasswordRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3834,7 +3877,7 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: AxiosRequestConfig) { + public getAccountQR(getAccountQRRequest?: GetAccountQRRequest, options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).getAccountQR(getAccountQRRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -3845,12 +3888,13 @@ export class AuthApi extends BaseAPI { * @throws {RequiredError} * @memberof AuthApi */ - public logout(options?: AxiosRequestConfig) { + public logout(options?: RawAxiosRequestConfig) { return AuthApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath)); } } + /** * CarouselApi - axios parameter creator * @export @@ -3863,7 +3907,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addCarouselImage: async (image: File, options: AxiosRequestConfig = {}): Promise => { + addCarouselImage: async (image: File, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'image' is not null or undefined assertParamExists('addCarouselImage', 'image', image) const localVarPath = `/carousel/images`; @@ -3905,7 +3949,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addCarouselText: async (carouselTextCreate: CarouselTextCreate, options: AxiosRequestConfig = {}): Promise => { + addCarouselText: async (carouselTextCreate: CarouselTextCreate, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'carouselTextCreate' is not null or undefined assertParamExists('addCarouselText', 'carouselTextCreate', carouselTextCreate) const localVarPath = `/carousel/texts`; @@ -3942,7 +3986,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselImage: async (imageId: string, options: AxiosRequestConfig = {}): Promise => { + getCarouselImage: async (imageId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'imageId' is not null or undefined assertParamExists('getCarouselImage', 'imageId', imageId) const localVarPath = `/carousel/images/{image_id}` @@ -3974,7 +4018,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselImages: async (options: AxiosRequestConfig = {}): Promise => { + getCarouselImages: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/carousel/images`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4003,7 +4047,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselTexts: async (options: AxiosRequestConfig = {}): Promise => { + getCarouselTexts: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/carousel/texts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4033,7 +4077,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCarouselImage: async (imageId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteCarouselImage: async (imageId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'imageId' is not null or undefined assertParamExists('markDeleteCarouselImage', 'imageId', imageId) const localVarPath = `/carousel/images/{image_id}` @@ -4068,7 +4112,7 @@ export const CarouselApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCarouselText: async (textId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteCarouselText: async (textId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'textId' is not null or undefined assertParamExists('markDeleteCarouselText', 'textId', textId) const localVarPath = `/carousel/texts/{text_id}` @@ -4113,9 +4157,11 @@ export const CarouselApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async addCarouselImage(image: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async addCarouselImage(image: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addCarouselImage(image, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.addCarouselImage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Add a carousel text @@ -4123,9 +4169,11 @@ export const CarouselApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async addCarouselText(carouselTextCreate: CarouselTextCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async addCarouselText(carouselTextCreate: CarouselTextCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addCarouselText(carouselTextCreate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.addCarouselText']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a carousel image @@ -4133,27 +4181,33 @@ export const CarouselApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCarouselImage(imageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCarouselImage(imageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCarouselImage(imageId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.getCarouselImage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get carousel images * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCarouselImages(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getCarouselImages(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCarouselImages(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.getCarouselImages']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get carousel texts * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCarouselTexts(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getCarouselTexts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCarouselTexts(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.getCarouselTexts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a carousel image @@ -4161,9 +4215,11 @@ export const CarouselApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteCarouselImage(imageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteCarouselImage(imageId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.markDeleteCarouselImage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a carousel text @@ -4171,9 +4227,11 @@ export const CarouselApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteCarouselText(textId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteCarouselText(textId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteCarouselText(textId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CarouselApi.markDeleteCarouselText']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -4191,7 +4249,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addCarouselImage(image: File, options?: any): AxiosPromise { + addCarouselImage(image: File, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addCarouselImage(image, options).then((request) => request(axios, basePath)); }, /** @@ -4200,7 +4258,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - addCarouselText(carouselTextCreate: CarouselTextCreate, options?: any): AxiosPromise { + addCarouselText(carouselTextCreate: CarouselTextCreate, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addCarouselText(carouselTextCreate, options).then((request) => request(axios, basePath)); }, /** @@ -4209,7 +4267,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselImage(imageId: string, options?: any): AxiosPromise { + getCarouselImage(imageId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCarouselImage(imageId, options).then((request) => request(axios, basePath)); }, /** @@ -4217,7 +4275,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselImages(options?: any): AxiosPromise> { + getCarouselImages(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getCarouselImages(options).then((request) => request(axios, basePath)); }, /** @@ -4225,7 +4283,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCarouselTexts(options?: any): AxiosPromise> { + getCarouselTexts(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getCarouselTexts(options).then((request) => request(axios, basePath)); }, /** @@ -4234,7 +4292,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCarouselImage(imageId: string, options?: any): AxiosPromise { + markDeleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteCarouselImage(imageId, options).then((request) => request(axios, basePath)); }, /** @@ -4243,7 +4301,7 @@ export const CarouselApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCarouselText(textId: string, options?: any): AxiosPromise { + markDeleteCarouselText(textId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteCarouselText(textId, options).then((request) => request(axios, basePath)); }, }; @@ -4263,7 +4321,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public addCarouselImage(image: File, options?: AxiosRequestConfig) { + public addCarouselImage(image: File, options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).addCarouselImage(image, options).then((request) => request(this.axios, this.basePath)); } @@ -4274,7 +4332,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public addCarouselText(carouselTextCreate: CarouselTextCreate, options?: AxiosRequestConfig) { + public addCarouselText(carouselTextCreate: CarouselTextCreate, options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).addCarouselText(carouselTextCreate, options).then((request) => request(this.axios, this.basePath)); } @@ -4285,7 +4343,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public getCarouselImage(imageId: string, options?: AxiosRequestConfig) { + public getCarouselImage(imageId: string, options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).getCarouselImage(imageId, options).then((request) => request(this.axios, this.basePath)); } @@ -4295,7 +4353,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public getCarouselImages(options?: AxiosRequestConfig) { + public getCarouselImages(options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).getCarouselImages(options).then((request) => request(this.axios, this.basePath)); } @@ -4305,7 +4363,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public getCarouselTexts(options?: AxiosRequestConfig) { + public getCarouselTexts(options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).getCarouselTexts(options).then((request) => request(this.axios, this.basePath)); } @@ -4316,7 +4374,7 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public markDeleteCarouselImage(imageId: string, options?: AxiosRequestConfig) { + public markDeleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).markDeleteCarouselImage(imageId, options).then((request) => request(this.axios, this.basePath)); } @@ -4327,12 +4385,13 @@ export class CarouselApi extends BaseAPI { * @throws {RequiredError} * @memberof CarouselApi */ - public markDeleteCarouselText(textId: string, options?: AxiosRequestConfig) { + public markDeleteCarouselText(textId: string, options?: RawAxiosRequestConfig) { return CarouselApiFp(this.configuration).markDeleteCarouselText(textId, options).then((request) => request(this.axios, this.basePath)); } } + /** * CashMovementsApi - axios parameter creator * @export @@ -4345,7 +4404,7 @@ export const CashMovementsApiAxiosParamCreator = function (configuration?: Confi * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createCashMovement: async (newCashMovement: NewCashMovement, options: AxiosRequestConfig = {}): Promise => { + createCashMovement: async (newCashMovement: NewCashMovement, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'newCashMovement' is not null or undefined assertParamExists('createCashMovement', 'newCashMovement', newCashMovement) const localVarPath = `/cash_movements`; @@ -4382,7 +4441,7 @@ export const CashMovementsApiAxiosParamCreator = function (configuration?: Confi * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCashMovement: async (cashMovementId: string, options: AxiosRequestConfig = {}): Promise => { + deleteCashMovement: async (cashMovementId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'cashMovementId' is not null or undefined assertParamExists('deleteCashMovement', 'cashMovementId', cashMovementId) const localVarPath = `/cash_movements/{cash_movement_id}` @@ -4419,7 +4478,7 @@ export const CashMovementsApiAxiosParamCreator = function (configuration?: Confi * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCashMovements: async (page?: number, limit?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + getCashMovements: async (page?: number, limit?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/cash_movements`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4473,9 +4532,11 @@ export const CashMovementsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createCashMovement(newCashMovement: NewCashMovement, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createCashMovement(newCashMovement: NewCashMovement, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCashMovement(newCashMovement, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CashMovementsApi.createCashMovement']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a cash movement @@ -4483,9 +4544,11 @@ export const CashMovementsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteCashMovement(cashMovementId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteCashMovement(cashMovementId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCashMovement(cashMovementId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CashMovementsApi.deleteCashMovement']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get cash movements @@ -4495,9 +4558,11 @@ export const CashMovementsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCashMovements(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCashMovements(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCashMovements(page, limit, search, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CashMovementsApi.getCashMovements']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -4515,7 +4580,7 @@ export const CashMovementsApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createCashMovement(newCashMovement: NewCashMovement, options?: any): AxiosPromise { + createCashMovement(newCashMovement: NewCashMovement, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createCashMovement(newCashMovement, options).then((request) => request(axios, basePath)); }, /** @@ -4524,7 +4589,7 @@ export const CashMovementsApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCashMovement(cashMovementId: string, options?: any): AxiosPromise { + deleteCashMovement(cashMovementId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCashMovement(cashMovementId, options).then((request) => request(axios, basePath)); }, /** @@ -4535,7 +4600,7 @@ export const CashMovementsApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCashMovements(page?: number, limit?: number, search?: string, options?: any): AxiosPromise { + getCashMovements(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCashMovements(page, limit, search, options).then((request) => request(axios, basePath)); }, }; @@ -4555,7 +4620,7 @@ export class CashMovementsApi extends BaseAPI { * @throws {RequiredError} * @memberof CashMovementsApi */ - public createCashMovement(newCashMovement: NewCashMovement, options?: AxiosRequestConfig) { + public createCashMovement(newCashMovement: NewCashMovement, options?: RawAxiosRequestConfig) { return CashMovementsApiFp(this.configuration).createCashMovement(newCashMovement, options).then((request) => request(this.axios, this.basePath)); } @@ -4566,7 +4631,7 @@ export class CashMovementsApi extends BaseAPI { * @throws {RequiredError} * @memberof CashMovementsApi */ - public deleteCashMovement(cashMovementId: string, options?: AxiosRequestConfig) { + public deleteCashMovement(cashMovementId: string, options?: RawAxiosRequestConfig) { return CashMovementsApiFp(this.configuration).deleteCashMovement(cashMovementId, options).then((request) => request(this.axios, this.basePath)); } @@ -4579,12 +4644,13 @@ export class CashMovementsApi extends BaseAPI { * @throws {RequiredError} * @memberof CashMovementsApi */ - public getCashMovements(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig) { + public getCashMovements(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig) { return CashMovementsApiFp(this.configuration).getCashMovements(page, limit, search, options).then((request) => request(this.axios, this.basePath)); } } + /** * CategoriesApi - axios parameter creator * @export @@ -4597,7 +4663,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategories: async (hidden?: boolean, options: AxiosRequestConfig = {}): Promise => { + getCategories: async (hidden?: boolean, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/categories`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4633,7 +4699,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategory: async (categoryId: string, options: AxiosRequestConfig = {}): Promise => { + getCategory: async (categoryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('getCategory', 'categoryId', categoryId) const localVarPath = `/categories/{category_id}` @@ -4668,7 +4734,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategoryPicture: async (categoryId: string, options: AxiosRequestConfig = {}): Promise => { + getCategoryPicture: async (categoryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('getCategoryPicture', 'categoryId', categoryId) const localVarPath = `/categories/{category_id}/picture` @@ -4703,7 +4769,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCategory: async (categoryId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteCategory: async (categoryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('markDeleteCategory', 'categoryId', categoryId) const localVarPath = `/categories/{category_id}` @@ -4739,7 +4805,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchCategory: async (categoryId: string, updateCategory: UpdateCategory, options: AxiosRequestConfig = {}): Promise => { + patchCategory: async (categoryId: string, updateCategory: UpdateCategory, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('patchCategory', 'categoryId', categoryId) // verify required parameter 'updateCategory' is not null or undefined @@ -4779,7 +4845,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postCategory: async (newCategory: NewCategory, options: AxiosRequestConfig = {}): Promise => { + postCategory: async (newCategory: NewCategory, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'newCategory' is not null or undefined assertParamExists('postCategory', 'newCategory', newCategory) const localVarPath = `/categories`; @@ -4826,9 +4892,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCategories(hidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getCategories(hidden?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(hidden, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.getCategories']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a category @@ -4836,9 +4904,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCategory(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCategory(categoryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCategory(categoryId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.getCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a category picture @@ -4846,9 +4916,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCategoryPicture(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCategoryPicture(categoryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCategoryPicture(categoryId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.getCategoryPicture']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a category @@ -4856,9 +4928,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteCategory(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteCategory(categoryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteCategory(categoryId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.markDeleteCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a category @@ -4867,9 +4941,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchCategory(categoryId, updateCategory, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.patchCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new category @@ -4877,9 +4953,11 @@ export const CategoriesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postCategory(newCategory: NewCategory, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postCategory(newCategory: NewCategory, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postCategory(newCategory, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CategoriesApi.postCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -4897,7 +4975,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategories(hidden?: boolean, options?: any): AxiosPromise> { + getCategories(hidden?: boolean, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getCategories(hidden, options).then((request) => request(axios, basePath)); }, /** @@ -4906,7 +4984,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategory(categoryId: string, options?: any): AxiosPromise { + getCategory(categoryId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCategory(categoryId, options).then((request) => request(axios, basePath)); }, /** @@ -4915,7 +4993,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategoryPicture(categoryId: string, options?: any): AxiosPromise { + getCategoryPicture(categoryId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCategoryPicture(categoryId, options).then((request) => request(axios, basePath)); }, /** @@ -4924,7 +5002,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteCategory(categoryId: string, options?: any): AxiosPromise { + markDeleteCategory(categoryId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteCategory(categoryId, options).then((request) => request(axios, basePath)); }, /** @@ -4934,7 +5012,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: any): AxiosPromise { + patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchCategory(categoryId, updateCategory, options).then((request) => request(axios, basePath)); }, /** @@ -4943,7 +5021,7 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postCategory(newCategory: NewCategory, options?: any): AxiosPromise { + postCategory(newCategory: NewCategory, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postCategory(newCategory, options).then((request) => request(axios, basePath)); }, }; @@ -4963,7 +5041,7 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public getCategories(hidden?: boolean, options?: AxiosRequestConfig) { + public getCategories(hidden?: boolean, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).getCategories(hidden, options).then((request) => request(this.axios, this.basePath)); } @@ -4974,7 +5052,7 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public getCategory(categoryId: string, options?: AxiosRequestConfig) { + public getCategory(categoryId: string, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).getCategory(categoryId, options).then((request) => request(this.axios, this.basePath)); } @@ -4985,7 +5063,7 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public getCategoryPicture(categoryId: string, options?: AxiosRequestConfig) { + public getCategoryPicture(categoryId: string, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).getCategoryPicture(categoryId, options).then((request) => request(this.axios, this.basePath)); } @@ -4996,7 +5074,7 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public markDeleteCategory(categoryId: string, options?: AxiosRequestConfig) { + public markDeleteCategory(categoryId: string, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).markDeleteCategory(categoryId, options).then((request) => request(this.axios, this.basePath)); } @@ -5008,7 +5086,7 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: AxiosRequestConfig) { + public patchCategory(categoryId: string, updateCategory: UpdateCategory, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).patchCategory(categoryId, updateCategory, options).then((request) => request(this.axios, this.basePath)); } @@ -5019,12 +5097,13 @@ export class CategoriesApi extends BaseAPI { * @throws {RequiredError} * @memberof CategoriesApi */ - public postCategory(newCategory: NewCategory, options?: AxiosRequestConfig) { + public postCategory(newCategory: NewCategory, options?: RawAxiosRequestConfig) { return CategoriesApiFp(this.configuration).postCategory(newCategory, options).then((request) => request(this.axios, this.basePath)); } } + /** * CourseApi - axios parameter creator * @export @@ -5037,7 +5116,7 @@ export const CourseApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCourse: async (fournisseur?: string, options: AxiosRequestConfig = {}): Promise => { + getCourse: async (fournisseur?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/course`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5083,9 +5162,11 @@ export const CourseApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCourse(fournisseur?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCourse(fournisseur?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCourse(fournisseur, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['CourseApi.getCourse']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -5103,7 +5184,7 @@ export const CourseApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCourse(fournisseur?: string, options?: any): AxiosPromise { + getCourse(fournisseur?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCourse(fournisseur, options).then((request) => request(axios, basePath)); }, }; @@ -5123,12 +5204,13 @@ export class CourseApi extends BaseAPI { * @throws {RequiredError} * @memberof CourseApi */ - public getCourse(fournisseur?: string, options?: AxiosRequestConfig) { + public getCourse(fournisseur?: string, options?: RawAxiosRequestConfig) { return CourseApiFp(this.configuration).getCourse(fournisseur, options).then((request) => request(this.axios, this.basePath)); } } + /** * DefaultApi - axios parameter creator * @export @@ -5141,7 +5223,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountQRWebsocket: async (options: AxiosRequestConfig = {}): Promise => { + getAccountQRWebsocket: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/qr`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5171,7 +5253,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getBorneAuthQRWebsocket: async (options: AxiosRequestConfig = {}): Promise => { + getBorneAuthQRWebsocket: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/auth/qr`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5205,7 +5287,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postBorneAuthQR: async (postBorneAuthQRRequest?: PostBorneAuthQRRequest, options: AxiosRequestConfig = {}): Promise => { + postBorneAuthQR: async (postBorneAuthQRRequest?: PostBorneAuthQRRequest, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/auth/qr`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5248,9 +5330,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountQRWebsocket(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountQRWebsocket(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountQRWebsocket(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getAccountQRWebsocket']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Websocket to listen for scan & callback (for cool animations) @@ -5258,9 +5342,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getBorneAuthQRWebsocket(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getBorneAuthQRWebsocket(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getBorneAuthQRWebsocket(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getBorneAuthQRWebsocket']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Validate the connection to connect @@ -5269,9 +5355,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postBorneAuthQR(postBorneAuthQRRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.postBorneAuthQR']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -5289,7 +5377,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountQRWebsocket(options?: any): AxiosPromise { + getAccountQRWebsocket(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountQRWebsocket(options).then((request) => request(axios, basePath)); }, /** @@ -5298,7 +5386,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getBorneAuthQRWebsocket(options?: any): AxiosPromise { + getBorneAuthQRWebsocket(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getBorneAuthQRWebsocket(options).then((request) => request(axios, basePath)); }, /** @@ -5308,7 +5396,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: any): AxiosPromise { + postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postBorneAuthQR(postBorneAuthQRRequest, options).then((request) => request(axios, basePath)); }, }; @@ -5328,7 +5416,7 @@ export class DefaultApi extends BaseAPI { * @throws {RequiredError} * @memberof DefaultApi */ - public getAccountQRWebsocket(options?: AxiosRequestConfig) { + public getAccountQRWebsocket(options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getAccountQRWebsocket(options).then((request) => request(this.axios, this.basePath)); } @@ -5339,7 +5427,7 @@ export class DefaultApi extends BaseAPI { * @throws {RequiredError} * @memberof DefaultApi */ - public getBorneAuthQRWebsocket(options?: AxiosRequestConfig) { + public getBorneAuthQRWebsocket(options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getBorneAuthQRWebsocket(options).then((request) => request(this.axios, this.basePath)); } @@ -5351,12 +5439,13 @@ export class DefaultApi extends BaseAPI { * @throws {RequiredError} * @memberof DefaultApi */ - public postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: AxiosRequestConfig) { + public postBorneAuthQR(postBorneAuthQRRequest?: PostBorneAuthQRRequest, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).postBorneAuthQR(postBorneAuthQRRequest, options).then((request) => request(this.axios, this.basePath)); } } + /** * DeletedApi - axios parameter creator * @export @@ -5369,7 +5458,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteAccount: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + deleteAccount: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('deleteAccount', 'accountId', accountId) const localVarPath = `/deleted/accounts/{account_id}` @@ -5404,7 +5493,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCarouselImage: async (imageId: string, options: AxiosRequestConfig = {}): Promise => { + deleteCarouselImage: async (imageId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'imageId' is not null or undefined assertParamExists('deleteCarouselImage', 'imageId', imageId) const localVarPath = `/deleted/carousel/images/{image_id}` @@ -5439,7 +5528,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCarouselText: async (textId: string, options: AxiosRequestConfig = {}): Promise => { + deleteCarouselText: async (textId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'textId' is not null or undefined assertParamExists('deleteCarouselText', 'textId', textId) const localVarPath = `/deleted/carousel/texts/{text_id}` @@ -5474,7 +5563,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCategory: async (categoryId: string, options: AxiosRequestConfig = {}): Promise => { + deleteCategory: async (categoryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('deleteCategory', 'categoryId', categoryId) const localVarPath = `/deleted/categories/{category_id}` @@ -5509,7 +5598,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteItem: async (itemId: string, options: AxiosRequestConfig = {}): Promise => { + deleteItem: async (itemId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('deleteItem', 'itemId', itemId) const localVarPath = `/deleted/items/{item_id}` @@ -5544,7 +5633,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteRefill: async (refillId: string, options: AxiosRequestConfig = {}): Promise => { + deleteRefill: async (refillId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'refillId' is not null or undefined assertParamExists('deleteRefill', 'refillId', refillId) const localVarPath = `/deleted/refills/{refill_id}` @@ -5579,7 +5668,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteTransaction: async (transactionId: string, options: AxiosRequestConfig = {}): Promise => { + deleteTransaction: async (transactionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'transactionId' is not null or undefined assertParamExists('deleteTransaction', 'transactionId', transactionId) const localVarPath = `/deleted/transactions/{transaction_id}` @@ -5616,7 +5705,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedAccounts: async (page?: number, limit?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + getDeletedAccounts: async (page?: number, limit?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5661,7 +5750,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCarouselImages: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedCarouselImages: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/carousel/images`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5702,7 +5791,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCarouselTexts: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedCarouselTexts: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/carousel/texts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5743,7 +5832,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCategories: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedCategories: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/categories`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5784,7 +5873,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedItems: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedItems: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5825,7 +5914,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedRefills: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedRefills: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/refills`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5866,7 +5955,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedTransactions: async (page?: number, limit?: number, options: AxiosRequestConfig = {}): Promise => { + getDeletedTransactions: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleted/transactions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5906,7 +5995,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedAccount: async (accountId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedAccount: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('restoreDeletedAccount', 'accountId', accountId) const localVarPath = `/deleted/accounts/{account_id}` @@ -5941,7 +6030,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCarouselImage: async (imageId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedCarouselImage: async (imageId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'imageId' is not null or undefined assertParamExists('restoreDeletedCarouselImage', 'imageId', imageId) const localVarPath = `/deleted/carousel/images/{image_id}` @@ -5976,7 +6065,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCarouselText: async (textId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedCarouselText: async (textId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'textId' is not null or undefined assertParamExists('restoreDeletedCarouselText', 'textId', textId) const localVarPath = `/deleted/carousel/texts/{text_id}` @@ -6011,7 +6100,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCategory: async (categoryId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedCategory: async (categoryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('restoreDeletedCategory', 'categoryId', categoryId) const localVarPath = `/deleted/categories/{category_id}` @@ -6046,7 +6135,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedItem: async (itemId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedItem: async (itemId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('restoreDeletedItem', 'itemId', itemId) const localVarPath = `/deleted/items/{item_id}` @@ -6081,7 +6170,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedRefill: async (refillId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedRefill: async (refillId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'refillId' is not null or undefined assertParamExists('restoreDeletedRefill', 'refillId', refillId) const localVarPath = `/deleted/refills/{refill_id}` @@ -6116,7 +6205,7 @@ export const DeletedApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedTransaction: async (transactionId: string, options: AxiosRequestConfig = {}): Promise => { + restoreDeletedTransaction: async (transactionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'transactionId' is not null or undefined assertParamExists('restoreDeletedTransaction', 'transactionId', transactionId) const localVarPath = `/deleted/transactions/{transaction_id}` @@ -6161,9 +6250,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteAccount(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteAccount(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccount(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteAccount']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes a carousel image (SUPERADMIN) @@ -6171,9 +6262,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteCarouselImage(imageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCarouselImage(imageId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteCarouselImage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes a carousel text (SUPERADMIN) @@ -6181,9 +6274,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteCarouselText(textId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteCarouselText(textId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCarouselText(textId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteCarouselText']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes a category (SUPERADMIN) @@ -6191,9 +6286,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteCategory(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteCategory(categoryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCategory(categoryId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes an item (SUPERADMIN) @@ -6201,9 +6298,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteItem(itemId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteItem(itemId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteItem(itemId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes a refill (SUPERADMIN) @@ -6211,9 +6310,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteRefill(refillId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteRefill(refillId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRefill(refillId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteRefill']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Permanently deletes a transaction (SUPERADMIN) @@ -6221,9 +6322,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteTransaction(transactionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteTransaction(transactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTransaction(transactionId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.deleteTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted accounts @@ -6233,9 +6336,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedAccounts(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedAccounts(page, limit, search, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedAccounts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted carousel images @@ -6244,9 +6349,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedCarouselImages(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedCarouselImages(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedCarouselImages(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedCarouselImages']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted carousel texts @@ -6255,9 +6362,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedCarouselTexts(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedCarouselTexts(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedCarouselTexts(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedCarouselTexts']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted categories @@ -6266,9 +6375,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedCategories(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedCategories(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedCategories(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedCategories']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted items @@ -6277,9 +6388,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedItems(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedItems(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedItems(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedItems']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted refills @@ -6288,9 +6401,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedRefills(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedRefills(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedRefills(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedRefills']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get deleted transactions @@ -6299,9 +6414,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeletedTransactions(page?: number, limit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeletedTransactions(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeletedTransactions(page, limit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.getDeletedTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted account @@ -6309,9 +6426,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedAccount(accountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedAccount(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedAccount(accountId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedAccount']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted carousel image @@ -6319,9 +6438,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedCarouselImage(imageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedCarouselImage(imageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedCarouselImage(imageId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedCarouselImage']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted carousel text @@ -6329,9 +6450,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedCarouselText(textId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedCarouselText(textId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedCarouselText(textId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedCarouselText']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted category @@ -6339,9 +6462,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedCategory(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedCategory(categoryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedCategory(categoryId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedCategory']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted item @@ -6349,9 +6474,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedItem(itemId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedItem(itemId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedItem(itemId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted refill @@ -6359,9 +6486,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedRefill(refillId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedRefill(refillId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedRefill(refillId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedRefill']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Restore a deleted transaction @@ -6369,9 +6498,11 @@ export const DeletedApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreDeletedTransaction(transactionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreDeletedTransaction(transactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDeletedTransaction(transactionId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DeletedApi.restoreDeletedTransaction']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -6389,7 +6520,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteAccount(accountId: string, options?: any): AxiosPromise { + deleteAccount(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteAccount(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -6398,7 +6529,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCarouselImage(imageId: string, options?: any): AxiosPromise { + deleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCarouselImage(imageId, options).then((request) => request(axios, basePath)); }, /** @@ -6407,7 +6538,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCarouselText(textId: string, options?: any): AxiosPromise { + deleteCarouselText(textId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCarouselText(textId, options).then((request) => request(axios, basePath)); }, /** @@ -6416,7 +6547,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteCategory(categoryId: string, options?: any): AxiosPromise { + deleteCategory(categoryId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCategory(categoryId, options).then((request) => request(axios, basePath)); }, /** @@ -6425,7 +6556,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteItem(itemId: string, options?: any): AxiosPromise { + deleteItem(itemId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteItem(itemId, options).then((request) => request(axios, basePath)); }, /** @@ -6434,7 +6565,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteRefill(refillId: string, options?: any): AxiosPromise { + deleteRefill(refillId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteRefill(refillId, options).then((request) => request(axios, basePath)); }, /** @@ -6443,7 +6574,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteTransaction(transactionId: string, options?: any): AxiosPromise { + deleteTransaction(transactionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteTransaction(transactionId, options).then((request) => request(axios, basePath)); }, /** @@ -6454,7 +6585,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedAccounts(page?: number, limit?: number, search?: string, options?: any): AxiosPromise { + getDeletedAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedAccounts(page, limit, search, options).then((request) => request(axios, basePath)); }, /** @@ -6464,7 +6595,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCarouselImages(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedCarouselImages(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedCarouselImages(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6474,7 +6605,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCarouselTexts(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedCarouselTexts(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedCarouselTexts(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6484,7 +6615,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedCategories(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedCategories(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedCategories(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6494,7 +6625,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedItems(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedItems(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedItems(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6504,7 +6635,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedRefills(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedRefills(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedRefills(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6514,7 +6645,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeletedTransactions(page?: number, limit?: number, options?: any): AxiosPromise { + getDeletedTransactions(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeletedTransactions(page, limit, options).then((request) => request(axios, basePath)); }, /** @@ -6523,7 +6654,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedAccount(accountId: string, options?: any): AxiosPromise { + restoreDeletedAccount(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedAccount(accountId, options).then((request) => request(axios, basePath)); }, /** @@ -6532,7 +6663,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCarouselImage(imageId: string, options?: any): AxiosPromise { + restoreDeletedCarouselImage(imageId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedCarouselImage(imageId, options).then((request) => request(axios, basePath)); }, /** @@ -6541,7 +6672,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCarouselText(textId: string, options?: any): AxiosPromise { + restoreDeletedCarouselText(textId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedCarouselText(textId, options).then((request) => request(axios, basePath)); }, /** @@ -6550,7 +6681,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedCategory(categoryId: string, options?: any): AxiosPromise { + restoreDeletedCategory(categoryId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedCategory(categoryId, options).then((request) => request(axios, basePath)); }, /** @@ -6559,7 +6690,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedItem(itemId: string, options?: any): AxiosPromise { + restoreDeletedItem(itemId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedItem(itemId, options).then((request) => request(axios, basePath)); }, /** @@ -6568,7 +6699,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedRefill(refillId: string, options?: any): AxiosPromise { + restoreDeletedRefill(refillId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedRefill(refillId, options).then((request) => request(axios, basePath)); }, /** @@ -6577,7 +6708,7 @@ export const DeletedApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreDeletedTransaction(transactionId: string, options?: any): AxiosPromise { + restoreDeletedTransaction(transactionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.restoreDeletedTransaction(transactionId, options).then((request) => request(axios, basePath)); }, }; @@ -6597,7 +6728,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteAccount(accountId: string, options?: AxiosRequestConfig) { + public deleteAccount(accountId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteAccount(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -6608,7 +6739,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteCarouselImage(imageId: string, options?: AxiosRequestConfig) { + public deleteCarouselImage(imageId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteCarouselImage(imageId, options).then((request) => request(this.axios, this.basePath)); } @@ -6619,7 +6750,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteCarouselText(textId: string, options?: AxiosRequestConfig) { + public deleteCarouselText(textId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteCarouselText(textId, options).then((request) => request(this.axios, this.basePath)); } @@ -6630,7 +6761,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteCategory(categoryId: string, options?: AxiosRequestConfig) { + public deleteCategory(categoryId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteCategory(categoryId, options).then((request) => request(this.axios, this.basePath)); } @@ -6641,7 +6772,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteItem(itemId: string, options?: AxiosRequestConfig) { + public deleteItem(itemId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteItem(itemId, options).then((request) => request(this.axios, this.basePath)); } @@ -6652,7 +6783,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteRefill(refillId: string, options?: AxiosRequestConfig) { + public deleteRefill(refillId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteRefill(refillId, options).then((request) => request(this.axios, this.basePath)); } @@ -6663,7 +6794,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public deleteTransaction(transactionId: string, options?: AxiosRequestConfig) { + public deleteTransaction(transactionId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).deleteTransaction(transactionId, options).then((request) => request(this.axios, this.basePath)); } @@ -6676,7 +6807,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedAccounts(page?: number, limit?: number, search?: string, options?: AxiosRequestConfig) { + public getDeletedAccounts(page?: number, limit?: number, search?: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedAccounts(page, limit, search, options).then((request) => request(this.axios, this.basePath)); } @@ -6688,7 +6819,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedCarouselImages(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedCarouselImages(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedCarouselImages(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6700,7 +6831,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedCarouselTexts(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedCarouselTexts(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedCarouselTexts(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6712,7 +6843,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedCategories(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedCategories(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedCategories(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6724,7 +6855,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedItems(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedItems(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedItems(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6736,7 +6867,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedRefills(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedRefills(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedRefills(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6748,7 +6879,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public getDeletedTransactions(page?: number, limit?: number, options?: AxiosRequestConfig) { + public getDeletedTransactions(page?: number, limit?: number, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).getDeletedTransactions(page, limit, options).then((request) => request(this.axios, this.basePath)); } @@ -6759,7 +6890,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedAccount(accountId: string, options?: AxiosRequestConfig) { + public restoreDeletedAccount(accountId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedAccount(accountId, options).then((request) => request(this.axios, this.basePath)); } @@ -6770,7 +6901,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedCarouselImage(imageId: string, options?: AxiosRequestConfig) { + public restoreDeletedCarouselImage(imageId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedCarouselImage(imageId, options).then((request) => request(this.axios, this.basePath)); } @@ -6781,7 +6912,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedCarouselText(textId: string, options?: AxiosRequestConfig) { + public restoreDeletedCarouselText(textId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedCarouselText(textId, options).then((request) => request(this.axios, this.basePath)); } @@ -6792,7 +6923,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedCategory(categoryId: string, options?: AxiosRequestConfig) { + public restoreDeletedCategory(categoryId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedCategory(categoryId, options).then((request) => request(this.axios, this.basePath)); } @@ -6803,7 +6934,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedItem(itemId: string, options?: AxiosRequestConfig) { + public restoreDeletedItem(itemId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedItem(itemId, options).then((request) => request(this.axios, this.basePath)); } @@ -6814,7 +6945,7 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedRefill(refillId: string, options?: AxiosRequestConfig) { + public restoreDeletedRefill(refillId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedRefill(refillId, options).then((request) => request(this.axios, this.basePath)); } @@ -6825,12 +6956,13 @@ export class DeletedApi extends BaseAPI { * @throws {RequiredError} * @memberof DeletedApi */ - public restoreDeletedTransaction(transactionId: string, options?: AxiosRequestConfig) { + public restoreDeletedTransaction(transactionId: string, options?: RawAxiosRequestConfig) { return DeletedApiFp(this.configuration).restoreDeletedTransaction(transactionId, options).then((request) => request(this.axios, this.basePath)); } } + /** * ItemsApi - axios parameter creator * @export @@ -6847,7 +6979,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllIncoherentItems: async (page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options: AxiosRequestConfig = {}): Promise => { + getAllIncoherentItems: async (page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/items/incoherent`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -6904,7 +7036,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItems: async (page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options: AxiosRequestConfig = {}): Promise => { + getAllItems: async (page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -6963,7 +7095,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategoryItems: async (categoryId: string, page?: number, limit?: number, state?: ItemState, options: AxiosRequestConfig = {}): Promise => { + getCategoryItems: async (categoryId: string, page?: number, limit?: number, state?: ItemState, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('getCategoryItems', 'categoryId', categoryId) const localVarPath = `/categories/{category_id}/items` @@ -7011,7 +7143,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemPicture: async (categoryId: string, itemId: string, options: AxiosRequestConfig = {}): Promise => { + getItemPicture: async (categoryId: string, itemId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('getItemPicture', 'categoryId', categoryId) // verify required parameter 'itemId' is not null or undefined @@ -7050,7 +7182,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteItem: async (categoryId: string, itemId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteItem: async (categoryId: string, itemId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('markDeleteItem', 'categoryId', categoryId) // verify required parameter 'itemId' is not null or undefined @@ -7090,7 +7222,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchItem: async (categoryId: string, itemId: string, updateItem: UpdateItem, options: AxiosRequestConfig = {}): Promise => { + patchItem: async (categoryId: string, itemId: string, updateItem: UpdateItem, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('patchItem', 'categoryId', categoryId) // verify required parameter 'itemId' is not null or undefined @@ -7134,7 +7266,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postItem: async (categoryId: string, newItem: NewItem, options: AxiosRequestConfig = {}): Promise => { + postItem: async (categoryId: string, newItem: NewItem, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'categoryId' is not null or undefined assertParamExists('postItem', 'categoryId', categoryId) // verify required parameter 'newItem' is not null or undefined @@ -7188,9 +7320,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAllIncoherentItems(page, limit, state, categoryId, name, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.getAllIncoherentItems']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * (admin) Get all items with filters and pagination @@ -7203,9 +7337,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAllItems(page, limit, state, categoryId, name, fournisseur, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.getAllItems']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all items of a category @@ -7216,9 +7352,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCategoryItems(categoryId, page, limit, state, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.getCategoryItems']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get an item picture @@ -7227,9 +7365,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemPicture(categoryId: string, itemId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getItemPicture(categoryId: string, itemId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getItemPicture(categoryId, itemId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.getItemPicture']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete an item @@ -7238,9 +7378,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteItem(categoryId: string, itemId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteItem(categoryId: string, itemId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteItem(categoryId, itemId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.markDeleteItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update an item @@ -7250,9 +7392,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchItem(categoryId, itemId, updateItem, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.patchItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new item @@ -7261,9 +7405,11 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postItem(categoryId: string, newItem: NewItem, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postItem(categoryId: string, newItem: NewItem, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postItem(categoryId, newItem, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['ItemsApi.postItem']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -7285,7 +7431,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: any): AxiosPromise { + getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAllIncoherentItems(page, limit, state, categoryId, name, options).then((request) => request(axios, basePath)); }, /** @@ -7299,7 +7445,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: any): AxiosPromise { + getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAllItems(page, limit, state, categoryId, name, fournisseur, options).then((request) => request(axios, basePath)); }, /** @@ -7311,7 +7457,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: any): AxiosPromise { + getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCategoryItems(categoryId, page, limit, state, options).then((request) => request(axios, basePath)); }, /** @@ -7321,7 +7467,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemPicture(categoryId: string, itemId: string, options?: any): AxiosPromise { + getItemPicture(categoryId: string, itemId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getItemPicture(categoryId, itemId, options).then((request) => request(axios, basePath)); }, /** @@ -7331,7 +7477,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteItem(categoryId: string, itemId: string, options?: any): AxiosPromise { + markDeleteItem(categoryId: string, itemId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteItem(categoryId, itemId, options).then((request) => request(axios, basePath)); }, /** @@ -7342,7 +7488,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: any): AxiosPromise { + patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchItem(categoryId, itemId, updateItem, options).then((request) => request(axios, basePath)); }, /** @@ -7352,7 +7498,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postItem(categoryId: string, newItem: NewItem, options?: any): AxiosPromise { + postItem(categoryId: string, newItem: NewItem, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postItem(categoryId, newItem, options).then((request) => request(axios, basePath)); }, }; @@ -7376,7 +7522,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: AxiosRequestConfig) { + public getAllIncoherentItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).getAllIncoherentItems(page, limit, state, categoryId, name, options).then((request) => request(this.axios, this.basePath)); } @@ -7392,7 +7538,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: AxiosRequestConfig) { + public getAllItems(page?: number, limit?: number, state?: ItemState, categoryId?: string, name?: string, fournisseur?: Fournisseur, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).getAllItems(page, limit, state, categoryId, name, fournisseur, options).then((request) => request(this.axios, this.basePath)); } @@ -7406,7 +7552,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: AxiosRequestConfig) { + public getCategoryItems(categoryId: string, page?: number, limit?: number, state?: ItemState, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).getCategoryItems(categoryId, page, limit, state, options).then((request) => request(this.axios, this.basePath)); } @@ -7418,7 +7564,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public getItemPicture(categoryId: string, itemId: string, options?: AxiosRequestConfig) { + public getItemPicture(categoryId: string, itemId: string, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).getItemPicture(categoryId, itemId, options).then((request) => request(this.axios, this.basePath)); } @@ -7430,7 +7576,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public markDeleteItem(categoryId: string, itemId: string, options?: AxiosRequestConfig) { + public markDeleteItem(categoryId: string, itemId: string, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).markDeleteItem(categoryId, itemId, options).then((request) => request(this.axios, this.basePath)); } @@ -7443,7 +7589,7 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: AxiosRequestConfig) { + public patchItem(categoryId: string, itemId: string, updateItem: UpdateItem, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).patchItem(categoryId, itemId, updateItem, options).then((request) => request(this.axios, this.basePath)); } @@ -7455,12 +7601,13 @@ export class ItemsApi extends BaseAPI { * @throws {RequiredError} * @memberof ItemsApi */ - public postItem(categoryId: string, newItem: NewItem, options?: AxiosRequestConfig) { + public postItem(categoryId: string, newItem: NewItem, options?: RawAxiosRequestConfig) { return ItemsApiFp(this.configuration).postItem(categoryId, newItem, options).then((request) => request(this.axios, this.basePath)); } } + /** * RefillsApi - axios parameter creator * @export @@ -7477,7 +7624,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountRefills: async (accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options: AxiosRequestConfig = {}): Promise => { + getAccountRefills: async (accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountRefills', 'accountId', accountId) const localVarPath = `/accounts/{account_id}/refills` @@ -7505,13 +7652,13 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati if (startDate !== undefined) { localVarQueryParameter['start_date'] = (startDate as any instanceof Date) ? - (startDate as any).toISOString().substr(0,10) : + (startDate as any).toISOString().substring(0,10) : startDate; } if (endDate !== undefined) { localVarQueryParameter['end_date'] = (endDate as any instanceof Date) ? - (endDate as any).toISOString().substr(0,10) : + (endDate as any).toISOString().substring(0,10) : endDate; } @@ -7535,7 +7682,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRefills: async (page?: number, limit?: number, startDate?: string, endDate?: string, options: AxiosRequestConfig = {}): Promise => { + getRefills: async (page?: number, limit?: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/refills`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7586,7 +7733,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSelfRefills: async (page?: number, limit?: number, startDate?: string, endDate?: string, options: AxiosRequestConfig = {}): Promise => { + getSelfRefills: async (page?: number, limit?: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/refills`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7611,13 +7758,13 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati if (startDate !== undefined) { localVarQueryParameter['start_date'] = (startDate as any instanceof Date) ? - (startDate as any).toISOString().substr(0,10) : + (startDate as any).toISOString().substring(0,10) : startDate; } if (endDate !== undefined) { localVarQueryParameter['end_date'] = (endDate as any instanceof Date) ? - (endDate as any).toISOString().substr(0,10) : + (endDate as any).toISOString().substring(0,10) : endDate; } @@ -7639,7 +7786,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteRefill: async (accountId: string, refillId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteRefill: async (accountId: string, refillId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('markDeleteRefill', 'accountId', accountId) // verify required parameter 'refillId' is not null or undefined @@ -7680,7 +7827,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchRefillId: async (accountId: string, refillId: string, state?: RefillState, type?: RefillType, options: AxiosRequestConfig = {}): Promise => { + patchRefillId: async (accountId: string, refillId: string, state?: RefillState, type?: RefillType, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('patchRefillId', 'accountId', accountId) // verify required parameter 'refillId' is not null or undefined @@ -7728,7 +7875,7 @@ export const RefillsApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postRefill: async (accountId: string, amount: number, type: RefillType, options: AxiosRequestConfig = {}): Promise => { + postRefill: async (accountId: string, amount: number, type: RefillType, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('postRefill', 'accountId', accountId) // verify required parameter 'amount' is not null or undefined @@ -7789,9 +7936,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountRefills(accountId, page, limit, startDate, endDate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.getAccountRefills']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all refills @@ -7802,9 +7951,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRefills(page, limit, startDate, endDate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.getRefills']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all refills @@ -7815,9 +7966,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSelfRefills(page, limit, startDate, endDate, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.getSelfRefills']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Cancels a refill @@ -7826,9 +7979,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteRefill(accountId: string, refillId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteRefill(accountId: string, refillId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteRefill(accountId, refillId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.markDeleteRefill']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update refill\'s state @@ -7839,9 +7994,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchRefillId(accountId, refillId, state, type, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.patchRefillId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new refill @@ -7851,9 +8008,11 @@ export const RefillsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postRefill(accountId: string, amount: number, type: RefillType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postRefill(accountId: string, amount: number, type: RefillType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postRefill(accountId, amount, type, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RefillsApi.postRefill']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -7875,7 +8034,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: any): AxiosPromise { + getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountRefills(accountId, page, limit, startDate, endDate, options).then((request) => request(axios, basePath)); }, /** @@ -7887,7 +8046,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: any): AxiosPromise { + getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRefills(page, limit, startDate, endDate, options).then((request) => request(axios, basePath)); }, /** @@ -7899,7 +8058,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: any): AxiosPromise { + getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSelfRefills(page, limit, startDate, endDate, options).then((request) => request(axios, basePath)); }, /** @@ -7909,7 +8068,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteRefill(accountId: string, refillId: string, options?: any): AxiosPromise { + markDeleteRefill(accountId: string, refillId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteRefill(accountId, refillId, options).then((request) => request(axios, basePath)); }, /** @@ -7921,7 +8080,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: any): AxiosPromise { + patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchRefillId(accountId, refillId, state, type, options).then((request) => request(axios, basePath)); }, /** @@ -7932,7 +8091,7 @@ export const RefillsApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postRefill(accountId: string, amount: number, type: RefillType, options?: any): AxiosPromise { + postRefill(accountId: string, amount: number, type: RefillType, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postRefill(accountId, amount, type, options).then((request) => request(axios, basePath)); }, }; @@ -7956,7 +8115,7 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig) { + public getAccountRefills(accountId: string, page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).getAccountRefills(accountId, page, limit, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); } @@ -7970,7 +8129,7 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig) { + public getRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).getRefills(page, limit, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); } @@ -7984,7 +8143,7 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: AxiosRequestConfig) { + public getSelfRefills(page?: number, limit?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).getSelfRefills(page, limit, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); } @@ -7996,7 +8155,7 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public markDeleteRefill(accountId: string, refillId: string, options?: AxiosRequestConfig) { + public markDeleteRefill(accountId: string, refillId: string, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).markDeleteRefill(accountId, refillId, options).then((request) => request(this.axios, this.basePath)); } @@ -8010,7 +8169,7 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: AxiosRequestConfig) { + public patchRefillId(accountId: string, refillId: string, state?: RefillState, type?: RefillType, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).patchRefillId(accountId, refillId, state, type, options).then((request) => request(this.axios, this.basePath)); } @@ -8023,12 +8182,13 @@ export class RefillsApi extends BaseAPI { * @throws {RequiredError} * @memberof RefillsApi */ - public postRefill(accountId: string, amount: number, type: RefillType, options?: AxiosRequestConfig) { + public postRefill(accountId: string, amount: number, type: RefillType, options?: RawAxiosRequestConfig) { return RefillsApiFp(this.configuration).postRefill(accountId, amount, type, options).then((request) => request(this.axios, this.basePath)); } } + /** * RestocksApi - axios parameter creator * @export @@ -8041,7 +8201,7 @@ export const RestocksApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createRestock: async (newRestock: NewRestock, options: AxiosRequestConfig = {}): Promise => { + createRestock: async (newRestock: NewRestock, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'newRestock' is not null or undefined assertParamExists('createRestock', 'newRestock', newRestock) const localVarPath = `/restocks`; @@ -8076,7 +8236,7 @@ export const RestocksApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteRestock: async (restockId: string, options: AxiosRequestConfig = {}): Promise => { + deleteRestock: async (restockId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'restockId' is not null or undefined assertParamExists('deleteRestock', 'restockId', restockId) const localVarPath = `/restocks/{restock_id}` @@ -8112,7 +8272,7 @@ export const RestocksApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRestocks: async (page?: number, limit?: number, search?: string, sort?: string, options: AxiosRequestConfig = {}): Promise => { + getRestocks: async (page?: number, limit?: number, search?: string, sort?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/restocks`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8170,9 +8330,11 @@ export const RestocksApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createRestock(newRestock: NewRestock, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createRestock(newRestock: NewRestock, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRestock(newRestock, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RestocksApi.createRestock']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a restock @@ -8180,9 +8342,11 @@ export const RestocksApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteRestock(restockId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteRestock(restockId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRestock(restockId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RestocksApi.deleteRestock']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get restocks @@ -8193,9 +8357,11 @@ export const RestocksApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRestocks(page?: number, limit?: number, search?: string, sort?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getRestocks(page?: number, limit?: number, search?: string, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRestocks(page, limit, search, sort, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['RestocksApi.getRestocks']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -8213,7 +8379,7 @@ export const RestocksApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createRestock(newRestock: NewRestock, options?: any): AxiosPromise { + createRestock(newRestock: NewRestock, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRestock(newRestock, options).then((request) => request(axios, basePath)); }, /** @@ -8222,7 +8388,7 @@ export const RestocksApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteRestock(restockId: string, options?: any): AxiosPromise { + deleteRestock(restockId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteRestock(restockId, options).then((request) => request(axios, basePath)); }, /** @@ -8234,7 +8400,7 @@ export const RestocksApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRestocks(page?: number, limit?: number, search?: string, sort?: string, options?: any): AxiosPromise { + getRestocks(page?: number, limit?: number, search?: string, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRestocks(page, limit, search, sort, options).then((request) => request(axios, basePath)); }, }; @@ -8254,7 +8420,7 @@ export class RestocksApi extends BaseAPI { * @throws {RequiredError} * @memberof RestocksApi */ - public createRestock(newRestock: NewRestock, options?: AxiosRequestConfig) { + public createRestock(newRestock: NewRestock, options?: RawAxiosRequestConfig) { return RestocksApiFp(this.configuration).createRestock(newRestock, options).then((request) => request(this.axios, this.basePath)); } @@ -8265,7 +8431,7 @@ export class RestocksApi extends BaseAPI { * @throws {RequiredError} * @memberof RestocksApi */ - public deleteRestock(restockId: string, options?: AxiosRequestConfig) { + public deleteRestock(restockId: string, options?: RawAxiosRequestConfig) { return RestocksApiFp(this.configuration).deleteRestock(restockId, options).then((request) => request(this.axios, this.basePath)); } @@ -8279,12 +8445,13 @@ export class RestocksApi extends BaseAPI { * @throws {RequiredError} * @memberof RestocksApi */ - public getRestocks(page?: number, limit?: number, search?: string, sort?: string, options?: AxiosRequestConfig) { + public getRestocks(page?: number, limit?: number, search?: string, sort?: string, options?: RawAxiosRequestConfig) { return RestocksApiFp(this.configuration).getRestocks(page, limit, search, sort, options).then((request) => request(this.axios, this.basePath)); } } + /** * TransactionsApi - axios parameter creator * @export @@ -8301,7 +8468,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountTransactions: async (accountId: string, page?: number, limit?: number, state?: TransactionState, options: AxiosRequestConfig = {}): Promise => { + getAccountTransactions: async (accountId: string, page?: number, limit?: number, state?: TransactionState, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountTransactions', 'accountId', accountId) const localVarPath = `/accounts/{account_id}/transactions` @@ -8351,7 +8518,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCurrentAccountTransactions: async (page?: number, limit?: number, state?: TransactionState, options: AxiosRequestConfig = {}): Promise => { + getCurrentAccountTransactions: async (page?: number, limit?: number, state?: TransactionState, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/transactions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8397,7 +8564,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactionId: async (accountId: string, transactionId: string, options: AxiosRequestConfig = {}): Promise => { + getTransactionId: async (accountId: string, transactionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getTransactionId', 'accountId', accountId) // verify required parameter 'transactionId' is not null or undefined @@ -8440,7 +8607,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactions: async (page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options: AxiosRequestConfig = {}): Promise => { + getTransactions: async (page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/transactions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8493,7 +8660,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactionsItems: async (name?: string, options: AxiosRequestConfig = {}): Promise => { + getTransactionsItems: async (name?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/transactions/items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8531,7 +8698,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteTransactionId: async (accountId: string, transactionId: string, options: AxiosRequestConfig = {}): Promise => { + markDeleteTransactionId: async (accountId: string, transactionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('markDeleteTransactionId', 'accountId', accountId) // verify required parameter 'transactionId' is not null or undefined @@ -8571,7 +8738,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchTransactionId: async (accountId: string, transactionId: string, state: TransactionState, options: AxiosRequestConfig = {}): Promise => { + patchTransactionId: async (accountId: string, transactionId: string, state: TransactionState, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('patchTransactionId', 'accountId', accountId) // verify required parameter 'transactionId' is not null or undefined @@ -8620,7 +8787,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchTransactionItemId: async (accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options: AxiosRequestConfig = {}): Promise => { + patchTransactionItemId: async (accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('patchTransactionItemId', 'accountId', accountId) // verify required parameter 'transactionId' is not null or undefined @@ -8674,7 +8841,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postTransactions: async (newTransaction?: NewTransaction, options: AxiosRequestConfig = {}): Promise => { + postTransactions: async (newTransaction?: NewTransaction, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/account/transactions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8723,9 +8890,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountTransactions(accountId, page, limit, state, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getAccountTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all transactions @@ -8736,9 +8905,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentAccountTransactions(page, limit, state, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getCurrentAccountTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get transaction @@ -8748,9 +8919,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getTransactionId(accountId: string, transactionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionId(accountId, transactionId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getTransactionId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all active transactions (orders) @@ -8763,9 +8936,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactions(page, limit, state, hideRemote, name, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all items in active transactions (ordered items) @@ -8774,9 +8949,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getTransactionsItems(name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getTransactionsItems(name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionsItems(name, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.getTransactionsItems']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete transaction @@ -8786,9 +8963,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async markDeleteTransactionId(accountId: string, transactionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async markDeleteTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.markDeleteTransactionId(accountId, transactionId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.markDeleteTransactionId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update transaction\'s state @@ -8798,9 +8977,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchTransactionId(accountId, transactionId, state, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.patchTransactionId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update transaction\'s item state @@ -8813,9 +8994,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchTransactionItemId(accountId, transactionId, itemId, state, amount, alreadyDone, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.patchTransactionItemId']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a new transaction @@ -8824,9 +9007,11 @@ export const TransactionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postTransactions(newTransaction?: NewTransaction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postTransactions(newTransaction?: NewTransaction, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postTransactions(newTransaction, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['TransactionsApi.postTransactions']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -8848,7 +9033,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: any): AxiosPromise { + getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountTransactions(accountId, page, limit, state, options).then((request) => request(axios, basePath)); }, /** @@ -8860,7 +9045,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: any): AxiosPromise { + getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCurrentAccountTransactions(page, limit, state, options).then((request) => request(axios, basePath)); }, /** @@ -8871,7 +9056,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactionId(accountId: string, transactionId: string, options?: any): AxiosPromise { + getTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTransactionId(accountId, transactionId, options).then((request) => request(axios, basePath)); }, /** @@ -8885,7 +9070,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: any): AxiosPromise { + getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTransactions(page, limit, state, hideRemote, name, options).then((request) => request(axios, basePath)); }, /** @@ -8895,7 +9080,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTransactionsItems(name?: string, options?: any): AxiosPromise> { + getTransactionsItems(name?: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getTransactionsItems(name, options).then((request) => request(axios, basePath)); }, /** @@ -8906,7 +9091,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - markDeleteTransactionId(accountId: string, transactionId: string, options?: any): AxiosPromise { + markDeleteTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.markDeleteTransactionId(accountId, transactionId, options).then((request) => request(axios, basePath)); }, /** @@ -8917,7 +9102,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: any): AxiosPromise { + patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchTransactionId(accountId, transactionId, state, options).then((request) => request(axios, basePath)); }, /** @@ -8931,7 +9116,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: any): AxiosPromise { + patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchTransactionItemId(accountId, transactionId, itemId, state, amount, alreadyDone, options).then((request) => request(axios, basePath)); }, /** @@ -8941,7 +9126,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postTransactions(newTransaction?: NewTransaction, options?: any): AxiosPromise { + postTransactions(newTransaction?: NewTransaction, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postTransactions(newTransaction, options).then((request) => request(axios, basePath)); }, }; @@ -8965,7 +9150,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: AxiosRequestConfig) { + public getAccountTransactions(accountId: string, page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).getAccountTransactions(accountId, page, limit, state, options).then((request) => request(this.axios, this.basePath)); } @@ -8979,7 +9164,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: AxiosRequestConfig) { + public getCurrentAccountTransactions(page?: number, limit?: number, state?: TransactionState, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).getCurrentAccountTransactions(page, limit, state, options).then((request) => request(this.axios, this.basePath)); } @@ -8992,7 +9177,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public getTransactionId(accountId: string, transactionId: string, options?: AxiosRequestConfig) { + public getTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).getTransactionId(accountId, transactionId, options).then((request) => request(this.axios, this.basePath)); } @@ -9008,7 +9193,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: AxiosRequestConfig) { + public getTransactions(page?: number, limit?: number, state?: TransactionState, hideRemote?: boolean, name?: string, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).getTransactions(page, limit, state, hideRemote, name, options).then((request) => request(this.axios, this.basePath)); } @@ -9020,7 +9205,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public getTransactionsItems(name?: string, options?: AxiosRequestConfig) { + public getTransactionsItems(name?: string, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).getTransactionsItems(name, options).then((request) => request(this.axios, this.basePath)); } @@ -9033,7 +9218,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public markDeleteTransactionId(accountId: string, transactionId: string, options?: AxiosRequestConfig) { + public markDeleteTransactionId(accountId: string, transactionId: string, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).markDeleteTransactionId(accountId, transactionId, options).then((request) => request(this.axios, this.basePath)); } @@ -9046,7 +9231,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: AxiosRequestConfig) { + public patchTransactionId(accountId: string, transactionId: string, state: TransactionState, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).patchTransactionId(accountId, transactionId, state, options).then((request) => request(this.axios, this.basePath)); } @@ -9062,7 +9247,7 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: AxiosRequestConfig) { + public patchTransactionItemId(accountId: string, transactionId: string, itemId: string, state?: TransactionItemState, amount?: number, alreadyDone?: number, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).patchTransactionItemId(accountId, transactionId, itemId, state, amount, alreadyDone, options).then((request) => request(this.axios, this.basePath)); } @@ -9074,9 +9259,10 @@ export class TransactionsApi extends BaseAPI { * @throws {RequiredError} * @memberof TransactionsApi */ - public postTransactions(newTransaction?: NewTransaction, options?: AxiosRequestConfig) { + public postTransactions(newTransaction?: NewTransaction, options?: RawAxiosRequestConfig) { return TransactionsApiFp(this.configuration).postTransactions(newTransaction, options).then((request) => request(this.axios, this.basePath)); } } + diff --git a/frontend/src/lib/api/base.ts b/frontend/src/lib/api/base.ts index e169bdb..3ce1cb3 100644 --- a/frontend/src/lib/api/base.ts +++ b/frontend/src/lib/api/base.ts @@ -16,7 +16,7 @@ import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, ""); @@ -39,7 +39,7 @@ export const COLLECTION_FORMATS = { */ export interface RequestArgs { url: string; - options: AxiosRequestConfig; + options: RawAxiosRequestConfig; } /** @@ -53,7 +53,7 @@ export class BaseAPI { constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { if (configuration) { this.configuration = configuration; - this.basePath = configuration.basePath || this.basePath; + this.basePath = configuration.basePath ?? basePath; } } }; @@ -70,3 +70,17 @@ export class RequiredError extends Error { this.name = "RequiredError" } } + +interface ServerMap { + [key: string]: { + url: string, + description: string, + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = { +} diff --git a/frontend/src/lib/api/common.ts b/frontend/src/lib/api/common.ts index 24153d1..9348231 100644 --- a/frontend/src/lib/api/common.ts +++ b/frontend/src/lib/api/common.ts @@ -144,7 +144,7 @@ export const toPathString = function (url: URL) { */ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; + const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; return axios.request(axiosRequestArgs); }; } diff --git a/frontend/src/lib/api/configuration.ts b/frontend/src/lib/api/configuration.ts index 7f87465..4093f9c 100644 --- a/frontend/src/lib/api/configuration.ts +++ b/frontend/src/lib/api/configuration.ts @@ -19,6 +19,7 @@ export interface ConfigurationParameters { password?: string; accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); basePath?: string; + serverIndex?: number; baseOptions?: any; formDataCtor?: new () => any; } @@ -58,6 +59,13 @@ export class Configuration { * @memberof Configuration */ basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; /** * base options for axios calls * @@ -80,6 +88,7 @@ export class Configuration { this.password = param.password; this.accessToken = param.accessToken; this.basePath = param.basePath; + this.serverIndex = param.serverIndex; this.baseOptions = param.baseOptions; this.formDataCtor = param.formDataCtor; }