@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,44 @@
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
+ * Check if a given object implements the TransactionOrder interface.
16
+ */
17
+ export function instanceOfTransactionOrder(value) {
18
+ if (!('ref' in value) || value['ref'] === undefined)
19
+ return false;
20
+ if (!('project' in value) || value['project'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function TransactionOrderFromJSON(json) {
25
+ return TransactionOrderFromJSONTyped(json, false);
26
+ }
27
+ export function TransactionOrderFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'ref': json['ref'],
33
+ 'project': json['project'],
34
+ };
35
+ }
36
+ export function TransactionOrderToJSON(value) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'ref': value['ref'],
42
+ 'project': value['project'],
43
+ };
44
+ }
@@ -2,18 +2,18 @@
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).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VariantManufacturerOrigin } from './VariantManufacturerOrigin';
13
+ import type { VariantProduct } from './VariantProduct';
12
14
  import type { Attribute } from './Attribute';
13
15
  import type { Image } from './Image';
14
16
  import type { Stock } from './Stock';
15
- import type { VariantManufacturerOrigin } from './VariantManufacturerOrigin';
16
- import type { VariantProduct } from './VariantProduct';
17
17
  /**
18
18
  *
19
19
  * @export
@@ -72,7 +72,7 @@ export interface Variant {
72
72
  /**
73
73
  * Check if a given object implements the Variant interface.
74
74
  */
75
- export declare function instanceOfVariant(value: object): boolean;
75
+ export declare function instanceOfVariant(value: object): value is Variant;
76
76
  export declare function VariantFromJSON(json: any): Variant;
77
77
  export declare function VariantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Variant;
78
78
  export declare function VariantToJSON(value?: Variant | null): any;
@@ -4,25 +4,25 @@
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.3.0
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).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VariantManufacturerOriginFromJSON, VariantManufacturerOriginToJSON, } from './VariantManufacturerOrigin';
15
+ import { VariantProductFromJSON, VariantProductToJSON, } from './VariantProduct';
14
16
  import { AttributeFromJSON, AttributeToJSON, } from './Attribute';
15
17
  import { ImageFromJSON, ImageToJSON, } from './Image';
16
18
  import { StockFromJSON, StockToJSON, } from './Stock';
17
- import { VariantManufacturerOriginFromJSON, VariantManufacturerOriginToJSON, } from './VariantManufacturerOrigin';
18
- import { VariantProductFromJSON, VariantProductToJSON, } from './VariantProduct';
19
19
  /**
20
20
  * Check if a given object implements the Variant interface.
21
21
  */
22
22
  export function instanceOfVariant(value) {
23
- if (!('sku' in value))
23
+ if (!('sku' in value) || value['sku'] === undefined)
24
24
  return false;
25
- if (!('attributes' in value))
25
+ if (!('attributes' in value) || value['attributes'] === undefined)
26
26
  return false;
27
27
  return true;
28
28
  }
@@ -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).
@@ -31,7 +31,7 @@ export interface VariantManufacturerOrigin {
31
31
  /**
32
32
  * Check if a given object implements the VariantManufacturerOrigin interface.
33
33
  */
34
- export declare function instanceOfVariantManufacturerOrigin(value: object): boolean;
34
+ export declare function instanceOfVariantManufacturerOrigin(value: object): value is VariantManufacturerOrigin;
35
35
  export declare function VariantManufacturerOriginFromJSON(json: any): VariantManufacturerOrigin;
36
36
  export declare function VariantManufacturerOriginFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantManufacturerOrigin;
37
37
  export declare function VariantManufacturerOriginToJSON(value?: VariantManufacturerOrigin | null): any;
@@ -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.3.0
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).
@@ -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).
@@ -31,7 +31,7 @@ export interface VariantProduct {
31
31
  /**
32
32
  * Check if a given object implements the VariantProduct interface.
33
33
  */
34
- export declare function instanceOfVariantProduct(value: object): boolean;
34
+ export declare function instanceOfVariantProduct(value: object): value is VariantProduct;
35
35
  export declare function VariantProductFromJSON(json: any): VariantProduct;
36
36
  export declare function VariantProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantProduct;
37
37
  export declare function VariantProductToJSON(value?: VariantProduct | null): any;
@@ -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.3.0
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).
@@ -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).
@@ -44,7 +44,7 @@ export interface VariantStock {
44
44
  /**
45
45
  * Check if a given object implements the VariantStock interface.
46
46
  */
47
- export declare function instanceOfVariantStock(value: object): boolean;
47
+ export declare function instanceOfVariantStock(value: object): value is VariantStock;
48
48
  export declare function VariantStockFromJSON(json: any): VariantStock;
49
49
  export declare function VariantStockFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantStock;
50
50
  export declare function VariantStockToJSON(value?: VariantStock | null): any;
@@ -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.3.0
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).
@@ -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 VariantsResponse {
32
32
  /**
33
33
  * Check if a given object implements the VariantsResponse interface.
34
34
  */
35
- export declare function instanceOfVariantsResponse(value: object): boolean;
35
+ export declare function instanceOfVariantsResponse(value: object): value is VariantsResponse;
36
36
  export declare function VariantsResponseFromJSON(json: any): VariantsResponse;
37
37
  export declare function VariantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantsResponse;
38
38
  export declare function VariantsResponseToJSON(value?: VariantsResponse | null): any;
@@ -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.3.0
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).
@@ -1,11 +1,18 @@
1
1
  export * from './ApiError';
