@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.
Files changed (139) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/ProductsApi.d.ts +1 -1
  5. package/dist/apis/ProductsApi.js +3 -3
  6. package/dist/apis/StatementsApi.d.ts +48 -0
  7. package/dist/apis/StatementsApi.js +127 -0
  8. package/dist/apis/TransactionsApi.d.ts +48 -0
  9. package/dist/apis/TransactionsApi.js +129 -0
  10. package/dist/apis/VariantsApi.d.ts +1 -1
  11. package/dist/apis/VariantsApi.js +9 -9
  12. package/dist/apis/index.d.ts +2 -0
  13. package/dist/apis/index.js +2 -0
  14. package/dist/esm/apis/ProductsApi.d.ts +1 -1
  15. package/dist/esm/apis/ProductsApi.js +3 -3
  16. package/dist/esm/apis/StatementsApi.d.ts +48 -0
  17. package/dist/esm/apis/StatementsApi.js +123 -0
  18. package/dist/esm/apis/TransactionsApi.d.ts +48 -0
  19. package/dist/esm/apis/TransactionsApi.js +125 -0
  20. package/dist/esm/apis/VariantsApi.d.ts +1 -1
  21. package/dist/esm/apis/VariantsApi.js +9 -9
  22. package/dist/esm/apis/index.d.ts +2 -0
  23. package/dist/esm/apis/index.js +2 -0
  24. package/dist/esm/models/ApiError.d.ts +2 -2
  25. package/dist/esm/models/ApiError.js +2 -2
  26. package/dist/esm/models/ApiValidationError.d.ts +39 -0
  27. package/dist/esm/models/ApiValidationError.js +44 -0
  28. package/dist/esm/models/Attribute.d.ts +2 -2
  29. package/dist/esm/models/Attribute.js +3 -3
  30. package/dist/esm/models/AttributeThumbnail.d.ts +2 -2
  31. package/dist/esm/models/AttributeThumbnail.js +1 -1
  32. package/dist/esm/models/ExportTransactionsRequest.d.ts +43 -0
  33. package/dist/esm/models/ExportTransactionsRequest.js +42 -0
  34. package/dist/esm/models/Image.d.ts +2 -2
  35. package/dist/esm/models/Image.js +1 -1
  36. package/dist/esm/models/ListStatements200Response.d.ts +38 -0
  37. package/dist/esm/models/ListStatements200Response.js +41 -0
  38. package/dist/esm/models/ListTransactions200Response.d.ts +38 -0
  39. package/dist/esm/models/ListTransactions200Response.js +41 -0
  40. package/dist/esm/models/Product.d.ts +2 -2
  41. package/dist/esm/models/Product.js +2 -2
  42. package/dist/esm/models/ProductsResponse.d.ts +2 -2
  43. package/dist/esm/models/ProductsResponse.js +1 -1
  44. package/dist/esm/models/Statement.d.ts +61 -0
  45. package/dist/esm/models/Statement.js +60 -0
  46. package/dist/esm/models/Stock.d.ts +2 -2
  47. package/dist/esm/models/Stock.js +1 -1
  48. package/dist/esm/models/StockResponse.d.ts +2 -2
  49. package/dist/esm/models/StockResponse.js +1 -1
  50. package/dist/esm/models/Transaction.d.ts +68 -0
  51. package/dist/esm/models/Transaction.js +61 -0
  52. package/dist/esm/models/TransactionOrder.d.ts +37 -0
  53. package/dist/esm/models/TransactionOrder.js +44 -0
  54. package/dist/esm/models/Variant.d.ts +4 -4
  55. package/dist/esm/models/Variant.js +5 -5
  56. package/dist/esm/models/VariantManufacturerOrigin.d.ts +2 -2
  57. package/dist/esm/models/VariantManufacturerOrigin.js +1 -1
  58. package/dist/esm/models/VariantProduct.d.ts +2 -2
  59. package/dist/esm/models/VariantProduct.js +1 -1
  60. package/dist/esm/models/VariantStock.d.ts +2 -2
  61. package/dist/esm/models/VariantStock.js +1 -1
  62. package/dist/esm/models/VariantsResponse.d.ts +2 -2
  63. package/dist/esm/models/VariantsResponse.js +1 -1
  64. package/dist/esm/models/index.d.ts +7 -0
  65. package/dist/esm/models/index.js +7 -0
  66. package/dist/esm/runtime.d.ts +1 -1
  67. package/dist/esm/runtime.js +1 -1
  68. package/dist/models/ApiError.d.ts +2 -2
  69. package/dist/models/ApiError.js +2 -2
  70. package/dist/models/ApiValidationError.d.ts +39 -0
  71. package/dist/models/ApiValidationError.js +51 -0
  72. package/dist/models/Attribute.d.ts +2 -2
  73. package/dist/models/Attribute.js +3 -3
  74. package/dist/models/AttributeThumbnail.d.ts +2 -2
  75. package/dist/models/AttributeThumbnail.js +1 -1
  76. package/dist/models/ExportTransactionsRequest.d.ts +43 -0
  77. package/dist/models/ExportTransactionsRequest.js +49 -0
  78. package/dist/models/Image.d.ts +2 -2
  79. package/dist/models/Image.js +1 -1
  80. package/dist/models/ListStatements200Response.d.ts +38 -0
  81. package/dist/models/ListStatements200Response.js +48 -0
  82. package/dist/models/ListTransactions200Response.d.ts +38 -0
  83. package/dist/models/ListTransactions200Response.js +48 -0
  84. package/dist/models/Product.d.ts +2 -2
  85. package/dist/models/Product.js +2 -2
  86. package/dist/models/ProductsResponse.d.ts +2 -2
  87. package/dist/models/ProductsResponse.js +1 -1
  88. package/dist/models/Statement.d.ts +61 -0
  89. package/dist/models/Statement.js +67 -0
  90. package/dist/models/Stock.d.ts +2 -2
  91. package/dist/models/Stock.js +1 -1
  92. package/dist/models/StockResponse.d.ts +2 -2
  93. package/dist/models/StockResponse.js +1 -1
  94. package/dist/models/Transaction.d.ts +68 -0
  95. package/dist/models/Transaction.js +68 -0
  96. package/dist/models/TransactionOrder.d.ts +37 -0
  97. package/dist/models/TransactionOrder.js +51 -0
  98. package/dist/models/Variant.d.ts +4 -4
  99. package/dist/models/Variant.js +5 -5
  100. package/dist/models/VariantManufacturerOrigin.d.ts +2 -2
  101. package/dist/models/VariantManufacturerOrigin.js +1 -1
  102. package/dist/models/VariantProduct.d.ts +2 -2
  103. package/dist/models/VariantProduct.js +1 -1
  104. package/dist/models/VariantStock.d.ts +2 -2
  105. package/dist/models/VariantStock.js +1 -1
  106. package/dist/models/VariantsResponse.d.ts +2 -2
  107. package/dist/models/VariantsResponse.js +1 -1
  108. package/dist/models/index.d.ts +7 -0
  109. package/dist/models/index.js +7 -0
  110. package/dist/runtime.d.ts +1 -1
  111. package/dist/runtime.js +1 -1
  112. package/package.json +2 -2
  113. package/src/apis/ProductsApi.ts +4 -1
  114. package/src/apis/StatementsApi.ts +177 -0
  115. package/src/apis/TransactionsApi.ts +180 -0
  116. package/src/apis/VariantsApi.ts +4 -1
  117. package/src/apis/index.ts +2 -0
  118. package/src/models/ApiError.ts +3 -3
  119. package/src/models/ApiValidationError.ts +70 -0
  120. package/src/models/Attribute.ts +4 -4
  121. package/src/models/AttributeThumbnail.ts +2 -2
  122. package/src/models/ExportTransactionsRequest.ts +76 -0
  123. package/src/models/Image.ts +2 -2
  124. package/src/models/ListStatements200Response.ts +75 -0
  125. package/src/models/ListTransactions200Response.ts +75 -0
  126. package/src/models/Product.ts +3 -3
  127. package/src/models/ProductsResponse.ts +2 -2
  128. package/src/models/Statement.ts +106 -0
  129. package/src/models/Stock.ts +2 -2
  130. package/src/models/StockResponse.ts +2 -2
  131. package/src/models/Transaction.ts +120 -0
  132. package/src/models/TransactionOrder.ts +70 -0
  133. package/src/models/Variant.ts +16 -16
  134. package/src/models/VariantManufacturerOrigin.ts +2 -2
  135. package/src/models/VariantProduct.ts +2 -2
  136. package/src/models/VariantStock.ts +2 -2
  137. package/src/models/VariantsResponse.ts +2 -2
  138. package/src/models/index.ts +7 -0
  139. package/src/runtime.ts +1 -1
