@teemill/product-catalog 1.14.0 → 1.16.0
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/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/api.ts +419 -105
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +368 -89
- package/dist/api.js +77 -90
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +368 -89
- package/dist/esm/api.js +76 -89
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,13 +22,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = void 0;
|
|
25
|
+
exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PriceCurrencyCodeEnum = exports.CreateProductVariantRetailPriceCurrencyCodeEnum = exports.CreateProductVariantAttributesInnerNameEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
exports.ApplicationTechnologyEnum = {
|
|
33
|
+
Dtg: 'dtg',
|
|
34
|
+
Embroidery: 'embroidery',
|
|
35
|
+
Dtf: 'dtf',
|
|
36
|
+
Pretreat: 'pretreat',
|
|
37
|
+
MugSublimation: 'mug_sublimation',
|
|
38
|
+
ManualPrint: 'manual_print',
|
|
39
|
+
AdditionalApplication: 'additional_application',
|
|
40
|
+
NotebookSublimation: 'notebook_sublimation',
|
|
41
|
+
DuplexPrint: 'duplex_print'
|
|
42
|
+
};
|
|
32
43
|
exports.ApplicationPlacementEnum = {
|
|
33
44
|
Front: 'front',
|
|
34
45
|
Back: 'back',
|
|
@@ -41,6 +52,16 @@ exports.AttributeThumbnailTypeEnum = {
|
|
|
41
52
|
Color: 'color',
|
|
42
53
|
Image: 'image'
|
|
43
54
|
};
|
|
55
|
+
exports.CreateProductVariantAttributesInnerNameEnum = {
|
|
56
|
+
Size: 'Size',
|
|
57
|
+
Colour: 'Colour'
|
|
58
|
+
};
|
|
59
|
+
exports.CreateProductVariantRetailPriceCurrencyCodeEnum = {
|
|
60
|
+
Gbp: 'GBP'
|
|
61
|
+
};
|
|
62
|
+
exports.PriceCurrencyCodeEnum = {
|
|
63
|
+
Gbp: 'GBP'
|
|
64
|
+
};
|
|
44
65
|
/**
|
|
45
66
|
* ProductsApi - axios parameter creator
|
|
46
67
|
* @export
|
|
@@ -94,7 +115,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
94
115
|
* @param {*} [options] Override http request option.
|
|
95
116
|
* @throws {RequiredError}
|
|
96
117
|
*/
|
|
97
|
-
deleteProduct: (
|
|
118
|
+
deleteProduct: (project_1, productId_1, ...args_1) => __awaiter(this, [project_1, productId_1, ...args_1], void 0, function* (project, productId, options = {}) {
|
|
98
119
|
// verify required parameter 'project' is not null or undefined
|
|
99
120
|
(0, common_1.assertParamExists)('deleteProduct', 'project', project);
|
|
100
121
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -135,7 +156,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
135
156
|
* @param {*} [options] Override http request option.
|
|
136
157
|
* @throws {RequiredError}
|
|
137
158
|
*/
|
|
138
|
-
getProduct: (
|
|
159
|
+
getProduct: (project_1, productId_1, fields_1, ...args_1) => __awaiter(this, [project_1, productId_1, fields_1, ...args_1], void 0, function* (project, productId, fields, options = {}) {
|
|
139
160
|
// verify required parameter 'project' is not null or undefined
|
|
140
161
|
(0, common_1.assertParamExists)('getProduct', 'project', project);
|
|
141
162
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -181,7 +202,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
181
202
|
* @param {*} [options] Override http request option.
|
|
182
203
|
* @throws {RequiredError}
|
|
183
204
|
*/
|
|
184
|
-
getProducts: (
|
|
205
|
+
getProducts: (project_1, pageToken_1, search_1, pageSize_1, fields_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, search_1, pageSize_1, fields_1, ...args_1], void 0, function* (project, pageToken, search, pageSize, fields, options = {}) {
|
|
185
206
|
// verify required parameter 'project' is not null or undefined
|
|
186
207
|
(0, common_1.assertParamExists)('getProducts', 'project', project);
|
|
187
208
|
const localVarPath = `/v1/catalog/products`;
|
|
@@ -230,7 +251,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
230
251
|
* @param {*} [options] Override http request option.
|
|
231
252
|
* @throws {RequiredError}
|
|
232
253
|
*/
|
|
233
|
-
importProducts: (
|
|
254
|
+
importProducts: (project_1, body_1, ...args_1) => __awaiter(this, [project_1, body_1, ...args_1], void 0, function* (project, body, options = {}) {
|
|
234
255
|
// verify required parameter 'project' is not null or undefined
|
|
235
256
|
(0, common_1.assertParamExists)('importProducts', 'project', project);
|
|
236
257
|
const localVarPath = `/v1/catalog/products/import`;
|
|
@@ -270,7 +291,7 @@ const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
270
291
|
* @param {*} [options] Override http request option.
|
|
271
292
|
* @throws {RequiredError}
|
|
272
293
|
*/
|
|
273
|
-
updateProduct: (
|
|
294
|
+
updateProduct: (project_1, productId_1, updateProductRequest_1, ...args_1) => __awaiter(this, [project_1, productId_1, updateProductRequest_1, ...args_1], void 0, function* (project, productId, updateProductRequest, options = {}) {
|
|
274
295
|
// verify required parameter 'project' is not null or undefined
|
|
275
296
|
(0, common_1.assertParamExists)('updateProduct', 'project', project);
|
|
276
297
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -434,73 +455,62 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
434
455
|
/**
|
|
435
456
|
* Creates a new catalog product based on a given warehouse product with the variants and design applications provided. To select a warehouse product to base this product on, use the GFN Catalog API to list available options.
|
|
436
457
|
* @summary Create product
|
|
437
|
-
* @param {
|
|
438
|
-
* @param {CreateProductRequest} [createProductRequest]
|
|
458
|
+
* @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
|
|
439
459
|
* @param {*} [options] Override http request option.
|
|
440
460
|
* @throws {RequiredError}
|
|
441
461
|
*/
|
|
442
|
-
createProduct(
|
|
443
|
-
return localVarFp.createProduct(project, createProductRequest, options).then((request) => request(axios, basePath));
|
|
462
|
+
createProduct(requestParameters, options) {
|
|
463
|
+
return localVarFp.createProduct(requestParameters.project, requestParameters.createProductRequest, options).then((request) => request(axios, basePath));
|
|
444
464
|
},
|
|
445
465
|
/**
|
|
446
466
|
* Deletes a catalog product
|
|
447
467
|
* @summary Delete catalog product
|
|
448
|
-
* @param {
|
|
449
|
-
* @param {string} productId Product\'s unique identifier
|
|
468
|
+
* @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
|
|
450
469
|
* @param {*} [options] Override http request option.
|
|
451
470
|
* @throws {RequiredError}
|
|
452
471
|
*/
|
|
453
|
-
deleteProduct(
|
|
454
|
-
return localVarFp.deleteProduct(project, productId, options).then((request) => request(axios, basePath));
|
|
472
|
+
deleteProduct(requestParameters, options) {
|
|
473
|
+
return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
455
474
|
},
|
|
456
475
|
/**
|
|
457
476
|
* Gets a product by a given ID.
|
|
458
477
|
* @summary Get product
|
|
459
|
-
* @param {
|
|
460
|
-
* @param {string} productId Product\'s unique identifier
|
|
461
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
478
|
+
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
462
479
|
* @param {*} [options] Override http request option.
|
|
463
480
|
* @throws {RequiredError}
|
|
464
481
|
*/
|
|
465
|
-
getProduct(
|
|
466
|
-
return localVarFp.getProduct(project, productId, fields, options).then((request) => request(axios, basePath));
|
|
482
|
+
getProduct(requestParameters, options) {
|
|
483
|
+
return localVarFp.getProduct(requestParameters.project, requestParameters.productId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
467
484
|
},
|
|
468
485
|
/**
|
|
469
486
|
* Lists all enabled store listing products attached to the given project.
|
|
470
487
|
* @summary List products
|
|
471
|
-
* @param {
|
|
472
|
-
* @param {number} [pageToken] Page reference token
|
|
473
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
474
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
475
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
488
|
+
* @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
|
|
476
489
|
* @param {*} [options] Override http request option.
|
|
477
490
|
* @throws {RequiredError}
|
|
478
491
|
*/
|
|
479
|
-
getProducts(
|
|
480
|
-
return localVarFp.getProducts(project, pageToken, search, pageSize, fields, options).then((request) => request(axios, basePath));
|
|
492
|
+
getProducts(requestParameters, options) {
|
|
493
|
+
return localVarFp.getProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
481
494
|
},
|
|
482
495
|
/**
|
|
483
496
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
484
497
|
* @summary Import products
|
|
485
|
-
* @param {
|
|
486
|
-
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
498
|
+
* @param {ProductsApiImportProductsRequest} requestParameters Request parameters.
|
|
487
499
|
* @param {*} [options] Override http request option.
|
|
488
500
|
* @throws {RequiredError}
|
|
489
501
|
*/
|
|
490
|
-
importProducts(
|
|
491
|
-
return localVarFp.importProducts(project, body, options).then((request) => request(axios, basePath));
|
|
502
|
+
importProducts(requestParameters, options) {
|
|
503
|
+
return localVarFp.importProducts(requestParameters.project, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
492
504
|
},
|
|
493
505
|
/**
|
|
494
506
|
* Updates a product by a given ID.
|
|
495
507
|
* @summary Update product
|
|
496
|
-
* @param {
|
|
497
|
-
* @param {string} productId Product\'s unique identifier
|
|
498
|
-
* @param {UpdateProductRequest} [updateProductRequest]
|
|
508
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
499
509
|
* @param {*} [options] Override http request option.
|
|
500
510
|
* @throws {RequiredError}
|
|
501
511
|
*/
|
|
502
|
-
updateProduct(
|
|
503
|
-
return localVarFp.updateProduct(project, productId, updateProductRequest, options).then((request) => request(axios, basePath));
|
|
512
|
+
updateProduct(requestParameters, options) {
|
|
513
|
+
return localVarFp.updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
|
|
504
514
|
},
|
|
505
515
|
};
|
|
506
516
|
};
|
|
@@ -515,79 +525,68 @@ class ProductsApi extends base_1.BaseAPI {
|
|
|
515
525
|
/**
|
|
516
526
|
* Creates a new catalog product based on a given warehouse product with the variants and design applications provided. To select a warehouse product to base this product on, use the GFN Catalog API to list available options.
|
|
517
527
|
* @summary Create product
|
|
518
|
-
* @param {
|
|
519
|
-
* @param {CreateProductRequest} [createProductRequest]
|
|
528
|
+
* @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
|
|
520
529
|
* @param {*} [options] Override http request option.
|
|
521
530
|
* @throws {RequiredError}
|
|
522
531
|
* @memberof ProductsApi
|
|
523
532
|
*/
|
|
524
|
-
createProduct(
|
|
525
|
-
return (0, exports.ProductsApiFp)(this.configuration).createProduct(project, createProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
533
|
+
createProduct(requestParameters, options) {
|
|
534
|
+
return (0, exports.ProductsApiFp)(this.configuration).createProduct(requestParameters.project, requestParameters.createProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
526
535
|
}
|
|
527
536
|
/**
|
|
528
537
|
* Deletes a catalog product
|
|
529
538
|
* @summary Delete catalog product
|
|
530
|
-
* @param {
|
|
531
|
-
* @param {string} productId Product\'s unique identifier
|
|
539
|
+
* @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
|
|
532
540
|
* @param {*} [options] Override http request option.
|
|
533
541
|
* @throws {RequiredError}
|
|
534
542
|
* @memberof ProductsApi
|
|
535
543
|
*/
|
|
536
|
-
deleteProduct(
|
|
537
|
-
return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(project, productId, options).then((request) => request(this.axios, this.basePath));
|
|
544
|
+
deleteProduct(requestParameters, options) {
|
|
545
|
+
return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
538
546
|
}
|
|
539
547
|
/**
|
|
540
548
|
* Gets a product by a given ID.
|
|
541
549
|
* @summary Get product
|
|
542
|
-
* @param {
|
|
543
|
-
* @param {string} productId Product\'s unique identifier
|
|
544
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
550
|
+
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
545
551
|
* @param {*} [options] Override http request option.
|
|
546
552
|
* @throws {RequiredError}
|
|
547
553
|
* @memberof ProductsApi
|
|
548
554
|
*/
|
|
549
|
-
getProduct(
|
|
550
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProduct(project, productId, fields, options).then((request) => request(this.axios, this.basePath));
|
|
555
|
+
getProduct(requestParameters, options) {
|
|
556
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProduct(requestParameters.project, requestParameters.productId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
551
557
|
}
|
|
552
558
|
/**
|
|
553
559
|
* Lists all enabled store listing products attached to the given project.
|
|
554
560
|
* @summary List products
|
|
555
|
-
* @param {
|
|
556
|
-
* @param {number} [pageToken] Page reference token
|
|
557
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
558
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
559
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
561
|
+
* @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
|
|
560
562
|
* @param {*} [options] Override http request option.
|
|
561
563
|
* @throws {RequiredError}
|
|
562
564
|
* @memberof ProductsApi
|
|
563
565
|
*/
|
|
564
|
-
getProducts(
|
|
565
|
-
return (0, exports.ProductsApiFp)(this.configuration).getProducts(project, pageToken, search, pageSize, fields, options).then((request) => request(this.axios, this.basePath));
|
|
566
|
+
getProducts(requestParameters, options) {
|
|
567
|
+
return (0, exports.ProductsApiFp)(this.configuration).getProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
566
568
|
}
|
|
567
569
|
/**
|
|
568
570
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
569
571
|
* @summary Import products
|
|
570
|
-
* @param {
|
|
571
|
-
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
572
|
+
* @param {ProductsApiImportProductsRequest} requestParameters Request parameters.
|
|
572
573
|
* @param {*} [options] Override http request option.
|
|
573
574
|
* @throws {RequiredError}
|
|
574
575
|
* @memberof ProductsApi
|
|
575
576
|
*/
|
|
576
|
-
importProducts(
|
|
577
|
-
return (0, exports.ProductsApiFp)(this.configuration).importProducts(project, body, options).then((request) => request(this.axios, this.basePath));
|
|
577
|
+
importProducts(requestParameters, options) {
|
|
578
|
+
return (0, exports.ProductsApiFp)(this.configuration).importProducts(requestParameters.project, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
578
579
|
}
|
|
579
580
|
/**
|
|
580
581
|
* Updates a product by a given ID.
|
|
581
582
|
* @summary Update product
|
|
582
|
-
* @param {
|
|
583
|
-
* @param {string} productId Product\'s unique identifier
|
|
584
|
-
* @param {UpdateProductRequest} [updateProductRequest]
|
|
583
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
585
584
|
* @param {*} [options] Override http request option.
|
|
586
585
|
* @throws {RequiredError}
|
|
587
586
|
* @memberof ProductsApi
|
|
588
587
|
*/
|
|
589
|
-
updateProduct(
|
|
590
|
-
return (0, exports.ProductsApiFp)(this.configuration).updateProduct(project, productId, updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
588
|
+
updateProduct(requestParameters, options) {
|
|
589
|
+
return (0, exports.ProductsApiFp)(this.configuration).updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
591
590
|
}
|
|
592
591
|
}
|
|
593
592
|
exports.ProductsApi = ProductsApi;
|
|
@@ -652,7 +651,7 @@ const VariantsApiAxiosParamCreator = function (configuration) {
|
|
|
652
651
|
* @param {*} [options] Override http request option.
|
|
653
652
|
* @throws {RequiredError}
|
|
654
653
|
*/
|
|
655
|
-
listVariants: (
|
|
654
|
+
listVariants: (project_1, search_1, pageToken_1, pageSize_1, fields_1, ...args_1) => __awaiter(this, [project_1, search_1, pageToken_1, pageSize_1, fields_1, ...args_1], void 0, function* (project, search, pageToken, pageSize, fields, options = {}) {
|
|
656
655
|
// verify required parameter 'project' is not null or undefined
|
|
657
656
|
(0, common_1.assertParamExists)('listVariants', 'project', project);
|
|
658
657
|
const localVarPath = `/v1/catalog/variants`;
|
|
@@ -754,28 +753,22 @@ const VariantsApiFactory = function (configuration, basePath, axios) {
|
|
|
754
753
|
/**
|
|
755
754
|
* Gets a variant by a given ID.
|
|
756
755
|
* @summary Get variant
|
|
757
|
-
* @param {
|
|
758
|
-
* @param {string} variantId Variants unique identifier
|
|
759
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
756
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
760
757
|
* @param {*} [options] Override http request option.
|
|
761
758
|
* @throws {RequiredError}
|
|
762
759
|
*/
|
|
763
|
-
getVariant(
|
|
764
|
-
return localVarFp.getVariant(project, variantId, fields, options).then((request) => request(axios, basePath));
|
|
760
|
+
getVariant(requestParameters, options) {
|
|
761
|
+
return localVarFp.getVariant(requestParameters.project, requestParameters.variantId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
765
762
|
},
|
|
766
763
|
/**
|
|
767
764
|
* Lists all variants that belong to enabled products attached to the given project.
|
|
768
765
|
* @summary List variants
|
|
769
|
-
* @param {
|
|
770
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
771
|
-
* @param {number} [pageToken] Page reference token
|
|
772
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
773
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
766
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
774
767
|
* @param {*} [options] Override http request option.
|
|
775
768
|
* @throws {RequiredError}
|
|
776
769
|
*/
|
|
777
|
-
listVariants(
|
|
778
|
-
return localVarFp.listVariants(project, search, pageToken, pageSize, fields, options).then((request) => request(axios, basePath));
|
|
770
|
+
listVariants(requestParameters, options) {
|
|
771
|
+
return localVarFp.listVariants(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
779
772
|
},
|
|
780
773
|
};
|
|
781
774
|
};
|
|
@@ -790,30 +783,24 @@ class VariantsApi extends base_1.BaseAPI {
|
|
|
790
783
|
/**
|
|
791
784
|
* Gets a variant by a given ID.
|
|
792
785
|
* @summary Get variant
|
|
793
|
-
* @param {
|
|
794
|
-
* @param {string} variantId Variants unique identifier
|
|
795
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
786
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
796
787
|
* @param {*} [options] Override http request option.
|
|
797
788
|
* @throws {RequiredError}
|
|
798
789
|
* @memberof VariantsApi
|
|
799
790
|
*/
|
|
800
|
-
getVariant(
|
|
801
|
-
return (0, exports.VariantsApiFp)(this.configuration).getVariant(project, variantId, fields, options).then((request) => request(this.axios, this.basePath));
|
|
791
|
+
getVariant(requestParameters, options) {
|
|
792
|
+
return (0, exports.VariantsApiFp)(this.configuration).getVariant(requestParameters.project, requestParameters.variantId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
802
793
|
}
|
|
803
794
|
/**
|
|
804
795
|
* Lists all variants that belong to enabled products attached to the given project.
|
|
805
796
|
* @summary List variants
|
|
806
|
-
* @param {
|
|
807
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
808
|
-
* @param {number} [pageToken] Page reference token
|
|
809
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
810
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
797
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
811
798
|
* @param {*} [options] Override http request option.
|
|
812
799
|
* @throws {RequiredError}
|
|
813
800
|
* @memberof VariantsApi
|
|
814
801
|
*/
|
|
815
|
-
listVariants(
|
|
816
|
-
return (0, exports.VariantsApiFp)(this.configuration).listVariants(project, search, pageToken, pageSize, fields, options).then((request) => request(this.axios, this.basePath));
|
|
802
|
+
listVariants(requestParameters, options) {
|
|
803
|
+
return (0, exports.VariantsApiFp)(this.configuration).listVariants(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
817
804
|
}
|
|
818
805
|
}
|
|
819
806
|
exports.VariantsApi = VariantsApi;
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Product Catalog API
|
|
3
3
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Product Catalog API
|
|
6
6
|
* Manage Product Catalog A catalog product is an object that represents a product listing that can be purchased from the given project. It contains a combination of design applications and a warehouse product, plus listing information such as title, description and tags.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|