@teemill/gfn-catalog 2.2.0 → 3.1.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/README.md +2 -2
- package/api.ts +187 -11
- package/base.ts +4 -4
- package/common.ts +3 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +125 -11
- package/dist/api.js +91 -3
- package/dist/base.d.ts +3 -3
- package/dist/base.js +4 -4
- package/dist/common.d.ts +3 -3
- package/dist/common.js +3 -3
- package/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +125 -11
- package/dist/esm/api.js +91 -3
- package/dist/esm/base.d.ts +3 -3
- package/dist/esm/base.js +4 -4
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +3 -3
- package/dist/esm/configuration.d.ts +3 -3
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/index.ts +3 -3
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* GFN Catalog API
|
|
6
|
-
* Use this API to access the Global
|
|
6
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 3.1.0
|
|
7
9
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.2.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -421,6 +421,54 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
421
421
|
options: localVarRequestOptions,
|
|
422
422
|
};
|
|
423
423
|
}),
|
|
424
|
+
/**
|
|
425
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
426
|
+
* @summary Lists the GFN fulfillments of the project
|
|
427
|
+
* @param {string} project What project it is
|
|
428
|
+
* @param {number} [pageToken] Page reference token
|
|
429
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
430
|
+
* @param {string} [statementId]
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
listFulfillments: (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
|
+
// verify required parameter 'project' is not null or undefined
|
|
436
|
+
(0, common_1.assertParamExists)('listFulfillments', 'project', project);
|
|
437
|
+
const localVarPath = `/v1/gfn/transactions/fulfillments`;
|
|
438
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
439
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
440
|
+
let baseOptions;
|
|
441
|
+
if (configuration) {
|
|
442
|
+
baseOptions = configuration.baseOptions;
|
|
443
|
+
}
|
|
444
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
445
|
+
const localVarHeaderParameter = {};
|
|
446
|
+
const localVarQueryParameter = {};
|
|
447
|
+
// authentication session-oauth required
|
|
448
|
+
// oauth required
|
|
449
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
450
|
+
// authentication api-key required
|
|
451
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
452
|
+
if (project !== undefined) {
|
|
453
|
+
localVarQueryParameter['project'] = project;
|
|
454
|
+
}
|
|
455
|
+
if (pageToken !== undefined) {
|
|
456
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
457
|
+
}
|
|
458
|
+
if (pageSize !== undefined) {
|
|
459
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
460
|
+
}
|
|
461
|
+
if (statementId !== undefined) {
|
|
462
|
+
localVarQueryParameter['statementId'] = statementId;
|
|
463
|
+
}
|
|
464
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
465
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
466
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
467
|
+
return {
|
|
468
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
469
|
+
options: localVarRequestOptions,
|
|
470
|
+
};
|
|
471
|
+
}),
|
|
424
472
|
/**
|
|
425
473
|
* Lists all GFN transactions available to the project
|
|
426
474
|
* @summary List GFN transactions
|
|
@@ -504,6 +552,25 @@ const TransactionsApiFp = function (configuration) {
|
|
|
504
552
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
505
553
|
});
|
|
506
554
|
},
|
|
555
|
+
/**
|
|
556
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
557
|
+
* @summary Lists the GFN fulfillments of the project
|
|
558
|
+
* @param {string} project What project it is
|
|
559
|
+
* @param {number} [pageToken] Page reference token
|
|
560
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
561
|
+
* @param {string} [statementId]
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
*/
|
|
565
|
+
listFulfillments(project, pageToken, pageSize, statementId, options) {
|
|
566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
567
|
+
var _a, _b, _c;
|
|
568
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFulfillments(project, pageToken, pageSize, statementId, options);
|
|
569
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
570
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TransactionsApi.listFulfillments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
571
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
572
|
+
});
|
|
573
|
+
},
|
|
507
574
|
/**
|
|
508
575
|
* Lists all GFN transactions available to the project
|
|
509
576
|
* @summary List GFN transactions
|
|
@@ -545,6 +612,16 @@ const TransactionsApiFactory = function (configuration, basePath, axios) {
|
|
|
545
612
|
exportTransactions(requestParameters, options) {
|
|
546
613
|
return localVarFp.exportTransactions(requestParameters.project, requestParameters.exportTransactionsRequest, options).then((request) => request(axios, basePath));
|
|
547
614
|
},
|
|
615
|
+
/**
|
|
616
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
617
|
+
* @summary Lists the GFN fulfillments of the project
|
|
618
|
+
* @param {TransactionsApiListFulfillmentsRequest} requestParameters Request parameters.
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
*/
|
|
622
|
+
listFulfillments(requestParameters, options) {
|
|
623
|
+
return localVarFp.listFulfillments(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(axios, basePath));
|
|
624
|
+
},
|
|
548
625
|
/**
|
|
549
626
|
* Lists all GFN transactions available to the project
|
|
550
627
|
* @summary List GFN transactions
|
|
@@ -576,6 +653,17 @@ class TransactionsApi extends base_1.BaseAPI {
|
|
|
576
653
|
exportTransactions(requestParameters, options) {
|
|
577
654
|
return (0, exports.TransactionsApiFp)(this.configuration).exportTransactions(requestParameters.project, requestParameters.exportTransactionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
578
655
|
}
|
|
656
|
+
/**
|
|
657
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
658
|
+
* @summary Lists the GFN fulfillments of the project
|
|
659
|
+
* @param {TransactionsApiListFulfillmentsRequest} requestParameters Request parameters.
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
* @memberof TransactionsApi
|
|
663
|
+
*/
|
|
664
|
+
listFulfillments(requestParameters, options) {
|
|
665
|
+
return (0, exports.TransactionsApiFp)(this.configuration).listFulfillments(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(this.axios, this.basePath));
|
|
666
|
+
}
|
|
579
667
|
/**
|
|
580
668
|
* Lists all GFN transactions available to the project
|
|
581
669
|
* @summary List GFN transactions
|
package/dist/base.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GFN Catalog API
|
|
3
|
-
* Use this API to access the Global
|
|
3
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.1.0
|
|
4
6
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.2.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/base.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* GFN Catalog API
|
|
6
|
-
* Use this API to access the Global
|
|
6
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 3.1.0
|
|
7
9
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.2.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
|
-
exports.BASE_PATH = "https://api.
|
|
18
|
+
exports.BASE_PATH = "https://api.podos.io".replace(/\/+$/, "");
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @export
|
package/dist/common.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GFN Catalog API
|
|
3
|
-
* Use this API to access the Global
|
|
3
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.1.0
|
|
4
6
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.2.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/common.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* GFN Catalog API
|
|
6
|
-
* Use this API to access the Global
|
|
6
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 3.1.0
|
|
7
9
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.2.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GFN Catalog API
|
|
3
|
-
* Use this API to access the Global
|
|
3
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.1.0
|
|
4
6
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.2.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/configuration.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* GFN Catalog API
|
|
6
|
-
* Use this API to access the Global
|
|
6
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 3.1.0
|
|
7
9
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.2.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GFN Catalog API
|
|
3
|
-
* Use this API to access the Global
|
|
3
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.1.0
|
|
4
6
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.2.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -116,23 +116,42 @@ export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof
|
|
|
116
116
|
*/
|
|
117
117
|
export interface ExportTransactionsRequest {
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Include only transactions from this statement
|
|
120
120
|
* @type {string}
|
|
121
121
|
* @memberof ExportTransactionsRequest
|
|
122
122
|
*/
|
|
123
|
-
'
|
|
123
|
+
'statement'?: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @export
|
|
128
|
+
* @interface Fulfillment
|
|
129
|
+
*/
|
|
130
|
+
export interface Fulfillment {
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {number}
|
|
134
|
+
* @memberof Fulfillment
|
|
135
|
+
*/
|
|
136
|
+
'id': number;
|
|
124
137
|
/**
|
|
125
|
-
*
|
|
138
|
+
*
|
|
126
139
|
* @type {string}
|
|
127
|
-
* @memberof
|
|
140
|
+
* @memberof Fulfillment
|
|
128
141
|
*/
|
|
129
|
-
'
|
|
142
|
+
'merchantRef': string;
|
|
130
143
|
/**
|
|
131
|
-
*
|
|
144
|
+
*
|
|
145
|
+
* @type {number}
|
|
146
|
+
* @memberof Fulfillment
|
|
147
|
+
*/
|
|
148
|
+
'total': number;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
132
151
|
* @type {string}
|
|
133
|
-
* @memberof
|
|
152
|
+
* @memberof Fulfillment
|
|
134
153
|
*/
|
|
135
|
-
'
|
|
154
|
+
'createdAt': string;
|
|
136
155
|
}
|
|
137
156
|
/**
|
|
138
157
|
* Image description
|
|
@@ -183,6 +202,25 @@ export interface Image {
|
|
|
183
202
|
*/
|
|
184
203
|
'updatedAt'?: string;
|
|
185
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
*
|
|
207
|
+
* @export
|
|
208
|
+
* @interface ListFulfillments200Response
|
|
209
|
+
*/
|
|
210
|
+
export interface ListFulfillments200Response {
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @type {Array<Fulfillment>}
|
|
214
|
+
* @memberof ListFulfillments200Response
|
|
215
|
+
*/
|
|
216
|
+
'fulfillments'?: Array<Fulfillment>;
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* @type {number}
|
|
220
|
+
* @memberof ListFulfillments200Response
|
|
221
|
+
*/
|
|
222
|
+
'nextPageToken'?: number | null;
|
|
223
|
+
}
|
|
186
224
|
/**
|
|
187
225
|
*
|
|
188
226
|
* @export
|
|
@@ -337,6 +375,12 @@ export interface Statement {
|
|
|
337
375
|
* @memberof Statement
|
|
338
376
|
*/
|
|
339
377
|
'fulfillmentCount': number;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @type {string}
|
|
381
|
+
* @memberof Statement
|
|
382
|
+
*/
|
|
383
|
+
'issuedAt'?: string;
|
|
340
384
|
}
|
|
341
385
|
/**
|
|
342
386
|
*
|
|
@@ -848,6 +892,17 @@ export declare const TransactionsApiAxiosParamCreator: (configuration?: Configur
|
|
|
848
892
|
* @throws {RequiredError}
|
|
849
893
|
*/
|
|
850
894
|
exportTransactions: (project: string, exportTransactionsRequest: ExportTransactionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
895
|
+
/**
|
|
896
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
897
|
+
* @summary Lists the GFN fulfillments of the project
|
|
898
|
+
* @param {string} project What project it is
|
|
899
|
+
* @param {number} [pageToken] Page reference token
|
|
900
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
901
|
+
* @param {string} [statementId]
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
listFulfillments: (project: string, pageToken?: number, pageSize?: number, statementId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
851
906
|
/**
|
|
852
907
|
* Lists all GFN transactions available to the project
|
|
853
908
|
* @summary List GFN transactions
|
|
@@ -876,6 +931,17 @@ export declare const TransactionsApiFp: (configuration?: Configuration) => {
|
|
|
876
931
|
* @throws {RequiredError}
|
|
877
932
|
*/
|
|
878
933
|
exportTransactions(project: string, exportTransactionsRequest: ExportTransactionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
934
|
+
/**
|
|
935
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
936
|
+
* @summary Lists the GFN fulfillments of the project
|
|
937
|
+
* @param {string} project What project it is
|
|
938
|
+
* @param {number} [pageToken] Page reference token
|
|
939
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
940
|
+
* @param {string} [statementId]
|
|
941
|
+
* @param {*} [options] Override http request option.
|
|
942
|
+
* @throws {RequiredError}
|
|
943
|
+
*/
|
|
944
|
+
listFulfillments(project: string, pageToken?: number, pageSize?: number, statementId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFulfillments200Response>>;
|
|
879
945
|
/**
|
|
880
946
|
* Lists all GFN transactions available to the project
|
|
881
947
|
* @summary List GFN transactions
|
|
@@ -903,6 +969,14 @@ export declare const TransactionsApiFactory: (configuration?: Configuration, bas
|
|
|
903
969
|
* @throws {RequiredError}
|
|
904
970
|
*/
|
|
905
971
|
exportTransactions(requestParameters: TransactionsApiExportTransactionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
972
|
+
/**
|
|
973
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
974
|
+
* @summary Lists the GFN fulfillments of the project
|
|
975
|
+
* @param {TransactionsApiListFulfillmentsRequest} requestParameters Request parameters.
|
|
976
|
+
* @param {*} [options] Override http request option.
|
|
977
|
+
* @throws {RequiredError}
|
|
978
|
+
*/
|
|
979
|
+
listFulfillments(requestParameters: TransactionsApiListFulfillmentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListFulfillments200Response>;
|
|
906
980
|
/**
|
|
907
981
|
* Lists all GFN transactions available to the project
|
|
908
982
|
* @summary List GFN transactions
|
|
@@ -931,6 +1005,37 @@ export interface TransactionsApiExportTransactionsRequest {
|
|
|
931
1005
|
*/
|
|
932
1006
|
readonly exportTransactionsRequest: ExportTransactionsRequest;
|
|
933
1007
|
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Request parameters for listFulfillments operation in TransactionsApi.
|
|
1010
|
+
* @export
|
|
1011
|
+
* @interface TransactionsApiListFulfillmentsRequest
|
|
1012
|
+
*/
|
|
1013
|
+
export interface TransactionsApiListFulfillmentsRequest {
|
|
1014
|
+
/**
|
|
1015
|
+
* What project it is
|
|
1016
|
+
* @type {string}
|
|
1017
|
+
* @memberof TransactionsApiListFulfillments
|
|
1018
|
+
*/
|
|
1019
|
+
readonly project: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* Page reference token
|
|
1022
|
+
* @type {number}
|
|
1023
|
+
* @memberof TransactionsApiListFulfillments
|
|
1024
|
+
*/
|
|
1025
|
+
readonly pageToken?: number;
|
|
1026
|
+
/**
|
|
1027
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1028
|
+
* @type {number}
|
|
1029
|
+
* @memberof TransactionsApiListFulfillments
|
|
1030
|
+
*/
|
|
1031
|
+
readonly pageSize?: number;
|
|
1032
|
+
/**
|
|
1033
|
+
*
|
|
1034
|
+
* @type {string}
|
|
1035
|
+
* @memberof TransactionsApiListFulfillments
|
|
1036
|
+
*/
|
|
1037
|
+
readonly statementId?: string;
|
|
1038
|
+
}
|
|
934
1039
|
/**
|
|
935
1040
|
* Request parameters for listTransactions operation in TransactionsApi.
|
|
936
1041
|
* @export
|
|
@@ -990,6 +1095,15 @@ export declare class TransactionsApi extends BaseAPI {
|
|
|
990
1095
|
* @memberof TransactionsApi
|
|
991
1096
|
*/
|
|
992
1097
|
exportTransactions(requestParameters: TransactionsApiExportTransactionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
1098
|
+
/**
|
|
1099
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
1100
|
+
* @summary Lists the GFN fulfillments of the project
|
|
1101
|
+
* @param {TransactionsApiListFulfillmentsRequest} requestParameters Request parameters.
|
|
1102
|
+
* @param {*} [options] Override http request option.
|
|
1103
|
+
* @throws {RequiredError}
|
|
1104
|
+
* @memberof TransactionsApi
|
|
1105
|
+
*/
|
|
1106
|
+
listFulfillments(requestParameters: TransactionsApiListFulfillmentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFulfillments200Response, any>>;
|
|
993
1107
|
/**
|
|
994
1108
|
* Lists all GFN transactions available to the project
|
|
995
1109
|
* @summary List GFN transactions
|
package/dist/esm/api.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GFN Catalog API
|
|
5
|
-
* Use this API to access the Global
|
|
5
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.1.0
|
|
6
8
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.2.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -410,6 +410,54 @@ export const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
410
410
|
options: localVarRequestOptions,
|
|
411
411
|
};
|
|
412
412
|
}),
|
|
413
|
+
/**
|
|
414
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
415
|
+
* @summary Lists the GFN fulfillments of the project
|
|
416
|
+
* @param {string} project What project it is
|
|
417
|
+
* @param {number} [pageToken] Page reference token
|
|
418
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
419
|
+
* @param {string} [statementId]
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
listFulfillments: (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 = {}) {
|
|
424
|
+
// verify required parameter 'project' is not null or undefined
|
|
425
|
+
assertParamExists('listFulfillments', 'project', project);
|
|
426
|
+
const localVarPath = `/v1/gfn/transactions/fulfillments`;
|
|
427
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
428
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
429
|
+
let baseOptions;
|
|
430
|
+
if (configuration) {
|
|
431
|
+
baseOptions = configuration.baseOptions;
|
|
432
|
+
}
|
|
433
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
434
|
+
const localVarHeaderParameter = {};
|
|
435
|
+
const localVarQueryParameter = {};
|
|
436
|
+
// authentication session-oauth required
|
|
437
|
+
// oauth required
|
|
438
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
439
|
+
// authentication api-key required
|
|
440
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
441
|
+
if (project !== undefined) {
|
|
442
|
+
localVarQueryParameter['project'] = project;
|
|
443
|
+
}
|
|
444
|
+
if (pageToken !== undefined) {
|
|
445
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
446
|
+
}
|
|
447
|
+
if (pageSize !== undefined) {
|
|
448
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
449
|
+
}
|
|
450
|
+
if (statementId !== undefined) {
|
|
451
|
+
localVarQueryParameter['statementId'] = statementId;
|
|
452
|
+
}
|
|
453
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
454
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
455
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
456
|
+
return {
|
|
457
|
+
url: toPathString(localVarUrlObj),
|
|
458
|
+
options: localVarRequestOptions,
|
|
459
|
+
};
|
|
460
|
+
}),
|
|
413
461
|
/**
|
|
414
462
|
* Lists all GFN transactions available to the project
|
|
415
463
|
* @summary List GFN transactions
|
|
@@ -492,6 +540,25 @@ export const TransactionsApiFp = function (configuration) {
|
|
|
492
540
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
493
541
|
});
|
|
494
542
|
},
|
|
543
|
+
/**
|
|
544
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
545
|
+
* @summary Lists the GFN fulfillments of the project
|
|
546
|
+
* @param {string} project What project it is
|
|
547
|
+
* @param {number} [pageToken] Page reference token
|
|
548
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
549
|
+
* @param {string} [statementId]
|
|
550
|
+
* @param {*} [options] Override http request option.
|
|
551
|
+
* @throws {RequiredError}
|
|
552
|
+
*/
|
|
553
|
+
listFulfillments(project, pageToken, pageSize, statementId, options) {
|
|
554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
555
|
+
var _a, _b, _c;
|
|
556
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFulfillments(project, pageToken, pageSize, statementId, options);
|
|
557
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
558
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TransactionsApi.listFulfillments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
559
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
560
|
+
});
|
|
561
|
+
},
|
|
495
562
|
/**
|
|
496
563
|
* Lists all GFN transactions available to the project
|
|
497
564
|
* @summary List GFN transactions
|
|
@@ -532,6 +599,16 @@ export const TransactionsApiFactory = function (configuration, basePath, axios)
|
|
|
532
599
|
exportTransactions(requestParameters, options) {
|
|
533
600
|
return localVarFp.exportTransactions(requestParameters.project, requestParameters.exportTransactionsRequest, options).then((request) => request(axios, basePath));
|
|
534
601
|
},
|
|
602
|
+
/**
|
|
603
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
604
|
+
* @summary Lists the GFN fulfillments of the project
|
|
605
|
+
* @param {TransactionsApiListFulfillmentsRequest} requestParameters Request parameters.
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
*/
|
|
609
|
+
listFulfillments(requestParameters, options) {
|
|
610
|
+
return localVarFp.listFulfillments(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(axios, basePath));
|
|
611
|
+
},
|
|
535
612
|
/**
|
|
536
613
|
* Lists all GFN transactions available to the project
|
|
537
614
|
* @summary List GFN transactions
|
|
@@ -562,6 +639,17 @@ export class TransactionsApi extends BaseAPI {
|
|
|
562
639
|
exportTransactions(requestParameters, options) {
|
|
563
640
|
return TransactionsApiFp(this.configuration).exportTransactions(requestParameters.project, requestParameters.exportTransactionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
564
641
|
}
|
|
642
|
+
/**
|
|
643
|
+
* Lists all the fulfillments in the project with GFN transactions
|
|
644
|
+
* @summary Lists the GFN fulfillments of the project
|
|
645
|
+
* @param {TransactionsApiListFulfillmentsRequest} requestParameters Request parameters.
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
* @memberof TransactionsApi
|
|
649
|
+
*/
|
|
650
|
+
listFulfillments(requestParameters, options) {
|
|
651
|
+
return TransactionsApiFp(this.configuration).listFulfillments(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(this.axios, this.basePath));
|
|
652
|
+
}
|
|
565
653
|
/**
|
|
566
654
|
* Lists all GFN transactions available to the project
|
|
567
655
|
* @summary List GFN transactions
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GFN Catalog API
|
|
3
|
-
* Use this API to access the Global
|
|
3
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.1.0
|
|
4
6
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.2.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/esm/base.js
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GFN Catalog API
|
|
5
|
-
* Use this API to access the Global
|
|
5
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.1.0
|
|
6
8
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.2.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
|
-
export const BASE_PATH = "https://api.
|
|
15
|
+
export const BASE_PATH = "https://api.podos.io".replace(/\/+$/, "");
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GFN Catalog API
|
|
3
|
-
* Use this API to access the Global
|
|
3
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.1.0
|
|
4
6
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.2.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
package/dist/esm/common.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GFN Catalog API
|
|
5
|
-
* Use this API to access the Global
|
|
5
|
+
* Use this API to access the Global Fulfillment 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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.1.0
|
|
6
8
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.2.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|