@teemill/product-catalog 1.15.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 +394 -105
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +343 -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 +343 -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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.16.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,6 +26,17 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
export const ApplicationTechnologyEnum = {
|
|
30
|
+
Dtg: 'dtg',
|
|
31
|
+
Embroidery: 'embroidery',
|
|
32
|
+
Dtf: 'dtf',
|
|
33
|
+
Pretreat: 'pretreat',
|
|
34
|
+
MugSublimation: 'mug_sublimation',
|
|
35
|
+
ManualPrint: 'manual_print',
|
|
36
|
+
AdditionalApplication: 'additional_application',
|
|
37
|
+
NotebookSublimation: 'notebook_sublimation',
|
|
38
|
+
DuplexPrint: 'duplex_print'
|
|
39
|
+
};
|
|
29
40
|
export const ApplicationPlacementEnum = {
|
|
30
41
|
Front: 'front',
|
|
31
42
|
Back: 'back',
|
|
@@ -38,6 +49,16 @@ export const AttributeThumbnailTypeEnum = {
|
|
|
38
49
|
Color: 'color',
|
|
39
50
|
Image: 'image'
|
|
40
51
|
};
|
|
52
|
+
export const CreateProductVariantAttributesInnerNameEnum = {
|
|
53
|
+
Size: 'Size',
|
|
54
|
+
Colour: 'Colour'
|
|
55
|
+
};
|
|
56
|
+
export const CreateProductVariantRetailPriceCurrencyCodeEnum = {
|
|
57
|
+
Gbp: 'GBP'
|
|
58
|
+
};
|
|
59
|
+
export const PriceCurrencyCodeEnum = {
|
|
60
|
+
Gbp: 'GBP'
|
|
61
|
+
};
|
|
41
62
|
/**
|
|
42
63
|
* ProductsApi - axios parameter creator
|
|
43
64
|
* @export
|
|
@@ -91,7 +112,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
91
112
|
* @param {*} [options] Override http request option.
|
|
92
113
|
* @throws {RequiredError}
|
|
93
114
|
*/
|
|
94
|
-
deleteProduct: (
|
|
115
|
+
deleteProduct: (project_1, productId_1, ...args_1) => __awaiter(this, [project_1, productId_1, ...args_1], void 0, function* (project, productId, options = {}) {
|
|
95
116
|
// verify required parameter 'project' is not null or undefined
|
|
96
117
|
assertParamExists('deleteProduct', 'project', project);
|
|
97
118
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -132,7 +153,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
132
153
|
* @param {*} [options] Override http request option.
|
|
133
154
|
* @throws {RequiredError}
|
|
134
155
|
*/
|
|
135
|
-
getProduct: (
|
|
156
|
+
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 = {}) {
|
|
136
157
|
// verify required parameter 'project' is not null or undefined
|
|
137
158
|
assertParamExists('getProduct', 'project', project);
|
|
138
159
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -178,7 +199,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
178
199
|
* @param {*} [options] Override http request option.
|
|
179
200
|
* @throws {RequiredError}
|
|
180
201
|
*/
|
|
181
|
-
getProducts: (
|
|
202
|
+
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 = {}) {
|
|
182
203
|
// verify required parameter 'project' is not null or undefined
|
|
183
204
|
assertParamExists('getProducts', 'project', project);
|
|
184
205
|
const localVarPath = `/v1/catalog/products`;
|
|
@@ -227,7 +248,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
227
248
|
* @param {*} [options] Override http request option.
|
|
228
249
|
* @throws {RequiredError}
|
|
229
250
|
*/
|
|
230
|
-
importProducts: (
|
|
251
|
+
importProducts: (project_1, body_1, ...args_1) => __awaiter(this, [project_1, body_1, ...args_1], void 0, function* (project, body, options = {}) {
|
|
231
252
|
// verify required parameter 'project' is not null or undefined
|
|
232
253
|
assertParamExists('importProducts', 'project', project);
|
|
233
254
|
const localVarPath = `/v1/catalog/products/import`;
|
|
@@ -267,7 +288,7 @@ export const ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
267
288
|
* @param {*} [options] Override http request option.
|
|
268
289
|
* @throws {RequiredError}
|
|
269
290
|
*/
|
|
270
|
-
updateProduct: (
|
|
291
|
+
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 = {}) {
|
|
271
292
|
// verify required parameter 'project' is not null or undefined
|
|
272
293
|
assertParamExists('updateProduct', 'project', project);
|
|
273
294
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -429,73 +450,62 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
429
450
|
/**
|
|
430
451
|
* 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.
|
|
431
452
|
* @summary Create product
|
|
432
|
-
* @param {
|
|
433
|
-
* @param {CreateProductRequest} [createProductRequest]
|
|
453
|
+
* @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
|
|
434
454
|
* @param {*} [options] Override http request option.
|
|
435
455
|
* @throws {RequiredError}
|
|
436
456
|
*/
|
|
437
|
-
createProduct(
|
|
438
|
-
return localVarFp.createProduct(project, createProductRequest, options).then((request) => request(axios, basePath));
|
|
457
|
+
createProduct(requestParameters, options) {
|
|
458
|
+
return localVarFp.createProduct(requestParameters.project, requestParameters.createProductRequest, options).then((request) => request(axios, basePath));
|
|
439
459
|
},
|
|
440
460
|
/**
|
|
441
461
|
* Deletes a catalog product
|
|
442
462
|
* @summary Delete catalog product
|
|
443
|
-
* @param {
|
|
444
|
-
* @param {string} productId Product\'s unique identifier
|
|
463
|
+
* @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
|
|
445
464
|
* @param {*} [options] Override http request option.
|
|
446
465
|
* @throws {RequiredError}
|
|
447
466
|
*/
|
|
448
|
-
deleteProduct(
|
|
449
|
-
return localVarFp.deleteProduct(project, productId, options).then((request) => request(axios, basePath));
|
|
467
|
+
deleteProduct(requestParameters, options) {
|
|
468
|
+
return localVarFp.deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
450
469
|
},
|
|
451
470
|
/**
|
|
452
471
|
* Gets a product by a given ID.
|
|
453
472
|
* @summary Get product
|
|
454
|
-
* @param {
|
|
455
|
-
* @param {string} productId Product\'s unique identifier
|
|
456
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
473
|
+
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
457
474
|
* @param {*} [options] Override http request option.
|
|
458
475
|
* @throws {RequiredError}
|
|
459
476
|
*/
|
|
460
|
-
getProduct(
|
|
461
|
-
return localVarFp.getProduct(project, productId, fields, options).then((request) => request(axios, basePath));
|
|
477
|
+
getProduct(requestParameters, options) {
|
|
478
|
+
return localVarFp.getProduct(requestParameters.project, requestParameters.productId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
462
479
|
},
|
|
463
480
|
/**
|
|
464
481
|
* Lists all enabled store listing products attached to the given project.
|
|
465
482
|
* @summary List products
|
|
466
|
-
* @param {
|
|
467
|
-
* @param {number} [pageToken] Page reference token
|
|
468
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
469
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
470
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
483
|
+
* @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
|
|
471
484
|
* @param {*} [options] Override http request option.
|
|
472
485
|
* @throws {RequiredError}
|
|
473
486
|
*/
|
|
474
|
-
getProducts(
|
|
475
|
-
return localVarFp.getProducts(project, pageToken, search, pageSize, fields, options).then((request) => request(axios, basePath));
|
|
487
|
+
getProducts(requestParameters, options) {
|
|
488
|
+
return localVarFp.getProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
476
489
|
},
|
|
477
490
|
/**
|
|
478
491
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
479
492
|
* @summary Import products
|
|
480
|
-
* @param {
|
|
481
|
-
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
493
|
+
* @param {ProductsApiImportProductsRequest} requestParameters Request parameters.
|
|
482
494
|
* @param {*} [options] Override http request option.
|
|
483
495
|
* @throws {RequiredError}
|
|
484
496
|
*/
|
|
485
|
-
importProducts(
|
|
486
|
-
return localVarFp.importProducts(project, body, options).then((request) => request(axios, basePath));
|
|
497
|
+
importProducts(requestParameters, options) {
|
|
498
|
+
return localVarFp.importProducts(requestParameters.project, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
487
499
|
},
|
|
488
500
|
/**
|
|
489
501
|
* Updates a product by a given ID.
|
|
490
502
|
* @summary Update product
|
|
491
|
-
* @param {
|
|
492
|
-
* @param {string} productId Product\'s unique identifier
|
|
493
|
-
* @param {UpdateProductRequest} [updateProductRequest]
|
|
503
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
494
504
|
* @param {*} [options] Override http request option.
|
|
495
505
|
* @throws {RequiredError}
|
|
496
506
|
*/
|
|
497
|
-
updateProduct(
|
|
498
|
-
return localVarFp.updateProduct(project, productId, updateProductRequest, options).then((request) => request(axios, basePath));
|
|
507
|
+
updateProduct(requestParameters, options) {
|
|
508
|
+
return localVarFp.updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
|
|
499
509
|
},
|
|
500
510
|
};
|
|
501
511
|
};
|
|
@@ -509,79 +519,68 @@ export class ProductsApi extends BaseAPI {
|
|
|
509
519
|
/**
|
|
510
520
|
* 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.
|
|
511
521
|
* @summary Create product
|
|
512
|
-
* @param {
|
|
513
|
-
* @param {CreateProductRequest} [createProductRequest]
|
|
522
|
+
* @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
|
|
514
523
|
* @param {*} [options] Override http request option.
|
|
515
524
|
* @throws {RequiredError}
|
|
516
525
|
* @memberof ProductsApi
|
|
517
526
|
*/
|
|
518
|
-
createProduct(
|
|
519
|
-
return ProductsApiFp(this.configuration).createProduct(project, createProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
527
|
+
createProduct(requestParameters, options) {
|
|
528
|
+
return ProductsApiFp(this.configuration).createProduct(requestParameters.project, requestParameters.createProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
520
529
|
}
|
|
521
530
|
/**
|
|
522
531
|
* Deletes a catalog product
|
|
523
532
|
* @summary Delete catalog product
|
|
524
|
-
* @param {
|
|
525
|
-
* @param {string} productId Product\'s unique identifier
|
|
533
|
+
* @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
|
|
526
534
|
* @param {*} [options] Override http request option.
|
|
527
535
|
* @throws {RequiredError}
|
|
528
536
|
* @memberof ProductsApi
|
|
529
537
|
*/
|
|
530
|
-
deleteProduct(
|
|
531
|
-
return ProductsApiFp(this.configuration).deleteProduct(project, productId, options).then((request) => request(this.axios, this.basePath));
|
|
538
|
+
deleteProduct(requestParameters, options) {
|
|
539
|
+
return ProductsApiFp(this.configuration).deleteProduct(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
532
540
|
}
|
|
533
541
|
/**
|
|
534
542
|
* Gets a product by a given ID.
|
|
535
543
|
* @summary Get product
|
|
536
|
-
* @param {
|
|
537
|
-
* @param {string} productId Product\'s unique identifier
|
|
538
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
544
|
+
* @param {ProductsApiGetProductRequest} requestParameters Request parameters.
|
|
539
545
|
* @param {*} [options] Override http request option.
|
|
540
546
|
* @throws {RequiredError}
|
|
541
547
|
* @memberof ProductsApi
|
|
542
548
|
*/
|
|
543
|
-
getProduct(
|
|
544
|
-
return ProductsApiFp(this.configuration).getProduct(project, productId, fields, options).then((request) => request(this.axios, this.basePath));
|
|
549
|
+
getProduct(requestParameters, options) {
|
|
550
|
+
return ProductsApiFp(this.configuration).getProduct(requestParameters.project, requestParameters.productId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
545
551
|
}
|
|
546
552
|
/**
|
|
547
553
|
* Lists all enabled store listing products attached to the given project.
|
|
548
554
|
* @summary List products
|
|
549
|
-
* @param {
|
|
550
|
-
* @param {number} [pageToken] Page reference token
|
|
551
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
552
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
553
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
555
|
+
* @param {ProductsApiGetProductsRequest} requestParameters Request parameters.
|
|
554
556
|
* @param {*} [options] Override http request option.
|
|
555
557
|
* @throws {RequiredError}
|
|
556
558
|
* @memberof ProductsApi
|
|
557
559
|
*/
|
|
558
|
-
getProducts(
|
|
559
|
-
return ProductsApiFp(this.configuration).getProducts(project, pageToken, search, pageSize, fields, options).then((request) => request(this.axios, this.basePath));
|
|
560
|
+
getProducts(requestParameters, options) {
|
|
561
|
+
return ProductsApiFp(this.configuration).getProducts(requestParameters.project, requestParameters.pageToken, requestParameters.search, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
560
562
|
}
|
|
561
563
|
/**
|
|
562
564
|
* Initiates a product import from a CSV file. The result will be available as a notification within the dashboard.
|
|
563
565
|
* @summary Import products
|
|
564
|
-
* @param {
|
|
565
|
-
* @param {string} [body] A data URL of a CSV file containing data for one or more products.
|
|
566
|
+
* @param {ProductsApiImportProductsRequest} requestParameters Request parameters.
|
|
566
567
|
* @param {*} [options] Override http request option.
|
|
567
568
|
* @throws {RequiredError}
|
|
568
569
|
* @memberof ProductsApi
|
|
569
570
|
*/
|
|
570
|
-
importProducts(
|
|
571
|
-
return ProductsApiFp(this.configuration).importProducts(project, body, options).then((request) => request(this.axios, this.basePath));
|
|
571
|
+
importProducts(requestParameters, options) {
|
|
572
|
+
return ProductsApiFp(this.configuration).importProducts(requestParameters.project, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
572
573
|
}
|
|
573
574
|
/**
|
|
574
575
|
* Updates a product by a given ID.
|
|
575
576
|
* @summary Update product
|
|
576
|
-
* @param {
|
|
577
|
-
* @param {string} productId Product\'s unique identifier
|
|
578
|
-
* @param {UpdateProductRequest} [updateProductRequest]
|
|
577
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
579
578
|
* @param {*} [options] Override http request option.
|
|
580
579
|
* @throws {RequiredError}
|
|
581
580
|
* @memberof ProductsApi
|
|
582
581
|
*/
|
|
583
|
-
updateProduct(
|
|
584
|
-
return ProductsApiFp(this.configuration).updateProduct(project, productId, updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
582
|
+
updateProduct(requestParameters, options) {
|
|
583
|
+
return ProductsApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
585
584
|
}
|
|
586
585
|
}
|
|
587
586
|
/**
|
|
@@ -645,7 +644,7 @@ export const VariantsApiAxiosParamCreator = function (configuration) {
|
|
|
645
644
|
* @param {*} [options] Override http request option.
|
|
646
645
|
* @throws {RequiredError}
|
|
647
646
|
*/
|
|
648
|
-
listVariants: (
|
|
647
|
+
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 = {}) {
|
|
649
648
|
// verify required parameter 'project' is not null or undefined
|
|
650
649
|
assertParamExists('listVariants', 'project', project);
|
|
651
650
|
const localVarPath = `/v1/catalog/variants`;
|
|
@@ -745,28 +744,22 @@ export const VariantsApiFactory = function (configuration, basePath, axios) {
|
|
|
745
744
|
/**
|
|
746
745
|
* Gets a variant by a given ID.
|
|
747
746
|
* @summary Get variant
|
|
748
|
-
* @param {
|
|
749
|
-
* @param {string} variantId Variants unique identifier
|
|
750
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
747
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
751
748
|
* @param {*} [options] Override http request option.
|
|
752
749
|
* @throws {RequiredError}
|
|
753
750
|
*/
|
|
754
|
-
getVariant(
|
|
755
|
-
return localVarFp.getVariant(project, variantId, fields, options).then((request) => request(axios, basePath));
|
|
751
|
+
getVariant(requestParameters, options) {
|
|
752
|
+
return localVarFp.getVariant(requestParameters.project, requestParameters.variantId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
756
753
|
},
|
|
757
754
|
/**
|
|
758
755
|
* Lists all variants that belong to enabled products attached to the given project.
|
|
759
756
|
* @summary List variants
|
|
760
|
-
* @param {
|
|
761
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
762
|
-
* @param {number} [pageToken] Page reference token
|
|
763
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
764
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
757
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
765
758
|
* @param {*} [options] Override http request option.
|
|
766
759
|
* @throws {RequiredError}
|
|
767
760
|
*/
|
|
768
|
-
listVariants(
|
|
769
|
-
return localVarFp.listVariants(project, search, pageToken, pageSize, fields, options).then((request) => request(axios, basePath));
|
|
761
|
+
listVariants(requestParameters, options) {
|
|
762
|
+
return localVarFp.listVariants(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
770
763
|
},
|
|
771
764
|
};
|
|
772
765
|
};
|
|
@@ -780,29 +773,23 @@ export class VariantsApi extends BaseAPI {
|
|
|
780
773
|
/**
|
|
781
774
|
* Gets a variant by a given ID.
|
|
782
775
|
* @summary Get variant
|
|
783
|
-
* @param {
|
|
784
|
-
* @param {string} variantId Variants unique identifier
|
|
785
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
776
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
786
777
|
* @param {*} [options] Override http request option.
|
|
787
778
|
* @throws {RequiredError}
|
|
788
779
|
* @memberof VariantsApi
|
|
789
780
|
*/
|
|
790
|
-
getVariant(
|
|
791
|
-
return VariantsApiFp(this.configuration).getVariant(project, variantId, fields, options).then((request) => request(this.axios, this.basePath));
|
|
781
|
+
getVariant(requestParameters, options) {
|
|
782
|
+
return VariantsApiFp(this.configuration).getVariant(requestParameters.project, requestParameters.variantId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
792
783
|
}
|
|
793
784
|
/**
|
|
794
785
|
* Lists all variants that belong to enabled products attached to the given project.
|
|
795
786
|
* @summary List variants
|
|
796
|
-
* @param {
|
|
797
|
-
* @param {string} [search] Search term to filter based on product tags.
|
|
798
|
-
* @param {number} [pageToken] Page reference token
|
|
799
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
800
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
787
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
801
788
|
* @param {*} [options] Override http request option.
|
|
802
789
|
* @throws {RequiredError}
|
|
803
790
|
* @memberof VariantsApi
|
|
804
791
|
*/
|
|
805
|
-
listVariants(
|
|
806
|
-
return VariantsApiFp(this.configuration).listVariants(project, search, pageToken, pageSize, fields, options).then((request) => request(this.axios, this.basePath));
|
|
792
|
+
listVariants(requestParameters, options) {
|
|
793
|
+
return VariantsApiFp(this.configuration).listVariants(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
807
794
|
}
|
|
808
795
|
}
|
package/dist/esm/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/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.16.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.16.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.16.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.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/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.16.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.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/index.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/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.16.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|