@@ -0,0 +1,38 @@
1
+ /**
2
+ * GFN Catalog API
3
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
4
+ *
5
+ * The version of the OpenAPI document: 1.4.0
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Statement } from './Statement';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListStatements200Response
17
+ */
18
+ export interface ListStatements200Response {
19
+ /**
20
+ *
21
+ * @type {Array<Statement>}
22
+ * @memberof ListStatements200Response
23
+ */
24
+ statements?: Array<Statement>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof ListStatements200Response
29
+ */
30
+ nextPageToken?: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ListStatements200Response interface.
34
+ */
35
+ export declare function instanceOfListStatements200Response(value: object): value is ListStatements200Response;
36
+ export declare function ListStatements200ResponseFromJSON(json: any): ListStatements200Response;
37
+ export declare function ListStatements200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListStatements200Response;
38
+ export declare function ListStatements200ResponseToJSON(value?: ListStatements200Response | null): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GFN Catalog API
6
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
7
+ *
8
+ * The version of the OpenAPI document: 1.4.0
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListStatements200ResponseToJSON = exports.ListStatements200ResponseFromJSONTyped = exports.ListStatements200ResponseFromJSON = exports.instanceOfListStatements200Response = void 0;
17
+ const Statement_1 = require("./Statement");
18
+ /**
19
+ * Check if a given object implements the ListStatements200Response interface.
20
+ */
21
+ function instanceOfListStatements200Response(value) {
22
+ return true;
23
+ }
24
+ exports.instanceOfListStatements200Response = instanceOfListStatements200Response;
25
+ function ListStatements200ResponseFromJSON(json) {
26
+ return ListStatements200ResponseFromJSONTyped(json, false);
27
+ }
28
+ exports.ListStatements200ResponseFromJSON = ListStatements200ResponseFromJSON;
29
+ function ListStatements200ResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'statements': json['statements'] == null ? undefined : (json['statements'].map(Statement_1.StatementFromJSON)),
35
+ 'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
36
+ };
37
+ }
38
+ exports.ListStatements200ResponseFromJSONTyped = ListStatements200ResponseFromJSONTyped;
39
+ function ListStatements200ResponseToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'statements': value['statements'] == null ? undefined : (value['statements'].map(Statement_1.StatementToJSON)),
45
+ 'nextPageToken': value['nextPageToken'],
46
+ };
47
+ }
48
+ exports.ListStatements200ResponseToJSON = ListStatements200ResponseToJSON;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * GFN Catalog API
3
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
4
+ *
5
+ * The version of the OpenAPI document: 1.4.0
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Transaction } from './Transaction';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListTransactions200Response
17
+ */
18
+ export interface ListTransactions200Response {
19
+ /**
20
+ *
21
+ * @type {Array<Transaction>}
22
+ * @memberof ListTransactions200Response
23
+ */
24
+ transactions?: Array<Transaction>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof ListTransactions200Response
29
+ */
30
+ nextPageToken?: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ListTransactions200Response interface.
34
+ */
35
+ export declare function instanceOfListTransactions200Response(value: object): value is ListTransactions200Response;
36
+ export declare function ListTransactions200ResponseFromJSON(json: any): ListTransactions200Response;
37
+ export declare function ListTransactions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTransactions200Response;
38
+ export declare function ListTransactions200ResponseToJSON(value?: ListTransactions200Response | null): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GFN Catalog API
6
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
7
+ *
8
+ * The version of the OpenAPI document: 1.4.0
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListTransactions200ResponseToJSON = exports.ListTransactions200ResponseFromJSONTyped = exports.ListTransactions200ResponseFromJSON = exports.instanceOfListTransactions200Response = void 0;
17
+ const Transaction_1 = require("./Transaction");
18
+ /**
19
+ * Check if a given object implements the ListTransactions200Response interface.
20
+ */
21
+ function instanceOfListTransactions200Response(value) {
22
+ return true;
23
+ }
24
+ exports.instanceOfListTransactions200Response = instanceOfListTransactions200Response;
25
+ function ListTransactions200ResponseFromJSON(json) {
26
+ return ListTransactions200ResponseFromJSONTyped(json, false);
27
+ }
28
+ exports.ListTransactions200ResponseFromJSON = ListTransactions200ResponseFromJSON;
29
+ function ListTransactions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(Transaction_1.TransactionFromJSON)),
35
+ 'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
36
+ };
37
+ }
38
+ exports.ListTransactions200ResponseFromJSONTyped = ListTransactions200ResponseFromJSONTyped;
39
+ function ListTransactions200ResponseToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(Transaction_1.TransactionToJSON)),
45
+ 'nextPageToken': value['nextPageToken'],
46
+ };
47
+ }
48
+ exports.ListTransactions200ResponseToJSON = ListTransactions200ResponseToJSON;
@@ -2,7 +2,7 @@
2
2
  * GFN Catalog API