2
+ export * from './ApiValidationError';
2
3
  export * from './Attribute';
3
4
  export * from './AttributeThumbnail';
5
+ export * from './ExportTransactionsRequest';
4
6
  export * from './Image';
7
+ export * from './ListStatements200Response';
8
+ export * from './ListTransactions200Response';
5
9
  export * from './Product';
6
10
  export * from './ProductsResponse';
11
+ export * from './Statement';
7
12
  export * from './Stock';
8
13
  export * from './StockResponse';
14
+ export * from './Transaction';
15
+ export * from './TransactionOrder';
9
16
  export * from './Variant';
10
17
  export * from './VariantManufacturerOrigin';
11
18
  export * from './VariantProduct';
@@ -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';
@@ -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).
@@ -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.3.0
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).
@@ -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).
@@ -31,7 +31,7 @@ export interface ApiError {
31
31
  /**
32
32
  * Check if a given object implements the ApiError interface.
33
33
  */
34
- export declare function instanceOfApiError(value: object): boolean;
34
+ export declare function instanceOfApiError(value: object): value is ApiError;
35
35
  export declare function ApiErrorFromJSON(json: any): ApiError;
36
36
  export declare function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError;
37
37
  export declare function ApiErrorToJSON(value?: ApiError | 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.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSO
18
18
  * Check if a given object implements the ApiError interface.
19
19
  */
20
20
  function instanceOfApiError(value) {
21
- if (!('message' in value))
21
+ if (!('message' in value) || value['message'] === undefined)
22
22
  return false;
23
23
  return true;
24
24
  }
@@ -0,0 +1,39 @@
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 ApiValidationError
16
+ */
17
+ export interface ApiValidationError {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiValidationError
22
+ */
23
+ message: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: Array<string>; }}
27
+ * @memberof ApiValidationError
28
+ */
29
+ errors: {
30
+ [key: string]: Array<string>;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the ApiValidationError interface.
35
+ */
36
+ export declare function instanceOfApiValidationError(value: object): value is ApiValidationError;
37
+ export declare function ApiValidationErrorFromJSON(json: any): ApiValidationError;
38
+ export declare function ApiValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiValidationError;
39
+ export declare function ApiValidationErrorToJSON(value?: ApiValidationError | null): any;
@@ -0,0 +1,51 @@
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.ApiValidationErrorToJSON = exports.ApiValidationErrorFromJSONTyped = exports.ApiValidationErrorFromJSON = exports.instanceOfApiValidationError = void 0;
17
+ /**
18
+ * Check if a given object implements the ApiValidationError interface.
19
+ */
20
+ function instanceOfApiValidationError(value) {
21
+ if (!('message' in value) || value['message'] === undefined)
22
+ return false;
23
+ if (!('errors' in value) || value['errors'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfApiValidationError = instanceOfApiValidationError;
28
+ function ApiValidationErrorFromJSON(json) {
29
+ return ApiValidationErrorFromJSONTyped(json, false);
30
+ }
31
+ exports.ApiValidationErrorFromJSON = ApiValidationErrorFromJSON;
32
+ function ApiValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'message': json['message'],
38
+ 'errors': json['errors'],
39
+ };
40
+ }
41
+ exports.ApiValidationErrorFromJSONTyped = ApiValidationErrorFromJSONTyped;
42
+ function ApiValidationErrorToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'message': value['message'],
48
+ 'errors': value['errors'],
49
+ };
50
+ }
51
+ exports.ApiValidationErrorToJSON = ApiValidationErrorToJSON;
@@ -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).
@@ -44,7 +44,7 @@ export interface Attribute {
44
44
  /**
45
45
  * Check if a given object implements the Attribute interface.
46
46
  */
47
- export declare function instanceOfAttribute(value: object): boolean;
47
+ export declare function instanceOfAttribute(value: object): value is Attribute;
48
48
  export declare function AttributeFromJSON(json: any): Attribute;
49
49
  export declare function AttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Attribute;
50
50
  export declare function AttributeToJSON(value?: Attribute | 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).
@@ -19,9 +19,9 @@ const AttributeThumbnail_1 = require("./AttributeThumbnail");
19
19
  * Check if a given object implements the Attribute interface.
20
20
  */
21
21
  function instanceOfAttribute(value) {
22
- if (!('name' in value))
22
+ if (!('name' in value) || value['name'] === undefined)
23
23
  return false;
24
- if (!('value' in value))
24
+ if (!('value' in value) || value['value'] === undefined)
25
25
  return false;
26
26
  return true;
27
27
  }
@@ -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).
@@ -40,7 +40,7 @@ export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof
40
40
  /**
41
41
  * Check if a given object implements the AttributeThumbnail interface.
42
42
  */
