@horpynka/api-sdk 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -1
- package/dist/index.d.ts +71 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -589,6 +589,7 @@ var Configuration = class {
|
|
|
589
589
|
};
|
|
590
590
|
exports.tanstackClient = void 0;
|
|
591
591
|
exports.ordersApi = void 0;
|
|
592
|
+
exports.authApi = void 0;
|
|
592
593
|
function initApiClient(config) {
|
|
593
594
|
const apiClient = globalAxios2__default.default.create({
|
|
594
595
|
baseURL: config.baseURL,
|
|
@@ -599,7 +600,7 @@ function initApiClient(config) {
|
|
|
599
600
|
});
|
|
600
601
|
exports.tanstackClient = new reactQuery.QueryClient();
|
|
601
602
|
exports.ordersApi = new OrdersApi(configuration, void 0, apiClient);
|
|
602
|
-
new AuthApi(configuration, void 0, apiClient);
|
|
603
|
+
exports.authApi = new AuthApi(configuration, void 0, apiClient);
|
|
603
604
|
return apiClient;
|
|
604
605
|
}
|
|
605
606
|
var getOrdersQuery = (params) => reactQuery.queryOptions({
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/api/generated/base.ts","../src/api/generated/common.ts","../src/api/generated/api.ts","../src/api/generated/configuration.ts","../src/client/clients.ts","../src/operations/ordersApi.ts"],"names":["axios","globalAxios","BASE_PATH","tanstackClient","ordersApi","QueryClient","queryOptions","useQueryClient","useMutation"],"mappings":";;;;;;;;;;AAqBO,IAAM,SAAA,GAAY,kBAAA,CAAmB,OAAA,CAAQ,MAAA,EAAQ,EAAE,CAAA;AA4BvD,IAAM,UAAN,MAAc;AAAA,EAGjB,WAAA,CAAY,aAAA,EAAyC,QAAA,GAAmB,SAAA,EAAqBA,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CAAY,kBAAkB,EAAE,QAAA,EAAU,CAAC,QAAQ,GAAG,CAAA;AACtD,MAAA,iBAAA,IAAqB,iBAAA,EAAkB;AAAA,IACzC;AAAA,GACD,CAAA;AAED,EAAA,OAAO;AAAA,IACL,mBAAA;AAAA,IACA;AAAA,GACF;AACF","file":"index.cjs","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"http://localhost\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"./configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction: (\n axiosArgs: RequestArgs,\n globalAxios: AxiosInstance,\n BASE_PATH: string,\n configuration?: Configuration,\n) => <T = unknown, R = AxiosResponse<T>>(\n axios?: AxiosInstance,\n basePath?: string,\n) => Promise<R> = function (\n axiosArgs,\n globalAxios,\n BASE_PATH,\n configuration,\n) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';\n\n/**\n * \n * @export\n * @interface Category\n */\nexport interface Category {\n /**\n * \n * @type {number}\n * @memberof Category\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Category\n */\n 'name': string;\n /**\n * \n * @type {Array<Dish>}\n * @memberof Category\n */\n 'dishes': Array<Dish>;\n /**\n * \n * @type {Array<Product>}\n * @memberof Category\n */\n 'products': Array<Product>;\n}\n/**\n * \n * @export\n * @interface CreateOrderDto\n */\nexport interface CreateOrderDto {\n /**\n * @default CREATED\n * @type {string}\n * @memberof CreateOrderDto\n */\n 'status'?: CreateOrderDtoStatusEnum;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'orderPrice': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'paidWithCash': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'paidWithCard': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'refundedWithCash': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'refundedWithCard': number;\n}\n\nexport const CreateOrderDtoStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type CreateOrderDtoStatusEnum = typeof CreateOrderDtoStatusEnum[keyof typeof CreateOrderDtoStatusEnum];\n\n/**\n * \n * @export\n * @interface Dish\n */\nexport interface Dish {\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'name': string;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'categoryId': number | null;\n /**\n * \n * @type {Category}\n * @memberof Dish\n */\n 'category': Category;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'ownPrice': number;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'sellingPrice': number;\n /**\n * \n * @type {boolean}\n * @memberof Dish\n */\n 'selling': boolean;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'updatedAt': string;\n /**\n * \n * @type {Array<DishIngredient>}\n * @memberof Dish\n */\n 'dishIngredients': Array<DishIngredient>;\n}\n/**\n * \n * @export\n * @interface DishIngredient\n */\nexport interface DishIngredient {\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'id': number;\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'dishId': number | null;\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'ingredientId': number | null;\n /**\n * \n * @type {Dish}\n * @memberof DishIngredient\n */\n 'dish': Dish;\n /**\n * \n * @type {Ingredient}\n * @memberof DishIngredient\n */\n 'ingredient': Ingredient;\n}\n/**\n * \n * @export\n * @interface Ingredient\n */\nexport interface Ingredient {\n /**\n * \n * @type {number}\n * @memberof Ingredient\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Ingredient\n */\n 'measurementUnit': string;\n /**\n * \n * @type {Array<DishIngredient>}\n * @memberof Ingredient\n */\n 'dishIngredients': Array<DishIngredient>;\n}\n/**\n * \n * @export\n * @interface Order\n */\nexport interface Order {\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'status': OrderStatusEnum;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'updatedAt': string;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'orderPrice': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'paidWithCash': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'paidWithCard': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'refundedWithCash': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'refundedWithCard': number;\n /**\n * \n * @type {Array<OrderItem>}\n * @memberof Order\n */\n 'orderItems': Array<OrderItem>;\n}\n\nexport const OrderStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];\n\n/**\n * \n * @export\n * @interface OrderItem\n */\nexport interface OrderItem {\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'id': number;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'sellingPrice': number;\n /**\n * \n * @type {string}\n * @memberof OrderItem\n */\n 'discount': string | null;\n /**\n * \n * @type {string}\n * @memberof OrderItem\n */\n 'discountType': string;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'dishId': number | null;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'productId': number | null;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'orderId': number | null;\n /**\n * \n * @type {Dish}\n * @memberof OrderItem\n */\n 'dish': Dish | null;\n /**\n * \n * @type {Product}\n * @memberof OrderItem\n */\n 'product': Product | null;\n /**\n * \n * @type {Order}\n * @memberof OrderItem\n */\n 'order': Order;\n}\n/**\n * \n * @export\n * @interface Product\n */\nexport interface Product {\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'name': string;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'ownPrice': number;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'sellingPrice': number;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'categoryId': number | null;\n /**\n * \n * @type {Category}\n * @memberof Product\n */\n 'category': Category;\n /**\n * \n * @type {boolean}\n * @memberof Product\n */\n 'selling': boolean;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'updatedAt': string;\n}\n/**\n * \n * @export\n * @interface SignInUserDTO\n */\nexport interface SignInUserDTO {\n /**\n * \n * @type {string}\n * @memberof SignInUserDTO\n */\n 'email': string;\n /**\n * \n * @type {string}\n * @memberof SignInUserDTO\n */\n 'password': string;\n}\n/**\n * \n * @export\n * @interface SignUpUserDTO\n */\nexport interface SignUpUserDTO {\n /**\n * \n * @type {string}\n * @memberof SignUpUserDTO\n */\n 'email': string;\n /**\n * \n * @type {string}\n * @memberof SignUpUserDTO\n */\n 'password': string;\n}\n/**\n * \n * @export\n * @interface UpdateOrderDto\n */\nexport interface UpdateOrderDto {\n /**\n * @default CREATED\n * @type {string}\n * @memberof UpdateOrderDto\n */\n 'status'?: UpdateOrderDtoStatusEnum;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'orderPrice'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'paidWithCash'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'paidWithCard'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'refundedWithCash'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'refundedWithCard'?: number;\n}\n\nexport const UpdateOrderDtoStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type UpdateOrderDtoStatusEnum = typeof UpdateOrderDtoStatusEnum[keyof typeof UpdateOrderDtoStatusEnum];\n\n\n/**\n * AppApi - axios parameter creator\n * @export\n */\nexport const AppApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getHello: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * AppApi - functional programming interface\n * @export\n */\nexport const AppApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = AppApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getHello(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AppApi.getHello']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * AppApi - factory interface\n * @export\n */\nexport const AppApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = AppApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getHello(options?: RawAxiosRequestConfig): AxiosPromise<string> {\n return localVarFp.getHello(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * AppApi - object-oriented interface\n * @export\n * @class AppApi\n * @extends {BaseAPI}\n */\nexport class AppApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AppApi\n */\n public getHello(options?: RawAxiosRequestConfig) {\n return AppApiFp(this.configuration).getHello(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * AuthApi - axios parameter creator\n * @export\n */\nexport const AuthApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n refresh: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/auth/refresh`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signIn: async (signInUserDTO: SignInUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'signInUserDTO' is not null or undefined\n assertParamExists('signIn', 'signInUserDTO', signInUserDTO)\n const localVarPath = `/auth/sign-in`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(signInUserDTO, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signUp: async (signUpUserDTO: SignUpUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'signUpUserDTO' is not null or undefined\n assertParamExists('signUp', 'signUpUserDTO', signUpUserDTO)\n const localVarPath = `/auth/sign-up`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(signUpUserDTO, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * AuthApi - functional programming interface\n * @export\n */\nexport const AuthApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async refresh(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.refresh(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.refresh']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.signIn(signInUserDTO, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.signIn']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.signUp(signUpUserDTO, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.signUp']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * AuthApi - factory interface\n * @export\n */\nexport const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = AuthApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n refresh(options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.refresh(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.signIn(signInUserDTO, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.signUp(signUpUserDTO, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * AuthApi - object-oriented interface\n * @export\n * @class AuthApi\n * @extends {BaseAPI}\n */\nexport class AuthApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public refresh(options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).refresh(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).signIn(signInUserDTO, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).signUp(signUpUserDTO, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * CategoriesApi - axios parameter creator\n * @export\n */\nexport const CategoriesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/categories`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * CategoriesApi - functional programming interface\n * @export\n */\nexport const CategoriesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = CategoriesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['CategoriesApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * CategoriesApi - factory interface\n * @export\n */\nexport const CategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = CategoriesApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * CategoriesApi - object-oriented interface\n * @export\n * @class CategoriesApi\n * @extends {BaseAPI}\n */\nexport class CategoriesApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CategoriesApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return CategoriesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * DishesApi - axios parameter creator\n * @export\n */\nexport const DishesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/dishes`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('findOne', 'id', id)\n const localVarPath = `/dishes/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * DishesApi - functional programming interface\n * @export\n */\nexport const DishesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = DishesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dish>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['DishesApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findOne(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dish>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['DishesApi.findOne']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * DishesApi - factory interface\n * @export\n */\nexport const DishesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = DishesApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<Array<Dish>> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Dish> {\n return localVarFp.findOne(id, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * DishesApi - object-oriented interface\n * @export\n * @class DishesApi\n * @extends {BaseAPI}\n */\nexport class DishesApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DishesApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return DishesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DishesApi\n */\n public findOne(id: number, options?: RawAxiosRequestConfig) {\n return DishesApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * OrdersApi - axios parameter creator\n * @export\n */\nexport const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n create: async (createOrderDto: CreateOrderDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'createOrderDto' is not null or undefined\n assertParamExists('create', 'createOrderDto', createOrderDto)\n const localVarPath = `/orders`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createOrderDto, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (page?: number, limit?: number, status?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/orders`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (limit !== undefined) {\n localVarQueryParameter['limit'] = limit;\n }\n\n if (status !== undefined) {\n localVarQueryParameter['status'] = status;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('findOne', 'id', id)\n const localVarPath = `/orders/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n removeActiveReceipt: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('removeActiveReceipt', 'id', id)\n const localVarPath = `/orders/remove-active-receipt/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n update: async (id: number, updateOrderDto: UpdateOrderDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('update', 'id', id)\n // verify required parameter 'updateOrderDto' is not null or undefined\n assertParamExists('update', 'updateOrderDto', updateOrderDto)\n const localVarPath = `/orders/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateOrderDto, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * OrdersApi - functional programming interface\n * @export\n */\nexport const OrdersApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.create(createOrderDto, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.create']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Order>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(page, limit, status, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findOne(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.findOne']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async removeActiveReceipt(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.removeActiveReceipt(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.removeActiveReceipt']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.update(id, updateOrderDto, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.update']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * OrdersApi - factory interface\n * @export\n */\nexport const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = OrdersApiFp(configuration)\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.create(createOrderDto, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Order>> {\n return localVarFp.findAll(page, limit, status, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.findOne(id, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n removeActiveReceipt(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.removeActiveReceipt(id, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.update(id, updateOrderDto, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * OrdersApi - object-oriented interface\n * @export\n * @class OrdersApi\n * @extends {BaseAPI}\n */\nexport class OrdersApi extends BaseAPI {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).create(createOrderDto, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).findAll(page, limit, status, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public findOne(id: number, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public removeActiveReceipt(id: number, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).removeActiveReceipt(id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).update(id, updateOrderDto, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * ProductsApi - axios parameter creator\n * @export\n */\nexport const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/products`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ProductsApi - functional programming interface\n * @export\n */\nexport const ProductsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductsApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ProductsApi - factory interface\n * @export\n */\nexport const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ProductsApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * ProductsApi - object-oriented interface\n * @export\n * @class ProductsApi\n * @extends {BaseAPI}\n */\nexport class ProductsApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof ProductsApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return ProductsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n * @memberof Configuration\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n username?: string;\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n * @memberof Configuration\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * override base path\n *\n * @type {string}\n * @memberof Configuration\n */\n basePath?: string;\n /**\n * override server index\n *\n * @type {number}\n * @memberof Configuration\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n *\n * @type {any}\n * @memberof Configuration\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n}\n","import axios, { AxiosInstance, CreateAxiosDefaults } from \"axios\";\nimport { AuthApi, Configuration, OrdersApi } from \"../api/generated\";\nimport { QueryClient } from \"@tanstack/react-query\";\n\nexport let tanstackClient: QueryClient;\nexport let ordersApi: OrdersApi;\nexport let authApi: AuthApi;\n\nexport function initApiClient(config: CreateAxiosDefaults): AxiosInstance {\n const apiClient = axios.create({\n baseURL: config.baseURL,\n timeout: config.timeout ?? 10_000,\n });\n\n const configuration = new Configuration({\n basePath: config.baseURL,\n });\n\n tanstackClient = new QueryClient();\n ordersApi = new OrdersApi(configuration, undefined, apiClient);\n authApi = new AuthApi(configuration, undefined, apiClient);\n\n return apiClient;\n}\n","import { queryOptions, useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\"\nimport { ordersApi } from \"../client\"\n\nconst getOrdersQuery = (params?: {\n page?: number\n limit?: number\n status?: string\n}) =>\n queryOptions({\n queryKey: [\"orders\", params],\n queryFn: () =>\n ordersApi\n .findAll(params?.page, params?.limit, params?.status)\n .then((res) => res.data),\n })\n\nexport const useOrdersApi = () => {\n const queryClient = useQueryClient()\n\n const mutateDeleteReceipt = useMutation({\n mutationFn: ({ params: { id } }: { params: { id: number }; onSettledCallback?: () => void }) =>\n ordersApi.removeActiveReceipt(id),\n onSettled: (_data, _error, { onSettledCallback }) => {\n queryClient.invalidateQueries({ queryKey: [\"orders\"] })\n onSettledCallback && onSettledCallback()\n },\n })\n\n return {\n mutateDeleteReceipt,\n getOrdersQuery\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/api/generated/base.ts","../src/api/generated/common.ts","../src/api/generated/api.ts","../src/api/generated/configuration.ts","../src/client/clients.ts","../src/operations/ordersApi.ts"],"names":["axios","globalAxios","BASE_PATH","tanstackClient","ordersApi","authApi","QueryClient","queryOptions","useQueryClient","useMutation"],"mappings":";;;;;;;;;;AAqBO,IAAM,SAAA,GAAY,kBAAA,CAAmB,OAAA,CAAQ,MAAA,EAAQ,EAAE,CAAA;AA4BvD,IAAM,UAAN,MAAc;AAAA,EAGjB,WAAA,CAAY,aAAA,EAAyC,QAAA,GAAmB,SAAA,EAAqBA,SAAuBC,6BAAA,EAAa;AAA5E,IAAA,IAAA,CAAA,QAAA,GAAA,QAAA;AAAwC,IAAA,IAAA,CAAA,KAAA,GAAAD,MAAAA;AACzF,IAAA,IAAI,aAAA,EAAe;AACf,MAAA,IAAA,CAAK,aAA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IACL,mBAAA;AAAA,IACA;AAAA,GACF;AACF","file":"index.cjs","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"http://localhost\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"./configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction: (\n axiosArgs: RequestArgs,\n globalAxios: AxiosInstance,\n BASE_PATH: string,\n configuration?: Configuration,\n) => <T = unknown, R = AxiosResponse<T>>(\n axios?: AxiosInstance,\n basePath?: string,\n) => Promise<R> = function (\n axiosArgs,\n globalAxios,\n BASE_PATH,\n configuration,\n) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';\n\n/**\n * \n * @export\n * @interface Category\n */\nexport interface Category {\n /**\n * \n * @type {number}\n * @memberof Category\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Category\n */\n 'name': string;\n /**\n * \n * @type {Array<Dish>}\n * @memberof Category\n */\n 'dishes': Array<Dish>;\n /**\n * \n * @type {Array<Product>}\n * @memberof Category\n */\n 'products': Array<Product>;\n}\n/**\n * \n * @export\n * @interface CreateOrderDto\n */\nexport interface CreateOrderDto {\n /**\n * @default CREATED\n * @type {string}\n * @memberof CreateOrderDto\n */\n 'status'?: CreateOrderDtoStatusEnum;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'orderPrice': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'paidWithCash': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'paidWithCard': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'refundedWithCash': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'refundedWithCard': number;\n}\n\nexport const CreateOrderDtoStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type CreateOrderDtoStatusEnum = typeof CreateOrderDtoStatusEnum[keyof typeof CreateOrderDtoStatusEnum];\n\n/**\n * \n * @export\n * @interface Dish\n */\nexport interface Dish {\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'name': string;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'categoryId': number | null;\n /**\n * \n * @type {Category}\n * @memberof Dish\n */\n 'category': Category;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'ownPrice': number;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'sellingPrice': number;\n /**\n * \n * @type {boolean}\n * @memberof Dish\n */\n 'selling': boolean;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'updatedAt': string;\n /**\n * \n * @type {Array<DishIngredient>}\n * @memberof Dish\n */\n 'dishIngredients': Array<DishIngredient>;\n}\n/**\n * \n * @export\n * @interface DishIngredient\n */\nexport interface DishIngredient {\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'id': number;\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'dishId': number | null;\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'ingredientId': number | null;\n /**\n * \n * @type {Dish}\n * @memberof DishIngredient\n */\n 'dish': Dish;\n /**\n * \n * @type {Ingredient}\n * @memberof DishIngredient\n */\n 'ingredient': Ingredient;\n}\n/**\n * \n * @export\n * @interface Ingredient\n */\nexport interface Ingredient {\n /**\n * \n * @type {number}\n * @memberof Ingredient\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Ingredient\n */\n 'measurementUnit': string;\n /**\n * \n * @type {Array<DishIngredient>}\n * @memberof Ingredient\n */\n 'dishIngredients': Array<DishIngredient>;\n}\n/**\n * \n * @export\n * @interface Order\n */\nexport interface Order {\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'status': OrderStatusEnum;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'updatedAt': string;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'orderPrice': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'paidWithCash': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'paidWithCard': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'refundedWithCash': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'refundedWithCard': number;\n /**\n * \n * @type {Array<OrderItem>}\n * @memberof Order\n */\n 'orderItems': Array<OrderItem>;\n}\n\nexport const OrderStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];\n\n/**\n * \n * @export\n * @interface OrderItem\n */\nexport interface OrderItem {\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'id': number;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'sellingPrice': number;\n /**\n * \n * @type {string}\n * @memberof OrderItem\n */\n 'discount': string | null;\n /**\n * \n * @type {string}\n * @memberof OrderItem\n */\n 'discountType': string;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'dishId': number | null;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'productId': number | null;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'orderId': number | null;\n /**\n * \n * @type {Dish}\n * @memberof OrderItem\n */\n 'dish': Dish | null;\n /**\n * \n * @type {Product}\n * @memberof OrderItem\n */\n 'product': Product | null;\n /**\n * \n * @type {Order}\n * @memberof OrderItem\n */\n 'order': Order;\n}\n/**\n * \n * @export\n * @interface Product\n */\nexport interface Product {\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'name': string;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'ownPrice': number;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'sellingPrice': number;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'categoryId': number | null;\n /**\n * \n * @type {Category}\n * @memberof Product\n */\n 'category': Category;\n /**\n * \n * @type {boolean}\n * @memberof Product\n */\n 'selling': boolean;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'updatedAt': string;\n}\n/**\n * \n * @export\n * @interface SignInUserDTO\n */\nexport interface SignInUserDTO {\n /**\n * \n * @type {string}\n * @memberof SignInUserDTO\n */\n 'email': string;\n /**\n * \n * @type {string}\n * @memberof SignInUserDTO\n */\n 'password': string;\n}\n/**\n * \n * @export\n * @interface SignUpUserDTO\n */\nexport interface SignUpUserDTO {\n /**\n * \n * @type {string}\n * @memberof SignUpUserDTO\n */\n 'email': string;\n /**\n * \n * @type {string}\n * @memberof SignUpUserDTO\n */\n 'password': string;\n}\n/**\n * \n * @export\n * @interface UpdateOrderDto\n */\nexport interface UpdateOrderDto {\n /**\n * @default CREATED\n * @type {string}\n * @memberof UpdateOrderDto\n */\n 'status'?: UpdateOrderDtoStatusEnum;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'orderPrice'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'paidWithCash'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'paidWithCard'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'refundedWithCash'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'refundedWithCard'?: number;\n}\n\nexport const UpdateOrderDtoStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type UpdateOrderDtoStatusEnum = typeof UpdateOrderDtoStatusEnum[keyof typeof UpdateOrderDtoStatusEnum];\n\n\n/**\n * AppApi - axios parameter creator\n * @export\n */\nexport const AppApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getHello: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * AppApi - functional programming interface\n * @export\n */\nexport const AppApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = AppApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getHello(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AppApi.getHello']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * AppApi - factory interface\n * @export\n */\nexport const AppApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = AppApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getHello(options?: RawAxiosRequestConfig): AxiosPromise<string> {\n return localVarFp.getHello(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * AppApi - object-oriented interface\n * @export\n * @class AppApi\n * @extends {BaseAPI}\n */\nexport class AppApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AppApi\n */\n public getHello(options?: RawAxiosRequestConfig) {\n return AppApiFp(this.configuration).getHello(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * AuthApi - axios parameter creator\n * @export\n */\nexport const AuthApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n refresh: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/auth/refresh`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signIn: async (signInUserDTO: SignInUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'signInUserDTO' is not null or undefined\n assertParamExists('signIn', 'signInUserDTO', signInUserDTO)\n const localVarPath = `/auth/sign-in`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(signInUserDTO, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signUp: async (signUpUserDTO: SignUpUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'signUpUserDTO' is not null or undefined\n assertParamExists('signUp', 'signUpUserDTO', signUpUserDTO)\n const localVarPath = `/auth/sign-up`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(signUpUserDTO, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * AuthApi - functional programming interface\n * @export\n */\nexport const AuthApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async refresh(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.refresh(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.refresh']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.signIn(signInUserDTO, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.signIn']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.signUp(signUpUserDTO, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.signUp']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * AuthApi - factory interface\n * @export\n */\nexport const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = AuthApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n refresh(options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.refresh(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.signIn(signInUserDTO, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.signUp(signUpUserDTO, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * AuthApi - object-oriented interface\n * @export\n * @class AuthApi\n * @extends {BaseAPI}\n */\nexport class AuthApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public refresh(options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).refresh(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).signIn(signInUserDTO, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).signUp(signUpUserDTO, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * CategoriesApi - axios parameter creator\n * @export\n */\nexport const CategoriesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/categories`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * CategoriesApi - functional programming interface\n * @export\n */\nexport const CategoriesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = CategoriesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['CategoriesApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * CategoriesApi - factory interface\n * @export\n */\nexport const CategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = CategoriesApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * CategoriesApi - object-oriented interface\n * @export\n * @class CategoriesApi\n * @extends {BaseAPI}\n */\nexport class CategoriesApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CategoriesApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return CategoriesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * DishesApi - axios parameter creator\n * @export\n */\nexport const DishesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/dishes`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('findOne', 'id', id)\n const localVarPath = `/dishes/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * DishesApi - functional programming interface\n * @export\n */\nexport const DishesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = DishesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dish>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['DishesApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findOne(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dish>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['DishesApi.findOne']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * DishesApi - factory interface\n * @export\n */\nexport const DishesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = DishesApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<Array<Dish>> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Dish> {\n return localVarFp.findOne(id, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * DishesApi - object-oriented interface\n * @export\n * @class DishesApi\n * @extends {BaseAPI}\n */\nexport class DishesApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DishesApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return DishesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DishesApi\n */\n public findOne(id: number, options?: RawAxiosRequestConfig) {\n return DishesApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * OrdersApi - axios parameter creator\n * @export\n */\nexport const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n create: async (createOrderDto: CreateOrderDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'createOrderDto' is not null or undefined\n assertParamExists('create', 'createOrderDto', createOrderDto)\n const localVarPath = `/orders`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createOrderDto, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (page?: number, limit?: number, status?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/orders`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (limit !== undefined) {\n localVarQueryParameter['limit'] = limit;\n }\n\n if (status !== undefined) {\n localVarQueryParameter['status'] = status;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('findOne', 'id', id)\n const localVarPath = `/orders/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n removeActiveReceipt: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('removeActiveReceipt', 'id', id)\n const localVarPath = `/orders/remove-active-receipt/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n update: async (id: number, updateOrderDto: UpdateOrderDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('update', 'id', id)\n // verify required parameter 'updateOrderDto' is not null or undefined\n assertParamExists('update', 'updateOrderDto', updateOrderDto)\n const localVarPath = `/orders/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateOrderDto, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * OrdersApi - functional programming interface\n * @export\n */\nexport const OrdersApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.create(createOrderDto, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.create']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Order>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(page, limit, status, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findOne(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.findOne']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async removeActiveReceipt(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.removeActiveReceipt(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.removeActiveReceipt']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.update(id, updateOrderDto, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.update']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * OrdersApi - factory interface\n * @export\n */\nexport const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = OrdersApiFp(configuration)\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.create(createOrderDto, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Order>> {\n return localVarFp.findAll(page, limit, status, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.findOne(id, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n removeActiveReceipt(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.removeActiveReceipt(id, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.update(id, updateOrderDto, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * OrdersApi - object-oriented interface\n * @export\n * @class OrdersApi\n * @extends {BaseAPI}\n */\nexport class OrdersApi extends BaseAPI {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).create(createOrderDto, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).findAll(page, limit, status, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public findOne(id: number, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public removeActiveReceipt(id: number, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).removeActiveReceipt(id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).update(id, updateOrderDto, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * ProductsApi - axios parameter creator\n * @export\n */\nexport const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/products`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ProductsApi - functional programming interface\n * @export\n */\nexport const ProductsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductsApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ProductsApi - factory interface\n * @export\n */\nexport const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ProductsApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * ProductsApi - object-oriented interface\n * @export\n * @class ProductsApi\n * @extends {BaseAPI}\n */\nexport class ProductsApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof ProductsApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return ProductsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n * @memberof Configuration\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n username?: string;\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n * @memberof Configuration\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * override base path\n *\n * @type {string}\n * @memberof Configuration\n */\n basePath?: string;\n /**\n * override server index\n *\n * @type {number}\n * @memberof Configuration\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n *\n * @type {any}\n * @memberof Configuration\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n}\n","import axios, { AxiosInstance, CreateAxiosDefaults } from \"axios\";\nimport { AuthApi, Configuration, OrdersApi } from \"../api/generated\";\nimport { QueryClient } from \"@tanstack/react-query\";\n\nexport let tanstackClient: QueryClient;\nexport let ordersApi: OrdersApi;\nexport let authApi: AuthApi;\n\nexport function initApiClient(config: CreateAxiosDefaults): AxiosInstance {\n const apiClient = axios.create({\n baseURL: config.baseURL,\n timeout: config.timeout ?? 10_000,\n });\n\n const configuration = new Configuration({\n basePath: config.baseURL,\n });\n\n tanstackClient = new QueryClient();\n ordersApi = new OrdersApi(configuration, undefined, apiClient);\n authApi = new AuthApi(configuration, undefined, apiClient);\n\n return apiClient;\n}\n","import { queryOptions, useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\"\nimport { ordersApi } from \"../client\"\n\nconst getOrdersQuery = (params?: {\n page?: number\n limit?: number\n status?: string\n}) =>\n queryOptions({\n queryKey: [\"orders\", params],\n queryFn: () =>\n ordersApi\n .findAll(params?.page, params?.limit, params?.status)\n .then((res) => res.data),\n })\n\nexport const useOrdersApi = () => {\n const queryClient = useQueryClient()\n\n const mutateDeleteReceipt = useMutation({\n mutationFn: ({ params: { id } }: { params: { id: number }; onSettledCallback?: () => void }) =>\n ordersApi.removeActiveReceipt(id),\n onSettled: (_data, _error, { onSettledCallback }) => {\n queryClient.invalidateQueries({ queryKey: [\"orders\"] })\n onSettledCallback && onSettledCallback()\n },\n })\n\n return {\n mutateDeleteReceipt,\n getOrdersQuery\n }\n}\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -536,6 +536,44 @@ interface Product {
|
|
|
536
536
|
*/
|
|
537
537
|
'updatedAt': string;
|
|
538
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @export
|
|
542
|
+
* @interface SignInUserDTO
|
|
543
|
+
*/
|
|
544
|
+
interface SignInUserDTO {
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @type {string}
|
|
548
|
+
* @memberof SignInUserDTO
|
|
549
|
+
*/
|
|
550
|
+
'email': string;
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @type {string}
|
|
554
|
+
* @memberof SignInUserDTO
|
|
555
|
+
*/
|
|
556
|
+
'password': string;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
*
|
|
560
|
+
* @export
|
|
561
|
+
* @interface SignUpUserDTO
|
|
562
|
+
*/
|
|
563
|
+
interface SignUpUserDTO {
|
|
564
|
+
/**
|
|
565
|
+
*
|
|
566
|
+
* @type {string}
|
|
567
|
+
* @memberof SignUpUserDTO
|
|
568
|
+
*/
|
|
569
|
+
'email': string;
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
* @type {string}
|
|
573
|
+
* @memberof SignUpUserDTO
|
|
574
|
+
*/
|
|
575
|
+
'password': string;
|
|
576
|
+
}
|
|
539
577
|
/**
|
|
540
578
|
*
|
|
541
579
|
* @export
|
|
@@ -588,6 +626,37 @@ declare const UpdateOrderDtoStatusEnum: {
|
|
|
588
626
|
readonly Completed: "COMPLETED";
|
|
589
627
|
};
|
|
590
628
|
type UpdateOrderDtoStatusEnum = typeof UpdateOrderDtoStatusEnum[keyof typeof UpdateOrderDtoStatusEnum];
|
|
629
|
+
/**
|
|
630
|
+
* AuthApi - object-oriented interface
|
|
631
|
+
* @export
|
|
632
|
+
* @class AuthApi
|
|
633
|
+
* @extends {BaseAPI}
|
|
634
|
+
*/
|
|
635
|
+
declare class AuthApi extends BaseAPI {
|
|
636
|
+
/**
|
|
637
|
+
*
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
* @memberof AuthApi
|
|
641
|
+
*/
|
|
642
|
+
refresh(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<void, any, {}, any>>;
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @param {SignInUserDTO} signInUserDTO
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
* @memberof AuthApi
|
|
649
|
+
*/
|
|
650
|
+
signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<void, any, {}, any>>;
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @param {SignUpUserDTO} signUpUserDTO
|
|
654
|
+
* @param {*} [options] Override http request option.
|
|
655
|
+
* @throws {RequiredError}
|
|
656
|
+
* @memberof AuthApi
|
|
657
|
+
*/
|
|
658
|
+
signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<void, any, {}, any>>;
|
|
659
|
+
}
|
|
591
660
|
/**
|
|
592
661
|
* OrdersApi - object-oriented interface
|
|
593
662
|
* @export
|
|
@@ -642,6 +711,7 @@ declare class OrdersApi extends BaseAPI {
|
|
|
642
711
|
|
|
643
712
|
declare let tanstackClient: QueryClient;
|
|
644
713
|
declare let ordersApi: OrdersApi;
|
|
714
|
+
declare let authApi: AuthApi;
|
|
645
715
|
declare function initApiClient(config: CreateAxiosDefaults): AxiosInstance;
|
|
646
716
|
|
|
647
717
|
declare const useOrdersApi: () => {
|
|
@@ -672,4 +742,4 @@ declare const useOrdersApi: () => {
|
|
|
672
742
|
} | undefined)[], Order[], Error>;
|
|
673
743
|
};
|
|
674
744
|
|
|
675
|
-
export { initApiClient, ordersApi, tanstackClient, useOrdersApi };
|
|
745
|
+
export { authApi, initApiClient, ordersApi, tanstackClient, useOrdersApi };
|
package/dist/index.d.ts
CHANGED
|
@@ -536,6 +536,44 @@ interface Product {
|
|
|
536
536
|
*/
|
|
537
537
|
'updatedAt': string;
|
|
538
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @export
|
|
542
|
+
* @interface SignInUserDTO
|
|
543
|
+
*/
|
|
544
|
+
interface SignInUserDTO {
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @type {string}
|
|
548
|
+
* @memberof SignInUserDTO
|
|
549
|
+
*/
|
|
550
|
+
'email': string;
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @type {string}
|
|
554
|
+
* @memberof SignInUserDTO
|
|
555
|
+
*/
|
|
556
|
+
'password': string;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
*
|
|
560
|
+
* @export
|
|
561
|
+
* @interface SignUpUserDTO
|
|
562
|
+
*/
|
|
563
|
+
interface SignUpUserDTO {
|
|
564
|
+
/**
|
|
565
|
+
*
|
|
566
|
+
* @type {string}
|
|
567
|
+
* @memberof SignUpUserDTO
|
|
568
|
+
*/
|
|
569
|
+
'email': string;
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
* @type {string}
|
|
573
|
+
* @memberof SignUpUserDTO
|
|
574
|
+
*/
|
|
575
|
+
'password': string;
|
|
576
|
+
}
|
|
539
577
|
/**
|
|
540
578
|
*
|
|
541
579
|
* @export
|
|
@@ -588,6 +626,37 @@ declare const UpdateOrderDtoStatusEnum: {
|
|
|
588
626
|
readonly Completed: "COMPLETED";
|
|
589
627
|
};
|
|
590
628
|
type UpdateOrderDtoStatusEnum = typeof UpdateOrderDtoStatusEnum[keyof typeof UpdateOrderDtoStatusEnum];
|
|
629
|
+
/**
|
|
630
|
+
* AuthApi - object-oriented interface
|
|
631
|
+
* @export
|
|
632
|
+
* @class AuthApi
|
|
633
|
+
* @extends {BaseAPI}
|
|
634
|
+
*/
|
|
635
|
+
declare class AuthApi extends BaseAPI {
|
|
636
|
+
/**
|
|
637
|
+
*
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
* @memberof AuthApi
|
|
641
|
+
*/
|
|
642
|
+
refresh(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<void, any, {}, any>>;
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @param {SignInUserDTO} signInUserDTO
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
* @memberof AuthApi
|
|
649
|
+
*/
|
|
650
|
+
signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<void, any, {}, any>>;
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @param {SignUpUserDTO} signUpUserDTO
|
|
654
|
+
* @param {*} [options] Override http request option.
|
|
655
|
+
* @throws {RequiredError}
|
|
656
|
+
* @memberof AuthApi
|
|
657
|
+
*/
|
|
658
|
+
signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<void, any, {}, any>>;
|
|
659
|
+
}
|
|
591
660
|
/**
|
|
592
661
|
* OrdersApi - object-oriented interface
|
|
593
662
|
* @export
|
|
@@ -642,6 +711,7 @@ declare class OrdersApi extends BaseAPI {
|
|
|
642
711
|
|
|
643
712
|
declare let tanstackClient: QueryClient;
|
|
644
713
|
declare let ordersApi: OrdersApi;
|
|
714
|
+
declare let authApi: AuthApi;
|
|
645
715
|
declare function initApiClient(config: CreateAxiosDefaults): AxiosInstance;
|
|
646
716
|
|
|
647
717
|
declare const useOrdersApi: () => {
|
|
@@ -672,4 +742,4 @@ declare const useOrdersApi: () => {
|
|
|
672
742
|
} | undefined)[], Order[], Error>;
|
|
673
743
|
};
|
|
674
744
|
|
|
675
|
-
export { initApiClient, ordersApi, tanstackClient, useOrdersApi };
|
|
745
|
+
export { authApi, initApiClient, ordersApi, tanstackClient, useOrdersApi };
|
package/dist/index.js
CHANGED
|
@@ -583,6 +583,7 @@ var Configuration = class {
|
|
|
583
583
|
};
|
|
584
584
|
var tanstackClient;
|
|
585
585
|
var ordersApi;
|
|
586
|
+
var authApi;
|
|
586
587
|
function initApiClient(config) {
|
|
587
588
|
const apiClient = globalAxios2.create({
|
|
588
589
|
baseURL: config.baseURL,
|
|
@@ -593,7 +594,7 @@ function initApiClient(config) {
|
|
|
593
594
|
});
|
|
594
595
|
tanstackClient = new QueryClient();
|
|
595
596
|
ordersApi = new OrdersApi(configuration, void 0, apiClient);
|
|
596
|
-
new AuthApi(configuration, void 0, apiClient);
|
|
597
|
+
authApi = new AuthApi(configuration, void 0, apiClient);
|
|
597
598
|
return apiClient;
|
|
598
599
|
}
|
|
599
600
|
var getOrdersQuery = (params) => queryOptions({
|
|
@@ -615,6 +616,6 @@ var useOrdersApi = () => {
|
|
|
615
616
|
};
|
|
616
617
|
};
|
|
617
618
|
|
|
618
|
-
export { initApiClient, ordersApi, tanstackClient, useOrdersApi };
|
|
619
|
+
export { authApi, initApiClient, ordersApi, tanstackClient, useOrdersApi };
|
|
619
620
|
//# sourceMappingURL=index.js.map
|
|
620
621
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/api/generated/base.ts","../src/api/generated/common.ts","../src/api/generated/api.ts","../src/api/generated/configuration.ts","../src/client/clients.ts","../src/operations/ordersApi.ts"],"names":["axios","globalAxios","BASE_PATH"],"mappings":";;;;AAqBO,IAAM,SAAA,GAAY,kBAAA,CAAmB,OAAA,CAAQ,MAAA,EAAQ,EAAE,CAAA;AA4BvD,IAAM,UAAN,MAAc;AAAA,EAGjB,WAAA,CAAY,aAAA,EAAyC,QAAA,GAAmB,SAAA,EAAqBA,SAAuBC,YAAA,EAAa;AAA5E,IAAA,IAAA,CAAA,QAAA,GAAA,QAAA;AAAwC,IAAA,IAAA,CAAA,KAAA,GAAAD,MAAAA;AACzF,IAAA,IAAI,aAAA,EAAe;AACf,MAAA,IAAA,CAAK,aAAA,GAAgB,aAAA;AACrB,MAAA,IAAA,CAAK,QAAA,GAAW,cAAc,QAAA,IAAY,QAAA;AAAA,IAC9C;AAAA,EACJ;AAAA,EALqD,QAAA;AAAA,EAAwC,KAAA;AAAA,EAFnF,aAAA;AAQd,CAAA;AAQO,IAAM,aAAA,GAAN,cAA4B,KAAA,CAAM;AAAA,EACrC,WAAA,CAAmB,OAAe,GAAA,EAAc;AAC5C,IAAA,KAAA,CAAM,GAAG,CAAA;AADM,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AAEf,IAAA,IAAA,CAAK,IAAA,GAAO,eAAA;AAAA,EAChB;AAAA,EAHmB,KAAA;AAIvB,CAAA;AAaO,IAAM,qBAAgC,EAC7C;;;AC7DO,IAAM,cAAA,GAAiB,qBAAA;AAOvB,IAAM,iBAAA,GAAoB,SAAU,YAAA,EAAsB,SAAA,EAAmB,UAAA,EAAqB;AACrG,EAAA,IAAI,UAAA,KAAe,IAAA,IAAQ,UAAA,KAAe,MAAA,EAAW;AACjD,IAA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,KAAA,EAAO,MAAA,EAAQ,MAAM,CAAA,CACnD,IAAA,CAAK,CAAC,GAAA,KAAQ,IAAI,IAAI;AAC7B,CAAC,CAAA;AAEI,IAAM,eAAe,MAAM;AAChC,EAAA,MAAM,cAAc,cAAA,EAAe;AAEnC,EAAA,MAAM,sBAAsB,WAAA,CAAY;AAAA,IACtC,UAAA,EAAY,CAAC,EAAE,MAAA,EAAQ,EAAE,IAAG,EAAE,KAC5B,SAAA,CAAU,mBAAA,CAAoB,EAAE,CAAA;AAAA,IAClC,WAAW,CAAC,KAAA,EAAO,MAAA,EAAQ,EAAE,mBAAkB,KAAM;AACnD,MAAA,WAAA,CAAY,kBAAkB,EAAE,QAAA,EAAU,CAAC,QAAQ,GAAG,CAAA;AACtD,MAAA,iBAAA,IAAqB,iBAAA,EAAkB;AAAA,IACzC;AAAA,GACD,CAAA;AAED,EAAA,OAAO;AAAA,IACL,mBAAA;AAAA,IACA;AAAA,GACF;AACF","file":"index.js","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"http://localhost\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"./configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction: (\n axiosArgs: RequestArgs,\n globalAxios: AxiosInstance,\n BASE_PATH: string,\n configuration?: Configuration,\n) => <T = unknown, R = AxiosResponse<T>>(\n axios?: AxiosInstance,\n basePath?: string,\n) => Promise<R> = function (\n axiosArgs,\n globalAxios,\n BASE_PATH,\n configuration,\n) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';\n\n/**\n * \n * @export\n * @interface Category\n */\nexport interface Category {\n /**\n * \n * @type {number}\n * @memberof Category\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Category\n */\n 'name': string;\n /**\n * \n * @type {Array<Dish>}\n * @memberof Category\n */\n 'dishes': Array<Dish>;\n /**\n * \n * @type {Array<Product>}\n * @memberof Category\n */\n 'products': Array<Product>;\n}\n/**\n * \n * @export\n * @interface CreateOrderDto\n */\nexport interface CreateOrderDto {\n /**\n * @default CREATED\n * @type {string}\n * @memberof CreateOrderDto\n */\n 'status'?: CreateOrderDtoStatusEnum;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'orderPrice': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'paidWithCash': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'paidWithCard': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'refundedWithCash': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'refundedWithCard': number;\n}\n\nexport const CreateOrderDtoStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type CreateOrderDtoStatusEnum = typeof CreateOrderDtoStatusEnum[keyof typeof CreateOrderDtoStatusEnum];\n\n/**\n * \n * @export\n * @interface Dish\n */\nexport interface Dish {\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'name': string;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'categoryId': number | null;\n /**\n * \n * @type {Category}\n * @memberof Dish\n */\n 'category': Category;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'ownPrice': number;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'sellingPrice': number;\n /**\n * \n * @type {boolean}\n * @memberof Dish\n */\n 'selling': boolean;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'updatedAt': string;\n /**\n * \n * @type {Array<DishIngredient>}\n * @memberof Dish\n */\n 'dishIngredients': Array<DishIngredient>;\n}\n/**\n * \n * @export\n * @interface DishIngredient\n */\nexport interface DishIngredient {\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'id': number;\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'dishId': number | null;\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'ingredientId': number | null;\n /**\n * \n * @type {Dish}\n * @memberof DishIngredient\n */\n 'dish': Dish;\n /**\n * \n * @type {Ingredient}\n * @memberof DishIngredient\n */\n 'ingredient': Ingredient;\n}\n/**\n * \n * @export\n * @interface Ingredient\n */\nexport interface Ingredient {\n /**\n * \n * @type {number}\n * @memberof Ingredient\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Ingredient\n */\n 'measurementUnit': string;\n /**\n * \n * @type {Array<DishIngredient>}\n * @memberof Ingredient\n */\n 'dishIngredients': Array<DishIngredient>;\n}\n/**\n * \n * @export\n * @interface Order\n */\nexport interface Order {\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'status': OrderStatusEnum;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'updatedAt': string;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'orderPrice': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'paidWithCash': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'paidWithCard': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'refundedWithCash': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'refundedWithCard': number;\n /**\n * \n * @type {Array<OrderItem>}\n * @memberof Order\n */\n 'orderItems': Array<OrderItem>;\n}\n\nexport const OrderStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];\n\n/**\n * \n * @export\n * @interface OrderItem\n */\nexport interface OrderItem {\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'id': number;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'sellingPrice': number;\n /**\n * \n * @type {string}\n * @memberof OrderItem\n */\n 'discount': string | null;\n /**\n * \n * @type {string}\n * @memberof OrderItem\n */\n 'discountType': string;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'dishId': number | null;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'productId': number | null;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'orderId': number | null;\n /**\n * \n * @type {Dish}\n * @memberof OrderItem\n */\n 'dish': Dish | null;\n /**\n * \n * @type {Product}\n * @memberof OrderItem\n */\n 'product': Product | null;\n /**\n * \n * @type {Order}\n * @memberof OrderItem\n */\n 'order': Order;\n}\n/**\n * \n * @export\n * @interface Product\n */\nexport interface Product {\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'name': string;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'ownPrice': number;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'sellingPrice': number;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'categoryId': number | null;\n /**\n * \n * @type {Category}\n * @memberof Product\n */\n 'category': Category;\n /**\n * \n * @type {boolean}\n * @memberof Product\n */\n 'selling': boolean;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'updatedAt': string;\n}\n/**\n * \n * @export\n * @interface SignInUserDTO\n */\nexport interface SignInUserDTO {\n /**\n * \n * @type {string}\n * @memberof SignInUserDTO\n */\n 'email': string;\n /**\n * \n * @type {string}\n * @memberof SignInUserDTO\n */\n 'password': string;\n}\n/**\n * \n * @export\n * @interface SignUpUserDTO\n */\nexport interface SignUpUserDTO {\n /**\n * \n * @type {string}\n * @memberof SignUpUserDTO\n */\n 'email': string;\n /**\n * \n * @type {string}\n * @memberof SignUpUserDTO\n */\n 'password': string;\n}\n/**\n * \n * @export\n * @interface UpdateOrderDto\n */\nexport interface UpdateOrderDto {\n /**\n * @default CREATED\n * @type {string}\n * @memberof UpdateOrderDto\n */\n 'status'?: UpdateOrderDtoStatusEnum;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'orderPrice'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'paidWithCash'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'paidWithCard'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'refundedWithCash'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'refundedWithCard'?: number;\n}\n\nexport const UpdateOrderDtoStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type UpdateOrderDtoStatusEnum = typeof UpdateOrderDtoStatusEnum[keyof typeof UpdateOrderDtoStatusEnum];\n\n\n/**\n * AppApi - axios parameter creator\n * @export\n */\nexport const AppApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getHello: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * AppApi - functional programming interface\n * @export\n */\nexport const AppApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = AppApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getHello(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AppApi.getHello']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * AppApi - factory interface\n * @export\n */\nexport const AppApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = AppApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getHello(options?: RawAxiosRequestConfig): AxiosPromise<string> {\n return localVarFp.getHello(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * AppApi - object-oriented interface\n * @export\n * @class AppApi\n * @extends {BaseAPI}\n */\nexport class AppApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AppApi\n */\n public getHello(options?: RawAxiosRequestConfig) {\n return AppApiFp(this.configuration).getHello(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * AuthApi - axios parameter creator\n * @export\n */\nexport const AuthApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n refresh: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/auth/refresh`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signIn: async (signInUserDTO: SignInUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'signInUserDTO' is not null or undefined\n assertParamExists('signIn', 'signInUserDTO', signInUserDTO)\n const localVarPath = `/auth/sign-in`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(signInUserDTO, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signUp: async (signUpUserDTO: SignUpUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'signUpUserDTO' is not null or undefined\n assertParamExists('signUp', 'signUpUserDTO', signUpUserDTO)\n const localVarPath = `/auth/sign-up`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(signUpUserDTO, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * AuthApi - functional programming interface\n * @export\n */\nexport const AuthApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async refresh(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.refresh(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.refresh']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.signIn(signInUserDTO, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.signIn']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.signUp(signUpUserDTO, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.signUp']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * AuthApi - factory interface\n * @export\n */\nexport const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = AuthApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n refresh(options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.refresh(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.signIn(signInUserDTO, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.signUp(signUpUserDTO, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * AuthApi - object-oriented interface\n * @export\n * @class AuthApi\n * @extends {BaseAPI}\n */\nexport class AuthApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public refresh(options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).refresh(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).signIn(signInUserDTO, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).signUp(signUpUserDTO, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * CategoriesApi - axios parameter creator\n * @export\n */\nexport const CategoriesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/categories`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * CategoriesApi - functional programming interface\n * @export\n */\nexport const CategoriesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = CategoriesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['CategoriesApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * CategoriesApi - factory interface\n * @export\n */\nexport const CategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = CategoriesApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * CategoriesApi - object-oriented interface\n * @export\n * @class CategoriesApi\n * @extends {BaseAPI}\n */\nexport class CategoriesApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CategoriesApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return CategoriesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * DishesApi - axios parameter creator\n * @export\n */\nexport const DishesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/dishes`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('findOne', 'id', id)\n const localVarPath = `/dishes/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * DishesApi - functional programming interface\n * @export\n */\nexport const DishesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = DishesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dish>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['DishesApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findOne(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dish>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['DishesApi.findOne']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * DishesApi - factory interface\n * @export\n */\nexport const DishesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = DishesApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<Array<Dish>> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Dish> {\n return localVarFp.findOne(id, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * DishesApi - object-oriented interface\n * @export\n * @class DishesApi\n * @extends {BaseAPI}\n */\nexport class DishesApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DishesApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return DishesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DishesApi\n */\n public findOne(id: number, options?: RawAxiosRequestConfig) {\n return DishesApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * OrdersApi - axios parameter creator\n * @export\n */\nexport const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n create: async (createOrderDto: CreateOrderDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'createOrderDto' is not null or undefined\n assertParamExists('create', 'createOrderDto', createOrderDto)\n const localVarPath = `/orders`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createOrderDto, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (page?: number, limit?: number, status?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/orders`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (limit !== undefined) {\n localVarQueryParameter['limit'] = limit;\n }\n\n if (status !== undefined) {\n localVarQueryParameter['status'] = status;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('findOne', 'id', id)\n const localVarPath = `/orders/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n removeActiveReceipt: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('removeActiveReceipt', 'id', id)\n const localVarPath = `/orders/remove-active-receipt/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n update: async (id: number, updateOrderDto: UpdateOrderDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('update', 'id', id)\n // verify required parameter 'updateOrderDto' is not null or undefined\n assertParamExists('update', 'updateOrderDto', updateOrderDto)\n const localVarPath = `/orders/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateOrderDto, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * OrdersApi - functional programming interface\n * @export\n */\nexport const OrdersApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.create(createOrderDto, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.create']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Order>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(page, limit, status, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findOne(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.findOne']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async removeActiveReceipt(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.removeActiveReceipt(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.removeActiveReceipt']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.update(id, updateOrderDto, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.update']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * OrdersApi - factory interface\n * @export\n */\nexport const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = OrdersApiFp(configuration)\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.create(createOrderDto, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Order>> {\n return localVarFp.findAll(page, limit, status, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.findOne(id, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n removeActiveReceipt(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.removeActiveReceipt(id, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.update(id, updateOrderDto, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * OrdersApi - object-oriented interface\n * @export\n * @class OrdersApi\n * @extends {BaseAPI}\n */\nexport class OrdersApi extends BaseAPI {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).create(createOrderDto, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).findAll(page, limit, status, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public findOne(id: number, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public removeActiveReceipt(id: number, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).removeActiveReceipt(id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).update(id, updateOrderDto, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * ProductsApi - axios parameter creator\n * @export\n */\nexport const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/products`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ProductsApi - functional programming interface\n * @export\n */\nexport const ProductsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductsApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ProductsApi - factory interface\n * @export\n */\nexport const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ProductsApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * ProductsApi - object-oriented interface\n * @export\n * @class ProductsApi\n * @extends {BaseAPI}\n */\nexport class ProductsApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof ProductsApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return ProductsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n * @memberof Configuration\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n username?: string;\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n * @memberof Configuration\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * override base path\n *\n * @type {string}\n * @memberof Configuration\n */\n basePath?: string;\n /**\n * override server index\n *\n * @type {number}\n * @memberof Configuration\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n *\n * @type {any}\n * @memberof Configuration\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n}\n","import axios, { AxiosInstance, CreateAxiosDefaults } from \"axios\";\nimport { AuthApi, Configuration, OrdersApi } from \"../api/generated\";\nimport { QueryClient } from \"@tanstack/react-query\";\n\nexport let tanstackClient: QueryClient;\nexport let ordersApi: OrdersApi;\nexport let authApi: AuthApi;\n\nexport function initApiClient(config: CreateAxiosDefaults): AxiosInstance {\n const apiClient = axios.create({\n baseURL: config.baseURL,\n timeout: config.timeout ?? 10_000,\n });\n\n const configuration = new Configuration({\n basePath: config.baseURL,\n });\n\n tanstackClient = new QueryClient();\n ordersApi = new OrdersApi(configuration, undefined, apiClient);\n authApi = new AuthApi(configuration, undefined, apiClient);\n\n return apiClient;\n}\n","import { queryOptions, useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\"\nimport { ordersApi } from \"../client\"\n\nconst getOrdersQuery = (params?: {\n page?: number\n limit?: number\n status?: string\n}) =>\n queryOptions({\n queryKey: [\"orders\", params],\n queryFn: () =>\n ordersApi\n .findAll(params?.page, params?.limit, params?.status)\n .then((res) => res.data),\n })\n\nexport const useOrdersApi = () => {\n const queryClient = useQueryClient()\n\n const mutateDeleteReceipt = useMutation({\n mutationFn: ({ params: { id } }: { params: { id: number }; onSettledCallback?: () => void }) =>\n ordersApi.removeActiveReceipt(id),\n onSettled: (_data, _error, { onSettledCallback }) => {\n queryClient.invalidateQueries({ queryKey: [\"orders\"] })\n onSettledCallback && onSettledCallback()\n },\n })\n\n return {\n mutateDeleteReceipt,\n getOrdersQuery\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/api/generated/base.ts","../src/api/generated/common.ts","../src/api/generated/api.ts","../src/api/generated/configuration.ts","../src/client/clients.ts","../src/operations/ordersApi.ts"],"names":["axios","globalAxios","BASE_PATH"],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EAAY,CAAC,EAAE,MAAA,EAAQ,EAAE,IAAG,EAAE,KAC5B,SAAA,CAAU,mBAAA,CAAoB,EAAE,CAAA;AAAA,IAClC,WAAW,CAAC,KAAA,EAAO,MAAA,EAAQ,EAAE,mBAAkB,KAAM;AACnD,MAAA,WAAA,CAAY,kBAAkB,EAAE,QAAA,EAAU,CAAC,QAAQ,GAAG,CAAA;AACtD,MAAA,iBAAA,IAAqB,iBAAA,EAAkB;AAAA,IACzC;AAAA,GACD,CAAA;AAED,EAAA,OAAO;AAAA,IACL,mBAAA;AAAA,IACA;AAAA,GACF;AACF","file":"index.js","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"http://localhost\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"./configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction: (\n axiosArgs: RequestArgs,\n globalAxios: AxiosInstance,\n BASE_PATH: string,\n configuration?: Configuration,\n) => <T = unknown, R = AxiosResponse<T>>(\n axios?: AxiosInstance,\n basePath?: string,\n) => Promise<R> = function (\n axiosArgs,\n globalAxios,\n BASE_PATH,\n configuration,\n) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';\n\n/**\n * \n * @export\n * @interface Category\n */\nexport interface Category {\n /**\n * \n * @type {number}\n * @memberof Category\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Category\n */\n 'name': string;\n /**\n * \n * @type {Array<Dish>}\n * @memberof Category\n */\n 'dishes': Array<Dish>;\n /**\n * \n * @type {Array<Product>}\n * @memberof Category\n */\n 'products': Array<Product>;\n}\n/**\n * \n * @export\n * @interface CreateOrderDto\n */\nexport interface CreateOrderDto {\n /**\n * @default CREATED\n * @type {string}\n * @memberof CreateOrderDto\n */\n 'status'?: CreateOrderDtoStatusEnum;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'orderPrice': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'paidWithCash': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'paidWithCard': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'refundedWithCash': number;\n /**\n * \n * @type {number}\n * @memberof CreateOrderDto\n */\n 'refundedWithCard': number;\n}\n\nexport const CreateOrderDtoStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type CreateOrderDtoStatusEnum = typeof CreateOrderDtoStatusEnum[keyof typeof CreateOrderDtoStatusEnum];\n\n/**\n * \n * @export\n * @interface Dish\n */\nexport interface Dish {\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'name': string;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'categoryId': number | null;\n /**\n * \n * @type {Category}\n * @memberof Dish\n */\n 'category': Category;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'ownPrice': number;\n /**\n * \n * @type {number}\n * @memberof Dish\n */\n 'sellingPrice': number;\n /**\n * \n * @type {boolean}\n * @memberof Dish\n */\n 'selling': boolean;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Dish\n */\n 'updatedAt': string;\n /**\n * \n * @type {Array<DishIngredient>}\n * @memberof Dish\n */\n 'dishIngredients': Array<DishIngredient>;\n}\n/**\n * \n * @export\n * @interface DishIngredient\n */\nexport interface DishIngredient {\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'id': number;\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'dishId': number | null;\n /**\n * \n * @type {number}\n * @memberof DishIngredient\n */\n 'ingredientId': number | null;\n /**\n * \n * @type {Dish}\n * @memberof DishIngredient\n */\n 'dish': Dish;\n /**\n * \n * @type {Ingredient}\n * @memberof DishIngredient\n */\n 'ingredient': Ingredient;\n}\n/**\n * \n * @export\n * @interface Ingredient\n */\nexport interface Ingredient {\n /**\n * \n * @type {number}\n * @memberof Ingredient\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Ingredient\n */\n 'measurementUnit': string;\n /**\n * \n * @type {Array<DishIngredient>}\n * @memberof Ingredient\n */\n 'dishIngredients': Array<DishIngredient>;\n}\n/**\n * \n * @export\n * @interface Order\n */\nexport interface Order {\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'status': OrderStatusEnum;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n 'updatedAt': string;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'orderPrice': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'paidWithCash': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'paidWithCard': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'refundedWithCash': number;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n 'refundedWithCard': number;\n /**\n * \n * @type {Array<OrderItem>}\n * @memberof Order\n */\n 'orderItems': Array<OrderItem>;\n}\n\nexport const OrderStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];\n\n/**\n * \n * @export\n * @interface OrderItem\n */\nexport interface OrderItem {\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'id': number;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'sellingPrice': number;\n /**\n * \n * @type {string}\n * @memberof OrderItem\n */\n 'discount': string | null;\n /**\n * \n * @type {string}\n * @memberof OrderItem\n */\n 'discountType': string;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'dishId': number | null;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'productId': number | null;\n /**\n * \n * @type {number}\n * @memberof OrderItem\n */\n 'orderId': number | null;\n /**\n * \n * @type {Dish}\n * @memberof OrderItem\n */\n 'dish': Dish | null;\n /**\n * \n * @type {Product}\n * @memberof OrderItem\n */\n 'product': Product | null;\n /**\n * \n * @type {Order}\n * @memberof OrderItem\n */\n 'order': Order;\n}\n/**\n * \n * @export\n * @interface Product\n */\nexport interface Product {\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'id': number;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'name': string;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'ownPrice': number;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'sellingPrice': number;\n /**\n * \n * @type {number}\n * @memberof Product\n */\n 'categoryId': number | null;\n /**\n * \n * @type {Category}\n * @memberof Product\n */\n 'category': Category;\n /**\n * \n * @type {boolean}\n * @memberof Product\n */\n 'selling': boolean;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Product\n */\n 'updatedAt': string;\n}\n/**\n * \n * @export\n * @interface SignInUserDTO\n */\nexport interface SignInUserDTO {\n /**\n * \n * @type {string}\n * @memberof SignInUserDTO\n */\n 'email': string;\n /**\n * \n * @type {string}\n * @memberof SignInUserDTO\n */\n 'password': string;\n}\n/**\n * \n * @export\n * @interface SignUpUserDTO\n */\nexport interface SignUpUserDTO {\n /**\n * \n * @type {string}\n * @memberof SignUpUserDTO\n */\n 'email': string;\n /**\n * \n * @type {string}\n * @memberof SignUpUserDTO\n */\n 'password': string;\n}\n/**\n * \n * @export\n * @interface UpdateOrderDto\n */\nexport interface UpdateOrderDto {\n /**\n * @default CREATED\n * @type {string}\n * @memberof UpdateOrderDto\n */\n 'status'?: UpdateOrderDtoStatusEnum;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'orderPrice'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'paidWithCash'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'paidWithCard'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'refundedWithCash'?: number;\n /**\n * \n * @type {number}\n * @memberof UpdateOrderDto\n */\n 'refundedWithCard'?: number;\n}\n\nexport const UpdateOrderDtoStatusEnum = {\n Created: 'CREATED',\n Paid: 'PAID',\n Cancelled: 'CANCELLED',\n Deleted: 'DELETED',\n Refunded: 'REFUNDED',\n Completed: 'COMPLETED'\n} as const;\n\nexport type UpdateOrderDtoStatusEnum = typeof UpdateOrderDtoStatusEnum[keyof typeof UpdateOrderDtoStatusEnum];\n\n\n/**\n * AppApi - axios parameter creator\n * @export\n */\nexport const AppApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getHello: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * AppApi - functional programming interface\n * @export\n */\nexport const AppApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = AppApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getHello(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AppApi.getHello']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * AppApi - factory interface\n * @export\n */\nexport const AppApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = AppApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getHello(options?: RawAxiosRequestConfig): AxiosPromise<string> {\n return localVarFp.getHello(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * AppApi - object-oriented interface\n * @export\n * @class AppApi\n * @extends {BaseAPI}\n */\nexport class AppApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AppApi\n */\n public getHello(options?: RawAxiosRequestConfig) {\n return AppApiFp(this.configuration).getHello(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * AuthApi - axios parameter creator\n * @export\n */\nexport const AuthApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n refresh: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/auth/refresh`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signIn: async (signInUserDTO: SignInUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'signInUserDTO' is not null or undefined\n assertParamExists('signIn', 'signInUserDTO', signInUserDTO)\n const localVarPath = `/auth/sign-in`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(signInUserDTO, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signUp: async (signUpUserDTO: SignUpUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'signUpUserDTO' is not null or undefined\n assertParamExists('signUp', 'signUpUserDTO', signUpUserDTO)\n const localVarPath = `/auth/sign-up`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(signUpUserDTO, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * AuthApi - functional programming interface\n * @export\n */\nexport const AuthApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async refresh(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.refresh(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.refresh']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.signIn(signInUserDTO, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.signIn']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.signUp(signUpUserDTO, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['AuthApi.signUp']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * AuthApi - factory interface\n * @export\n */\nexport const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = AuthApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n refresh(options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.refresh(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.signIn(signInUserDTO, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.signUp(signUpUserDTO, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * AuthApi - object-oriented interface\n * @export\n * @class AuthApi\n * @extends {BaseAPI}\n */\nexport class AuthApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public refresh(options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).refresh(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {SignInUserDTO} signInUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public signIn(signInUserDTO: SignInUserDTO, options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).signIn(signInUserDTO, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {SignUpUserDTO} signUpUserDTO \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof AuthApi\n */\n public signUp(signUpUserDTO: SignUpUserDTO, options?: RawAxiosRequestConfig) {\n return AuthApiFp(this.configuration).signUp(signUpUserDTO, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * CategoriesApi - axios parameter creator\n * @export\n */\nexport const CategoriesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/categories`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * CategoriesApi - functional programming interface\n * @export\n */\nexport const CategoriesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = CategoriesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['CategoriesApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * CategoriesApi - factory interface\n * @export\n */\nexport const CategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = CategoriesApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * CategoriesApi - object-oriented interface\n * @export\n * @class CategoriesApi\n * @extends {BaseAPI}\n */\nexport class CategoriesApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof CategoriesApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return CategoriesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * DishesApi - axios parameter creator\n * @export\n */\nexport const DishesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/dishes`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('findOne', 'id', id)\n const localVarPath = `/dishes/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * DishesApi - functional programming interface\n * @export\n */\nexport const DishesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = DishesApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dish>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['DishesApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findOne(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Dish>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['DishesApi.findOne']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * DishesApi - factory interface\n * @export\n */\nexport const DishesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = DishesApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<Array<Dish>> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Dish> {\n return localVarFp.findOne(id, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * DishesApi - object-oriented interface\n * @export\n * @class DishesApi\n * @extends {BaseAPI}\n */\nexport class DishesApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DishesApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return DishesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DishesApi\n */\n public findOne(id: number, options?: RawAxiosRequestConfig) {\n return DishesApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * OrdersApi - axios parameter creator\n * @export\n */\nexport const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n create: async (createOrderDto: CreateOrderDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'createOrderDto' is not null or undefined\n assertParamExists('create', 'createOrderDto', createOrderDto)\n const localVarPath = `/orders`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createOrderDto, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (page?: number, limit?: number, status?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/orders`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (limit !== undefined) {\n localVarQueryParameter['limit'] = limit;\n }\n\n if (status !== undefined) {\n localVarQueryParameter['status'] = status;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('findOne', 'id', id)\n const localVarPath = `/orders/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n removeActiveReceipt: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('removeActiveReceipt', 'id', id)\n const localVarPath = `/orders/remove-active-receipt/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n update: async (id: number, updateOrderDto: UpdateOrderDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('update', 'id', id)\n // verify required parameter 'updateOrderDto' is not null or undefined\n assertParamExists('update', 'updateOrderDto', updateOrderDto)\n const localVarPath = `/orders/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateOrderDto, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * OrdersApi - functional programming interface\n * @export\n */\nexport const OrdersApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.create(createOrderDto, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.create']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Order>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(page, limit, status, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findOne(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.findOne']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async removeActiveReceipt(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.removeActiveReceipt(id, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.removeActiveReceipt']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.update(id, updateOrderDto, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['OrdersApi.update']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * OrdersApi - factory interface\n * @export\n */\nexport const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = OrdersApiFp(configuration)\n return {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.create(createOrderDto, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Order>> {\n return localVarFp.findAll(page, limit, status, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findOne(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.findOne(id, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n removeActiveReceipt(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.removeActiveReceipt(id, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig): AxiosPromise<Order> {\n return localVarFp.update(id, updateOrderDto, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * OrdersApi - object-oriented interface\n * @export\n * @class OrdersApi\n * @extends {BaseAPI}\n */\nexport class OrdersApi extends BaseAPI {\n /**\n * \n * @param {CreateOrderDto} createOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).create(createOrderDto, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} [page] \n * @param {number} [limit] \n * @param {string} [status] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).findAll(page, limit, status, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public findOne(id: number, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public removeActiveReceipt(id: number, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).removeActiveReceipt(id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @param {number} id \n * @param {UpdateOrderDto} updateOrderDto \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof OrdersApi\n */\n public update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig) {\n return OrdersApiFp(this.configuration).update(id, updateOrderDto, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n/**\n * ProductsApi - axios parameter creator\n * @export\n */\nexport const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/products`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ProductsApi - functional programming interface\n * @export\n */\nexport const ProductsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async findAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ProductsApi.findAll']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ProductsApi - factory interface\n * @export\n */\nexport const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ProductsApiFp(configuration)\n return {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n findAll(options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {\n return localVarFp.findAll(options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * ProductsApi - object-oriented interface\n * @export\n * @class ProductsApi\n * @extends {BaseAPI}\n */\nexport class ProductsApi extends BaseAPI {\n /**\n * \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof ProductsApi\n */\n public findAll(options?: RawAxiosRequestConfig) {\n return ProductsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Horpynka API\n * Backend API for Horpynka POS\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n * @memberof Configuration\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n username?: string;\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n * @memberof Configuration\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * override base path\n *\n * @type {string}\n * @memberof Configuration\n */\n basePath?: string;\n /**\n * override server index\n *\n * @type {number}\n * @memberof Configuration\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n *\n * @type {any}\n * @memberof Configuration\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n}\n","import axios, { AxiosInstance, CreateAxiosDefaults } from \"axios\";\nimport { AuthApi, Configuration, OrdersApi } from \"../api/generated\";\nimport { QueryClient } from \"@tanstack/react-query\";\n\nexport let tanstackClient: QueryClient;\nexport let ordersApi: OrdersApi;\nexport let authApi: AuthApi;\n\nexport function initApiClient(config: CreateAxiosDefaults): AxiosInstance {\n const apiClient = axios.create({\n baseURL: config.baseURL,\n timeout: config.timeout ?? 10_000,\n });\n\n const configuration = new Configuration({\n basePath: config.baseURL,\n });\n\n tanstackClient = new QueryClient();\n ordersApi = new OrdersApi(configuration, undefined, apiClient);\n authApi = new AuthApi(configuration, undefined, apiClient);\n\n return apiClient;\n}\n","import { queryOptions, useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\"\nimport { ordersApi } from \"../client\"\n\nconst getOrdersQuery = (params?: {\n page?: number\n limit?: number\n status?: string\n}) =>\n queryOptions({\n queryKey: [\"orders\", params],\n queryFn: () =>\n ordersApi\n .findAll(params?.page, params?.limit, params?.status)\n .then((res) => res.data),\n })\n\nexport const useOrdersApi = () => {\n const queryClient = useQueryClient()\n\n const mutateDeleteReceipt = useMutation({\n mutationFn: ({ params: { id } }: { params: { id: number }; onSettledCallback?: () => void }) =>\n ordersApi.removeActiveReceipt(id),\n onSettled: (_data, _error, { onSettledCallback }) => {\n queryClient.invalidateQueries({ queryKey: [\"orders\"] })\n onSettledCallback && onSettledCallback()\n },\n })\n\n return {\n mutateDeleteReceipt,\n getOrdersQuery\n }\n}\n"]}
|