@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,123 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { ListStatements200ResponseFromJSON, StatementFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class StatementsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Gets a GFN statement by the given ID.
31
+ * Get a GFN statement
32
+ */
33
+ getStatementRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters.project === null || requestParameters.project === undefined) {
36
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getStatement.');
37
+ }
38
+ if (requestParameters.statementId === null || requestParameters.statementId === undefined) {
39
+ throw new runtime.RequiredError('statementId', 'Required parameter requestParameters.statementId was null or undefined when calling getStatement.');
40
+ }
41
+ const queryParameters = {};
42
+ if (requestParameters.project !== undefined) {
43
+ queryParameters['project'] = requestParameters.project;
44
+ }
45
+ const headerParameters = {};
46
+ if (this.configuration && this.configuration.accessToken) {
47
+ // oauth required
48
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
49
+ }
50
+ if (this.configuration && this.configuration.apiKey) {
51
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
52
+ }
53
+ const response = yield this.request({
54
+ path: `/v1/gfn/statements/{statementId}`.replace(`{${"statementId"}}`, encodeURIComponent(String(requestParameters.statementId))),
55
+ method: 'GET',
56
+ headers: headerParameters,
57
+ query: queryParameters,
58
+ }, initOverrides);
59
+ return new runtime.JSONApiResponse(response, (jsonValue) => StatementFromJSON(jsonValue));
60
+ });
61
+ }
62
+ /**
63
+ * Gets a GFN statement by the given ID.
64
+ * Get a GFN statement
65
+ */
66
+ getStatement(project, statementId, initOverrides) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const response = yield this.getStatementRaw({
69
+ project: project, statementId: statementId,
70
+ }, initOverrides);
71
+ return yield response.value();
72
+ });
73
+ }
74
+ /**
75
+ * Lists GFN statements available to the project
76
+ * List GFN statements
77
+ */
78
+ listStatementsRaw(requestParameters, initOverrides) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ if (requestParameters.project === null || requestParameters.project === undefined) {
81
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling listStatements.');
82
+ }
83
+ const queryParameters = {};
84
+ if (requestParameters.project !== undefined) {
85
+ queryParameters['project'] = requestParameters.project;
86
+ }
87
+ if (requestParameters.pageToken !== undefined) {
88
+ queryParameters['pageToken'] = requestParameters.pageToken;
89
+ }
90
+ if (requestParameters.pageSize !== undefined) {
91
+ queryParameters['pageSize'] = requestParameters.pageSize;
92
+ }
93
+ if (requestParameters.search !== undefined) {
94
+ queryParameters['search'] = requestParameters.search;
95
+ }
96
+ const headerParameters = {};
97
+ if (this.configuration && this.configuration.accessToken) {
98
+ // oauth required
99
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
100
+ }
101
+ if (this.configuration && this.configuration.apiKey) {
102
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
103
+ }
104
+ const response = yield this.request({
105
+ path: `/v1/gfn/statements`,
106
+ method: 'GET',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ }, initOverrides);
110
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListStatements200ResponseFromJSON(jsonValue));
111
+ });
112
+ }
113
+ /**
114
+ * Lists GFN statements available to the project
115
+ * List GFN statements
116
+ */
117
+ listStatements(project_1) {
118
+ return __awaiter(this, arguments, void 0, function* (project, optionalParameters = {}, initOverrides) {
119
+ const response = yield this.listStatementsRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
120
+ return yield response.value();
121
+ });
122
+ }
123
+ }
@@ -0,0 +1,48 @@
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 * as runtime from '../runtime';
13
+ import type { ExportTransactionsRequest, ListTransactions200Response } from '../models/index';
14
+ export interface ExportTransactionsOperationRequest {
15
+ project: string;
16
+ exportTransactionsRequest: ExportTransactionsRequest;
17
+ }
18
+ export interface ListTransactionsRequest {
19
+ project: string;
20
+ pageToken?: number;
21
+ pageSize?: number;
22
+ statementId?: string;
23
+ }
24
+ /**
25
+ *
26
+ */
27
+ export declare class TransactionsApi extends runtime.BaseAPI {
28
+ /**
29
+ * Exports all GFN transactions available to the project
30
+ * Export GFN transactions
31
+ */
32
+ exportTransactionsRaw(requestParameters: ExportTransactionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
33
+ /**
34
+ * Exports all GFN transactions available to the project
35
+ * Export GFN transactions
36
+ */
37
+ exportTransactions(project: string, exportTransactionsRequest: ExportTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
38
+ /**
39
+ * Lists all GFN transactions available to the project
40
+ * List GFN transactions
41
+ */
42
+ listTransactionsRaw(requestParameters: ListTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTransactions200Response>>;
43
+ /**
44
+ * Lists all GFN transactions available to the project
45
+ * List GFN transactions
46
+ */
47
+ listTransactions(project: string, optionalParameters?: runtime.OptionalOnly<ListTransactionsRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListTransactions200Response>;
48
+ }
@@ -0,0 +1,125 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { ExportTransactionsRequestToJSON, ListTransactions200ResponseFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class TransactionsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Exports all GFN transactions available to the project
31
+ * Export GFN transactions
32
+ */
33
+ exportTransactionsRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters.project === null || requestParameters.project === undefined) {
36
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling exportTransactions.');
37
+ }
38
+ if (requestParameters.exportTransactionsRequest === null || requestParameters.exportTransactionsRequest === undefined) {
39
+ throw new runtime.RequiredError('exportTransactionsRequest', 'Required parameter requestParameters.exportTransactionsRequest was null or undefined when calling exportTransactions.');
40
+ }
41
+ const queryParameters = {};
42
+ if (requestParameters.project !== undefined) {
43
+ queryParameters['project'] = requestParameters.project;
44
+ }
45
+ const headerParameters = {};
46
+ headerParameters['Content-Type'] = 'application/json';
47
+ if (this.configuration && this.configuration.accessToken) {
48
+ // oauth required
49
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
50
+ }
51
+ if (this.configuration && this.configuration.apiKey) {
52
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
53
+ }
54
+ const response = yield this.request({
55
+ path: `/v1/gfn/transactions/export`,
56
+ method: 'POST',
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ body: ExportTransactionsRequestToJSON(requestParameters.exportTransactionsRequest),
60
+ }, initOverrides);
61
+ return new runtime.BlobApiResponse(response);
62
+ });
63
+ }
64
+ /**
65
+ * Exports all GFN transactions available to the project
66
+ * Export GFN transactions
67
+ */
68
+ exportTransactions(project, exportTransactionsRequest, initOverrides) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const response = yield this.exportTransactionsRaw({
71
+ project: project, exportTransactionsRequest: exportTransactionsRequest,
72
+ }, initOverrides);
73
+ return yield response.value();
74
+ });
75
+ }
76
+ /**
77
+ * Lists all GFN transactions available to the project
78
+ * List GFN transactions
79
+ */
80
+ listTransactionsRaw(requestParameters, initOverrides) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ if (requestParameters.project === null || requestParameters.project === undefined) {
83
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling listTransactions.');
84
+ }
85
+ const queryParameters = {};
86
+ if (requestParameters.project !== undefined) {
87
+ queryParameters['project'] = requestParameters.project;
88
+ }
89
+ if (requestParameters.pageToken !== undefined) {
90
+ queryParameters['pageToken'] = requestParameters.pageToken;
91
+ }
92
+ if (requestParameters.pageSize !== undefined) {
93
+ queryParameters['pageSize'] = requestParameters.pageSize;
94
+ }
95
+ if (requestParameters.statementId !== undefined) {
96
+ queryParameters['statementId'] = requestParameters.statementId;
97
+ }
98
+ const headerParameters = {};
99
+ if (this.configuration && this.configuration.accessToken) {
100
+ // oauth required
101
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
102
+ }
103
+ if (this.configuration && this.configuration.apiKey) {
104
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
105
+ }
106
+ const response = yield this.request({
107
+ path: `/v1/gfn/transactions`,
108
+ method: 'GET',
109
+ headers: headerParameters,
110
+ query: queryParameters,
111
+ }, initOverrides);
112
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListTransactions200ResponseFromJSON(jsonValue));
113
+ });
114
+ }
115
+ /**
116
+ * Lists all GFN transactions available to the project
117
+ * List GFN transactions
118
+ */
119
+ listTransactions(project_1) {
120
+ return __awaiter(this, arguments, void 0, function* (project, optionalParameters = {}, initOverrides) {
121
+ const response = yield this.listTransactionsRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
122
+ return yield response.value();
123
+ });
124
+ }
125
+ }
@@ -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).
@@ -66,8 +66,8 @@ export class VariantsApi extends runtime.BaseAPI {
66
66
  * Gets the stock level for the GFN variant with the given ID.
67
67
  * Get GFN variant stock
68
68
  */
69
- getStock(project, variantId, optionalParameters = {}, initOverrides) {
70
- return __awaiter(this, void 0, void 0, function* () {
69
+ getStock(project_1, variantId_1) {
70
+ return __awaiter(this, arguments, void 0, function* (project, variantId, optionalParameters = {}, initOverrides) {
71
71
  const response = yield this.getStockRaw(Object.assign({ project: project, variantId: variantId }, optionalParameters), initOverrides);
72
72
  return yield response.value();
73
73
  });
@@ -112,8 +112,8 @@ export class VariantsApi extends runtime.BaseAPI {
112
112
  * Gets a GFN variant by the given ID.
113
113
  * Get a GFN variant
114
114
  */
115
- getVariant(project, variantId, optionalParameters = {}, initOverrides) {
116
- return __awaiter(this, void 0, void 0, function* () {
115
+ getVariant(project_1, variantId_1) {
116
+ return __awaiter(this, arguments, void 0, function* (project, variantId, optionalParameters = {}, initOverrides) {
117
117
  const response = yield this.getVariantRaw(Object.assign({ project: project, variantId: variantId }, optionalParameters), initOverrides);
118
118
  return yield response.value();
119
119
  });
@@ -164,8 +164,8 @@ export class VariantsApi extends runtime.BaseAPI {
164
164
  * Lists the stock levels for all GFN variants available to the project.
165
165
  * List GFN variant stock
166
166
  */
167
- listStock(project, optionalParameters = {}, initOverrides) {
168
- return __awaiter(this, void 0, void 0, function* () {
167
+ listStock(project_1) {
168
+ return __awaiter(this, arguments, void 0, function* (project, optionalParameters = {}, initOverrides) {
169
169
  const response = yield this.listStockRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
170
170
  return yield response.value();
171
171
  });
@@ -216,8 +216,8 @@ export class VariantsApi extends runtime.BaseAPI {
216
216
  * Lists all GFN variants available to the project. Can be filtered by product ID, SKU, and attribute values using the search parameter.
217
217
  * List GFN variants
218
218
  */
219
- listVariants(project, optionalParameters = {}, initOverrides) {
220
- return __awaiter(this, void 0, void 0, function* () {
219
+ listVariants(project_1) {
220
+ return __awaiter(this, arguments, void 0, function* (project, optionalParameters = {}, initOverrides) {
221
221
  const response = yield this.listVariantsRaw(Object.assign({ project: project }, optionalParameters), initOverrides);
222
222
  return yield response.value();
223
223
  });
@@ -1,2 +1,4 @@
1
1
  export * from './ProductsApi';
2
+ export * from './StatementsApi';
3
+ export * from './TransactionsApi';
2
4
  export * from './VariantsApi';
@@ -1,4 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './ProductsApi';
4
+ export * from './StatementsApi';
5
+ export * from './TransactionsApi';
4
6
  export * from './VariantsApi';
@@ -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;
@@ -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).
@@ -15,7 +15,7 @@
15
15
  * Check if a given object implements the ApiError interface.
16
16
  */
17
17
  export function instanceOfApiError(value) {
18
- if (!('message' in value))
18
+ if (!('message' in value) || value['message'] === undefined)
19
19
  return false;
20
20
  return true;
21
21
  }
@@ -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,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 ApiValidationError interface.
16
+ */
17
+ export function instanceOfApiValidationError(value) {
18
+ if (!('message' in value) || value['message'] === undefined)
19
+ return false;
20
+ if (!('errors' in value) || value['errors'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ApiValidationErrorFromJSON(json) {
25
+ return ApiValidationErrorFromJSONTyped(json, false);
26
+ }
27
+ export function ApiValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'message': json['message'],
33
+ 'errors': json['errors'],
34
+ };
35
+ }
36
+ export function ApiValidationErrorToJSON(value) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'message': value['message'],
42
+ 'errors': value['errors'],
43
+ };
44
+ }
@@ -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;
@@ -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).
@@ -16,9 +16,9 @@ import { AttributeThumbnailFromJSON, AttributeThumbnailToJSON, } from './Attribu
16
16
  * Check if a given object implements the Attribute interface.
17
17
  */
18
18
  export function instanceOfAttribute(value) {
19
- if (!('name' in value))
19
+ if (!('name' in value) || value['name'] === undefined)
20
20
  return false;
21
- if (!('value' in value))
21
+ if (!('value' in value) || value['value'] === 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).
@@ -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;
@@ -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).
@@ -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;