@teemill/gfn-catalog 1.3.0 → 1.4.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 +9 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProductsApi.d.ts +1 -1
- package/dist/apis/ProductsApi.js +3 -3
- package/dist/apis/StatementsApi.d.ts +48 -0
- package/dist/apis/StatementsApi.js +127 -0
- package/dist/apis/TransactionsApi.d.ts +48 -0
- package/dist/apis/TransactionsApi.js +129 -0
- package/dist/apis/VariantsApi.d.ts +1 -1
- package/dist/apis/VariantsApi.js +9 -9
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/ProductsApi.d.ts +1 -1
- package/dist/esm/apis/ProductsApi.js +3 -3
- package/dist/esm/apis/StatementsApi.d.ts +48 -0
- package/dist/esm/apis/StatementsApi.js +123 -0
- package/dist/esm/apis/TransactionsApi.d.ts +48 -0
- package/dist/esm/apis/TransactionsApi.js +125 -0
- package/dist/esm/apis/VariantsApi.d.ts +1 -1
- package/dist/esm/apis/VariantsApi.js +9 -9
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/ApiError.d.ts +2 -2
- package/dist/esm/models/ApiError.js +2 -2
- package/dist/esm/models/ApiValidationError.d.ts +39 -0
- package/dist/esm/models/ApiValidationError.js +44 -0
- package/dist/esm/models/Attribute.d.ts +2 -2
- package/dist/esm/models/Attribute.js +3 -3
- package/dist/esm/models/AttributeThumbnail.d.ts +2 -2
- package/dist/esm/models/AttributeThumbnail.js +1 -1
- package/dist/esm/models/ExportTransactionsRequest.d.ts +43 -0
- package/dist/esm/models/ExportTransactionsRequest.js +42 -0
- package/dist/esm/models/Image.d.ts +2 -2
- package/dist/esm/models/Image.js +1 -1
- package/dist/esm/models/ListStatements200Response.d.ts +38 -0
- package/dist/esm/models/ListStatements200Response.js +41 -0
- package/dist/esm/models/ListTransactions200Response.d.ts +38 -0
- package/dist/esm/models/ListTransactions200Response.js +41 -0
- package/dist/esm/models/Product.d.ts +2 -2
- package/dist/esm/models/Product.js +2 -2
- package/dist/esm/models/ProductsResponse.d.ts +2 -2
- package/dist/esm/models/ProductsResponse.js +1 -1
- package/dist/esm/models/Statement.d.ts +61 -0
- package/dist/esm/models/Statement.js +60 -0
- package/dist/esm/models/Stock.d.ts +2 -2
- package/dist/esm/models/Stock.js +1 -1
- package/dist/esm/models/StockResponse.d.ts +2 -2
- package/dist/esm/models/StockResponse.js +1 -1
- package/dist/esm/models/Transaction.d.ts +68 -0
- package/dist/esm/models/Transaction.js +61 -0
- package/dist/esm/models/TransactionOrder.d.ts +37 -0
- package/dist/esm/models/TransactionOrder.js +44 -0
- package/dist/esm/models/Variant.d.ts +4 -4
- package/dist/esm/models/Variant.js +5 -5
- package/dist/esm/models/VariantManufacturerOrigin.d.ts +2 -2
- package/dist/esm/models/VariantManufacturerOrigin.js +1 -1
- package/dist/esm/models/VariantProduct.d.ts +2 -2
- package/dist/esm/models/VariantProduct.js +1 -1
- package/dist/esm/models/VariantStock.d.ts +2 -2
- package/dist/esm/models/VariantStock.js +1 -1
- package/dist/esm/models/VariantsResponse.d.ts +2 -2
- package/dist/esm/models/VariantsResponse.js +1 -1
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/ApiError.d.ts +2 -2
- package/dist/models/ApiError.js +2 -2
- package/dist/models/ApiValidationError.d.ts +39 -0
- package/dist/models/ApiValidationError.js +51 -0
- package/dist/models/Attribute.d.ts +2 -2
- package/dist/models/Attribute.js +3 -3
- package/dist/models/AttributeThumbnail.d.ts +2 -2
- package/dist/models/AttributeThumbnail.js +1 -1
- package/dist/models/ExportTransactionsRequest.d.ts +43 -0
- package/dist/models/ExportTransactionsRequest.js +49 -0
- package/dist/models/Image.d.ts +2 -2
- package/dist/models/Image.js +1 -1
- package/dist/models/ListStatements200Response.d.ts +38 -0
- package/dist/models/ListStatements200Response.js +48 -0
- package/dist/models/ListTransactions200Response.d.ts +38 -0
- package/dist/models/ListTransactions200Response.js +48 -0
- package/dist/models/Product.d.ts +2 -2
- package/dist/models/Product.js +2 -2
- package/dist/models/ProductsResponse.d.ts +2 -2
- package/dist/models/ProductsResponse.js +1 -1
- package/dist/models/Statement.d.ts +61 -0
- package/dist/models/Statement.js +67 -0
- package/dist/models/Stock.d.ts +2 -2
- package/dist/models/Stock.js +1 -1
- package/dist/models/StockResponse.d.ts +2 -2
- package/dist/models/StockResponse.js +1 -1
- package/dist/models/Transaction.d.ts +68 -0
- package/dist/models/Transaction.js +68 -0
- package/dist/models/TransactionOrder.d.ts +37 -0
- package/dist/models/TransactionOrder.js +51 -0
- package/dist/models/Variant.d.ts +4 -4
- package/dist/models/Variant.js +5 -5
- package/dist/models/VariantManufacturerOrigin.d.ts +2 -2
- package/dist/models/VariantManufacturerOrigin.js +1 -1
- package/dist/models/VariantProduct.d.ts +2 -2
- package/dist/models/VariantProduct.js +1 -1
- package/dist/models/VariantStock.d.ts +2 -2
- package/dist/models/VariantStock.js +1 -1
- package/dist/models/VariantsResponse.d.ts +2 -2
- package/dist/models/VariantsResponse.js +1 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
- package/src/apis/ProductsApi.ts +4 -1
- package/src/apis/StatementsApi.ts +177 -0
- package/src/apis/TransactionsApi.ts +180 -0
- package/src/apis/VariantsApi.ts +4 -1
- package/src/apis/index.ts +2 -0
- package/src/models/ApiError.ts +3 -3
- package/src/models/ApiValidationError.ts +70 -0
- package/src/models/Attribute.ts +4 -4
- package/src/models/AttributeThumbnail.ts +2 -2
- package/src/models/ExportTransactionsRequest.ts +76 -0
- package/src/models/Image.ts +2 -2
- package/src/models/ListStatements200Response.ts +75 -0
- package/src/models/ListTransactions200Response.ts +75 -0
- package/src/models/Product.ts +3 -3
- package/src/models/ProductsResponse.ts +2 -2
- package/src/models/Statement.ts +106 -0
- package/src/models/Stock.ts +2 -2
- package/src/models/StockResponse.ts +2 -2
- package/src/models/Transaction.ts +120 -0
- package/src/models/TransactionOrder.ts +70 -0
- package/src/models/Variant.ts +16 -16
- package/src/models/VariantManufacturerOrigin.ts +2 -2
- package/src/models/VariantProduct.ts +2 -2
- package/src/models/VariantStock.ts +2 -2
- package/src/models/VariantsResponse.ts +2 -2
- package/src/models/index.ts +7 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,106 @@
|
|
|
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 Statement
|
|
20
|
+
*/
|
|
21
|
+
export interface Statement {
|
|
22
|
+
/**
|
|
23
|
+
* Unique object identifier
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Statement
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* A reference to the resource location
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Statement
|
|
32
|
+
*/
|
|
33
|
+
ref: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof Statement
|
|
38
|
+
*/
|
|
39
|
+
total: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Statement
|
|
44
|
+
*/
|
|
45
|
+
startDate: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Statement
|
|
50
|
+
*/
|
|
51
|
+
endDate: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Statement
|
|
56
|
+
*/
|
|
57
|
+
createdAt: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the Statement interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfStatement(value: object): value is Statement {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('ref' in value) || value['ref'] === undefined) return false;
|
|
66
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
67
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
68
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
69
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function StatementFromJSON(json: any): Statement {
|
|
74
|
+
return StatementFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function StatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): Statement {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'ref': json['ref'],
|
|
85
|
+
'total': json['total'],
|
|
86
|
+
'startDate': json['startDate'],
|
|
87
|
+
'endDate': json['endDate'],
|
|
88
|
+
'createdAt': json['createdAt'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function StatementToJSON(value?: Statement | null): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'id': value['id'],
|
|
99
|
+
'ref': value['ref'],
|
|
100
|
+
'total': value['total'],
|
|
101
|
+
'startDate': value['startDate'],
|
|
102
|
+
'endDate': value['endDate'],
|
|
103
|
+
'createdAt': value['createdAt'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
package/src/models/Stock.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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -30,7 +30,7 @@ export interface Stock {
|
|
|
30
30
|
/**
|
|
31
31
|
* Check if a given object implements the Stock interface.
|
|
32
32
|
*/
|
|
33
|
-
export function instanceOfStock(value: object):
|
|
33
|
+
export function instanceOfStock(value: object): value is Stock {
|
|
34
34
|
return true;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,7 +43,7 @@ export interface StockResponse {
|
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the StockResponse interface.
|
|
45
45
|
*/
|
|
46
|
-
export function instanceOfStockResponse(value: object):
|
|
46
|
+
export function instanceOfStockResponse(value: object): value is StockResponse {
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -0,0 +1,120 @@
|
|
|
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 { TransactionOrder } from './TransactionOrder';
|
|
17
|
+
import {
|
|
18
|
+
TransactionOrderFromJSON,
|
|
19
|
+
TransactionOrderFromJSONTyped,
|
|
20
|
+
TransactionOrderToJSON,
|
|
21
|
+
} from './TransactionOrder';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Transaction
|
|
27
|
+
*/
|
|
28
|
+
export interface Transaction {
|
|
29
|
+
/**
|
|
30
|
+
* Unique object identifier
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Transaction
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* A reference to the resource location
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Transaction
|
|
39
|
+
*/
|
|
40
|
+
ref: string;
|
|
41
|
+
/**
|
|
42
|
+
* A reference to the resource location
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Transaction
|
|
45
|
+
*/
|
|
46
|
+
statement?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {TransactionOrder}
|
|
50
|
+
* @memberof Transaction
|
|
51
|
+
*/
|
|
52
|
+
order: TransactionOrder;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {TransactionOrder}
|
|
56
|
+
* @memberof Transaction
|
|
57
|
+
*/
|
|
58
|
+
fulfillment?: TransactionOrder;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof Transaction
|
|
63
|
+
*/
|
|
64
|
+
total: number;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof Transaction
|
|
69
|
+
*/
|
|
70
|
+
issuedAt: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the Transaction interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfTransaction(value: object): value is Transaction {
|
|
77
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
78
|
+
if (!('ref' in value) || value['ref'] === undefined) return false;
|
|
79
|
+
if (!('order' in value) || value['order'] === undefined) return false;
|
|
80
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
81
|
+
if (!('issuedAt' in value) || value['issuedAt'] === undefined) return false;
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function TransactionFromJSON(json: any): Transaction {
|
|
86
|
+
return TransactionFromJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function TransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transaction {
|
|
90
|
+
if (json == null) {
|
|
91
|
+
return json;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': json['id'],
|
|
96
|
+
'ref': json['ref'],
|
|
97
|
+
'statement': json['statement'] == null ? undefined : json['statement'],
|
|
98
|
+
'order': TransactionOrderFromJSON(json['order']),
|
|
99
|
+
'fulfillment': json['fulfillment'] == null ? undefined : TransactionOrderFromJSON(json['fulfillment']),
|
|
100
|
+
'total': json['total'],
|
|
101
|
+
'issuedAt': json['issuedAt'],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function TransactionToJSON(value?: Transaction | null): any {
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'ref': value['ref'],
|
|
113
|
+
'statement': value['statement'],
|
|
114
|
+
'order': TransactionOrderToJSON(value['order']),
|
|
115
|
+
'fulfillment': TransactionOrderToJSON(value['fulfillment']),
|
|
116
|
+
'total': value['total'],
|
|
117
|
+
'issuedAt': value['issuedAt'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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 TransactionOrder
|
|
20
|
+
*/
|
|
21
|
+
export interface TransactionOrder {
|
|
22
|
+
/**
|
|
23
|
+
* A reference to the resource location
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TransactionOrder
|
|
26
|
+
*/
|
|
27
|
+
ref: string;
|
|
28
|
+
/**
|
|
29
|
+
* A reference to the resource location
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TransactionOrder
|
|
32
|
+
*/
|
|
33
|
+
project: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the TransactionOrder interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfTransactionOrder(value: object): value is TransactionOrder {
|
|
40
|
+
if (!('ref' in value) || value['ref'] === undefined) return false;
|
|
41
|
+
if (!('project' in value) || value['project'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TransactionOrderFromJSON(json: any): TransactionOrder {
|
|
46
|
+
return TransactionOrderFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TransactionOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionOrder {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'ref': json['ref'],
|
|
56
|
+
'project': json['project'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TransactionOrderToJSON(value?: TransactionOrder | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'ref': value['ref'],
|
|
67
|
+
'project': value['project'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
package/src/models/Variant.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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,6 +13,18 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { VariantManufacturerOrigin } from './VariantManufacturerOrigin';
|
|
17
|
+
import {
|
|
18
|
+
VariantManufacturerOriginFromJSON,
|
|
19
|
+
VariantManufacturerOriginFromJSONTyped,
|
|
20
|
+
VariantManufacturerOriginToJSON,
|
|
21
|
+
} from './VariantManufacturerOrigin';
|
|
22
|
+
import type { VariantProduct } from './VariantProduct';
|
|
23
|
+
import {
|
|
24
|
+
VariantProductFromJSON,
|
|
25
|
+
VariantProductFromJSONTyped,
|
|
26
|
+
VariantProductToJSON,
|
|
27
|
+
} from './VariantProduct';
|
|
16
28
|
import type { Attribute } from './Attribute';
|
|
17
29
|
import {
|
|
18
30
|
AttributeFromJSON,
|
|
@@ -31,18 +43,6 @@ import {
|
|
|
31
43
|
StockFromJSONTyped,
|
|
32
44
|
StockToJSON,
|
|
33
45
|
} from './Stock';
|
|
34
|
-
import type { VariantManufacturerOrigin } from './VariantManufacturerOrigin';
|
|
35
|
-
import {
|
|
36
|
-
VariantManufacturerOriginFromJSON,
|
|
37
|
-
VariantManufacturerOriginFromJSONTyped,
|
|
38
|
-
VariantManufacturerOriginToJSON,
|
|
39
|
-
} from './VariantManufacturerOrigin';
|
|
40
|
-
import type { VariantProduct } from './VariantProduct';
|
|
41
|
-
import {
|
|
42
|
-
VariantProductFromJSON,
|
|
43
|
-
VariantProductFromJSONTyped,
|
|
44
|
-
VariantProductToJSON,
|
|
45
|
-
} from './VariantProduct';
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
@@ -103,9 +103,9 @@ export interface Variant {
|
|
|
103
103
|
/**
|
|
104
104
|
* Check if a given object implements the Variant interface.
|
|
105
105
|
*/
|
|
106
|
-
export function instanceOfVariant(value: object):
|
|
107
|
-
if (!('sku' in value)) return false;
|
|
108
|
-
if (!('attributes' in value)) return false;
|
|
106
|
+
export function instanceOfVariant(value: object): value is Variant {
|
|
107
|
+
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
108
|
+
if (!('attributes' in value) || value['attributes'] === undefined) return false;
|
|
109
109
|
return true;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -36,7 +36,7 @@ export interface VariantManufacturerOrigin {
|
|
|
36
36
|
/**
|
|
37
37
|
* Check if a given object implements the VariantManufacturerOrigin interface.
|
|
38
38
|
*/
|
|
39
|
-
export function instanceOfVariantManufacturerOrigin(value: object):
|
|
39
|
+
export function instanceOfVariantManufacturerOrigin(value: object): value is VariantManufacturerOrigin {
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -36,7 +36,7 @@ export interface VariantProduct {
|
|
|
36
36
|
/**
|
|
37
37
|
* Check if a given object implements the VariantProduct interface.
|
|
38
38
|
*/
|
|
39
|
-
export function instanceOfVariantProduct(value: object):
|
|
39
|
+
export function instanceOfVariantProduct(value: object): value is VariantProduct {
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -55,7 +55,7 @@ export interface VariantStock {
|
|
|
55
55
|
/**
|
|
56
56
|
* Check if a given object implements the VariantStock interface.
|
|
57
57
|
*/
|
|
58
|
-
export function instanceOfVariantStock(value: object):
|
|
58
|
+
export function instanceOfVariantStock(value: object): value is VariantStock {
|
|
59
59
|
return true;
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,7 +43,7 @@ export interface VariantsResponse {
|
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the VariantsResponse interface.
|
|
45
45
|
*/
|
|
46
|
-
export function instanceOfVariantsResponse(value: object):
|
|
46
|
+
export function instanceOfVariantsResponse(value: object): value is VariantsResponse {
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
|
package/src/models/index.ts
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './ApiError';
|
|
4
|
+
export * from './ApiValidationError';
|
|
4
5
|
export * from './Attribute';
|
|
5
6
|
export * from './AttributeThumbnail';
|
|
7
|
+
export * from './ExportTransactionsRequest';
|
|
6
8
|
export * from './Image';
|
|
9
|
+
export * from './ListStatements200Response';
|
|
10
|
+
export * from './ListTransactions200Response';
|
|
7
11
|
export * from './Product';
|
|
8
12
|
export * from './ProductsResponse';
|
|
13
|
+
export * from './Statement';
|
|
9
14
|
export * from './Stock';
|
|
10
15
|
export * from './StockResponse';
|
|
16
|
+
export * from './Transaction';
|
|
17
|
+
export * from './TransactionOrder';
|
|
11
18
|
export * from './Variant';
|
|
12
19
|
export * from './VariantManufacturerOrigin';
|
|
13
20
|
export * from './VariantProduct';
|
package/src/runtime.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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|