@teemill/gfn-catalog 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -28
- package/README.md +3 -3
- package/api.ts +1646 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1074 -0
- package/dist/api.js +1014 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1074 -0
- package/dist/esm/api.js +995 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/{models/AttributeThumbnail.js → base.js} +38 -26
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/{dist/models/Stock.d.ts → index.ts} +8 -21
- package/package.json +14 -2
- package/tsconfig.json +4 -6
- package/dist/apis/ProductsApi.d.ts +0 -35
- package/dist/apis/ProductsApi.js +0 -85
- package/dist/apis/StatementsApi.d.ts +0 -48
- package/dist/apis/StatementsApi.js +0 -127
- package/dist/apis/TransactionsApi.d.ts +0 -48
- package/dist/apis/TransactionsApi.js +0 -129
- package/dist/apis/VariantsApi.d.ts +0 -82
- package/dist/apis/VariantsApi.js +0 -229
- package/dist/apis/index.d.ts +0 -4
- package/dist/apis/index.js +0 -22
- package/dist/esm/apis/ProductsApi.d.ts +0 -35
- package/dist/esm/apis/ProductsApi.js +0 -81
- package/dist/esm/apis/StatementsApi.d.ts +0 -48
- package/dist/esm/apis/StatementsApi.js +0 -123
- package/dist/esm/apis/TransactionsApi.d.ts +0 -48
- package/dist/esm/apis/TransactionsApi.js +0 -125
- package/dist/esm/apis/VariantsApi.d.ts +0 -82
- package/dist/esm/apis/VariantsApi.js +0 -225
- package/dist/esm/apis/index.d.ts +0 -4
- package/dist/esm/apis/index.js +0 -6
- package/dist/esm/models/ApiError.d.ts +0 -37
- package/dist/esm/models/ApiError.js +0 -42
- package/dist/esm/models/ApiValidationError.d.ts +0 -39
- package/dist/esm/models/ApiValidationError.js +0 -44
- package/dist/esm/models/Attribute.d.ts +0 -50
- package/dist/esm/models/Attribute.js +0 -49
- package/dist/esm/models/AttributeThumbnail.d.ts +0 -46
- package/dist/esm/models/ExportTransactionsRequest.d.ts +0 -43
- package/dist/esm/models/ExportTransactionsRequest.js +0 -42
- package/dist/esm/models/Image.d.ts +0 -67
- package/dist/esm/models/Image.js +0 -50
- package/dist/esm/models/ListStatements200Response.d.ts +0 -38
- package/dist/esm/models/ListStatements200Response.js +0 -41
- package/dist/esm/models/ListTransactions200Response.d.ts +0 -38
- package/dist/esm/models/ListTransactions200Response.js +0 -41
- package/dist/esm/models/Product.d.ts +0 -67
- package/dist/esm/models/Product.js +0 -52
- package/dist/esm/models/ProductsResponse.d.ts +0 -38
- package/dist/esm/models/ProductsResponse.js +0 -41
- package/dist/esm/models/Statement.d.ts +0 -61
- package/dist/esm/models/Statement.js +0 -60
- package/dist/esm/models/Stock.d.ts +0 -31
- package/dist/esm/models/Stock.js +0 -38
- package/dist/esm/models/StockResponse.d.ts +0 -38
- package/dist/esm/models/StockResponse.js +0 -41
- package/dist/esm/models/Transaction.d.ts +0 -68
- package/dist/esm/models/Transaction.js +0 -61
- package/dist/esm/models/TransactionOrder.d.ts +0 -37
- package/dist/esm/models/TransactionOrder.js +0 -44
- package/dist/esm/models/Variant.d.ts +0 -78
- package/dist/esm/models/Variant.js +0 -61
- package/dist/esm/models/VariantManufacturerOrigin.d.ts +0 -37
- package/dist/esm/models/VariantManufacturerOrigin.js +0 -40
- package/dist/esm/models/VariantProduct.d.ts +0 -37
- package/dist/esm/models/VariantProduct.js +0 -40
- package/dist/esm/models/VariantStock.d.ts +0 -50
- package/dist/esm/models/VariantStock.js +0 -45
- package/dist/esm/models/VariantsResponse.d.ts +0 -38
- package/dist/esm/models/VariantsResponse.js +0 -41
- package/dist/esm/models/index.d.ts +0 -20
- package/dist/esm/models/index.js +0 -22
- package/dist/esm/runtime.d.ts +0 -187
- package/dist/esm/runtime.js +0 -333
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/ApiValidationError.d.ts +0 -39
- package/dist/models/ApiValidationError.js +0 -51
- package/dist/models/Attribute.d.ts +0 -50
- package/dist/models/Attribute.js +0 -56
- package/dist/models/AttributeThumbnail.d.ts +0 -46
- package/dist/models/AttributeThumbnail.js +0 -55
- package/dist/models/ExportTransactionsRequest.d.ts +0 -43
- package/dist/models/ExportTransactionsRequest.js +0 -49
- package/dist/models/Image.d.ts +0 -67
- package/dist/models/Image.js +0 -57
- package/dist/models/ListStatements200Response.d.ts +0 -38
- package/dist/models/ListStatements200Response.js +0 -48
- package/dist/models/ListTransactions200Response.d.ts +0 -38
- package/dist/models/ListTransactions200Response.js +0 -48
- package/dist/models/Product.d.ts +0 -67
- package/dist/models/Product.js +0 -59
- package/dist/models/ProductsResponse.d.ts +0 -38
- package/dist/models/ProductsResponse.js +0 -48
- package/dist/models/Statement.d.ts +0 -61
- package/dist/models/Statement.js +0 -67
- package/dist/models/Stock.js +0 -45
- package/dist/models/StockResponse.d.ts +0 -38
- package/dist/models/StockResponse.js +0 -48
- package/dist/models/Transaction.d.ts +0 -68
- package/dist/models/Transaction.js +0 -68
- package/dist/models/TransactionOrder.d.ts +0 -37
- package/dist/models/TransactionOrder.js +0 -51
- package/dist/models/Variant.d.ts +0 -78
- package/dist/models/Variant.js +0 -68
- package/dist/models/VariantManufacturerOrigin.d.ts +0 -37
- package/dist/models/VariantManufacturerOrigin.js +0 -47
- package/dist/models/VariantProduct.d.ts +0 -37
- package/dist/models/VariantProduct.js +0 -47
- package/dist/models/VariantStock.d.ts +0 -50
- package/dist/models/VariantStock.js +0 -52
- package/dist/models/VariantsResponse.d.ts +0 -38
- package/dist/models/VariantsResponse.js +0 -48
- package/dist/models/index.d.ts +0 -20
- package/dist/models/index.js +0 -38
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/ProductsApi.ts +0 -116
- package/src/apis/StatementsApi.ts +0 -177
- package/src/apis/TransactionsApi.ts +0 -180
- package/src/apis/VariantsApi.ts +0 -345
- package/src/apis/index.ts +0 -6
- package/src/index.ts +0 -5
- package/src/models/ApiError.ts +0 -69
- package/src/models/ApiValidationError.ts +0 -70
- package/src/models/Attribute.ts +0 -93
- package/src/models/AttributeThumbnail.ts +0 -80
- package/src/models/ExportTransactionsRequest.ts +0 -76
- package/src/models/Image.ts +0 -108
- package/src/models/ListStatements200Response.ts +0 -75
- package/src/models/ListTransactions200Response.ts +0 -75
- package/src/models/Product.ts +0 -109
- package/src/models/ProductsResponse.ts +0 -75
- package/src/models/Statement.ts +0 -106
- package/src/models/Stock.ts +0 -60
- package/src/models/StockResponse.ts +0 -75
- package/src/models/Transaction.ts +0 -120
- package/src/models/TransactionOrder.ts +0 -70
- package/src/models/Variant.ts +0 -149
- package/src/models/VariantManufacturerOrigin.ts +0 -68
- package/src/models/VariantProduct.ts +0 -68
- package/src/models/VariantStock.ts +0 -91
- package/src/models/VariantsResponse.ts +0 -75
- package/src/models/index.ts +0 -22
- package/src/runtime.ts +0 -441
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.4.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AttributeThumbnailToJSON = exports.AttributeThumbnailFromJSONTyped = exports.AttributeThumbnailFromJSON = exports.instanceOfAttributeThumbnail = exports.AttributeThumbnailTypeEnum = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
exports.AttributeThumbnailTypeEnum = {
|
|
21
|
-
Text: 'text',
|
|
22
|
-
Color: 'color',
|
|
23
|
-
Image: 'image'
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the AttributeThumbnail interface.
|
|
27
|
-
*/
|
|
28
|
-
function instanceOfAttributeThumbnail(value) {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
exports.instanceOfAttributeThumbnail = instanceOfAttributeThumbnail;
|
|
32
|
-
function AttributeThumbnailFromJSON(json) {
|
|
33
|
-
return AttributeThumbnailFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
exports.AttributeThumbnailFromJSON = AttributeThumbnailFromJSON;
|
|
36
|
-
function AttributeThumbnailFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
42
|
-
'value': json['value'] == null ? undefined : json['value'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.AttributeThumbnailFromJSONTyped = AttributeThumbnailFromJSONTyped;
|
|
46
|
-
function AttributeThumbnailToJSON(value) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'type': value['type'],
|
|
52
|
-
'value': value['value'],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
exports.AttributeThumbnailToJSON = AttributeThumbnailToJSON;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.4.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ExportTransactionsRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface ExportTransactionsRequest {
|
|
18
|
-
/**
|
|
19
|
-
* The start date for the export
|
|
20
|
-
* @type {Date}
|
|
21
|
-
* @memberof ExportTransactionsRequest
|
|
22
|
-
*/
|
|
23
|
-
start?: Date;
|
|
24
|
-
/**
|
|
25
|
-
* The end date for the export
|
|
26
|
-
* @type {Date}
|
|
27
|
-
* @memberof ExportTransactionsRequest
|
|
28
|
-
*/
|
|
29
|
-
end?: Date;
|
|
30
|
-
/**
|
|
31
|
-
* Include only transactions from this statement
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ExportTransactionsRequest
|
|
34
|
-
*/
|
|
35
|
-
statement?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the ExportTransactionsRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfExportTransactionsRequest(value: object): value is ExportTransactionsRequest;
|
|
41
|
-
export declare function ExportTransactionsRequestFromJSON(json: any): ExportTransactionsRequest;
|
|
42
|
-
export declare function ExportTransactionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportTransactionsRequest;
|
|
43
|
-
export declare function ExportTransactionsRequestToJSON(value?: ExportTransactionsRequest | null): any;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.4.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ExportTransactionsRequestToJSON = exports.ExportTransactionsRequestFromJSONTyped = exports.ExportTransactionsRequestFromJSON = exports.instanceOfExportTransactionsRequest = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ExportTransactionsRequest interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfExportTransactionsRequest(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfExportTransactionsRequest = instanceOfExportTransactionsRequest;
|
|
24
|
-
function ExportTransactionsRequestFromJSON(json) {
|
|
25
|
-
return ExportTransactionsRequestFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.ExportTransactionsRequestFromJSON = ExportTransactionsRequestFromJSON;
|
|
28
|
-
function ExportTransactionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'start': json['start'] == null ? undefined : (new Date(json['start'])),
|
|
34
|
-
'end': json['end'] == null ? undefined : (new Date(json['end'])),
|
|
35
|
-
'statement': json['statement'] == null ? undefined : json['statement'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.ExportTransactionsRequestFromJSONTyped = ExportTransactionsRequestFromJSONTyped;
|
|
39
|
-
function ExportTransactionsRequestToJSON(value) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'start': value['start'] == null ? undefined : ((value['start']).toISOString()),
|
|
45
|
-
'end': value['end'] == null ? undefined : ((value['end']).toISOString()),
|
|
46
|
-
'statement': value['statement'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.ExportTransactionsRequestToJSON = ExportTransactionsRequestToJSON;
|
package/dist/models/Image.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.4.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Image description
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Image
|
|
16
|
-
*/
|
|
17
|
-
export interface Image {
|
|
18
|
-
/**
|
|
19
|
-
* Unique object identifier
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Image
|
|
22
|
-
*/
|
|
23
|
-
id?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Image
|
|
28
|
-
*/
|
|
29
|
-
src?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Image
|
|
34
|
-
*/
|
|
35
|
-
alt?: string;
|
|
36
|
-
/**
|
|
37
|
-
* List of variant Ids
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof Image
|
|
40
|
-
*/
|
|
41
|
-
variantIds?: Array<string>;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof Image
|
|
46
|
-
*/
|
|
47
|
-
sortOrder?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof Image
|
|
52
|
-
*/
|
|
53
|
-
createdAt?: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof Image
|
|
58
|
-
*/
|
|
59
|
-
updatedAt?: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Check if a given object implements the Image interface.
|
|
63
|
-
*/
|
|
64
|
-
export declare function instanceOfImage(value: object): value is Image;
|
|
65
|
-
export declare function ImageFromJSON(json: any): Image;
|
|
66
|
-
export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
|
|
67
|
-
export declare function ImageToJSON(value?: Image | null): any;
|
package/dist/models/Image.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.4.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = exports.instanceOfImage = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Image interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfImage(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfImage = instanceOfImage;
|
|
24
|
-
function ImageFromJSON(json) {
|
|
25
|
-
return ImageFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.ImageFromJSON = ImageFromJSON;
|
|
28
|
-
function ImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
34
|
-
'src': json['src'] == null ? undefined : json['src'],
|
|
35
|
-
'alt': json['alt'] == null ? undefined : json['alt'],
|
|
36
|
-
'variantIds': json['variantIds'] == null ? undefined : json['variantIds'],
|
|
37
|
-
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
|
38
|
-
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
39
|
-
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
exports.ImageFromJSONTyped = ImageFromJSONTyped;
|
|
43
|
-
function ImageToJSON(value) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'id': value['id'],
|
|
49
|
-
'src': value['src'],
|
|
50
|
-
'alt': value['alt'],
|
|
51
|
-
'variantIds': value['variantIds'],
|
|
52
|
-
'sortOrder': value['sortOrder'],
|
|
53
|
-
'createdAt': value['createdAt'],
|
|
54
|
-
'updatedAt': value['updatedAt'],
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
exports.ImageToJSON = ImageToJSON;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.4.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Statement } from './Statement';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ListStatements200Response
|
|
17
|
-
*/
|
|
18
|
-
export interface ListStatements200Response {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<Statement>}
|
|
22
|
-
* @memberof ListStatements200Response
|
|
23
|
-
*/
|
|
24
|
-
statements?: Array<Statement>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof ListStatements200Response
|
|
29
|
-
*/
|
|
30
|
-
nextPageToken?: number;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the ListStatements200Response interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfListStatements200Response(value: object): value is ListStatements200Response;
|
|
36
|
-
export declare function ListStatements200ResponseFromJSON(json: any): ListStatements200Response;
|
|
37
|
-
export declare function ListStatements200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListStatements200Response;
|
|
38
|
-
export declare function ListStatements200ResponseToJSON(value?: ListStatements200Response | null): any;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.4.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ListStatements200ResponseToJSON = exports.ListStatements200ResponseFromJSONTyped = exports.ListStatements200ResponseFromJSON = exports.instanceOfListStatements200Response = void 0;
|
|
17
|
-
const Statement_1 = require("./Statement");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the ListStatements200Response interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfListStatements200Response(value) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
exports.instanceOfListStatements200Response = instanceOfListStatements200Response;
|
|
25
|
-
function ListStatements200ResponseFromJSON(json) {
|
|
26
|
-
return ListStatements200ResponseFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
exports.ListStatements200ResponseFromJSON = ListStatements200ResponseFromJSON;
|
|
29
|
-
function ListStatements200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (json == null) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'statements': json['statements'] == null ? undefined : (json['statements'].map(Statement_1.StatementFromJSON)),
|
|
35
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.ListStatements200ResponseFromJSONTyped = ListStatements200ResponseFromJSONTyped;
|
|
39
|
-
function ListStatements200ResponseToJSON(value) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'statements': value['statements'] == null ? undefined : (value['statements'].map(Statement_1.StatementToJSON)),
|
|
45
|
-
'nextPageToken': value['nextPageToken'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
exports.ListStatements200ResponseToJSON = ListStatements200ResponseToJSON;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.4.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Transaction } from './Transaction';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ListTransactions200Response
|
|
17
|
-
*/
|
|
18
|
-
export interface ListTransactions200Response {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<Transaction>}
|
|
22
|
-
* @memberof ListTransactions200Response
|
|
23
|
-
*/
|
|
24
|
-
transactions?: Array<Transaction>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof ListTransactions200Response
|
|
29
|
-
*/
|
|
30
|
-
nextPageToken?: number;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the ListTransactions200Response interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfListTransactions200Response(value: object): value is ListTransactions200Response;
|
|
36
|
-
export declare function ListTransactions200ResponseFromJSON(json: any): ListTransactions200Response;
|
|
37
|
-
export declare function ListTransactions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTransactions200Response;
|
|
38
|
-
export declare function ListTransactions200ResponseToJSON(value?: ListTransactions200Response | null): any;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.4.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ListTransactions200ResponseToJSON = exports.ListTransactions200ResponseFromJSONTyped = exports.ListTransactions200ResponseFromJSON = exports.instanceOfListTransactions200Response = void 0;
|
|
17
|
-
const Transaction_1 = require("./Transaction");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the ListTransactions200Response interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfListTransactions200Response(value) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
exports.instanceOfListTransactions200Response = instanceOfListTransactions200Response;
|
|
25
|
-
function ListTransactions200ResponseFromJSON(json) {
|
|
26
|
-
return ListTransactions200ResponseFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
exports.ListTransactions200ResponseFromJSON = ListTransactions200ResponseFromJSON;
|
|
29
|
-
function ListTransactions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (json == null) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(Transaction_1.TransactionFromJSON)),
|
|
35
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.ListTransactions200ResponseFromJSONTyped = ListTransactions200ResponseFromJSONTyped;
|
|
39
|
-
function ListTransactions200ResponseToJSON(value) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(Transaction_1.TransactionToJSON)),
|
|
45
|
-
'nextPageToken': value['nextPageToken'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
exports.ListTransactions200ResponseToJSON = ListTransactions200ResponseToJSON;
|
package/dist/models/Product.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.4.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Product
|
|
16
|
-
*/
|
|
17
|
-
export interface Product {
|
|
18
|
-
/**
|
|
19
|
-
* Unique object identifier
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Product
|
|
22
|
-
*/
|
|
23
|
-
id?: string;
|
|
24
|
-
/**
|
|
25
|
-
* A reference to the resource location
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Product
|
|
28
|
-
*/
|
|
29
|
-
ref?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Product
|
|
34
|
-
*/
|
|
35
|
-
title: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof Product
|
|
40
|
-
*/
|
|
41
|
-
styleCode?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof Product
|
|
46
|
-
*/
|
|
47
|
-
material?: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof Product
|
|
52
|
-
*/
|
|
53
|
-
description?: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof Product
|
|
58
|
-
*/
|
|
59
|
-
specifications?: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Check if a given object implements the Product interface.
|
|
63
|
-
*/
|
|
64
|
-
export declare function instanceOfProduct(value: object): value is Product;
|
|
65
|
-
export declare function ProductFromJSON(json: any): Product;
|
|
66
|
-
export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;
|
|
67
|
-
export declare function ProductToJSON(value?: Product | null): any;
|
package/dist/models/Product.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.4.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = exports.instanceOfProduct = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Product interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfProduct(value) {
|
|
21
|
-
if (!('title' in value) || value['title'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfProduct = instanceOfProduct;
|
|
26
|
-
function ProductFromJSON(json) {
|
|
27
|
-
return ProductFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.ProductFromJSON = ProductFromJSON;
|
|
30
|
-
function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
-
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
37
|
-
'title': json['title'],
|
|
38
|
-
'styleCode': json['styleCode'] == null ? undefined : json['styleCode'],
|
|
39
|
-
'material': json['material'] == null ? undefined : json['material'],
|
|
40
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
41
|
-
'specifications': json['specifications'] == null ? undefined : json['specifications'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
exports.ProductFromJSONTyped = ProductFromJSONTyped;
|
|
45
|
-
function ProductToJSON(value) {
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'id': value['id'],
|
|
51
|
-
'ref': value['ref'],
|
|
52
|
-
'title': value['title'],
|
|
53
|
-
'styleCode': value['styleCode'],
|
|
54
|
-
'material': value['material'],
|
|
55
|
-
'description': value['description'],
|
|
56
|
-
'specifications': value['specifications'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
exports.ProductToJSON = ProductToJSON;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.4.0
|
|
6
|
-
* Contact: hello@teemill.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Product } from './Product';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ProductsResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface ProductsResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<Product>}
|
|
22
|
-
* @memberof ProductsResponse
|
|
23
|
-
*/
|
|
24
|
-
products?: Array<Product>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof ProductsResponse
|
|
29
|
-
*/
|
|
30
|
-
nextPageToken?: number;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the ProductsResponse interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfProductsResponse(value: object): value is ProductsResponse;
|
|
36
|
-
export declare function ProductsResponseFromJSON(json: any): ProductsResponse;
|
|
37
|
-
export declare function ProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductsResponse;
|
|
38
|
-
export declare function ProductsResponseToJSON(value?: ProductsResponse | null): any;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.4.0
|
|
9
|
-
* Contact: hello@teemill.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ProductsResponseToJSON = exports.ProductsResponseFromJSONTyped = exports.ProductsResponseFromJSON = exports.instanceOfProductsResponse = void 0;
|
|
17
|
-
const Product_1 = require("./Product");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the ProductsResponse interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfProductsResponse(value) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
exports.instanceOfProductsResponse = instanceOfProductsResponse;
|
|
25
|
-
function ProductsResponseFromJSON(json) {
|
|
26
|
-
return ProductsResponseFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
exports.ProductsResponseFromJSON = ProductsResponseFromJSON;
|
|
29
|
-
function ProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (json == null) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'products': json['products'] == null ? undefined : (json['products'].map(Product_1.ProductFromJSON)),
|
|
35
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.ProductsResponseFromJSONTyped = ProductsResponseFromJSONTyped;
|
|
39
|
-
function ProductsResponseToJSON(value) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'products': value['products'] == null ? undefined : (value['products'].map(Product_1.ProductToJSON)),
|
|
45
|
-
'nextPageToken': value['nextPageToken'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
exports.ProductsResponseToJSON = ProductsResponseToJSON;
|