@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.
Files changed (164) hide show
  1. package/.openapi-generator/FILES +7 -28
  2. package/README.md +3 -3
  3. package/api.ts +1646 -0
  4. package/base.ts +86 -0
  5. package/common.ts +150 -0
  6. package/configuration.ts +110 -0
  7. package/dist/api.d.ts +1074 -0
  8. package/dist/api.js +1014 -0
  9. package/dist/base.d.ts +66 -0
  10. package/dist/base.js +65 -0
  11. package/dist/common.d.ts +65 -0
  12. package/dist/common.js +161 -0
  13. package/dist/configuration.d.ts +91 -0
  14. package/dist/configuration.js +43 -0
  15. package/dist/esm/api.d.ts +1074 -0
  16. package/dist/esm/api.js +995 -0
  17. package/dist/esm/base.d.ts +66 -0
  18. package/dist/esm/{models/AttributeThumbnail.js → base.js} +38 -26
  19. package/dist/esm/common.d.ts +65 -0
  20. package/dist/esm/common.js +149 -0
  21. package/dist/esm/configuration.d.ts +91 -0
  22. package/dist/esm/configuration.js +39 -0
  23. package/dist/esm/index.d.ts +13 -3
  24. package/dist/esm/index.js +13 -3
  25. package/dist/index.d.ts +13 -3
  26. package/dist/index.js +15 -5
  27. package/git_push.sh +57 -0
  28. package/{dist/models/Stock.d.ts → index.ts} +8 -21
  29. package/package.json +14 -2
  30. package/tsconfig.json +4 -6
  31. package/dist/apis/ProductsApi.d.ts +0 -35
  32. package/dist/apis/ProductsApi.js +0 -85
  33. package/dist/apis/StatementsApi.d.ts +0 -48
  34. package/dist/apis/StatementsApi.js +0 -127
  35. package/dist/apis/TransactionsApi.d.ts +0 -48
  36. package/dist/apis/TransactionsApi.js +0 -129
  37. package/dist/apis/VariantsApi.d.ts +0 -82
  38. package/dist/apis/VariantsApi.js +0 -229
  39. package/dist/apis/index.d.ts +0 -4
  40. package/dist/apis/index.js +0 -22
  41. package/dist/esm/apis/ProductsApi.d.ts +0 -35
  42. package/dist/esm/apis/ProductsApi.js +0 -81
  43. package/dist/esm/apis/StatementsApi.d.ts +0 -48
  44. package/dist/esm/apis/StatementsApi.js +0 -123
  45. package/dist/esm/apis/TransactionsApi.d.ts +0 -48
  46. package/dist/esm/apis/TransactionsApi.js +0 -125
  47. package/dist/esm/apis/VariantsApi.d.ts +0 -82
  48. package/dist/esm/apis/VariantsApi.js +0 -225
  49. package/dist/esm/apis/index.d.ts +0 -4
  50. package/dist/esm/apis/index.js +0 -6
  51. package/dist/esm/models/ApiError.d.ts +0 -37
  52. package/dist/esm/models/ApiError.js +0 -42
  53. package/dist/esm/models/ApiValidationError.d.ts +0 -39
  54. package/dist/esm/models/ApiValidationError.js +0 -44
  55. package/dist/esm/models/Attribute.d.ts +0 -50
  56. package/dist/esm/models/Attribute.js +0 -49
  57. package/dist/esm/models/AttributeThumbnail.d.ts +0 -46
  58. package/dist/esm/models/ExportTransactionsRequest.d.ts +0 -43
  59. package/dist/esm/models/ExportTransactionsRequest.js +0 -42
  60. package/dist/esm/models/Image.d.ts +0 -67
  61. package/dist/esm/models/Image.js +0 -50
  62. package/dist/esm/models/ListStatements200Response.d.ts +0 -38
  63. package/dist/esm/models/ListStatements200Response.js +0 -41
  64. package/dist/esm/models/ListTransactions200Response.d.ts +0 -38
  65. package/dist/esm/models/ListTransactions200Response.js +0 -41
  66. package/dist/esm/models/Product.d.ts +0 -67
  67. package/dist/esm/models/Product.js +0 -52
  68. package/dist/esm/models/ProductsResponse.d.ts +0 -38
  69. package/dist/esm/models/ProductsResponse.js +0 -41
  70. package/dist/esm/models/Statement.d.ts +0 -61
  71. package/dist/esm/models/Statement.js +0 -60
  72. package/dist/esm/models/Stock.d.ts +0 -31
  73. package/dist/esm/models/Stock.js +0 -38
  74. package/dist/esm/models/StockResponse.d.ts +0 -38
  75. package/dist/esm/models/StockResponse.js +0 -41
  76. package/dist/esm/models/Transaction.d.ts +0 -68
  77. package/dist/esm/models/Transaction.js +0 -61
  78. package/dist/esm/models/TransactionOrder.d.ts +0 -37
  79. package/dist/esm/models/TransactionOrder.js +0 -44
  80. package/dist/esm/models/Variant.d.ts +0 -78
  81. package/dist/esm/models/Variant.js +0 -61
  82. package/dist/esm/models/VariantManufacturerOrigin.d.ts +0 -37
  83. package/dist/esm/models/VariantManufacturerOrigin.js +0 -40
  84. package/dist/esm/models/VariantProduct.d.ts +0 -37
  85. package/dist/esm/models/VariantProduct.js +0 -40
  86. package/dist/esm/models/VariantStock.d.ts +0 -50
  87. package/dist/esm/models/VariantStock.js +0 -45
  88. package/dist/esm/models/VariantsResponse.d.ts +0 -38
  89. package/dist/esm/models/VariantsResponse.js +0 -41
  90. package/dist/esm/models/index.d.ts +0 -20
  91. package/dist/esm/models/index.js +0 -22
  92. package/dist/esm/runtime.d.ts +0 -187
  93. package/dist/esm/runtime.js +0 -333
  94. package/dist/models/ApiError.d.ts +0 -37
  95. package/dist/models/ApiError.js +0 -49
  96. package/dist/models/ApiValidationError.d.ts +0 -39
  97. package/dist/models/ApiValidationError.js +0 -51
  98. package/dist/models/Attribute.d.ts +0 -50
  99. package/dist/models/Attribute.js +0 -56
  100. package/dist/models/AttributeThumbnail.d.ts +0 -46
  101. package/dist/models/AttributeThumbnail.js +0 -55
  102. package/dist/models/ExportTransactionsRequest.d.ts +0 -43
  103. package/dist/models/ExportTransactionsRequest.js +0 -49
  104. package/dist/models/Image.d.ts +0 -67
  105. package/dist/models/Image.js +0 -57
  106. package/dist/models/ListStatements200Response.d.ts +0 -38
  107. package/dist/models/ListStatements200Response.js +0 -48
  108. package/dist/models/ListTransactions200Response.d.ts +0 -38
  109. package/dist/models/ListTransactions200Response.js +0 -48
  110. package/dist/models/Product.d.ts +0 -67
  111. package/dist/models/Product.js +0 -59
  112. package/dist/models/ProductsResponse.d.ts +0 -38
  113. package/dist/models/ProductsResponse.js +0 -48
  114. package/dist/models/Statement.d.ts +0 -61
  115. package/dist/models/Statement.js +0 -67
  116. package/dist/models/Stock.js +0 -45
  117. package/dist/models/StockResponse.d.ts +0 -38
  118. package/dist/models/StockResponse.js +0 -48
  119. package/dist/models/Transaction.d.ts +0 -68
  120. package/dist/models/Transaction.js +0 -68
  121. package/dist/models/TransactionOrder.d.ts +0 -37
  122. package/dist/models/TransactionOrder.js +0 -51
  123. package/dist/models/Variant.d.ts +0 -78
  124. package/dist/models/Variant.js +0 -68
  125. package/dist/models/VariantManufacturerOrigin.d.ts +0 -37
  126. package/dist/models/VariantManufacturerOrigin.js +0 -47
  127. package/dist/models/VariantProduct.d.ts +0 -37
  128. package/dist/models/VariantProduct.js +0 -47
  129. package/dist/models/VariantStock.d.ts +0 -50
  130. package/dist/models/VariantStock.js +0 -52
  131. package/dist/models/VariantsResponse.d.ts +0 -38
  132. package/dist/models/VariantsResponse.js +0 -48
  133. package/dist/models/index.d.ts +0 -20
  134. package/dist/models/index.js +0 -38
  135. package/dist/runtime.d.ts +0 -187
  136. package/dist/runtime.js +0 -349
  137. package/src/apis/ProductsApi.ts +0 -116
  138. package/src/apis/StatementsApi.ts +0 -177
  139. package/src/apis/TransactionsApi.ts +0 -180
  140. package/src/apis/VariantsApi.ts +0 -345
  141. package/src/apis/index.ts +0 -6
  142. package/src/index.ts +0 -5
  143. package/src/models/ApiError.ts +0 -69
  144. package/src/models/ApiValidationError.ts +0 -70
  145. package/src/models/Attribute.ts +0 -93
  146. package/src/models/AttributeThumbnail.ts +0 -80
  147. package/src/models/ExportTransactionsRequest.ts +0 -76
  148. package/src/models/Image.ts +0 -108
  149. package/src/models/ListStatements200Response.ts +0 -75
  150. package/src/models/ListTransactions200Response.ts +0 -75
  151. package/src/models/Product.ts +0 -109
  152. package/src/models/ProductsResponse.ts +0 -75
  153. package/src/models/Statement.ts +0 -106
  154. package/src/models/Stock.ts +0 -60
  155. package/src/models/StockResponse.ts +0 -75
  156. package/src/models/Transaction.ts +0 -120
  157. package/src/models/TransactionOrder.ts +0 -70
  158. package/src/models/Variant.ts +0 -149
  159. package/src/models/VariantManufacturerOrigin.ts +0 -68
  160. package/src/models/VariantProduct.ts +0 -68
  161. package/src/models/VariantStock.ts +0 -91
  162. package/src/models/VariantsResponse.ts +0 -75
  163. package/src/models/index.ts +0 -22
  164. package/src/runtime.ts +0 -441
