@teemill/orders 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 (66) hide show
  1. package/.openapi-generator/VERSION +1 -1
  2. package/README.md +2 -2
  3. package/dist/apis/OrdersApi.d.ts +16 -1
  4. package/dist/apis/OrdersApi.js +71 -1
  5. package/dist/models/Address.d.ts +1 -1
  6. package/dist/models/Address.js +1 -1
  7. package/dist/models/ApiError.d.ts +1 -1
  8. package/dist/models/ApiError.js +1 -1
  9. package/dist/models/ConfirmOrderFulfillment.d.ts +1 -1
  10. package/dist/models/ConfirmOrderFulfillment.js +1 -1
  11. package/dist/models/ConfirmOrderRequest.d.ts +1 -1
  12. package/dist/models/ConfirmOrderRequest.js +1 -1
  13. package/dist/models/ConfirmOrderValidationError.d.ts +1 -1
  14. package/dist/models/ConfirmOrderValidationError.js +1 -1
  15. package/dist/models/ContactInformation.d.ts +1 -1
  16. package/dist/models/ContactInformation.js +1 -1
  17. package/dist/models/DeliveryEstimates.d.ts +1 -1
  18. package/dist/models/DeliveryEstimates.js +1 -1
  19. package/dist/models/Fulfillment.d.ts +1 -1
  20. package/dist/models/Fulfillment.js +1 -1
  21. package/dist/models/FulfillmentItem.d.ts +1 -1
  22. package/dist/models/FulfillmentItem.js +1 -1
  23. package/dist/models/Order.d.ts +1 -1
  24. package/dist/models/Order.js +1 -1
  25. package/dist/models/OrderItem.d.ts +1 -1
  26. package/dist/models/OrderItem.js +1 -1
  27. package/dist/models/OrderItemTaxPrice.d.ts +1 -1
  28. package/dist/models/OrderItemTaxPrice.js +1 -1
  29. package/dist/models/OrderTracking.d.ts +1 -1
  30. package/dist/models/OrderTracking.js +1 -1
  31. package/dist/models/OrdersResponse.d.ts +1 -1
  32. package/dist/models/OrdersResponse.js +1 -1
  33. package/dist/models/Origin.d.ts +1 -1
  34. package/dist/models/Origin.js +1 -1
  35. package/dist/models/Price.d.ts +1 -1
  36. package/dist/models/Price.js +1 -1
  37. package/dist/models/ShippingMethod.d.ts +1 -1
  38. package/dist/models/ShippingMethod.js +1 -1
  39. package/dist/models/Status.d.ts +1 -1
  40. package/dist/models/Status.js +1 -1
  41. package/dist/models/StatusHistoryItem.d.ts +1 -1
  42. package/dist/models/StatusHistoryItem.js +1 -1
  43. package/dist/runtime.d.ts +1 -1
  44. package/dist/runtime.js +1 -1
  45. package/package.json +1 -1
  46. package/src/apis/OrdersApi.ts +76 -8
  47. package/src/models/Address.ts +1 -1
  48. package/src/models/ApiError.ts +1 -1
  49. package/src/models/ConfirmOrderFulfillment.ts +1 -1
  50. package/src/models/ConfirmOrderRequest.ts +1 -1
  51. package/src/models/ConfirmOrderValidationError.ts +1 -1
  52. package/src/models/ContactInformation.ts +1 -1
  53. package/src/models/DeliveryEstimates.ts +1 -1
  54. package/src/models/Fulfillment.ts +1 -1
  55. package/src/models/FulfillmentItem.ts +1 -1
  56. package/src/models/Order.ts +1 -1
  57. package/src/models/OrderItem.ts +1 -1
  58. package/src/models/OrderItemTaxPrice.ts +1 -1
  59. package/src/models/OrderTracking.ts +1 -1
  60. package/src/models/OrdersResponse.ts +1 -1
  61. package/src/models/Origin.ts +1 -1
  62. package/src/models/Price.ts +1 -1
  63. package/src/models/ShippingMethod.ts +1 -1
  64. package/src/models/Status.ts +1 -1
  65. package/src/models/StatusHistoryItem.ts +1 -1
  66. package/src/runtime.ts +1 -1