3
3
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
4
4
  *
5
- * The version of the OpenAPI document: 1.3.0
5
+ * The version of the OpenAPI document: 1.4.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -61,7 +61,7 @@ export interface Product {
61
61
  /**
62
62
  * Check if a given object implements the Product interface.
63
63
  */
64
- export declare function instanceOfProduct(value: object): boolean;
64
+ export declare function instanceOfProduct(value: object): value is Product;
65
65
  export declare function ProductFromJSON(json: any): Product;
66
66
  export declare function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product;
67
67
  export declare function ProductToJSON(value?: Product | null): any;
@@ -5,7 +5,7 @@
5
5
  * GFN Catalog API
6
6
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
7
7
  *
8
- * The version of the OpenAPI document: 1.3.0
8
+ * The version of the OpenAPI document: 1.4.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,7 +18,7 @@ exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON =
18
18
  * Check if a given object implements the Product interface.
19
19
  */
20
20
  function instanceOfProduct(value) {
21
- if (!('title' in value))
21
+ if (!('title' in value) || value['title'] === undefined)
22
22
  return false;
23
23
  return true;
24
24
  }
@@ -2,7 +2,7 @@
2
2
  * GFN Catalog API
3
3
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
4
4
  *
5
- * The version of the OpenAPI document: 1.3.0
5
+ * The version of the OpenAPI document: 1.4.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -32,7 +32,7 @@ export interface ProductsResponse {
32
32
  /**
33
33
  * Check if a given object implements the ProductsResponse interface.
34
34
  */
35
- export declare function instanceOfProductsResponse(value: object): boolean;
35
+ export declare function instanceOfProductsResponse(value: object): value is ProductsResponse;
36
36
  export declare function ProductsResponseFromJSON(json: any): ProductsResponse;
37
37
  export declare function ProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductsResponse;
38
38
  export declare function ProductsResponseToJSON(value?: ProductsResponse | null): any;
@@ -5,7 +5,7 @@
5
5
  * GFN Catalog API
6
6
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
7
7
  *
8
- * The version of the OpenAPI document: 1.3.0
8
+ * The version of the OpenAPI document: 1.4.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,61 @@
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;
@@ -0,0 +1,67 @@
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;
@@ -2,7 +2,7 @@
2
2
  * GFN Catalog API
3
3
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
4
4
  *
5
- * The version of the OpenAPI document: 1.3.0
5
+ * The version of the OpenAPI document: 1.4.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -25,7 +25,7 @@ export interface Stock {
25
25
  /**
26
26
  * Check if a given object implements the Stock interface.
27
27
  */
28
- export declare function instanceOfStock(value: object): boolean;
28
+ export declare function instanceOfStock(value: object): value is Stock;
29
29
  export declare function StockFromJSON(json: any): Stock;
30
30
  export declare function StockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stock;
31
31
  export declare function StockToJSON(value?: Stock | null): any;
@@ -5,7 +5,7 @@
5
5
  * GFN Catalog API
6
6
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
7
7
  *
8
- * The version of the OpenAPI document: 1.3.0
8
+ * The version of the OpenAPI document: 1.4.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * GFN Catalog API
3
3
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
4
4
  *
5
- * The version of the OpenAPI document: 1.3.0
5
+ * The version of the OpenAPI document: 1.4.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -32,7 +32,7 @@ export interface StockResponse {
32
32
  /**
33
33
  * Check if a given object implements the StockResponse interface.
34
34
  */
35
- export declare function instanceOfStockResponse(value: object): boolean;
35
+ export declare function instanceOfStockResponse(value: object): value is StockResponse;
36
36
  export declare function StockResponseFromJSON(json: any): StockResponse;
37
37
  export declare function StockResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StockResponse;
38
38
  export declare function StockResponseToJSON(value?: StockResponse | null): any;
@@ -5,7 +5,7 @@
5
5
  * GFN Catalog API
6
6
  * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
7
7
  *
8
- * The version of the OpenAPI document: 1.3.0
8
+ * The version of the OpenAPI document: 1.4.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,68 @@
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;
@@ -0,0 +1,68 @@
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;
@@ -0,0 +1,37 @@
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;