@@ -1,61 +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 Statement
16
- */
17
- export interface Statement {
18
- /**
19
- * Unique object identifier
20
- * @type {string}
21
- * @memberof Statement
22
- */
23
- id: string;
24
- /**
25
- * A reference to the resource location
26
- * @type {string}
27
- * @memberof Statement
28
- */
29
- ref: string;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof Statement
34
- */
35
- total: number;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof Statement
40
- */
41
- startDate: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof Statement
46
- */
47
- endDate: string;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof Statement
52
- */
53
- createdAt: string;
54
- }
55
- /**
56
- * Check if a given object implements the Statement interface.
57
- */
58
- export declare function instanceOfStatement(value: object): value is Statement;
59
- export declare function StatementFromJSON(json: any): Statement;
60
- export declare function StatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): Statement;
61
- export declare function StatementToJSON(value?: Statement | null): any;
@@ -1,67 +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.StatementToJSON = exports.StatementFromJSONTyped = exports.StatementFromJSON = exports.instanceOfStatement = void 0;
17
- /**
18
- * Check if a given object implements the Statement interface.
19
- */
20
- function instanceOfStatement(value) {
21
- if (!('id' in value) || value['id'] === undefined)
22
- return false;
23
- if (!('ref' in value) || value['ref'] === undefined)
24
- return false;
25
- if (!('total' in value) || value['total'] === undefined)
26
- return false;
27
- if (!('startDate' in value) || value['startDate'] === undefined)
28
- return false;
29
- if (!('endDate' in value) || value['endDate'] === undefined)
30
- return false;
31
- if (!('createdAt' in value) || value['createdAt'] === undefined)
32
- return false;
33
- return true;
34
- }
35
- exports.instanceOfStatement = instanceOfStatement;
36
- function StatementFromJSON(json) {
37
- return StatementFromJSONTyped(json, false);
38
- }
39
- exports.StatementFromJSON = StatementFromJSON;
40
- function StatementFromJSONTyped(json, ignoreDiscriminator) {
41
- if (json == null) {
42
- return json;
43
- }
44
- return {
45
- 'id': json['id'],
46
- 'ref': json['ref'],
47
- 'total': json['total'],
48
- 'startDate': json['startDate'],
49
- 'endDate': json['endDate'],
50
- 'createdAt': json['createdAt'],
51
- };
52
- }
53
- exports.StatementFromJSONTyped = StatementFromJSONTyped;
54
- function StatementToJSON(value) {
55
- if (value == null) {
56
- return value;
57
- }
58
- return {
59
- 'id': value['id'],
60
- 'ref': value['ref'],
61
- 'total': value['total'],
62
- 'startDate': value['startDate'],
63
- 'endDate': value['endDate'],
64
- 'createdAt': value['createdAt'],
65
- };
66
- }
67
- exports.StatementToJSON = StatementToJSON;
@@ -1,45 +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.StockToJSON = exports.StockFromJSONTyped = exports.StockFromJSON = exports.instanceOfStock = void 0;
17
- /**
18
- * Check if a given object implements the Stock interface.
19
- */
20
- function instanceOfStock(value) {
21
- return true;
22
- }
23
- exports.instanceOfStock = instanceOfStock;
24
- function StockFromJSON(json) {
25
- return StockFromJSONTyped(json, false);
26
- }
27
- exports.StockFromJSON = StockFromJSON;
28
- function StockFromJSONTyped(json, ignoreDiscriminator) {
29
- if (json == null) {
30
- return json;
31
- }
32
- return {
33
- 'level': json['level'] == null ? undefined : json['level'],
34
- };
35
- }
36
- exports.StockFromJSONTyped = StockFromJSONTyped;
37
- function StockToJSON(value) {
38
- if (value == null) {
39
- return value;
40
- }
41
- return {
42
- 'level': value['level'],
43
- };
44
- }
45
- exports.StockToJSON = StockToJSON;
@@ -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 { VariantStock } from './VariantStock';
13
- /**
14
- *
15
- * @export
16
- * @interface StockResponse
17
- */
18
- export interface StockResponse {
19
- /**
20
- *
21
- * @type {Array<VariantStock>}
22
- * @memberof StockResponse
23
- */
24
- variants?: Array<VariantStock>;
25
- /**
26
- *
27
- * @type {number}
28
- * @memberof StockResponse
29
- */
30
- nextPageToken?: number;
31
- }
32
- /**
33
- * Check if a given object implements the StockResponse interface.
34
- */
35
- export declare function instanceOfStockResponse(value: object): value is StockResponse;
36
- export declare function StockResponseFromJSON(json: any): StockResponse;
37
- export declare function StockResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StockResponse;
38
- export declare function StockResponseToJSON(value?: StockResponse | 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.StockResponseToJSON = exports.StockResponseFromJSONTyped = exports.StockResponseFromJSON = exports.instanceOfStockResponse = void 0;
17
- const VariantStock_1 = require("./VariantStock");
18
- /**
19
- * Check if a given object implements the StockResponse interface.
20
- */
21
- function instanceOfStockResponse(value) {
22
- return true;
23
- }
24
- exports.instanceOfStockResponse = instanceOfStockResponse;
25
- function StockResponseFromJSON(json) {
26
- return StockResponseFromJSONTyped(json, false);
27
- }
28
- exports.StockResponseFromJSON = StockResponseFromJSON;
29
- function StockResponseFromJSONTyped(json, ignoreDiscriminator) {
30
- if (json == null) {
31
- return json;
32
- }
33
- return {
34
- 'variants': json['variants'] == null ? undefined : (json['variants'].map(VariantStock_1.VariantStockFromJSON)),
35
- 'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
36
- };
37
- }
38
- exports.StockResponseFromJSONTyped = StockResponseFromJSONTyped;
39
- function StockResponseToJSON(value) {
40
- if (value == null) {
41
- return value;
42
- }
43
- return {
44
- 'variants': value['variants'] == null ? undefined : (value['variants'].map(VariantStock_1.VariantStockToJSON)),
45
- 'nextPageToken': value['nextPageToken'],
46
- };
47
- }
48
- exports.StockResponseToJSON = StockResponseToJSON;
@@ -1,68 +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 { TransactionOrder } from './TransactionOrder';
13
- /**
14
- *
15
- * @export
16
- * @interface Transaction
17
- */
18
- export interface Transaction {
19
- /**
20
- * Unique object identifier
21
- * @type {string}
22
- * @memberof Transaction
23
- */
24
- id: string;
25
- /**
26
- * A reference to the resource location
27
- * @type {string}
28
- * @memberof Transaction
29
- */
30
- ref: string;
31
- /**
32
- * A reference to the resource location
33
- * @type {string}
34
- * @memberof Transaction
35
- */
36
- statement?: string;
37
- /**
38
- *
39
- * @type {TransactionOrder}
40
- * @memberof Transaction
41
- */
42
- order: TransactionOrder;
43
- /**
44
- *
45
- * @type {TransactionOrder}
46
- * @memberof Transaction
47
- */
48
- fulfillment?: TransactionOrder;
49
- /**
50
- *
51
- * @type {number}
52
- * @memberof Transaction
53
- */
54
- total: number;
55
- /**
56
- *
57
- * @type {string}
58
- * @memberof Transaction
59
- */
60
- issuedAt: string;
61
- }
62
- /**
63
- * Check if a given object implements the Transaction interface.
64
- */
65
- export declare function instanceOfTransaction(value: object): value is Transaction;
66
- export declare function TransactionFromJSON(json: any): Transaction;
67
- export declare function TransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transaction;
68
- export declare function TransactionToJSON(value?: Transaction | null): any;
@@ -1,68 +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.TransactionToJSON = exports.TransactionFromJSONTyped = exports.TransactionFromJSON = exports.instanceOfTransaction = void 0;
17
- const TransactionOrder_1 = require("./TransactionOrder");
18
- /**
19
- * Check if a given object implements the Transaction interface.
20
- */
21
- function instanceOfTransaction(value) {
22
- if (!('id' in value) || value['id'] === undefined)
23
- return false;
24
- if (!('ref' in value) || value['ref'] === undefined)
25
- return false;
26
- if (!('order' in value) || value['order'] === undefined)
27
- return false;
28
- if (!('total' in value) || value['total'] === undefined)
29
- return false;
30
- if (!('issuedAt' in value) || value['issuedAt'] === undefined)
31
- return false;
32
- return true;
33
- }
34
- exports.instanceOfTransaction = instanceOfTransaction;
35
- function TransactionFromJSON(json) {
36
- return TransactionFromJSONTyped(json, false);
37
- }
38
- exports.TransactionFromJSON = TransactionFromJSON;
39
- function TransactionFromJSONTyped(json, ignoreDiscriminator) {
40
- if (json == null) {
41
- return json;
42
- }
43
- return {
44
- 'id': json['id'],
45
- 'ref': json['ref'],
46
- 'statement': json['statement'] == null ? undefined : json['statement'],
47
- 'order': (0, TransactionOrder_1.TransactionOrderFromJSON)(json['order']),
48
- 'fulfillment': json['fulfillment'] == null ? undefined : (0, TransactionOrder_1.TransactionOrderFromJSON)(json['fulfillment']),
49
- 'total': json['total'],
50
- 'issuedAt': json['issuedAt'],
51
- };
52
- }
53
- exports.TransactionFromJSONTyped = TransactionFromJSONTyped;
54
- function TransactionToJSON(value) {
55
- if (value == null) {
56
- return value;
57
- }
58
- return {
59
- 'id': value['id'],
60
- 'ref': value['ref'],
61
- 'statement': value['statement'],
62
- 'order': (0, TransactionOrder_1.TransactionOrderToJSON)(value['order']),
63
- 'fulfillment': (0, TransactionOrder_1.TransactionOrderToJSON)(value['fulfillment']),
64
- 'total': value['total'],
65
- 'issuedAt': value['issuedAt'],
66
- };
67
- }
68
- exports.TransactionToJSON = TransactionToJSON;
@@ -1,37 +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 TransactionOrder
16
- */
17
- export interface TransactionOrder {
18
- /**
19
- * A reference to the resource location
20
- * @type {string}
21
- * @memberof TransactionOrder
22
- */
23
- ref: string;
24
- /**
25
- * A reference to the resource location
26
- * @type {string}
27
- * @memberof TransactionOrder
28
- */
29
- project: string;
30
- }
31
- /**
32
- * Check if a given object implements the TransactionOrder interface.
33
- */
34
- export declare function instanceOfTransactionOrder(value: object): value is TransactionOrder;
35
- export declare function TransactionOrderFromJSON(json: any): TransactionOrder;
36
- export declare function TransactionOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionOrder;
37
- export declare function TransactionOrderToJSON(value?: TransactionOrder | null): any;
@@ -1,51 +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.TransactionOrderToJSON = exports.TransactionOrderFromJSONTyped = exports.TransactionOrderFromJSON = exports.instanceOfTransactionOrder = void 0;
17
- /**
18
- * Check if a given object implements the TransactionOrder interface.
19
- */
20
- function instanceOfTransactionOrder(value) {
21
- if (!('ref' in value) || value['ref'] === undefined)
22
- return false;
23
- if (!('project' in value) || value['project'] === undefined)
24
- return false;
25
- return true;
26
- }
27
- exports.instanceOfTransactionOrder = instanceOfTransactionOrder;
28
- function TransactionOrderFromJSON(json) {
29
- return TransactionOrderFromJSONTyped(json, false);
30
- }
31
- exports.TransactionOrderFromJSON = TransactionOrderFromJSON;
32
- function TransactionOrderFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'ref': json['ref'],
38
- 'project': json['project'],
39
- };
40
- }
41
- exports.TransactionOrderFromJSONTyped = TransactionOrderFromJSONTyped;
42
- function TransactionOrderToJSON(value) {
43
- if (value == null) {
44
- return value;
45
- }
46
- return {
47
- 'ref': value['ref'],
48
- 'project': value['project'],
49
- };
50
- }
51
- exports.TransactionOrderToJSON = TransactionOrderToJSON;
@@ -1,78 +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 { VariantManufacturerOrigin } from './VariantManufacturerOrigin';
13
- import type { VariantProduct } from './VariantProduct';
14
- import type { Attribute } from './Attribute';
15
- import type { Image } from './Image';
16
- import type { Stock } from './Stock';
17
- /**
18
- *
19
- * @export
20
- * @interface Variant
21
- */
22
- export interface Variant {
23
- /**
24
- * Unique object identifier
25
- * @type {string}
26
- * @memberof Variant
27
- */
28
- id?: string;
29
- /**
30
- * A reference to the resource location
31
- * @type {string}
32
- * @memberof Variant
33
- */
34
- ref?: string;
35
- /**
36
- *
37
- * @type {VariantProduct}
38
- * @memberof Variant
39
- */
40
- product?: VariantProduct;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof Variant
45
- */
46
- sku: string;
47
- /**
48
- * Attributes associated to a variant such as Colour and Size. An attribute can have thumbnail type of `text`, `color`, or `image`. Attribute tags are intended for grouping and filtering, e.g. by a group of colours.
49
- * @type {Array<Attribute>}
50
- * @memberof Variant
51
- */
52
- attributes: Array<Attribute>;
53
- /**
54
- *
55
- * @type {VariantManufacturerOrigin}
56
- * @memberof Variant
57
- */
58
- manufacturerOrigin?: VariantManufacturerOrigin;
59
- /**
60
- *
61
- * @type {Stock}
62
- * @memberof Variant
63
- */
64
- stock?: Stock;
65
- /**
66
- * Images
67
- * @type {Array<Image>}
68
- * @memberof Variant
69
- */
70
- images?: Array<Image>;
71
- }
72
- /**
73
- * Check if a given object implements the Variant interface.
74
- */
75
- export declare function instanceOfVariant(value: object): value is Variant;
76
- export declare function VariantFromJSON(json: any): Variant;
77
- export declare function VariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variant;
78
- export declare function VariantToJSON(value?: Variant | null): any;
@@ -1,68 +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.VariantToJSON = exports.VariantFromJSONTyped = exports.VariantFromJSON = exports.instanceOfVariant = void 0;
17
- const VariantManufacturerOrigin_1 = require("./VariantManufacturerOrigin");
18
- const VariantProduct_1 = require("./VariantProduct");
19
- const Attribute_1 = require("./Attribute");
20
- const Image_1 = require("./Image");
21
- const Stock_1 = require("./Stock");
22
- /**
23
- * Check if a given object implements the Variant interface.
24
- */
25
- function instanceOfVariant(value) {
26
- if (!('sku' in value) || value['sku'] === undefined)
27
- return false;
28
- if (!('attributes' in value) || value['attributes'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- exports.instanceOfVariant = instanceOfVariant;
33
- function VariantFromJSON(json) {
34
- return VariantFromJSONTyped(json, false);
35
- }
36
- exports.VariantFromJSON = VariantFromJSON;
37
- function VariantFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'id': json['id'] == null ? undefined : json['id'],
43
- 'ref': json['ref'] == null ? undefined : json['ref'],
44
- 'product': json['product'] == null ? undefined : (0, VariantProduct_1.VariantProductFromJSON)(json['product']),
45
- 'sku': json['sku'],
46
- 'attributes': (json['attributes'].map(Attribute_1.AttributeFromJSON)),
47
- 'manufacturerOrigin': json['manufacturerOrigin'] == null ? undefined : (0, VariantManufacturerOrigin_1.VariantManufacturerOriginFromJSON)(json['manufacturerOrigin']),
48
- 'stock': json['stock'] == null ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
49
- 'images': json['images'] == null ? undefined : (json['images'].map(Image_1.ImageFromJSON)),
50
- };
51
- }
52
- exports.VariantFromJSONTyped = VariantFromJSONTyped;
53
- function VariantToJSON(value) {
54
- if (value == null) {
55
- return value;
56
- }
57
- return {
58
- 'id': value['id'],
59
- 'ref': value['ref'],
60
- 'product': (0, VariantProduct_1.VariantProductToJSON)(value['product']),
61
- 'sku': value['sku'],
62
- 'attributes': (value['attributes'].map(Attribute_1.AttributeToJSON)),
63
- 'manufacturerOrigin': (0, VariantManufacturerOrigin_1.VariantManufacturerOriginToJSON)(value['manufacturerOrigin']),
64
- 'stock': (0, Stock_1.StockToJSON)(value['stock']),
65
- 'images': value['images'] == null ? undefined : (value['images'].map(Image_1.ImageToJSON)),
66
- };
67
- }
68
- exports.VariantToJSON = VariantToJSON;
@@ -1,37 +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
- * Where the product was originally produced or manufactured
14
- * @export
15
- * @interface VariantManufacturerOrigin
16
- */
17
- export interface VariantManufacturerOrigin {
18
- /**
19
- * Country of origin (ISO 3166-1 alpha-2).
20
- * @type {string}
21
- * @memberof VariantManufacturerOrigin
22
- */
23
- country?: string;
24
- /**
25
- * Name of the country of origin
26
- * @type {string}
27
- * @memberof VariantManufacturerOrigin
28
- */
29
- name?: string;
30
- }
31
- /**
32
- * Check if a given object implements the VariantManufacturerOrigin interface.
33
- */
34
- export declare function instanceOfVariantManufacturerOrigin(value: object): value is VariantManufacturerOrigin;
35
- export declare function VariantManufacturerOriginFromJSON(json: any): VariantManufacturerOrigin;
36
- export declare function VariantManufacturerOriginFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantManufacturerOrigin;
37
- export declare function VariantManufacturerOriginToJSON(value?: VariantManufacturerOrigin | null): any;