@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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GFN Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.3
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -130,16 +130,12 @@ export const ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
130
130
|
/**
|
|
131
131
|
* Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
|
|
132
132
|
* @summary List GFN products
|
|
133
|
-
* @param {
|
|
134
|
-
* @param {number} [pageToken] Page reference token
|
|
135
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
136
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
137
|
-
* @param {string} [search] Search terms to filter based on.
|
|
133
|
+
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
138
134
|
* @param {*} [options] Override http request option.
|
|
139
135
|
* @throws {RequiredError}
|
|
140
136
|
*/
|
|
141
|
-
listProducts(
|
|
142
|
-
return localVarFp.listProducts(project, pageToken, pageSize, fields, search, options).then((request) => request(axios, basePath));
|
|
137
|
+
listProducts(requestParameters, options) {
|
|
138
|
+
return localVarFp.listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
143
139
|
},
|
|
144
140
|
};
|
|
145
141
|
};
|
|
@@ -153,17 +149,13 @@ export class ProductsApi extends BaseAPI {
|
|
|
153
149
|
/**
|
|
154
150
|
* Lists all GFN products available to the project. Can be filtered by style codes using the search parameter.
|
|
155
151
|
* @summary List GFN products
|
|
156
|
-
* @param {
|
|
157
|
-
* @param {number} [pageToken] Page reference token
|
|
158
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
159
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
160
|
-
* @param {string} [search] Search terms to filter based on.
|
|
152
|
+
* @param {ProductsApiListProductsRequest} requestParameters Request parameters.
|
|
161
153
|
* @param {*} [options] Override http request option.
|
|
162
154
|
* @throws {RequiredError}
|
|
163
155
|
* @memberof ProductsApi
|
|
164
156
|
*/
|
|
165
|
-
listProducts(
|
|
166
|
-
return ProductsApiFp(this.configuration).listProducts(project, pageToken, pageSize, fields, search, options).then((request) => request(this.axios, this.basePath));
|
|
157
|
+
listProducts(requestParameters, options) {
|
|
158
|
+
return ProductsApiFp(this.configuration).listProducts(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
167
159
|
}
|
|
168
160
|
}
|
|
169
161
|
/**
|
|
@@ -222,7 +214,7 @@ export const StatementsApiAxiosParamCreator = function (configuration) {
|
|
|
222
214
|
* @param {*} [options] Override http request option.
|
|
223
215
|
* @throws {RequiredError}
|
|
224
216
|
*/
|
|
225
|
-
listStatements: (
|
|
217
|
+
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 = {}) {
|
|
226
218
|
// verify required parameter 'project' is not null or undefined
|
|
227
219
|
assertParamExists('listStatements', 'project', project);
|
|
228
220
|
const localVarPath = `/v1/gfn/statements`;
|
|
@@ -317,26 +309,22 @@ export const StatementsApiFactory = function (configuration, basePath, axios) {
|
|
|
317
309
|
/**
|
|
318
310
|
* Gets a GFN statement by the given ID.
|
|
319
311
|
* @summary Get a GFN statement
|
|
320
|
-
* @param {
|
|
321
|
-
* @param {string} statementId
|
|
312
|
+
* @param {StatementsApiGetStatementRequest} requestParameters Request parameters.
|
|
322
313
|
* @param {*} [options] Override http request option.
|
|
323
314
|
* @throws {RequiredError}
|
|
324
315
|
*/
|
|
325
|
-
getStatement(
|
|
326
|
-
return localVarFp.getStatement(project, statementId, options).then((request) => request(axios, basePath));
|
|
316
|
+
getStatement(requestParameters, options) {
|
|
317
|
+
return localVarFp.getStatement(requestParameters.project, requestParameters.statementId, options).then((request) => request(axios, basePath));
|
|
327
318
|
},
|
|
328
319
|
/**
|
|
329
320
|
* Lists GFN statements available to the project
|
|
330
321
|
* @summary List GFN statements
|
|
331
|
-
* @param {
|
|
332
|
-
* @param {number} [pageToken] Page reference token
|
|
333
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
334
|
-
* @param {string} [search] Search term used to filter results by
|
|
322
|
+
* @param {StatementsApiListStatementsRequest} requestParameters Request parameters.
|
|
335
323
|
* @param {*} [options] Override http request option.
|
|
336
324
|
* @throws {RequiredError}
|
|
337
325
|
*/
|
|
338
|
-
listStatements(
|
|
339
|
-
return localVarFp.listStatements(project, pageToken, pageSize, search, options).then((request) => request(axios, basePath));
|
|
326
|
+
listStatements(requestParameters, options) {
|
|
327
|
+
return localVarFp.listStatements(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
340
328
|
},
|
|
341
329
|
};
|
|
342
330
|
};
|
|
@@ -350,28 +338,24 @@ export class StatementsApi extends BaseAPI {
|
|
|
350
338
|
/**
|
|
351
339
|
* Gets a GFN statement by the given ID.
|
|
352
340
|
* @summary Get a GFN statement
|
|
353
|
-
* @param {
|
|
354
|
-
* @param {string} statementId
|
|
341
|
+
* @param {StatementsApiGetStatementRequest} requestParameters Request parameters.
|
|
355
342
|
* @param {*} [options] Override http request option.
|
|
356
343
|
* @throws {RequiredError}
|
|
357
344
|
* @memberof StatementsApi
|
|
358
345
|
*/
|
|
359
|
-
getStatement(
|
|
360
|
-
return StatementsApiFp(this.configuration).getStatement(project, statementId, options).then((request) => request(this.axios, this.basePath));
|
|
346
|
+
getStatement(requestParameters, options) {
|
|
347
|
+
return StatementsApiFp(this.configuration).getStatement(requestParameters.project, requestParameters.statementId, options).then((request) => request(this.axios, this.basePath));
|
|
361
348
|
}
|
|
362
349
|
/**
|
|
363
350
|
* Lists GFN statements available to the project
|
|
364
351
|
* @summary List GFN statements
|
|
365
|
-
* @param {
|
|
366
|
-
* @param {number} [pageToken] Page reference token
|
|
367
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
368
|
-
* @param {string} [search] Search term used to filter results by
|
|
352
|
+
* @param {StatementsApiListStatementsRequest} requestParameters Request parameters.
|
|
369
353
|
* @param {*} [options] Override http request option.
|
|
370
354
|
* @throws {RequiredError}
|
|
371
355
|
* @memberof StatementsApi
|
|
372
356
|
*/
|
|
373
|
-
listStatements(
|
|
374
|
-
return StatementsApiFp(this.configuration).listStatements(project, pageToken, pageSize, search, options).then((request) => request(this.axios, this.basePath));
|
|
357
|
+
listStatements(requestParameters, options) {
|
|
358
|
+
return StatementsApiFp(this.configuration).listStatements(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
375
359
|
}
|
|
376
360
|
}
|
|
377
361
|
/**
|
|
@@ -431,7 +415,7 @@ export const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
431
415
|
* @param {*} [options] Override http request option.
|
|
432
416
|
* @throws {RequiredError}
|
|
433
417
|
*/
|
|
434
|
-
listTransactions: (
|
|
418
|
+
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 = {}) {
|
|
435
419
|
// verify required parameter 'project' is not null or undefined
|
|
436
420
|
assertParamExists('listTransactions', 'project', project);
|
|
437
421
|
const localVarPath = `/v1/gfn/transactions`;
|
|
@@ -526,26 +510,22 @@ export const TransactionsApiFactory = function (configuration, basePath, axios)
|
|
|
526
510
|
/**
|
|
527
511
|
* Exports all GFN transactions available to the project
|
|
528
512
|
* @summary Export GFN transactions
|
|
529
|
-
* @param {
|
|
530
|
-
* @param {ExportTransactionsRequest} exportTransactionsRequest Period selection data for the export
|
|
513
|
+
* @param {TransactionsApiExportTransactionsRequest} requestParameters Request parameters.
|
|
531
514
|
* @param {*} [options] Override http request option.
|
|
532
515
|
* @throws {RequiredError}
|
|
533
516
|
*/
|
|
534
|
-
exportTransactions(
|
|
535
|
-
return localVarFp.exportTransactions(project, exportTransactionsRequest, options).then((request) => request(axios, basePath));
|
|
517
|
+
exportTransactions(requestParameters, options) {
|
|
518
|
+
return localVarFp.exportTransactions(requestParameters.project, requestParameters.exportTransactionsRequest, options).then((request) => request(axios, basePath));
|
|
536
519
|
},
|
|
537
520
|
/**
|
|
538
521
|
* Lists all GFN transactions available to the project
|
|
539
522
|
* @summary List GFN transactions
|
|
540
|
-
* @param {
|
|
541
|
-
* @param {number} [pageToken] Page reference token
|
|
542
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
543
|
-
* @param {string} [statementId]
|
|
523
|
+
* @param {TransactionsApiListTransactionsRequest} requestParameters Request parameters.
|
|
544
524
|
* @param {*} [options] Override http request option.
|
|
545
525
|
* @throws {RequiredError}
|
|
546
526
|
*/
|
|
547
|
-
listTransactions(
|
|
548
|
-
return localVarFp.listTransactions(project, pageToken, pageSize, statementId, options).then((request) => request(axios, basePath));
|
|
527
|
+
listTransactions(requestParameters, options) {
|
|
528
|
+
return localVarFp.listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(axios, basePath));
|
|
549
529
|
},
|
|
550
530
|
};
|
|
551
531
|
};
|
|
@@ -559,28 +539,24 @@ export class TransactionsApi extends BaseAPI {
|
|
|
559
539
|
/**
|
|
560
540
|
* Exports all GFN transactions available to the project
|
|
561
541
|
* @summary Export GFN transactions
|
|
562
|
-
* @param {
|
|
563
|
-
* @param {ExportTransactionsRequest} exportTransactionsRequest Period selection data for the export
|
|
542
|
+
* @param {TransactionsApiExportTransactionsRequest} requestParameters Request parameters.
|
|
564
543
|
* @param {*} [options] Override http request option.
|
|
565
544
|
* @throws {RequiredError}
|
|
566
545
|
* @memberof TransactionsApi
|
|
567
546
|
*/
|
|
568
|
-
exportTransactions(
|
|
569
|
-
return TransactionsApiFp(this.configuration).exportTransactions(project, exportTransactionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
547
|
+
exportTransactions(requestParameters, options) {
|
|
548
|
+
return TransactionsApiFp(this.configuration).exportTransactions(requestParameters.project, requestParameters.exportTransactionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
570
549
|
}
|
|
571
550
|
/**
|
|
572
551
|
* Lists all GFN transactions available to the project
|
|
573
552
|
* @summary List GFN transactions
|
|
574
|
-
* @param {
|
|
575
|
-
* @param {number} [pageToken] Page reference token
|
|
576
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
577
|
-
* @param {string} [statementId]
|
|
553
|
+
* @param {TransactionsApiListTransactionsRequest} requestParameters Request parameters.
|
|
578
554
|
* @param {*} [options] Override http request option.
|
|
579
555
|
* @throws {RequiredError}
|
|
580
556
|
* @memberof TransactionsApi
|
|
581
557
|
*/
|
|
582
|
-
listTransactions(
|
|
583
|
-
return TransactionsApiFp(this.configuration).listTransactions(project, pageToken, pageSize, statementId, options).then((request) => request(this.axios, this.basePath));
|
|
558
|
+
listTransactions(requestParameters, options) {
|
|
559
|
+
return TransactionsApiFp(this.configuration).listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(this.axios, this.basePath));
|
|
584
560
|
}
|
|
585
561
|
}
|
|
586
562
|
/**
|
|
@@ -642,7 +618,7 @@ export const VariantsApiAxiosParamCreator = function (configuration) {
|
|
|
642
618
|
* @param {*} [options] Override http request option.
|
|
643
619
|
* @throws {RequiredError}
|
|
644
620
|
*/
|
|
645
|
-
getVariant: (
|
|
621
|
+
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 = {}) {
|
|
646
622
|
// verify required parameter 'project' is not null or undefined
|
|
647
623
|
assertParamExists('getVariant', 'project', project);
|
|
648
624
|
// verify required parameter 'variantId' is not null or undefined
|
|
@@ -688,7 +664,7 @@ export const VariantsApiAxiosParamCreator = function (configuration) {
|
|
|
688
664
|
* @param {*} [options] Override http request option.
|
|
689
665
|
* @throws {RequiredError}
|
|
690
666
|
*/
|
|
691
|
-
listStock: (
|
|
667
|
+
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 = {}) {
|
|
692
668
|
// verify required parameter 'project' is not null or undefined
|
|
693
669
|
assertParamExists('listStock', 'project', project);
|
|
694
670
|
const localVarPath = `/v1/gfn/catalog/stock`;
|
|
@@ -740,7 +716,7 @@ export const VariantsApiAxiosParamCreator = function (configuration) {
|
|
|
740
716
|
* @param {*} [options] Override http request option.
|
|
741
717
|
* @throws {RequiredError}
|
|
742
718
|
*/
|
|
743
|
-
listVariants: (
|
|
719
|
+
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 = {}) {
|
|
744
720
|
// verify required parameter 'project' is not null or undefined
|
|
745
721
|
assertParamExists('listVariants', 'project', project);
|
|
746
722
|
const localVarPath = `/v1/gfn/catalog/variants`;
|
|
@@ -878,54 +854,42 @@ export const VariantsApiFactory = function (configuration, basePath, axios) {
|
|
|
878
854
|
/**
|
|
879
855
|
* Gets the stock level for the GFN variant with the given ID.
|
|
880
856
|
* @summary Get GFN variant stock
|
|
881
|
-
* @param {
|
|
882
|
-
* @param {string} variantId Variants unique identifier
|
|
883
|
-
* @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
|
|
857
|
+
* @param {VariantsApiGetStockRequest} requestParameters Request parameters.
|
|
884
858
|
* @param {*} [options] Override http request option.
|
|
885
859
|
* @throws {RequiredError}
|
|
886
860
|
*/
|
|
887
|
-
getStock(
|
|
888
|
-
return localVarFp.getStock(project, variantId, fulfillmentProjects, options).then((request) => request(axios, basePath));
|
|
861
|
+
getStock(requestParameters, options) {
|
|
862
|
+
return localVarFp.getStock(requestParameters.project, requestParameters.variantId, requestParameters.fulfillmentProjects, options).then((request) => request(axios, basePath));
|
|
889
863
|
},
|
|
890
864
|
/**
|
|
891
865
|
* Gets a GFN variant by the given ID.
|
|
892
866
|
* @summary Get a GFN variant
|
|
893
|
-
* @param {
|
|
894
|
-
* @param {string} variantId Variants unique identifier
|
|
895
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
867
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
896
868
|
* @param {*} [options] Override http request option.
|
|
897
869
|
* @throws {RequiredError}
|
|
898
870
|
*/
|
|
899
|
-
getVariant(
|
|
900
|
-
return localVarFp.getVariant(project, variantId, fields, options).then((request) => request(axios, basePath));
|
|
871
|
+
getVariant(requestParameters, options) {
|
|
872
|
+
return localVarFp.getVariant(requestParameters.project, requestParameters.variantId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
901
873
|
},
|
|
902
874
|
/**
|
|
903
875
|
* Lists the stock levels for all GFN variants available to the project.
|
|
904
876
|
* @summary List GFN variant stock
|
|
905
|
-
* @param {
|
|
906
|
-
* @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
|
|
907
|
-
* @param {number} [pageToken] Page reference token
|
|
908
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
909
|
-
* @param {string} [search] Search terms to filter based on.
|
|
877
|
+
* @param {VariantsApiListStockRequest} requestParameters Request parameters.
|
|
910
878
|
* @param {*} [options] Override http request option.
|
|
911
879
|
* @throws {RequiredError}
|
|
912
880
|
*/
|
|
913
|
-
listStock(
|
|
914
|
-
return localVarFp.listStock(project, fulfillmentProjects, pageToken, pageSize, search, options).then((request) => request(axios, basePath));
|
|
881
|
+
listStock(requestParameters, options) {
|
|
882
|
+
return localVarFp.listStock(requestParameters.project, requestParameters.fulfillmentProjects, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
915
883
|
},
|
|
916
884
|
/**
|
|
917
885
|
* Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
|
|
918
886
|
* @summary List GFN variants
|
|
919
|
-
* @param {
|
|
920
|
-
* @param {number} [pageToken] Page reference token
|
|
921
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
922
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
923
|
-
* @param {string} [search] Search terms to filter based on.
|
|
887
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
924
888
|
* @param {*} [options] Override http request option.
|
|
925
889
|
* @throws {RequiredError}
|
|
926
890
|
*/
|
|
927
|
-
listVariants(
|
|
928
|
-
return localVarFp.listVariants(project, pageToken, pageSize, fields, search, options).then((request) => request(axios, basePath));
|
|
891
|
+
listVariants(requestParameters, options) {
|
|
892
|
+
return localVarFp.listVariants(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
929
893
|
},
|
|
930
894
|
};
|
|
931
895
|
};
|
|
@@ -939,57 +903,45 @@ export class VariantsApi extends BaseAPI {
|
|
|
939
903
|
/**
|
|
940
904
|
* Gets the stock level for the GFN variant with the given ID.
|
|
941
905
|
* @summary Get GFN variant stock
|
|
942
|
-
* @param {
|
|
943
|
-
* @param {string} variantId Variants unique identifier
|
|
944
|
-
* @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
|
|
906
|
+
* @param {VariantsApiGetStockRequest} requestParameters Request parameters.
|
|
945
907
|
* @param {*} [options] Override http request option.
|
|
946
908
|
* @throws {RequiredError}
|
|
947
909
|
* @memberof VariantsApi
|
|
948
910
|
*/
|
|
949
|
-
getStock(
|
|
950
|
-
return VariantsApiFp(this.configuration).getStock(project, variantId, fulfillmentProjects, options).then((request) => request(this.axios, this.basePath));
|
|
911
|
+
getStock(requestParameters, options) {
|
|
912
|
+
return VariantsApiFp(this.configuration).getStock(requestParameters.project, requestParameters.variantId, requestParameters.fulfillmentProjects, options).then((request) => request(this.axios, this.basePath));
|
|
951
913
|
}
|
|
952
914
|
/**
|
|
953
915
|
* Gets a GFN variant by the given ID.
|
|
954
916
|
* @summary Get a GFN variant
|
|
955
|
-
* @param {
|
|
956
|
-
* @param {string} variantId Variants unique identifier
|
|
957
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
917
|
+
* @param {VariantsApiGetVariantRequest} requestParameters Request parameters.
|
|
958
918
|
* @param {*} [options] Override http request option.
|
|
959
919
|
* @throws {RequiredError}
|
|
960
920
|
* @memberof VariantsApi
|
|
961
921
|
*/
|
|
962
|
-
getVariant(
|
|
963
|
-
return VariantsApiFp(this.configuration).getVariant(project, variantId, fields, options).then((request) => request(this.axios, this.basePath));
|
|
922
|
+
getVariant(requestParameters, options) {
|
|
923
|
+
return VariantsApiFp(this.configuration).getVariant(requestParameters.project, requestParameters.variantId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
964
924
|
}
|
|
965
925
|
/**
|
|
966
926
|
* Lists the stock levels for all GFN variants available to the project.
|
|
967
927
|
* @summary List GFN variant stock
|
|
968
|
-
* @param {
|
|
969
|
-
* @param {string} [fulfillmentProjects] Fetch stock levels from specific fulfiller projects
|
|
970
|
-
* @param {number} [pageToken] Page reference token
|
|
971
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
972
|
-
* @param {string} [search] Search terms to filter based on.
|
|
928
|
+
* @param {VariantsApiListStockRequest} requestParameters Request parameters.
|
|
973
929
|
* @param {*} [options] Override http request option.
|
|
974
930
|
* @throws {RequiredError}
|
|
975
931
|
* @memberof VariantsApi
|
|
976
932
|
*/
|
|
977
|
-
listStock(
|
|
978
|
-
return VariantsApiFp(this.configuration).listStock(project, fulfillmentProjects, pageToken, pageSize, search, options).then((request) => request(this.axios, this.basePath));
|
|
933
|
+
listStock(requestParameters, options) {
|
|
934
|
+
return VariantsApiFp(this.configuration).listStock(requestParameters.project, requestParameters.fulfillmentProjects, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
979
935
|
}
|
|
980
936
|
/**
|
|
981
937
|
* Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
|
|
982
938
|
* @summary List GFN variants
|
|
983
|
-
* @param {
|
|
984
|
-
* @param {number} [pageToken] Page reference token
|
|
985
|
-
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
986
|
-
* @param {string} [fields] Filter response fields to only include a subset of the resource.
|
|
987
|
-
* @param {string} [search] Search terms to filter based on.
|
|
939
|
+
* @param {VariantsApiListVariantsRequest} requestParameters Request parameters.
|
|
988
940
|
* @param {*} [options] Override http request option.
|
|
989
941
|
* @throws {RequiredError}
|
|
990
942
|
* @memberof VariantsApi
|
|
991
943
|
*/
|
|
992
|
-
listVariants(
|
|
993
|
-
return VariantsApiFp(this.configuration).listVariants(project, pageToken, pageSize, fields, search, options).then((request) => request(this.axios, this.basePath));
|
|
944
|
+
listVariants(requestParameters, options) {
|
|
945
|
+
return VariantsApiFp(this.configuration).listVariants(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.fields, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
994
946
|
}
|
|
995
947
|
}
|
package/dist/esm/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/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GFN Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.3
|
|
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
|
* 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/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GFN Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.3
|
|
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
|
* 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).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GFN Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.3
|
|
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
|
* 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/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GFN Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.3
|
|
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
|
* 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/index.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/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* GFN Catalog API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.3
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|