@horpynka/api-sdk 1.0.11 → 1.0.12
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 +94 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +94 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -332,6 +332,12 @@ interface Ingredient {
|
|
|
332
332
|
* @memberof Ingredient
|
|
333
333
|
*/
|
|
334
334
|
'id': number;
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @type {string}
|
|
338
|
+
* @memberof Ingredient
|
|
339
|
+
*/
|
|
340
|
+
'name': string;
|
|
335
341
|
/**
|
|
336
342
|
*
|
|
337
343
|
* @type {string}
|
|
@@ -704,6 +710,14 @@ declare class CategoriesApi extends BaseAPI {
|
|
|
704
710
|
* @memberof CategoriesApi
|
|
705
711
|
*/
|
|
706
712
|
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<object, any, {}, any>>;
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @param {number} id
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
* @memberof CategoriesApi
|
|
719
|
+
*/
|
|
720
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Category, any, {}, any>>;
|
|
707
721
|
}
|
|
708
722
|
/**
|
|
709
723
|
* DishesApi - object-oriented interface
|
|
@@ -793,6 +807,14 @@ declare class ProductsApi extends BaseAPI {
|
|
|
793
807
|
* @memberof ProductsApi
|
|
794
808
|
*/
|
|
795
809
|
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Product[], any, {}, any>>;
|
|
810
|
+
/**
|
|
811
|
+
*
|
|
812
|
+
* @param {number} id
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
* @memberof ProductsApi
|
|
816
|
+
*/
|
|
817
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Product, any, {}, any>>;
|
|
796
818
|
}
|
|
797
819
|
|
|
798
820
|
declare let tanstackClient: QueryClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -332,6 +332,12 @@ interface Ingredient {
|
|
|
332
332
|
* @memberof Ingredient
|
|
333
333
|
*/
|
|
334
334
|
'id': number;
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @type {string}
|
|
338
|
+
* @memberof Ingredient
|
|
339
|
+
*/
|
|
340
|
+
'name': string;
|
|
335
341
|
/**
|
|
336
342
|
*
|
|
337
343
|
* @type {string}
|
|
@@ -704,6 +710,14 @@ declare class CategoriesApi extends BaseAPI {
|
|
|
704
710
|
* @memberof CategoriesApi
|
|
705
711
|
*/
|
|
706
712
|
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<object, any, {}, any>>;
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @param {number} id
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
* @memberof CategoriesApi
|
|
719
|
+
*/
|
|
720
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Category, any, {}, any>>;
|
|
707
721
|
}
|
|
708
722
|
/**
|
|
709
723
|
* DishesApi - object-oriented interface
|
|
@@ -793,6 +807,14 @@ declare class ProductsApi extends BaseAPI {
|
|
|
793
807
|
* @memberof ProductsApi
|
|
794
808
|
*/
|
|
795
809
|
findAll(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Product[], any, {}, any>>;
|
|
810
|
+
/**
|
|
811
|
+
*
|
|
812
|
+
* @param {number} id
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
* @memberof ProductsApi
|
|
816
|
+
*/
|
|
817
|
+
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Product, any, {}, any>>;
|
|
796
818
|
}
|
|
797
819
|
|
|
798
820
|
declare let tanstackClient: QueryClient;
|
package/dist/index.js
CHANGED
|
@@ -291,6 +291,31 @@ var CategoriesApiAxiosParamCreator = function(configuration) {
|
|
|
291
291
|
url: toPathString(localVarUrlObj),
|
|
292
292
|
options: localVarRequestOptions
|
|
293
293
|
};
|
|
294
|
+
},
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @param {number} id
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
*/
|
|
301
|
+
findOne: async (id, options = {}) => {
|
|
302
|
+
assertParamExists("findOne", "id", id);
|
|
303
|
+
const localVarPath = `/categories/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
304
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
305
|
+
let baseOptions;
|
|
306
|
+
if (configuration) {
|
|
307
|
+
baseOptions = configuration.baseOptions;
|
|
308
|
+
}
|
|
309
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
310
|
+
const localVarHeaderParameter = {};
|
|
311
|
+
const localVarQueryParameter = {};
|
|
312
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
314
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
315
|
+
return {
|
|
316
|
+
url: toPathString(localVarUrlObj),
|
|
317
|
+
options: localVarRequestOptions
|
|
318
|
+
};
|
|
294
319
|
}
|
|
295
320
|
};
|
|
296
321
|
};
|
|
@@ -307,6 +332,18 @@ var CategoriesApiFp = function(configuration) {
|
|
|
307
332
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
308
333
|
const localVarOperationServerBasePath = operationServerMap["CategoriesApi.findAll"]?.[localVarOperationServerIndex]?.url;
|
|
309
334
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @param {number} id
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
async findOne(id, options) {
|
|
343
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
|
|
344
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
345
|
+
const localVarOperationServerBasePath = operationServerMap["CategoriesApi.findOne"]?.[localVarOperationServerIndex]?.url;
|
|
346
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
310
347
|
}
|
|
311
348
|
};
|
|
312
349
|
};
|
|
@@ -320,6 +357,16 @@ var CategoriesApi = class extends BaseAPI {
|
|
|
320
357
|
findAll(options) {
|
|
321
358
|
return CategoriesApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
|
|
322
359
|
}
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @param {number} id
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
* @memberof CategoriesApi
|
|
366
|
+
*/
|
|
367
|
+
findOne(id, options) {
|
|
368
|
+
return CategoriesApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
369
|
+
}
|
|
323
370
|
};
|
|
324
371
|
var DishesApiAxiosParamCreator = function(configuration) {
|
|
325
372
|
return {
|
|
@@ -714,6 +761,31 @@ var ProductsApiAxiosParamCreator = function(configuration) {
|
|
|
714
761
|
url: toPathString(localVarUrlObj),
|
|
715
762
|
options: localVarRequestOptions
|
|
716
763
|
};
|
|
764
|
+
},
|
|
765
|
+
/**
|
|
766
|
+
*
|
|
767
|
+
* @param {number} id
|
|
768
|
+
* @param {*} [options] Override http request option.
|
|
769
|
+
* @throws {RequiredError}
|
|
770
|
+
*/
|
|
771
|
+
findOne: async (id, options = {}) => {
|
|
772
|
+
assertParamExists("findOne", "id", id);
|
|
773
|
+
const localVarPath = `/products/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
774
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
775
|
+
let baseOptions;
|
|
776
|
+
if (configuration) {
|
|
777
|
+
baseOptions = configuration.baseOptions;
|
|
778
|
+
}
|
|
779
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
780
|
+
const localVarHeaderParameter = {};
|
|
781
|
+
const localVarQueryParameter = {};
|
|
782
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
783
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
784
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
785
|
+
return {
|
|
786
|
+
url: toPathString(localVarUrlObj),
|
|
787
|
+
options: localVarRequestOptions
|
|
788
|
+
};
|
|
717
789
|
}
|
|
718
790
|
};
|
|
719
791
|
};
|
|
@@ -730,6 +802,18 @@ var ProductsApiFp = function(configuration) {
|
|
|
730
802
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
731
803
|
const localVarOperationServerBasePath = operationServerMap["ProductsApi.findAll"]?.[localVarOperationServerIndex]?.url;
|
|
732
804
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
805
|
+
},
|
|
806
|
+
/**
|
|
807
|
+
*
|
|
808
|
+
* @param {number} id
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
async findOne(id, options) {
|
|
813
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
|
|
814
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
815
|
+
const localVarOperationServerBasePath = operationServerMap["ProductsApi.findOne"]?.[localVarOperationServerIndex]?.url;
|
|
816
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
733
817
|
}
|
|
734
818
|
};
|
|
735
819
|
};
|
|
@@ -743,6 +827,16 @@ var ProductsApi = class extends BaseAPI {
|
|
|
743
827
|
findAll(options) {
|
|
744
828
|
return ProductsApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
|
|
745
829
|
}
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @param {number} id
|
|
833
|
+
* @param {*} [options] Override http request option.
|
|
834
|
+
* @throws {RequiredError}
|
|
835
|
+
* @memberof ProductsApi
|
|
836
|
+
*/
|
|
837
|
+
findOne(id, options) {
|
|
838
|
+
return ProductsApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
839
|
+
}
|
|
746
840
|
};
|
|
747
841
|
|
|
748
842
|
// src/api/generated/configuration.ts
|