@teemill/gfn-catalog 2.0.3 → 2.2.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 +63 -29
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +47 -26
- package/dist/api.js +22 -7
- 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 +47 -26
- package/dist/esm/api.js +21 -6
- 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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/gfn-catalog@2.0
|
|
1
|
+
## @teemill/gfn-catalog@2.2.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/gfn-catalog@2.0
|
|
39
|
+
npm install @teemill/gfn-catalog@2.2.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.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.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -342,6 +342,12 @@ export interface Statement {
|
|
|
342
342
|
* @memberof Statement
|
|
343
343
|
*/
|
|
344
344
|
'createdAt': string;
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
* @type {number}
|
|
348
|
+
* @memberof Statement
|
|
349
|
+
*/
|
|
350
|
+
'fulfillmentCount': number;
|
|
345
351
|
}
|
|
346
352
|
/**
|
|
347
353
|
*
|
|
@@ -398,51 +404,53 @@ export interface Transaction {
|
|
|
398
404
|
* @type {string}
|
|
399
405
|
* @memberof Transaction
|
|
400
406
|
*/
|
|
401
|
-
'statement'?: string;
|
|
407
|
+
'statement'?: string | null;
|
|
402
408
|
/**
|
|
403
409
|
*
|
|
404
|
-
* @type {
|
|
410
|
+
* @type {number}
|
|
405
411
|
* @memberof Transaction
|
|
406
412
|
*/
|
|
407
|
-
'
|
|
413
|
+
'cost'?: number;
|
|
408
414
|
/**
|
|
409
415
|
*
|
|
410
|
-
* @type {
|
|
416
|
+
* @type {string}
|
|
411
417
|
* @memberof Transaction
|
|
412
418
|
*/
|
|
413
|
-
'
|
|
419
|
+
'type'?: TransactionTypeEnum;
|
|
414
420
|
/**
|
|
415
421
|
*
|
|
416
|
-
* @type {
|
|
422
|
+
* @type {string}
|
|
417
423
|
* @memberof Transaction
|
|
418
424
|
*/
|
|
419
|
-
'
|
|
425
|
+
'createdAt': string;
|
|
420
426
|
/**
|
|
421
427
|
*
|
|
422
|
-
* @type {
|
|
428
|
+
* @type {number}
|
|
423
429
|
* @memberof Transaction
|
|
424
430
|
*/
|
|
425
|
-
'
|
|
426
|
-
}
|
|
427
|
-
/**
|
|
428
|
-
*
|
|
429
|
-
* @export
|
|
430
|
-
* @interface TransactionOrder
|
|
431
|
-
*/
|
|
432
|
-
export interface TransactionOrder {
|
|
431
|
+
'fulfillmentId'?: number;
|
|
433
432
|
/**
|
|
434
|
-
*
|
|
435
|
-
* @type {
|
|
436
|
-
* @memberof
|
|
433
|
+
*
|
|
434
|
+
* @type {number}
|
|
435
|
+
* @memberof Transaction
|
|
437
436
|
*/
|
|
438
|
-
'
|
|
437
|
+
'orderId'?: number;
|
|
439
438
|
/**
|
|
440
|
-
*
|
|
439
|
+
*
|
|
441
440
|
* @type {string}
|
|
442
|
-
* @memberof
|
|
441
|
+
* @memberof Transaction
|
|
443
442
|
*/
|
|
444
|
-
'
|
|
443
|
+
'description'?: string;
|
|
445
444
|
}
|
|
445
|
+
|
|
446
|
+
export const TransactionTypeEnum = {
|
|
447
|
+
Blank: 'blank',
|
|
448
|
+
Application: 'application',
|
|
449
|
+
Shipping: 'shipping'
|
|
450
|
+
} as const;
|
|
451
|
+
|
|
452
|
+
export type TransactionTypeEnum = typeof TransactionTypeEnum[keyof typeof TransactionTypeEnum];
|
|
453
|
+
|
|
446
454
|
/**
|
|
447
455
|
*
|
|
448
456
|
* @export
|
|
@@ -1110,10 +1118,12 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config
|
|
|
1110
1118
|
* @param {number} [pageToken] Page reference token
|
|
1111
1119
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1112
1120
|
* @param {string} [statementId]
|
|
1121
|
+
* @param {string} [fulfillmentId]
|
|
1122
|
+
* @param {string} [search] Search by fulfillment id
|
|
1113
1123
|
* @param {*} [options] Override http request option.
|
|
1114
1124
|
* @throws {RequiredError}
|
|
1115
1125
|
*/
|
|
1116
|
-
listTransactions: async (project: string, pageToken?: number, pageSize?: number, statementId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1126
|
+
listTransactions: async (project: string, pageToken?: number, pageSize?: number, statementId?: string, fulfillmentId?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1117
1127
|
// verify required parameter 'project' is not null or undefined
|
|
1118
1128
|
assertParamExists('listTransactions', 'project', project)
|
|
1119
1129
|
const localVarPath = `/v1/gfn/transactions`;
|
|
@@ -1151,6 +1161,14 @@ export const TransactionsApiAxiosParamCreator = function (configuration?: Config
|
|
|
1151
1161
|
localVarQueryParameter['statementId'] = statementId;
|
|
1152
1162
|
}
|
|
1153
1163
|
|
|
1164
|
+
if (fulfillmentId !== undefined) {
|
|
1165
|
+
localVarQueryParameter['fulfillmentId'] = fulfillmentId;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
if (search !== undefined) {
|
|
1169
|
+
localVarQueryParameter['search'] = search;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1154
1172
|
|
|
1155
1173
|
|
|
1156
1174
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1193,11 +1211,13 @@ export const TransactionsApiFp = function(configuration?: Configuration) {
|
|
|
1193
1211
|
* @param {number} [pageToken] Page reference token
|
|
1194
1212
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1195
1213
|
* @param {string} [statementId]
|
|
1214
|
+
* @param {string} [fulfillmentId]
|
|
1215
|
+
* @param {string} [search] Search by fulfillment id
|
|
1196
1216
|
* @param {*} [options] Override http request option.
|
|
1197
1217
|
* @throws {RequiredError}
|
|
1198
1218
|
*/
|
|
1199
|
-
async listTransactions(project: string, pageToken?: number, pageSize?: number, statementId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactions200Response>> {
|
|
1200
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(project, pageToken, pageSize, statementId, options);
|
|
1219
|
+
async listTransactions(project: string, pageToken?: number, pageSize?: number, statementId?: string, fulfillmentId?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactions200Response>> {
|
|
1220
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(project, pageToken, pageSize, statementId, fulfillmentId, search, options);
|
|
1201
1221
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1202
1222
|
const localVarOperationServerBasePath = operationServerMap['TransactionsApi.listTransactions']?.[localVarOperationServerIndex]?.url;
|
|
1203
1223
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1230,7 +1250,7 @@ export const TransactionsApiFactory = function (configuration?: Configuration, b
|
|
|
1230
1250
|
* @throws {RequiredError}
|
|
1231
1251
|
*/
|
|
1232
1252
|
listTransactions(requestParameters: TransactionsApiListTransactionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTransactions200Response> {
|
|
1233
|
-
return localVarFp.listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(axios, basePath));
|
|
1253
|
+
return localVarFp.listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, requestParameters.fulfillmentId, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1234
1254
|
},
|
|
1235
1255
|
};
|
|
1236
1256
|
};
|
|
@@ -1289,6 +1309,20 @@ export interface TransactionsApiListTransactionsRequest {
|
|
|
1289
1309
|
* @memberof TransactionsApiListTransactions
|
|
1290
1310
|
*/
|
|
1291
1311
|
readonly statementId?: string
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
*
|
|
1315
|
+
* @type {string}
|
|
1316
|
+
* @memberof TransactionsApiListTransactions
|
|
1317
|
+
*/
|
|
1318
|
+
readonly fulfillmentId?: string
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Search by fulfillment id
|
|
1322
|
+
* @type {string}
|
|
1323
|
+
* @memberof TransactionsApiListTransactions
|
|
1324
|
+
*/
|
|
1325
|
+
readonly search?: string
|
|
1292
1326
|
}
|
|
1293
1327
|
|
|
1294
1328
|
/**
|
|
@@ -1319,7 +1353,7 @@ export class TransactionsApi extends BaseAPI {
|
|
|
1319
1353
|
* @memberof TransactionsApi
|
|
1320
1354
|
*/
|
|
1321
1355
|
public listTransactions(requestParameters: TransactionsApiListTransactionsRequest, options?: RawAxiosRequestConfig) {
|
|
1322
|
-
return TransactionsApiFp(this.configuration).listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(this.axios, this.basePath));
|
|
1356
|
+
return TransactionsApiFp(this.configuration).listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, requestParameters.fulfillmentId, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
1323
1357
|
}
|
|
1324
1358
|
}
|
|
1325
1359
|
|
package/base.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.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.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.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.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.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.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.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -331,6 +331,12 @@ export interface Statement {
|
|
|
331
331
|
* @memberof Statement
|
|
332
332
|
*/
|
|
333
333
|
'createdAt': string;
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* @type {number}
|
|
337
|
+
* @memberof Statement
|
|
338
|
+
*/
|
|
339
|
+
'fulfillmentCount': number;
|
|
334
340
|
}
|
|
335
341
|
/**
|
|
336
342
|
*
|
|
@@ -387,51 +393,50 @@ export interface Transaction {
|
|
|
387
393
|
* @type {string}
|
|
388
394
|
* @memberof Transaction
|
|
389
395
|
*/
|
|
390
|
-
'statement'?: string;
|
|
396
|
+
'statement'?: string | null;
|
|
391
397
|
/**
|
|
392
398
|
*
|
|
393
|
-
* @type {
|
|
399
|
+
* @type {number}
|
|
394
400
|
* @memberof Transaction
|
|
395
401
|
*/
|
|
396
|
-
'
|
|
402
|
+
'cost'?: number;
|
|
397
403
|
/**
|
|
398
404
|
*
|
|
399
|
-
* @type {
|
|
405
|
+
* @type {string}
|
|
400
406
|
* @memberof Transaction
|
|
401
407
|
*/
|
|
402
|
-
'
|
|
408
|
+
'type'?: TransactionTypeEnum;
|
|
403
409
|
/**
|
|
404
410
|
*
|
|
405
|
-
* @type {
|
|
411
|
+
* @type {string}
|
|
406
412
|
* @memberof Transaction
|
|
407
413
|
*/
|
|
408
|
-
'
|
|
414
|
+
'createdAt': string;
|
|
409
415
|
/**
|
|
410
416
|
*
|
|
411
|
-
* @type {
|
|
417
|
+
* @type {number}
|
|
412
418
|
* @memberof Transaction
|
|
413
419
|
*/
|
|
414
|
-
'
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
*
|
|
418
|
-
* @export
|
|
419
|
-
* @interface TransactionOrder
|
|
420
|
-
*/
|
|
421
|
-
export interface TransactionOrder {
|
|
420
|
+
'fulfillmentId'?: number;
|
|
422
421
|
/**
|
|
423
|
-
*
|
|
424
|
-
* @type {
|
|
425
|
-
* @memberof
|
|
422
|
+
*
|
|
423
|
+
* @type {number}
|
|
424
|
+
* @memberof Transaction
|
|
426
425
|
*/
|
|
427
|
-
'
|
|
426
|
+
'orderId'?: number;
|
|
428
427
|
/**
|
|
429
|
-
*
|
|
428
|
+
*
|
|
430
429
|
* @type {string}
|
|
431
|
-
* @memberof
|
|
430
|
+
* @memberof Transaction
|
|
432
431
|
*/
|
|
433
|
-
'
|
|
432
|
+
'description'?: string;
|
|
434
433
|
}
|
|
434
|
+
export declare const TransactionTypeEnum: {
|
|
435
|
+
readonly Blank: "blank";
|
|
436
|
+
readonly Application: "application";
|
|
437
|
+
readonly Shipping: "shipping";
|
|
438
|
+
};
|
|
439
|
+
export type TransactionTypeEnum = typeof TransactionTypeEnum[keyof typeof TransactionTypeEnum];
|
|
435
440
|
/**
|
|
436
441
|
*
|
|
437
442
|
* @export
|
|
@@ -850,10 +855,12 @@ export declare const TransactionsApiAxiosParamCreator: (configuration?: Configur
|
|
|
850
855
|
* @param {number} [pageToken] Page reference token
|
|
851
856
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
852
857
|
* @param {string} [statementId]
|
|
858
|
+
* @param {string} [fulfillmentId]
|
|
859
|
+
* @param {string} [search] Search by fulfillment id
|
|
853
860
|
* @param {*} [options] Override http request option.
|
|
854
861
|
* @throws {RequiredError}
|
|
855
862
|
*/
|
|
856
|
-
listTransactions: (project: string, pageToken?: number, pageSize?: number, statementId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
863
|
+
listTransactions: (project: string, pageToken?: number, pageSize?: number, statementId?: string, fulfillmentId?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
857
864
|
};
|
|
858
865
|
/**
|
|
859
866
|
* TransactionsApi - functional programming interface
|
|
@@ -876,10 +883,12 @@ export declare const TransactionsApiFp: (configuration?: Configuration) => {
|
|
|
876
883
|
* @param {number} [pageToken] Page reference token
|
|
877
884
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
878
885
|
* @param {string} [statementId]
|
|
886
|
+
* @param {string} [fulfillmentId]
|
|
887
|
+
* @param {string} [search] Search by fulfillment id
|
|
879
888
|
* @param {*} [options] Override http request option.
|
|
880
889
|
* @throws {RequiredError}
|
|
881
890
|
*/
|
|
882
|
-
listTransactions(project: string, pageToken?: number, pageSize?: number, statementId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactions200Response>>;
|
|
891
|
+
listTransactions(project: string, pageToken?: number, pageSize?: number, statementId?: string, fulfillmentId?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactions200Response>>;
|
|
883
892
|
};
|
|
884
893
|
/**
|
|
885
894
|
* TransactionsApi - factory interface
|
|
@@ -952,6 +961,18 @@ export interface TransactionsApiListTransactionsRequest {
|
|
|
952
961
|
* @memberof TransactionsApiListTransactions
|
|
953
962
|
*/
|
|
954
963
|
readonly statementId?: string;
|
|
964
|
+
/**
|
|
965
|
+
*
|
|
966
|
+
* @type {string}
|
|
967
|
+
* @memberof TransactionsApiListTransactions
|
|
968
|
+
*/
|
|
969
|
+
readonly fulfillmentId?: string;
|
|
970
|
+
/**
|
|
971
|
+
* Search by fulfillment id
|
|
972
|
+
* @type {string}
|
|
973
|
+
* @memberof TransactionsApiListTransactions
|
|
974
|
+
*/
|
|
975
|
+
readonly search?: string;
|
|
955
976
|
}
|
|
956
977
|
/**
|
|
957
978
|
* TransactionsApi - object-oriented interface
|
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.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.StatementsApi = exports.StatementsApiFactory = exports.StatementsApiFp = exports.StatementsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.AttributeThumbnailTypeEnum = void 0;
|
|
25
|
+
exports.VariantsApi = exports.VariantsApiFactory = exports.VariantsApiFp = exports.VariantsApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.StatementsApi = exports.StatementsApiFactory = exports.StatementsApiFp = exports.StatementsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.TransactionTypeEnum = exports.AttributeThumbnailTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -34,6 +34,11 @@ exports.AttributeThumbnailTypeEnum = {
|
|
|
34
34
|
Color: 'color',
|
|
35
35
|
Image: 'image'
|
|
36
36
|
};
|
|
37
|
+
exports.TransactionTypeEnum = {
|
|
38
|
+
Blank: 'blank',
|
|
39
|
+
Application: 'application',
|
|
40
|
+
Shipping: 'shipping'
|
|
41
|
+
};
|
|
37
42
|
/**
|
|
38
43
|
* ProductsApi - axios parameter creator
|
|
39
44
|
* @export
|
|
@@ -423,10 +428,12 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
423
428
|
* @param {number} [pageToken] Page reference token
|
|
424
429
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
425
430
|
* @param {string} [statementId]
|
|
431
|
+
* @param {string} [fulfillmentId]
|
|
432
|
+
* @param {string} [search] Search by fulfillment id
|
|
426
433
|
* @param {*} [options] Override http request option.
|
|
427
434
|
* @throws {RequiredError}
|
|
428
435
|
*/
|
|
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 = {}) {
|
|
436
|
+
listTransactions: (project_1, pageToken_1, pageSize_1, statementId_1, fulfillmentId_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, statementId_1, fulfillmentId_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, statementId, fulfillmentId, search, options = {}) {
|
|
430
437
|
// verify required parameter 'project' is not null or undefined
|
|
431
438
|
(0, common_1.assertParamExists)('listTransactions', 'project', project);
|
|
432
439
|
const localVarPath = `/v1/gfn/transactions`;
|
|
@@ -456,6 +463,12 @@ const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
456
463
|
if (statementId !== undefined) {
|
|
457
464
|
localVarQueryParameter['statementId'] = statementId;
|
|
458
465
|
}
|
|
466
|
+
if (fulfillmentId !== undefined) {
|
|
467
|
+
localVarQueryParameter['fulfillmentId'] = fulfillmentId;
|
|
468
|
+
}
|
|
469
|
+
if (search !== undefined) {
|
|
470
|
+
localVarQueryParameter['search'] = search;
|
|
471
|
+
}
|
|
459
472
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
460
473
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
461
474
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -498,13 +511,15 @@ const TransactionsApiFp = function (configuration) {
|
|
|
498
511
|
* @param {number} [pageToken] Page reference token
|
|
499
512
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
500
513
|
* @param {string} [statementId]
|
|
514
|
+
* @param {string} [fulfillmentId]
|
|
515
|
+
* @param {string} [search] Search by fulfillment id
|
|
501
516
|
* @param {*} [options] Override http request option.
|
|
502
517
|
* @throws {RequiredError}
|
|
503
518
|
*/
|
|
504
|
-
listTransactions(project, pageToken, pageSize, statementId, options) {
|
|
519
|
+
listTransactions(project, pageToken, pageSize, statementId, fulfillmentId, search, options) {
|
|
505
520
|
return __awaiter(this, void 0, void 0, function* () {
|
|
506
521
|
var _a, _b, _c;
|
|
507
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTransactions(project, pageToken, pageSize, statementId, options);
|
|
522
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTransactions(project, pageToken, pageSize, statementId, fulfillmentId, search, options);
|
|
508
523
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
509
524
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TransactionsApi.listTransactions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
510
525
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -538,7 +553,7 @@ const TransactionsApiFactory = function (configuration, basePath, axios) {
|
|
|
538
553
|
* @throws {RequiredError}
|
|
539
554
|
*/
|
|
540
555
|
listTransactions(requestParameters, options) {
|
|
541
|
-
return localVarFp.listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(axios, basePath));
|
|
556
|
+
return localVarFp.listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, requestParameters.fulfillmentId, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
542
557
|
},
|
|
543
558
|
};
|
|
544
559
|
};
|
|
@@ -570,7 +585,7 @@ class TransactionsApi extends base_1.BaseAPI {
|
|
|
570
585
|
* @memberof TransactionsApi
|
|
571
586
|
*/
|
|
572
587
|
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));
|
|
588
|
+
return (0, exports.TransactionsApiFp)(this.configuration).listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, requestParameters.fulfillmentId, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
574
589
|
}
|
|
575
590
|
}
|
|
576
591
|
exports.TransactionsApi = TransactionsApi;
|
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.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 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.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 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.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 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.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 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.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 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.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/api.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.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -331,6 +331,12 @@ export interface Statement {
|
|
|
331
331
|
* @memberof Statement
|
|
332
332
|
*/
|
|
333
333
|
'createdAt': string;
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* @type {number}
|
|
337
|
+
* @memberof Statement
|
|
338
|
+
*/
|
|
339
|
+
'fulfillmentCount': number;
|
|
334
340
|
}
|
|
335
341
|
/**
|
|
336
342
|
*
|
|
@@ -387,51 +393,50 @@ export interface Transaction {
|
|
|
387
393
|
* @type {string}
|
|
388
394
|
* @memberof Transaction
|
|
389
395
|
*/
|
|
390
|
-
'statement'?: string;
|
|
396
|
+
'statement'?: string | null;
|
|
391
397
|
/**
|
|
392
398
|
*
|
|
393
|
-
* @type {
|
|
399
|
+
* @type {number}
|
|
394
400
|
* @memberof Transaction
|
|
395
401
|
*/
|
|
396
|
-
'
|
|
402
|
+
'cost'?: number;
|
|
397
403
|
/**
|
|
398
404
|
*
|
|
399
|
-
* @type {
|
|
405
|
+
* @type {string}
|
|
400
406
|
* @memberof Transaction
|
|
401
407
|
*/
|
|
402
|
-
'
|
|
408
|
+
'type'?: TransactionTypeEnum;
|
|
403
409
|
/**
|
|
404
410
|
*
|
|
405
|
-
* @type {
|
|
411
|
+
* @type {string}
|
|
406
412
|
* @memberof Transaction
|
|
407
413
|
*/
|
|
408
|
-
'
|
|
414
|
+
'createdAt': string;
|
|
409
415
|
/**
|
|
410
416
|
*
|
|
411
|
-
* @type {
|
|
417
|
+
* @type {number}
|
|
412
418
|
* @memberof Transaction
|
|
413
419
|
*/
|
|
414
|
-
'
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
*
|
|
418
|
-
* @export
|
|
419
|
-
* @interface TransactionOrder
|
|
420
|
-
*/
|
|
421
|
-
export interface TransactionOrder {
|
|
420
|
+
'fulfillmentId'?: number;
|
|
422
421
|
/**
|
|
423
|
-
*
|
|
424
|
-
* @type {
|
|
425
|
-
* @memberof
|
|
422
|
+
*
|
|
423
|
+
* @type {number}
|
|
424
|
+
* @memberof Transaction
|
|
426
425
|
*/
|
|
427
|
-
'
|
|
426
|
+
'orderId'?: number;
|
|
428
427
|
/**
|
|
429
|
-
*
|
|
428
|
+
*
|
|
430
429
|
* @type {string}
|
|
431
|
-
* @memberof
|
|
430
|
+
* @memberof Transaction
|
|
432
431
|
*/
|
|
433
|
-
'
|
|
432
|
+
'description'?: string;
|
|
434
433
|
}
|
|
434
|
+
export declare const TransactionTypeEnum: {
|
|
435
|
+
readonly Blank: "blank";
|
|
436
|
+
readonly Application: "application";
|
|
437
|
+
readonly Shipping: "shipping";
|
|
438
|
+
};
|
|
439
|
+
export type TransactionTypeEnum = typeof TransactionTypeEnum[keyof typeof TransactionTypeEnum];
|
|
435
440
|
/**
|
|
436
441
|
*
|
|
437
442
|
* @export
|
|
@@ -850,10 +855,12 @@ export declare const TransactionsApiAxiosParamCreator: (configuration?: Configur
|
|
|
850
855
|
* @param {number} [pageToken] Page reference token
|
|
851
856
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
852
857
|
* @param {string} [statementId]
|
|
858
|
+
* @param {string} [fulfillmentId]
|
|
859
|
+
* @param {string} [search] Search by fulfillment id
|
|
853
860
|
* @param {*} [options] Override http request option.
|
|
854
861
|
* @throws {RequiredError}
|
|
855
862
|
*/
|
|
856
|
-
listTransactions: (project: string, pageToken?: number, pageSize?: number, statementId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
863
|
+
listTransactions: (project: string, pageToken?: number, pageSize?: number, statementId?: string, fulfillmentId?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
857
864
|
};
|
|
858
865
|
/**
|
|
859
866
|
* TransactionsApi - functional programming interface
|
|
@@ -876,10 +883,12 @@ export declare const TransactionsApiFp: (configuration?: Configuration) => {
|
|
|
876
883
|
* @param {number} [pageToken] Page reference token
|
|
877
884
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
878
885
|
* @param {string} [statementId]
|
|
886
|
+
* @param {string} [fulfillmentId]
|
|
887
|
+
* @param {string} [search] Search by fulfillment id
|
|
879
888
|
* @param {*} [options] Override http request option.
|
|
880
889
|
* @throws {RequiredError}
|
|
881
890
|
*/
|
|
882
|
-
listTransactions(project: string, pageToken?: number, pageSize?: number, statementId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactions200Response>>;
|
|
891
|
+
listTransactions(project: string, pageToken?: number, pageSize?: number, statementId?: string, fulfillmentId?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactions200Response>>;
|
|
883
892
|
};
|
|
884
893
|
/**
|
|
885
894
|
* TransactionsApi - factory interface
|
|
@@ -952,6 +961,18 @@ export interface TransactionsApiListTransactionsRequest {
|
|
|
952
961
|
* @memberof TransactionsApiListTransactions
|
|
953
962
|
*/
|
|
954
963
|
readonly statementId?: string;
|
|
964
|
+
/**
|
|
965
|
+
*
|
|
966
|
+
* @type {string}
|
|
967
|
+
* @memberof TransactionsApiListTransactions
|
|
968
|
+
*/
|
|
969
|
+
readonly fulfillmentId?: string;
|
|
970
|
+
/**
|
|
971
|
+
* Search by fulfillment id
|
|
972
|
+
* @type {string}
|
|
973
|
+
* @memberof TransactionsApiListTransactions
|
|
974
|
+
*/
|
|
975
|
+
readonly search?: string;
|
|
955
976
|
}
|
|
956
977
|
/**
|
|
957
978
|
* TransactionsApi - object-oriented interface
|
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.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,6 +31,11 @@ export const AttributeThumbnailTypeEnum = {
|
|
|
31
31
|
Color: 'color',
|
|
32
32
|
Image: 'image'
|
|
33
33
|
};
|
|
34
|
+
export const TransactionTypeEnum = {
|
|
35
|
+
Blank: 'blank',
|
|
36
|
+
Application: 'application',
|
|
37
|
+
Shipping: 'shipping'
|
|
38
|
+
};
|
|
34
39
|
/**
|
|
35
40
|
* ProductsApi - axios parameter creator
|
|
36
41
|
* @export
|
|
@@ -412,10 +417,12 @@ export const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
412
417
|
* @param {number} [pageToken] Page reference token
|
|
413
418
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
414
419
|
* @param {string} [statementId]
|
|
420
|
+
* @param {string} [fulfillmentId]
|
|
421
|
+
* @param {string} [search] Search by fulfillment id
|
|
415
422
|
* @param {*} [options] Override http request option.
|
|
416
423
|
* @throws {RequiredError}
|
|
417
424
|
*/
|
|
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 = {}) {
|
|
425
|
+
listTransactions: (project_1, pageToken_1, pageSize_1, statementId_1, fulfillmentId_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, statementId_1, fulfillmentId_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, statementId, fulfillmentId, search, options = {}) {
|
|
419
426
|
// verify required parameter 'project' is not null or undefined
|
|
420
427
|
assertParamExists('listTransactions', 'project', project);
|
|
421
428
|
const localVarPath = `/v1/gfn/transactions`;
|
|
@@ -445,6 +452,12 @@ export const TransactionsApiAxiosParamCreator = function (configuration) {
|
|
|
445
452
|
if (statementId !== undefined) {
|
|
446
453
|
localVarQueryParameter['statementId'] = statementId;
|
|
447
454
|
}
|
|
455
|
+
if (fulfillmentId !== undefined) {
|
|
456
|
+
localVarQueryParameter['fulfillmentId'] = fulfillmentId;
|
|
457
|
+
}
|
|
458
|
+
if (search !== undefined) {
|
|
459
|
+
localVarQueryParameter['search'] = search;
|
|
460
|
+
}
|
|
448
461
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
462
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
463
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -486,13 +499,15 @@ export const TransactionsApiFp = function (configuration) {
|
|
|
486
499
|
* @param {number} [pageToken] Page reference token
|
|
487
500
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
488
501
|
* @param {string} [statementId]
|
|
502
|
+
* @param {string} [fulfillmentId]
|
|
503
|
+
* @param {string} [search] Search by fulfillment id
|
|
489
504
|
* @param {*} [options] Override http request option.
|
|
490
505
|
* @throws {RequiredError}
|
|
491
506
|
*/
|
|
492
|
-
listTransactions(project, pageToken, pageSize, statementId, options) {
|
|
507
|
+
listTransactions(project, pageToken, pageSize, statementId, fulfillmentId, search, options) {
|
|
493
508
|
return __awaiter(this, void 0, void 0, function* () {
|
|
494
509
|
var _a, _b, _c;
|
|
495
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTransactions(project, pageToken, pageSize, statementId, options);
|
|
510
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTransactions(project, pageToken, pageSize, statementId, fulfillmentId, search, options);
|
|
496
511
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
497
512
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TransactionsApi.listTransactions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
498
513
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -525,7 +540,7 @@ export const TransactionsApiFactory = function (configuration, basePath, axios)
|
|
|
525
540
|
* @throws {RequiredError}
|
|
526
541
|
*/
|
|
527
542
|
listTransactions(requestParameters, options) {
|
|
528
|
-
return localVarFp.listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, options).then((request) => request(axios, basePath));
|
|
543
|
+
return localVarFp.listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, requestParameters.fulfillmentId, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
529
544
|
},
|
|
530
545
|
};
|
|
531
546
|
};
|
|
@@ -556,7 +571,7 @@ export class TransactionsApi extends BaseAPI {
|
|
|
556
571
|
* @memberof TransactionsApi
|
|
557
572
|
*/
|
|
558
573
|
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));
|
|
574
|
+
return TransactionsApiFp(this.configuration).listTransactions(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.statementId, requestParameters.fulfillmentId, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
560
575
|
}
|
|
561
576
|
}
|
|
562
577
|
/**
|
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.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 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.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 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.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 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.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 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.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 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.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 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.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 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.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 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.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 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.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 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.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|