@teemill/gfn-catalog 2.0.0 → 2.0.3
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/FILES +0 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/api.ts +352 -106
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +301 -88
- package/dist/api.js +60 -108
- 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 +301 -88
- package/dist/esm/api.js +60 -108
- 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
|
* GFN Catalog API
|
|
6
6
|
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.3
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -135,16 +135,12 @@ const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
135
135
|
/**
|
|
136
136
|
* Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
|
|
137
137
|
* @summary List GFN products
|
|
138
|
-
* @param {
|
|
139
|
-
* @param {number} [pageToken] Page reference token
|
|
140
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
141
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
142
|
-
* @param {string} [search] Search terms to filter based on.
|
|
138
|
+
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
143
139
|
* @param {*} [options] Override http request option.
|
|
144
140
|
* @throws {RequiredError}
|
|
145
141
|
*/
|
|
146
|
-
listProducts(
|
|
147
|
-
return localVarFp.listProducts(project, pageToken, pageSize, fields, search, options).then((request) => request(axios, basePath));
|
|
142
|
+
listProducts(requestParameters, options) {
|
|
143
|
+
return localVarFp.listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
148
144
|
},
|
|
149
145
|
};
|
|
150
146
|
};
|
|
@@ -159,17 +155,13 @@ class ProductsApi extends base_1.BaseAPI {
|
|
|
159
155
|
/**
|
|
160
156
|
* Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
|
|
161
157
|
* @summary List GFN products
|
|
162
|
-
* @param {
|
|
163
|
-
* @param {number} [pageToken] Page reference token
|
|
164
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
165
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
166
|
-
* @param {string} [search] Search terms to filter based on.
|
|
158
|
+
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
167
159
|
* @param {*} [options] Override http request option.
|
|
168
160
|
* @throws {RequiredError}
|
|
169
161
|
* @memberof ProductsApi
|
|
170
162
|
*/
|
|
171
|
-
listProducts(
|
|
172
|
-
return (0, exports.ProductsApiFp)(this.configuration).listProducts(project, pageToken, pageSize, fields, search, options).then((request) => request(this.axios, this.basePath));
|
|
163
|
+
listProducts(requestParameters, options) {
|
|
164
|
+
return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
173
165
|
}
|
|
174
166
|
}
|
|
175
167
|
exports.ProductsApi = ProductsApi;
|
|
@@ -229,7 +221,7 @@ const StatementsApiAxiosParamCreator = function (configuration) {
|
|
|
229
221
|
* @param {*} [options] Override http request option.
|
|
230
222
|
* @throws {RequiredError}
|
|
231
223
|
*/
|
|
232
|
-
listStatements: (
|
|
224
|
+
listStatements: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
|
|
233
225
|
// verify required parameter 'project' is not null or undefined
|
|
234
226
|
(0, common_1.assertParamExists)('listStatements', 'project', project);
|
|
235
227
|
const localVarPath = `/v1/gfn/statements`;
|
|
@@ -326,26 +318,22 @@ const StatementsApiFactory = function (configuration, basePath, axios) {
|
|
|
326
318
|
/**
|
|
327
319
|
* Gets a GFN statement by the given ID.
|
|
328
320
|
* @summary Get a GFN statement
|
|
329
|
-
* @param {
|
|
330
|
-
* @param {string} statementId
|
|
321
|
+
* @param {StatementsApiGetStatementRequest} requestParameters Request parameters.
|
|
331
322
|
* @param {*} [options] Override http request option.
|
|
332
323
|
* @throws {RequiredError}
|
|
333
324
|
*/
|
|
334
|
-
getStatement(
|
|
335
|
-
return localVarFp.getStatement(project, statementId, options).then((request) => request(axios, basePath));
|
|
325
|
+
getStatement(requestParameters, options) {
|
|
326
|
+
return localVarFp.getStatement(requestParameters.project, requestParameters.statementId, options).then((request) => request(axios, basePath));
|
|
336
327
|
},
|
|
337
328
|
/**
|
|
338
329
|
* Lists GFN statements available to the project
|
|
339
330
|
* @summary List GFN statements
|
|
340
|
-
* @param {
|
|
341
|
-
* @param {number} [pageToken] Page reference token
|
|
342
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
343
|
-
* @param {string} [search] Search term used to filter results by
|
|
331
|
+
* @param {StatementsApiListStatementsRequest} requestParameters Request parameters.
|
|
344
332
|
* @param {*} [options] Override http request option.
|
|
345
333
|
* @throws {RequiredError}
|
|
346
334
|
*/
|
|
347
|
-
listStatements(
|
|
348
|
-
return localVarFp.listStatements(project, pageToken, pageSize, search, options).then((request) => request(axios, basePath));
|
|
335
|
+
listStatements(requestParameters, options) {
|
|
336
|
+
return localVarFp.listStatements(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
349
337
|
},
|
|
350
338
|
};
|
|
351
339
|
};
|
|
@@ -360,28 +348,24 @@ class StatementsApi extends base_1.BaseAPI {
|
|
|
360
348
|
/**
|
|
361
349
|
* Gets a GFN statement by the given ID.
|
|
362
350
|
* @summary Get a GFN statement
|
|
363
|
-
* @param {
|
|
364
|
-
* @param {string} statementId
|
|
351
|
+
* @param {StatementsApiGetStatementRequest} requestParameters Request parameters.
|
|
365
352
|
* @param {*} [options] Override http request option.
|
|
366
353
|
* @throws {RequiredError}
|
|
367
354
|
* @memberof StatementsApi
|
|
368
355
|
*/
|
|
369
|
-
getStatement(
|
|
370
|
-
return (0, exports.StatementsApiFp)(this.configuration).getStatement(project, statementId, options).then((request) => request(this.axios, this.basePath));
|
|
356
|
+
getStatement(requestParameters, options) {
|
|
357
|
+
return (0, exports.StatementsApiFp)(this.configuration).getStatement(requestParameters.project, requestParameters.statementId, options).then((request) => request(this.axios, this.basePath));
|
|
371
358
|
}
|
|
372
359
|
/**
|
|
373
360
|
* Lists GFN statements available to the project
|
|
374
361
|
* @summary List GFN statements
|
|
375
|
-
* @param {
|
|
376
|
-
* @param {number} [pageToken] Page reference token
|
|
377
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
378
|
-
* @param {string} [search] Search term used to filter results by
|
|
362
|
+
* @param {StatementsApiListStatementsRequest} requestParameters Request parameters.
|
|
379
363
|
* @param {*} [options] Override http request option.
|
|
380
364
|
* @throws {RequiredError}
|
|
381
365
|
* @memberof StatementsApi
|
|
382
366
|
*/
|
|
383
|
-
listStatements(
|
|
384
|
-
return (0, exports.StatementsApiFp)(this.configuration).listStatements(project, pageToken, pageSize, search, options).then((request) => request(this.axios, this.basePath));
|
|
367
|
+
listStatements(requestParameters, options) {
|
|
368
|
+
return (0, exports.StatementsApiFp)(this.configuration).listStatements(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
385
369
|
}
|
|
386
370
|
}
|
|
387
371
|
exports.StatementsApi = StatementsApi;
|
|
@@ -442,7 +426,7 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
442
426
|
* @param {*} [options] Override http request option.
|
|
443
427
|
* @throws {RequiredError}
|
|
444
428
|
*/
|
|
445
|
-
listTransactions: (
|
|
429
|
+
listTransactions: (project_1, pageToken_1, pageSize_1, statementId_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, statementId_1, ...args_1], void 0, function* (project, pageToken, pageSize, statementId, options = {}) {
|
|
446
430
|
// verify required parameter 'project' is not null or undefined
|
|
447
431
|
(0, common_1.assertParamExists)('listTransactions', 'project', project);
|
|
448
432
|
const localVarPath = `/v1/gfn/transactions`;
|
|
@@ -539,26 +523,22 @@ const TransactionsApiFactory = function (configuration, basePath, axios) {
|
|
|
539
523
|
/**
|
|
540
524
|
* Exports all GFN transactions available to the project
|
|
541
525
|
* @summary Export GFN transactions
|
|
542
|
-
* @param {
|
|
543
|
-
* @param {ExportTransactionsRequest} exportTransactionsRequest Period selection data for the export
|
|
526
|
+
* @param {TransactionsApiExportTransactionsRequest} requestParameters Request parameters.
|
|
544
527
|
* @param {*} [options] Override http request option.
|
|
545
528
|
* @throws {RequiredError}
|
|
546
529
|
*/
|
|
547
|
-
exportTransactions(
|
|
548
|
-
return localVarFp.exportTransactions(project, exportTransactionsRequest, options).then((request) => request(axios, basePath));
|
|
530
|
+
exportTransactions(requestParameters, options) {
|
|
531
|
+
return localVarFp.exportTransactions(requestParameters.project, requestParameters.exportTransactionsRequest, options).then((request) => request(axios, basePath));
|
|
549
532
|
},
|
|
550
533
|
/**
|
|
551
534
|
* Lists all GFN transactions available to the project
|
|
552
535
|
* @summary List GFN transactions
|
|
553
|
-
* @param {
|
|
554
|
-
* @param {number} [pageToken] Page reference token
|
|
555
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
556
|
-
* @param {string} [statementId]
|
|
536
|
+
* @param {TransactionsApiListTransactionsRequest} requestParameters Request parameters.
|
|
557
537
|
* @param {*} [options] Override http request option.
|
|
558
538
|
* @throws {RequiredError}
|
|
559
539
|
*/
|
|
560
|
-
listTransactions(
|
|
561
|
-
return localVarFp.listTransactions(project, pageToken, pageSize, statementId, options).then((request) => request(axios, basePath));
|
|
540
|
+
listTransactions(requestParameters, options) {
|
|
541
|
+
return localVarFp.listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(axios, basePath));
|
|
562
542
|
},
|
|
563
543
|
};
|
|
564
544
|
};
|
|
@@ -573,28 +553,24 @@ class TransactionsApi extends base_1.BaseAPI {
|
|
|
573
553
|
/**
|
|
574
554
|
* Exports all GFN transactions available to the project
|
|
575
555
|
* @summary Export GFN transactions
|
|
576
|
-
* @param {
|
|
577
|
-
* @param {ExportTransactionsRequest} exportTransactionsRequest Period selection data for the export
|
|
556
|
+
* @param {TransactionsApiExportTransactionsRequest} requestParameters Request parameters.
|
|
578
557
|
* @param {*} [options] Override http request option.
|
|
579
558
|
* @throws {RequiredError}
|
|
580
559
|
* @memberof TransactionsApi
|
|
581
560
|
*/
|
|
582
|
-
exportTransactions(
|
|
583
|
-
return (0, exports.TransactionsApiFp)(this.configuration).exportTransactions(project, exportTransactionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
561
|
+
exportTransactions(requestParameters, options) {
|
|
562
|
+
return (0, exports.TransactionsApiFp)(this.configuration).exportTransactions(requestParameters.project, requestParameters.exportTransactionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
584
563
|
}
|
|
585
564
|
/**
|
|
586
565
|
* Lists all GFN transactions available to the project
|
|
587
566
|
* @summary List GFN transactions
|
|
588
|
-
* @param {
|
|
589
|
-
* @param {number} [pageToken] Page reference token
|
|
590
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
591
|
-
* @param {string} [statementId]
|
|
567
|
+
* @param {TransactionsApiListTransactionsRequest} requestParameters Request parameters.
|
|
592
568
|
* @param {*} [options] Override http request option.
|
|
593
569
|
* @throws {RequiredError}
|
|
594
570
|
* @memberof TransactionsApi
|
|
595
571
|
*/
|
|
596
|
-
listTransactions(
|
|
597
|
-
return (0, exports.TransactionsApiFp)(this.configuration).listTransactions(project, pageToken, pageSize, statementId, options).then((request) => request(this.axios, this.basePath));
|
|
572
|
+
listTransactions(requestParameters, options) {
|
|
573
|
+
return (0, exports.TransactionsApiFp)(this.configuration).listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(this.axios, this.basePath));
|
|
598
574
|
}
|
|
599
575
|
}
|
|
600
576
|
exports.TransactionsApi = TransactionsApi;
|
|
@@ -657,7 +633,7 @@ const VariantsApiAxiosParamCreator = function (configuration) {
|
|
|
657
633
|
* @param {*} [options] Override http request option.
|
|
658
634
|
* @throws {RequiredError}
|
|
659
635
|
*/
|
|
660
|
-
getVariant: (
|
|
636
|
+
getVariant: (project_1, variantId_1, fields_1, ...args_1) => __awaiter(this, [project_1, variantId_1, fields_1, ...args_1], void 0, function* (project, variantId, fields, options = {}) {
|
|
661
637
|
// verify required parameter 'project' is not null or undefined
|
|
662
638
|
(0, common_1.assertParamExists)('getVariant', 'project', project);
|
|
663
639
|
// verify required parameter 'variantId' is not null or undefined
|
|
@@ -703,7 +679,7 @@ const VariantsApiAxiosParamCreator = function (configuration) {
|
|
|
703
679
|
* @param {*} [options] Override http request option.
|
|
704
680
|
* @throws {RequiredError}
|
|
705
681
|
*/
|
|
706
|
-
listStock: (
|
|
682
|
+
listStock: (project_1, fulfillmentProjects_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, fulfillmentProjects_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, fulfillmentProjects, pageToken, pageSize, search, options = {}) {
|
|
707
683
|
// verify required parameter 'project' is not null or undefined
|
|
708
684
|
(0, common_1.assertParamExists)('listStock', 'project', project);
|
|
709
685
|
const localVarPath = `/v1/gfn/catalog/stock`;
|
|
@@ -755,7 +731,7 @@ const VariantsApiAxiosParamCreator = function (configuration) {
|
|
|
755
731
|
* @param {*} [options] Override http request option.
|
|
756
732
|
* @throws {RequiredError}
|
|
757
733
|
*/
|
|
758
|
-
listVariants: (
|
|
734
|
+
listVariants: (project_1, pageToken_1, pageSize_1, fields_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, fields_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, fields, search, options = {}) {
|
|
759
735
|
// verify required parameter 'project' is not null or undefined
|
|
760
736
|
(0, common_1.assertParamExists)('listVariants', 'project', project);
|
|
761
737
|
const localVarPath = `/v1/gfn/catalog/variants`;
|
|
@@ -895,54 +871,42 @@ const VariantsApiFactory = function (configuration, basePath, axios) {
|
|
|
895
871
|
/**
|
|
896
872
|
* Gets the stock level for the GFN variant with the given ID.
|
|
897
873
|
* @summary Get GFN variant stock
|
|
898
|
-
* @param {
|
|
899
|
-
* @param {string} variantId Variants unique identifier
|
|
900
|
-
* @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
|
|
874
|
+
* @param {VariantsApiGetStockRequest} requestParameters Request parameters.
|
|
901
875
|
* @param {*} [options] Override http request option.
|
|
902
876
|
* @throws {RequiredError}
|
|
903
877
|
*/
|
|
904
|
-
getStock(
|
|
905
|
-
return localVarFp.getStock(project, variantId, fulfillmentProjects, options).then((request) => request(axios, basePath));
|
|
878
|
+
getStock(requestParameters, options) {
|
|
879
|
+
return localVarFp.getStock(requestParameters.project, requestParameters.variantId, requestParameters.fulfillmentProjects, options).then((request) => request(axios, basePath));
|
|
906
880
|
},
|
|
907
881
|
/**
|
|
908
882
|
* Gets a GFN variant by the given ID.
|
|
909
883
|
* @summary Get a GFN variant
|
|
910
|
-
* @param {
|
|
911
|
-
* @param {string} variantId Variants unique identifier
|
|
912
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
884
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
913
885
|
* @param {*} [options] Override http request option.
|
|
914
886
|
* @throws {RequiredError}
|
|
915
887
|
*/
|
|
916
|
-
getVariant(
|
|
917
|
-
return localVarFp.getVariant(project, variantId, fields, options).then((request) => request(axios, basePath));
|
|
888
|
+
getVariant(requestParameters, options) {
|
|
889
|
+
return localVarFp.getVariant(requestParameters.project, requestParameters.variantId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
918
890
|
},
|
|
919
891
|
/**
|
|
920
892
|
* Lists the stock levels for all GFN variants available to the project.
|
|
921
893
|
* @summary List GFN variant stock
|
|
922
|
-
* @param {
|
|
923
|
-
* @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
|
|
924
|
-
* @param {number} [pageToken] Page reference token
|
|
925
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
926
|
-
* @param {string} [search] Search terms to filter based on.
|
|
894
|
+
* @param {VariantsApiListStockRequest} requestParameters Request parameters.
|
|
927
895
|
* @param {*} [options] Override http request option.
|
|
928
896
|
* @throws {RequiredError}
|
|
929
897
|
*/
|
|
930
|
-
listStock(
|
|
931
|
-
return localVarFp.listStock(project, fulfillmentProjects, pageToken, pageSize, search, options).then((request) => request(axios, basePath));
|
|
898
|
+
listStock(requestParameters, options) {
|
|
899
|
+
return localVarFp.listStock(requestParameters.project, requestParameters.fulfillmentProjects, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
932
900
|
},
|
|
933
901
|
/**
|
|
934
902
|
* Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
|
|
935
903
|
* @summary List GFN variants
|
|
936
|
-
* @param {
|
|
937
|
-
* @param {number} [pageToken] Page reference token
|
|
938
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
939
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
940
|
-
* @param {string} [search] Search terms to filter based on.
|
|
904
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
941
905
|
* @param {*} [options] Override http request option.
|
|
942
906
|
* @throws {RequiredError}
|
|
943
907
|
*/
|
|
944
|
-
listVariants(
|
|
945
|
-
return localVarFp.listVariants(project, pageToken, pageSize, fields, search, options).then((request) => request(axios, basePath));
|
|
908
|
+
listVariants(requestParameters, options) {
|
|
909
|
+
return localVarFp.listVariants(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
946
910
|
},
|
|
947
911
|
};
|
|
948
912
|
};
|
|
@@ -957,58 +921,46 @@ class VariantsApi extends base_1.BaseAPI {
|
|
|
957
921
|
/**
|
|
958
922
|
* Gets the stock level for the GFN variant with the given ID.
|
|
959
923
|
* @summary Get GFN variant stock
|
|
960
|
-
* @param {
|
|
961
|
-
* @param {string} variantId Variants unique identifier
|
|
962
|
-
* @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
|
|
924
|
+
* @param {VariantsApiGetStockRequest} requestParameters Request parameters.
|
|
963
925
|
* @param {*} [options] Override http request option.
|
|
964
926
|
* @throws {RequiredError}
|
|
965
927
|
* @memberof VariantsApi
|
|
966
928
|
*/
|
|
967
|
-
getStock(
|
|
968
|
-
return (0, exports.VariantsApiFp)(this.configuration).getStock(project, variantId, fulfillmentProjects, options).then((request) => request(this.axios, this.basePath));
|
|
929
|
+
getStock(requestParameters, options) {
|
|
930
|
+
return (0, exports.VariantsApiFp)(this.configuration).getStock(requestParameters.project, requestParameters.variantId, requestParameters.fulfillmentProjects, options).then((request) => request(this.axios, this.basePath));
|
|
969
931
|
}
|
|
970
932
|
/**
|
|
971
933
|
* Gets a GFN variant by the given ID.
|
|
972
934
|
* @summary Get a GFN variant
|
|
973
|
-
* @param {
|
|
974
|
-
* @param {string} variantId Variants unique identifier
|
|
975
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
935
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
976
936
|
* @param {*} [options] Override http request option.
|
|
977
937
|
* @throws {RequiredError}
|
|
978
938
|
* @memberof VariantsApi
|
|
979
939
|
*/
|
|
980
|
-
getVariant(
|
|
981
|
-
return (0, exports.VariantsApiFp)(this.configuration).getVariant(project, variantId, fields, options).then((request) => request(this.axios, this.basePath));
|
|
940
|
+
getVariant(requestParameters, options) {
|
|
941
|
+
return (0, exports.VariantsApiFp)(this.configuration).getVariant(requestParameters.project, requestParameters.variantId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
982
942
|
}
|
|
983
943
|
/**
|
|
984
944
|
* Lists the stock levels for all GFN variants available to the project.
|
|
985
945
|
* @summary List GFN variant stock
|
|
986
|
-
* @param {
|
|
987
|
-
* @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
|
|
988
|
-
* @param {number} [pageToken] Page reference token
|
|
989
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
990
|
-
* @param {string} [search] Search terms to filter based on.
|
|
946
|
+
* @param {VariantsApiListStockRequest} requestParameters Request parameters.
|
|
991
947
|
* @param {*} [options] Override http request option.
|
|
992
948
|
* @throws {RequiredError}
|
|
993
949
|
* @memberof VariantsApi
|
|
994
950
|
*/
|
|
995
|
-
listStock(
|
|
996
|
-
return (0, exports.VariantsApiFp)(this.configuration).listStock(project, fulfillmentProjects, pageToken, pageSize, search, options).then((request) => request(this.axios, this.basePath));
|
|
951
|
+
listStock(requestParameters, options) {
|
|
952
|
+
return (0, exports.VariantsApiFp)(this.configuration).listStock(requestParameters.project, requestParameters.fulfillmentProjects, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
997
953
|
}
|
|
998
954
|
/**
|
|
999
955
|
* Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
|
|
1000
956
|
* @summary List GFN variants
|
|
1001
|
-
* @param {
|
|
1002
|
-
* @param {number} [pageToken] Page reference token
|
|
1003
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1004
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
1005
|
-
* @param {string} [search] Search terms to filter based on.
|
|
957
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
1006
958
|
* @param {*} [options] Override http request option.
|
|
1007
959
|
* @throws {RequiredError}
|
|
1008
960
|
* @memberof VariantsApi
|
|
1009
961
|
*/
|
|
1010
|
-
listVariants(
|
|
1011
|
-
return (0, exports.VariantsApiFp)(this.configuration).listVariants(project, pageToken, pageSize, fields, search, options).then((request) => request(this.axios, this.basePath));
|
|
962
|
+
listVariants(requestParameters, options) {
|
|
963
|
+
return (0, exports.VariantsApiFp)(this.configuration).listVariants(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
1012
964
|
}
|
|
1013
965
|
}
|
|
1014
966
|
exports.VariantsApi = VariantsApi;
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GFN Catalog API
|
|
3
3
|
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.3
|
|
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
|
* GFN Catalog API
|
|
6
6
|
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.3
|
|
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
|
* GFN Catalog API
|
|
3
3
|
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.3
|
|
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
|
* GFN Catalog API
|
|
6
6
|
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.3
|
|
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
|
* GFN Catalog API
|
|
3
3
|
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.3
|
|
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
|
* GFN Catalog API
|
|
6
6
|
* Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.3
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|