@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
package/src/models/Attribute.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.4.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { AttributeThumbnail } from './AttributeThumbnail';
|
|
17
|
-
import {
|
|
18
|
-
AttributeThumbnailFromJSON,
|
|
19
|
-
AttributeThumbnailFromJSONTyped,
|
|
20
|
-
AttributeThumbnailToJSON,
|
|
21
|
-
} from './AttributeThumbnail';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface Attribute
|
|
27
|
-
*/
|
|
28
|
-
export interface Attribute {
|
|
29
|
-
/**
|
|
30
|
-
* Attribute name
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof Attribute
|
|
33
|
-
*/
|
|
34
|
-
name: string;
|
|
35
|
-
/**
|
|
36
|
-
* Attribute value
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof Attribute
|
|
39
|
-
*/
|
|
40
|
-
value: string;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {AttributeThumbnail}
|
|
44
|
-
* @memberof Attribute
|
|
45
|
-
*/
|
|
46
|
-
thumbnail?: AttributeThumbnail;
|
|
47
|
-
/**
|
|
48
|
-
* Attribute tags
|
|
49
|
-
* @type {Array<string>}
|
|
50
|
-
* @memberof Attribute
|
|
51
|
-
*/
|
|
52
|
-
tags?: Array<string>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Check if a given object implements the Attribute interface.
|
|
57
|
-
*/
|
|
58
|
-
export function instanceOfAttribute(value: object): value is Attribute {
|
|
59
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
|
-
if (!('value' in value) || value['value'] === undefined) return false;
|
|
61
|
-
return true;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function AttributeFromJSON(json: any): Attribute {
|
|
65
|
-
return AttributeFromJSONTyped(json, false);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function AttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Attribute {
|
|
69
|
-
if (json == null) {
|
|
70
|
-
return json;
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
|
|
74
|
-
'name': json['name'],
|
|
75
|
-
'value': json['value'],
|
|
76
|
-
'thumbnail': json['thumbnail'] == null ? undefined : AttributeThumbnailFromJSON(json['thumbnail']),
|
|
77
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function AttributeToJSON(value?: Attribute | null): any {
|
|
82
|
-
if (value == null) {
|
|
83
|
-
return value;
|
|
84
|
-
}
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
'name': value['name'],
|
|
88
|
-
'value': value['value'],
|
|
89
|
-
'thumbnail': AttributeThumbnailToJSON(value['thumbnail']),
|
|
90
|
-
'tags': value['tags'],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.4.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* Attribute thumbnail
|
|
18
|
-
* @export
|
|
19
|
-
* @interface AttributeThumbnail
|
|
20
|
-
*/
|
|
21
|
-
export interface AttributeThumbnail {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof AttributeThumbnail
|
|
26
|
-
*/
|
|
27
|
-
type?: AttributeThumbnailTypeEnum;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof AttributeThumbnail
|
|
32
|
-
*/
|
|
33
|
-
value?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export const AttributeThumbnailTypeEnum = {
|
|
41
|
-
Text: 'text',
|
|
42
|
-
Color: 'color',
|
|
43
|
-
Image: 'image'
|
|
44
|
-
} as const;
|
|
45
|
-
export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the AttributeThumbnail interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfAttributeThumbnail(value: object): value is AttributeThumbnail {
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function AttributeThumbnailFromJSON(json: any): AttributeThumbnail {
|
|
56
|
-
return AttributeThumbnailFromJSONTyped(json, false);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function AttributeThumbnailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeThumbnail {
|
|
60
|
-
if (json == null) {
|
|
61
|
-
return json;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
|
|
65
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
66
|
-
'value': json['value'] == null ? undefined : json['value'],
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function AttributeThumbnailToJSON(value?: AttributeThumbnail | null): any {
|
|
71
|
-
if (value == null) {
|
|
72
|
-
return value;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'type': value['type'],
|
|
77
|
-
'value': value['value'],
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.4.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ExportTransactionsRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface ExportTransactionsRequest {
|
|
22
|
-
/**
|
|
23
|
-
* The start date for the export
|
|
24
|
-
* @type {Date}
|
|
25
|
-
* @memberof ExportTransactionsRequest
|
|
26
|
-
*/
|
|
27
|
-
start?: Date;
|
|
28
|
-
/**
|
|
29
|
-
* The end date for the export
|
|
30
|
-
* @type {Date}
|
|
31
|
-
* @memberof ExportTransactionsRequest
|
|
32
|
-
*/
|
|
33
|
-
end?: Date;
|
|
34
|
-
/**
|
|
35
|
-
* Include only transactions from this statement
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ExportTransactionsRequest
|
|
38
|
-
*/
|
|
39
|
-
statement?: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the ExportTransactionsRequest interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfExportTransactionsRequest(value: object): value is ExportTransactionsRequest {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ExportTransactionsRequestFromJSON(json: any): ExportTransactionsRequest {
|
|
50
|
-
return ExportTransactionsRequestFromJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function ExportTransactionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportTransactionsRequest {
|
|
54
|
-
if (json == null) {
|
|
55
|
-
return json;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
|
|
59
|
-
'start': json['start'] == null ? undefined : (new Date(json['start'])),
|
|
60
|
-
'end': json['end'] == null ? undefined : (new Date(json['end'])),
|
|
61
|
-
'statement': json['statement'] == null ? undefined : json['statement'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function ExportTransactionsRequestToJSON(value?: ExportTransactionsRequest | null): any {
|
|
66
|
-
if (value == null) {
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'start': value['start'] == null ? undefined : ((value['start']).toISOString()),
|
|
72
|
-
'end': value['end'] == null ? undefined : ((value['end']).toISOString()),
|
|
73
|
-
'statement': value['statement'],
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
package/src/models/Image.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.4.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* Image description
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Image
|
|
20
|
-
*/
|
|
21
|
-
export interface Image {
|
|
22
|
-
/**
|
|
23
|
-
* Unique object identifier
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof Image
|
|
26
|
-
*/
|
|
27
|
-
id?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof Image
|
|
32
|
-
*/
|
|
33
|
-
src?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof Image
|
|
38
|
-
*/
|
|
39
|
-
alt?: string;
|
|
40
|
-
/**
|
|
41
|
-
* List of variant Ids
|
|
42
|
-
* @type {Array<string>}
|
|
43
|
-
* @memberof Image
|
|
44
|
-
*/
|
|
45
|
-
variantIds?: Array<string>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof Image
|
|
50
|
-
*/
|
|
51
|
-
sortOrder?: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof Image
|
|
56
|
-
*/
|
|
57
|
-
createdAt?: string;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof Image
|
|
62
|
-
*/
|
|
63
|
-
updatedAt?: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Check if a given object implements the Image interface.
|
|
68
|
-
*/
|
|
69
|
-
export function instanceOfImage(value: object): value is Image {
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function ImageFromJSON(json: any): Image {
|
|
74
|
-
return ImageFromJSONTyped(json, false);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image {
|
|
78
|
-
if (json == null) {
|
|
79
|
-
return json;
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
84
|
-
'src': json['src'] == null ? undefined : json['src'],
|
|
85
|
-
'alt': json['alt'] == null ? undefined : json['alt'],
|
|
86
|
-
'variantIds': json['variantIds'] == null ? undefined : json['variantIds'],
|
|
87
|
-
'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
|
|
88
|
-
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
89
|
-
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function ImageToJSON(value?: Image | null): any {
|
|
94
|
-
if (value == null) {
|
|
95
|
-
return value;
|
|
96
|
-
}
|
|
97
|
-
return {
|
|
98
|
-
|
|
99
|
-
'id': value['id'],
|
|
100
|
-
'src': value['src'],
|
|
101
|
-
'alt': value['alt'],
|
|
102
|
-
'variantIds': value['variantIds'],
|
|
103
|
-
'sortOrder': value['sortOrder'],
|
|
104
|
-
'createdAt': value['createdAt'],
|
|
105
|
-
'updatedAt': value['updatedAt'],
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.4.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { Statement } from './Statement';
|
|
17
|
-
import {
|
|
18
|
-
StatementFromJSON,
|
|
19
|
-
StatementFromJSONTyped,
|
|
20
|
-
StatementToJSON,
|
|
21
|
-
} from './Statement';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface ListStatements200Response
|
|
27
|
-
*/
|
|
28
|
-
export interface ListStatements200Response {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Array<Statement>}
|
|
32
|
-
* @memberof ListStatements200Response
|
|
33
|
-
*/
|
|
34
|
-
statements?: Array<Statement>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof ListStatements200Response
|
|
39
|
-
*/
|
|
40
|
-
nextPageToken?: number;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the ListStatements200Response interface.
|
|
45
|
-
*/
|
|
46
|
-
export function instanceOfListStatements200Response(value: object): value is ListStatements200Response {
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function ListStatements200ResponseFromJSON(json: any): ListStatements200Response {
|
|
51
|
-
return ListStatements200ResponseFromJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function ListStatements200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListStatements200Response {
|
|
55
|
-
if (json == null) {
|
|
56
|
-
return json;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
|
|
60
|
-
'statements': json['statements'] == null ? undefined : ((json['statements'] as Array<any>).map(StatementFromJSON)),
|
|
61
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function ListStatements200ResponseToJSON(value?: ListStatements200Response | null): any {
|
|
66
|
-
if (value == null) {
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'statements': value['statements'] == null ? undefined : ((value['statements'] as Array<any>).map(StatementToJSON)),
|
|
72
|
-
'nextPageToken': value['nextPageToken'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.4.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { Transaction } from './Transaction';
|
|
17
|
-
import {
|
|
18
|
-
TransactionFromJSON,
|
|
19
|
-
TransactionFromJSONTyped,
|
|
20
|
-
TransactionToJSON,
|
|
21
|
-
} from './Transaction';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface ListTransactions200Response
|
|
27
|
-
*/
|
|
28
|
-
export interface ListTransactions200Response {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Array<Transaction>}
|
|
32
|
-
* @memberof ListTransactions200Response
|
|
33
|
-
*/
|
|
34
|
-
transactions?: Array<Transaction>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof ListTransactions200Response
|
|
39
|
-
*/
|
|
40
|
-
nextPageToken?: number;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the ListTransactions200Response interface.
|
|
45
|
-
*/
|
|
46
|
-
export function instanceOfListTransactions200Response(value: object): value is ListTransactions200Response {
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function ListTransactions200ResponseFromJSON(json: any): ListTransactions200Response {
|
|
51
|
-
return ListTransactions200ResponseFromJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function ListTransactions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTransactions200Response {
|
|
55
|
-
if (json == null) {
|
|
56
|
-
return json;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
|
|
60
|
-
'transactions': json['transactions'] == null ? undefined : ((json['transactions'] as Array<any>).map(TransactionFromJSON)),
|
|
61
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function ListTransactions200ResponseToJSON(value?: ListTransactions200Response | null): any {
|
|
66
|
-
if (value == null) {
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'transactions': value['transactions'] == null ? undefined : ((value['transactions'] as Array<any>).map(TransactionToJSON)),
|
|
72
|
-
'nextPageToken': value['nextPageToken'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
package/src/models/Product.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.4.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Product
|
|
20
|
-
*/
|
|
21
|
-
export interface Product {
|
|
22
|
-
/**
|
|
23
|
-
* Unique object identifier
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof Product
|
|
26
|
-
*/
|
|
27
|
-
id?: string;
|
|
28
|
-
/**
|
|
29
|
-
* A reference to the resource location
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof Product
|
|
32
|
-
*/
|
|
33
|
-
ref?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof Product
|
|
38
|
-
*/
|
|
39
|
-
title: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof Product
|
|
44
|
-
*/
|
|
45
|
-
styleCode?: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof Product
|
|
50
|
-
*/
|
|
51
|
-
material?: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof Product
|
|
56
|
-
*/
|
|
57
|
-
description?: string;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof Product
|
|
62
|
-
*/
|
|
63
|
-
specifications?: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Check if a given object implements the Product interface.
|
|
68
|
-
*/
|
|
69
|
-
export function instanceOfProduct(value: object): value is Product {
|
|
70
|
-
if (!('title' in value) || value['title'] === undefined) return false;
|
|
71
|
-
return true;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function ProductFromJSON(json: any): Product {
|
|
75
|
-
return ProductFromJSONTyped(json, false);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
|
|
79
|
-
if (json == null) {
|
|
80
|
-
return json;
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
|
|
84
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
85
|
-
'ref': json['ref'] == null ? undefined : json['ref'],
|
|
86
|
-
'title': json['title'],
|
|
87
|
-
'styleCode': json['styleCode'] == null ? undefined : json['styleCode'],
|
|
88
|
-
'material': json['material'] == null ? undefined : json['material'],
|
|
89
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
90
|
-
'specifications': json['specifications'] == null ? undefined : json['specifications'],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function ProductToJSON(value?: Product | null): any {
|
|
95
|
-
if (value == null) {
|
|
96
|
-
return value;
|
|
97
|
-
}
|
|
98
|
-
return {
|
|
99
|
-
|
|
100
|
-
'id': value['id'],
|
|
101
|
-
'ref': value['ref'],
|
|
102
|
-
'title': value['title'],
|
|
103
|
-
'styleCode': value['styleCode'],
|
|
104
|
-
'material': value['material'],
|
|
105
|
-
'description': value['description'],
|
|
106
|
-
'specifications': value['specifications'],
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* GFN Catalog API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.4.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { Product } from './Product';
|
|
17
|
-
import {
|
|
18
|
-
ProductFromJSON,
|
|
19
|
-
ProductFromJSONTyped,
|
|
20
|
-
ProductToJSON,
|
|
21
|
-
} from './Product';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface ProductsResponse
|
|
27
|
-
*/
|
|
28
|
-
export interface ProductsResponse {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Array<Product>}
|
|
32
|
-
* @memberof ProductsResponse
|
|
33
|
-
*/
|
|
34
|
-
products?: Array<Product>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof ProductsResponse
|
|
39
|
-
*/
|
|
40
|
-
nextPageToken?: number;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the ProductsResponse interface.
|
|
45
|
-
*/
|
|
46
|
-
export function instanceOfProductsResponse(value: object): value is ProductsResponse {
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function ProductsResponseFromJSON(json: any): ProductsResponse {
|
|
51
|
-
return ProductsResponseFromJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function ProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductsResponse {
|
|
55
|
-
if (json == null) {
|
|
56
|
-
return json;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
|
|
60
|
-
'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductFromJSON)),
|
|
61
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function ProductsResponseToJSON(value?: ProductsResponse | null): any {
|
|
66
|
-
if (value == null) {
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductToJSON)),
|
|
72
|
-
'nextPageToken': value['nextPageToken'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|