43
- export declare function instanceOfAttributeThumbnail(value: object): boolean;
43
+ export declare function instanceOfAttributeThumbnail(value: object): value is AttributeThumbnail;
44
44
  export declare function AttributeThumbnailFromJSON(json: any): AttributeThumbnail;
45
45
  export declare function AttributeThumbnailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeThumbnail;
46
46
  export declare function AttributeThumbnailToJSON(value?: AttributeThumbnail | 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,43 @@
1
+ /**
2
+ * GFN Catalog API
3
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
4
+ *
5
+ * The version of the OpenAPI document: 1.4.0
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ExportTransactionsRequest
16
+ */
17
+ export interface ExportTransactionsRequest {
18
+ /**
19
+ * The start date for the export
20
+ * @type {Date}
21
+ * @memberof ExportTransactionsRequest
22
+ */
23
+ start?: Date;
24
+ /**
25
+ * The end date for the export
26
+ * @type {Date}
27
+ * @memberof ExportTransactionsRequest
28
+ */
29
+ end?: Date;
30
+ /**
31
+ * Include only transactions from this statement
32
+ * @type {string}
33
+ * @memberof ExportTransactionsRequest
34
+ */
35
+ statement?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ExportTransactionsRequest interface.
39
+ */
40
+ export declare function instanceOfExportTransactionsRequest(value: object): value is ExportTransactionsRequest;
41
+ export declare function ExportTransactionsRequestFromJSON(json: any): ExportTransactionsRequest;
42
+ export declare function ExportTransactionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportTransactionsRequest;
43
+ export declare function ExportTransactionsRequestToJSON(value?: ExportTransactionsRequest | null): any;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GFN Catalog API
6
+ * Use this API to access the Global Fulfilment Network, which contains all the warehouse products and variants available to a given project. Warehouse products represent the base products that can be printed on. Products are the top level items, and variants are the different options available for each product. For example, a product might be a T-shirt, and each variant represents a different size and colour combination of that T-shirt. Use references to these warehouse products to create new product listings on your project via the Product Catalog API. Use the variant information to decide which options you would like to offer on each product listing.
7
+ *
8
+ * The version of the OpenAPI document: 1.4.0
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ExportTransactionsRequestToJSON = exports.ExportTransactionsRequestFromJSONTyped = exports.ExportTransactionsRequestFromJSON = exports.instanceOfExportTransactionsRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the ExportTransactionsRequest interface.
19
+ */
20
+ function instanceOfExportTransactionsRequest(value) {
21
+ return true;
22
+ }
23
+ exports.instanceOfExportTransactionsRequest = instanceOfExportTransactionsRequest;
24
+ function ExportTransactionsRequestFromJSON(json) {
25
+ return ExportTransactionsRequestFromJSONTyped(json, false);
26
+ }
27
+ exports.ExportTransactionsRequestFromJSON = ExportTransactionsRequestFromJSON;
28
+ function ExportTransactionsRequestFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'start': json['start'] == null ? undefined : (new Date(json['start'])),
34
+ 'end': json['end'] == null ? undefined : (new Date(json['end'])),
35
+ 'statement': json['statement'] == null ? undefined : json['statement'],
36
+ };
37
+ }
38
+ exports.ExportTransactionsRequestFromJSONTyped = ExportTransactionsRequestFromJSONTyped;
39
+ function ExportTransactionsRequestToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'start': value['start'] == null ? undefined : ((value['start']).toISOString()),
45
+ 'end': value['end'] == null ? undefined : ((value['end']).toISOString()),
46
+ 'statement': value['statement'],
47
+ };
48
+ }
49
+ exports.ExportTransactionsRequestToJSON = ExportTransactionsRequestToJSON;
@@ -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 Image {
61
61
  /**
62
62
  * Check if a given object implements the Image interface.
63
63
  */
64
- export declare function instanceOfImage(value: object): boolean;
64
+ export declare function instanceOfImage(value: object): value is Image;
65
65
  export declare function ImageFromJSON(json: any): Image;
66
66
  export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
67
67
  export declare function ImageToJSON(value?: Image | 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).