@@ -1 +1 @@
1
- 7.2.0-SNAPSHOT
1
+ 7.3.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/orders@1.3.0
1
+ ## @teemill/orders@1.4.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/orders@1.3.0 --save
39
+ npm install @teemill/orders@1.4.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -22,6 +22,11 @@ export interface CreateOrderRequest {
22
22
  order: Order;
23
23
  fields?: string;
24
24
  }
25
+ export interface ExportOrdersRequest {
26
+ project: string;
27
+ start: Date;
28
+ end?: Date;
29
+ }
25
30
  export interface GetOrderRequest {
26
31
  project: string;
27
32
  orderId: string;
@@ -62,6 +67,16 @@ export declare class OrdersApi extends runtime.BaseAPI {
62
67
  * Create order
63
68
  */
64
69
  createOrder(project: string, order: Order, optionalParameters?: runtime.OptionalOnly<CreateOrderRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
70
+ /**
71
+ * Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
72
+ * Export orders
73
+ */
74
+ exportOrdersRaw(requestParameters: ExportOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
75
+ /**
76
+ * Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
77
+ * Export orders
78
+ */
79
+ exportOrders(project: string, start: Date, optionalParameters?: runtime.OptionalOnly<ExportOrdersRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
65
80
  /**
66
81
  * Get an order
67
82
  * Get order
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -231,6 +231,76 @@ var OrdersApi = /** @class */ (function (_super) {
231
231
  });
232
232
  });
233
233
  };
234
+ /**
235
+ * Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
236
+ * Export orders
237
+ */
238
+ OrdersApi.prototype.exportOrdersRaw = function (requestParameters, initOverrides) {
239
+ return __awaiter(this, void 0, void 0, function () {
240
+ var queryParameters, headerParameters, _a, _b, response;
241
+ return __generator(this, function (_c) {
242
+ switch (_c.label) {
243
+ case 0:
244
+ if (requestParameters.project === null || requestParameters.project === undefined) {
245
+ throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling exportOrders.');
246
+ }
247
+ if (requestParameters.start === null || requestParameters.start === undefined) {
248
+ throw new runtime.RequiredError('start', 'Required parameter requestParameters.start was null or undefined when calling exportOrders.');
249
+ }
250
+ queryParameters = {};
251
+ if (requestParameters.project !== undefined) {
252
+ queryParameters['project'] = requestParameters.project;
253
+ }
254
+ if (requestParameters.start !== undefined) {
255
+ queryParameters['start'] = requestParameters.start.toISOString();
256
+ }
257
+ if (requestParameters.end !== undefined) {
258
+ queryParameters['end'] = requestParameters.end.toISOString();
259
+ }
260
+ headerParameters = {};
261
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
262
+ // oauth required
263
+ _a = headerParameters;
264
+ _b = "Authorization";
265
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
266
+ case 1:
267
+ // oauth required
268
+ _a[_b] = _c.sent();
269
+ _c.label = 2;
270
+ case 2:
271
+ if (this.configuration && this.configuration.apiKey) {
272
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
273
+ }
274
+ return [4 /*yield*/, this.request({
275
+ path: "/v1/orders/export",
276
+ method: 'GET',
277
+ headers: headerParameters,
278
+ query: queryParameters,
279
+ }, initOverrides)];
280
+ case 3:
281
+ response = _c.sent();
282
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
283
+ }
284
+ });
285
+ });
286
+ };
287
+ /**
288
+ * Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
289
+ * Export orders
290
+ */
291
+ OrdersApi.prototype.exportOrders = function (project, start, optionalParameters, initOverrides) {
292
+ if (optionalParameters === void 0) { optionalParameters = {}; }
293
+ return __awaiter(this, void 0, void 0, function () {
294
+ return __generator(this, function (_a) {
295
+ switch (_a.label) {
296
+ case 0: return [4 /*yield*/, this.exportOrdersRaw(__assign({ project: project, start: start }, optionalParameters), initOverrides)];
297
+ case 1:
298
+ _a.sent();
299
+ return [2 /*return*/];
300
+ }
301
+ });
302
+ });
303
+ };
234
304
  /**
235
305
  * Get an order
236
306
  * Get order
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
package/dist/runtime.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/orders",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "OpenAPI client for @teemill/orders",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -50,6 +50,12 @@ export interface CreateOrderRequest {
50
50
  fields?: string;
51
51
  }
52
52
 
53
+ export interface ExportOrdersRequest {
54
+ project: string;
55
+ start: Date;
56
+ end?: Date;
57
+ }
58
+
53
59
  export interface GetOrderRequest {
54
60
  project: string;
55
61
  orderId: string;
@@ -135,9 +141,7 @@ export class OrdersApi extends runtime.BaseAPI {
135
141
  ): Promise<Order> {
136
142
  const response = await this.confirmOrderRaw(
137
143
  {
138
- project: project,
139
- orderId: orderId,
140
- confirmOrderRequest: confirmOrderRequest,
144
+ project: project,orderId: orderId,confirmOrderRequest: confirmOrderRequest,
141
145
  ...optionalParameters,
142
146
  },
143
147
  initOverrides
@@ -204,8 +208,7 @@ export class OrdersApi extends runtime.BaseAPI {
204
208
  ): Promise<Order> {
205
209
  const response = await this.createOrderRaw(
206
210
  {
207
- project: project,
208
- order: order,
211
+ project: project,order: order,
209
212
  ...optionalParameters,
210
213
  },
211
214
  initOverrides
@@ -214,6 +217,72 @@ export class OrdersApi extends runtime.BaseAPI {
214
217
  return await response.value();
215
218
  }
216
219
 
220
+ /**
221
+ * Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
222
+ * Export orders
223
+ */
224
+ async exportOrdersRaw(requestParameters: ExportOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
225
+ if (requestParameters.project === null || requestParameters.project === undefined) {
226
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling exportOrders.');
227
+ }
228
+
229
+ if (requestParameters.start === null || requestParameters.start === undefined) {
230
+ throw new runtime.RequiredError('start','Required parameter requestParameters.start was null or undefined when calling exportOrders.');
231
+ }
232
+
233
+ const queryParameters: any = {};
234
+
235
+ if (requestParameters.project !== undefined) {
236
+ queryParameters['project'] = requestParameters.project;
237
+ }
238
+
239
+ if (requestParameters.start !== undefined) {
240
+ queryParameters['start'] = (requestParameters.start as any).toISOString();
241
+ }
242
+
243
+ if (requestParameters.end !== undefined) {
244
+ queryParameters['end'] = (requestParameters.end as any).toISOString();
245
+ }
246
+
247
+ const headerParameters: runtime.HTTPHeaders = {};
248
+
249
+ if (this.configuration && this.configuration.accessToken) {
250
+ // oauth required
251
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
252
+ }
253
+
254
+ if (this.configuration && this.configuration.apiKey) {
255
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
256
+ }
257
+
258
+ const response = await this.request({
259
+ path: `/v1/orders/export`,
260
+ method: 'GET',
261
+ headers: headerParameters,
262
+ query: queryParameters,
263
+ }, initOverrides);
264
+
265
+ return new runtime.VoidApiResponse(response);
266
+ }
267
+
268
+ /**
269
+ * Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
270
+ * Export orders
271
+ */
272
+ async exportOrders(
273
+ project: string, start: Date,
274
+ optionalParameters: runtime.OptionalOnly<ExportOrdersRequest> = {},
275
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
276
+ ): Promise<void> {
277
+ await this.exportOrdersRaw(
278
+ {
279
+ project: project,start: start,
280
+ ...optionalParameters,
281
+ },
282
+ initOverrides
283
+ );
284
+ }
285
+
217
286
  /**
218
287
  * Get an order
219
288
  * Get order
@@ -269,8 +338,7 @@ export class OrdersApi extends runtime.BaseAPI {
269
338
  ): Promise<Order> {
270
339
  const response = await this.getOrderRaw(
271
340
  {
272
- project: project,
273
- orderId: orderId,
341
+ project: project,orderId: orderId,
274
342
  ...optionalParameters,
275
343
  },
276
344
  initOverrides
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).
package/src/runtime.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
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).