@teemill/orders 1.1.0 → 1.3.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 +13 -7
  4. package/dist/apis/OrdersApi.js +45 -12
  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 +6 -1
  44. package/dist/runtime.js +6 -3
  45. package/package.json +1 -1
  46. package/src/apis/OrdersApi.ts +95 -14
  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 +13 -3
@@ -1 +1 @@
1
- 7.1.0
1
+ 7.2.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/orders@1.1.0
1
+ ## @teemill/orders@1.3.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.1.0 --save
39
+ npm install @teemill/orders@1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,27 +10,33 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ConfirmOrderRequest, Order, OrdersResponse } from '../models/index';
13
+ import type { ConfirmOrderRequest, Order, OrdersResponse, Status } from '../models/index';
14
14
  export interface ConfirmOrderOperationRequest {
15
15
  project: string;
16
16
  orderId: string;
17
17
  confirmOrderRequest: ConfirmOrderRequest;
18
+ fields?: string;
18
19
  }
19
20
  export interface CreateOrderRequest {
20
21
  project: string;
21
22
  order: Order;
23
+ fields?: string;
22
24
  }
23
25
  export interface GetOrderRequest {
24
26
  project: string;
25
27
  orderId: string;
28
+ fields?: string;
26
29
  }
27
30
  export interface GetOrdersRequest {
28
31
  project: string;
32
+ fields?: string;
29
33
  pageToken?: number;
30
34
  pageSize?: number;
35
+ search?: string;
36
+ ids?: Array<string>;
37
+ statuses?: Array<Status>;
31
38
  start?: Date;
32
39
  end?: Date;
33
- search?: string;
34
40
  }
35
41
  /**
36
42
  *
@@ -45,7 +51,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
45
51
  * Confirms and order, and submits it as ready to take payment and begin processing.
46
52
  * Confirm order
47
53
  */
48
- confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
54
+ confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, optionalParameters?: runtime.OptionalOnly<ConfirmOrderOperationRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
49
55
  /**
50
56
  * Creates a new order for the provided variants.
51
57
  * Create order
@@ -55,7 +61,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
55
61
  * Creates a new order for the provided variants.
56
62
  * Create order
57
63
  */
58
- createOrder(project: string, order: Order, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
64
+ createOrder(project: string, order: Order, optionalParameters?: runtime.OptionalOnly<CreateOrderRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
59
65
  /**
60
66
  * Get an order
61
67
  * Get order
@@ -65,7 +71,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
65
71
  * Get an order
66
72
  * Get order
67
73
  */
68
- getOrder(project: string, orderId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
74
+ getOrder(project: string, orderId: string, optionalParameters?: runtime.OptionalOnly<GetOrderRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
69
75
  /**
70
76
  * Lists all orders available paginated into chunks
71
77
  * List orders
@@ -75,5 +81,5 @@ export declare class OrdersApi extends runtime.BaseAPI {
75
81
  * Lists all orders available paginated into chunks
76
82
  * List orders
77
83
  */
78
- getOrders(project: string, pageToken?: number, pageSize?: number, start?: Date, end?: Date, search?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse>;
84
+ getOrders(project: string, optionalParameters?: runtime.OptionalOnly<GetOrdersRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse>;
79
85
  }
@@ -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.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,6 +27,17 @@ var __extends = (this && this.__extends) || (function () {
27
27
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
28
  };
29
29
  })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
30
41
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
42
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
43
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -98,6 +109,9 @@ var OrdersApi = /** @class */ (function (_super) {
98
109
  if (requestParameters.project !== undefined) {
99
110
  queryParameters['project'] = requestParameters.project;
100
111
  }
112
+ if (requestParameters.fields !== undefined) {
113
+ queryParameters['fields'] = requestParameters.fields;
114
+ }
101
115
  headerParameters = {};
102
116
  headerParameters['Content-Type'] = 'application/json';
103
117
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
@@ -131,12 +145,13 @@ var OrdersApi = /** @class */ (function (_super) {
131
145
  * Confirms and order, and submits it as ready to take payment and begin processing.
132
146
  * Confirm order
133
147
  */
134
- OrdersApi.prototype.confirmOrder = function (project, orderId, confirmOrderRequest, initOverrides) {
148
+ OrdersApi.prototype.confirmOrder = function (project, orderId, confirmOrderRequest, optionalParameters, initOverrides) {
149
+ if (optionalParameters === void 0) { optionalParameters = {}; }
135
150
  return __awaiter(this, void 0, void 0, function () {
136
151
  var response;
137
152
  return __generator(this, function (_a) {
138
153
  switch (_a.label) {
139
- case 0: return [4 /*yield*/, this.confirmOrderRaw({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest }, initOverrides)];
154
+ case 0: return [4 /*yield*/, this.confirmOrderRaw(__assign({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest }, optionalParameters), initOverrides)];
140
155
  case 1:
141
156
  response = _a.sent();
142
157
  return [4 /*yield*/, response.value()];
@@ -165,6 +180,9 @@ var OrdersApi = /** @class */ (function (_super) {
165
180
  if (requestParameters.project !== undefined) {
166
181
  queryParameters['project'] = requestParameters.project;
167
182
  }
183
+ if (requestParameters.fields !== undefined) {
184
+ queryParameters['fields'] = requestParameters.fields;
185
+ }
168
186
  headerParameters = {};
169
187
  headerParameters['Content-Type'] = 'application/json';
170
188
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
@@ -198,12 +216,13 @@ var OrdersApi = /** @class */ (function (_super) {
198
216
  * Creates a new order for the provided variants.
199
217
  * Create order
200
218
  */
201
- OrdersApi.prototype.createOrder = function (project, order, initOverrides) {
219
+ OrdersApi.prototype.createOrder = function (project, order, optionalParameters, initOverrides) {
220
+ if (optionalParameters === void 0) { optionalParameters = {}; }
202
221
  return __awaiter(this, void 0, void 0, function () {
203
222
  var response;
204
223
  return __generator(this, function (_a) {
205
224
  switch (_a.label) {
206
- case 0: return [4 /*yield*/, this.createOrderRaw({ project: project, order: order }, initOverrides)];
225
+ case 0: return [4 /*yield*/, this.createOrderRaw(__assign({ project: project, order: order }, optionalParameters), initOverrides)];
207
226
  case 1:
208
227
  response = _a.sent();
209
228
  return [4 /*yield*/, response.value()];
@@ -232,6 +251,9 @@ var OrdersApi = /** @class */ (function (_super) {
232
251
  if (requestParameters.project !== undefined) {
233
252
  queryParameters['project'] = requestParameters.project;
234
253
  }
254
+ if (requestParameters.fields !== undefined) {
255
+ queryParameters['fields'] = requestParameters.fields;
256
+ }
235
257
  headerParameters = {};
236
258
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
237
259
  // oauth required
@@ -263,12 +285,13 @@ var OrdersApi = /** @class */ (function (_super) {
263
285
  * Get an order
264
286
  * Get order
265
287
  */
266
- OrdersApi.prototype.getOrder = function (project, orderId, initOverrides) {
288
+ OrdersApi.prototype.getOrder = function (project, orderId, optionalParameters, initOverrides) {
289
+ if (optionalParameters === void 0) { optionalParameters = {}; }
267
290
  return __awaiter(this, void 0, void 0, function () {
268
291
  var response;
269
292
  return __generator(this, function (_a) {
270
293
  switch (_a.label) {
271
- case 0: return [4 /*yield*/, this.getOrderRaw({ project: project, orderId: orderId }, initOverrides)];
294
+ case 0: return [4 /*yield*/, this.getOrderRaw(__assign({ project: project, orderId: orderId }, optionalParameters), initOverrides)];
272
295
  case 1:
273
296
  response = _a.sent();
274
297
  return [4 /*yield*/, response.value()];
@@ -294,21 +317,30 @@ var OrdersApi = /** @class */ (function (_super) {
294
317
  if (requestParameters.project !== undefined) {
295
318
  queryParameters['project'] = requestParameters.project;
296
319
  }
320
+ if (requestParameters.fields !== undefined) {
321
+ queryParameters['fields'] = requestParameters.fields;
322
+ }
297
323
  if (requestParameters.pageToken !== undefined) {
298
324
  queryParameters['pageToken'] = requestParameters.pageToken;
299
325
  }
300
326
  if (requestParameters.pageSize !== undefined) {
301
327
  queryParameters['pageSize'] = requestParameters.pageSize;
302
328
  }
329
+ if (requestParameters.search !== undefined) {
330
+ queryParameters['search'] = requestParameters.search;
331
+ }
332
+ if (requestParameters.ids) {
333
+ queryParameters['ids'] = requestParameters.ids;
334
+ }
335
+ if (requestParameters.statuses) {
336
+ queryParameters['statuses'] = requestParameters.statuses;
337
+ }
303
338
  if (requestParameters.start !== undefined) {
304
339
  queryParameters['start'] = requestParameters.start.toISOString();
305
340
  }
306
341
  if (requestParameters.end !== undefined) {
307
342
  queryParameters['end'] = requestParameters.end.toISOString();
308
343
  }
309
- if (requestParameters.search !== undefined) {
310
- queryParameters['search'] = requestParameters.search;
311
- }
312
344
  headerParameters = {};
313
345
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
314
346
  // oauth required
@@ -340,12 +372,13 @@ var OrdersApi = /** @class */ (function (_super) {
340
372
  * Lists all orders available paginated into chunks
341
373
  * List orders
342
374
  */
343
- OrdersApi.prototype.getOrders = function (project, pageToken, pageSize, start, end, search, initOverrides) {
375
+ OrdersApi.prototype.getOrders = function (project, optionalParameters, initOverrides) {
376
+ if (optionalParameters === void 0) { optionalParameters = {}; }
344
377
  return __awaiter(this, void 0, void 0, function () {
345
378
  var response;
346
379
  return __generator(this, function (_a) {
347
380
  switch (_a.label) {
348
- case 0: return [4 /*yield*/, this.getOrdersRaw({ project: project, pageToken: pageToken, pageSize: pageSize, start: start, end: end, search: search }, initOverrides)];
381
+ case 0: return [4 /*yield*/, this.getOrdersRaw(__assign({ project: project }, optionalParameters), initOverrides)];
349
382
  case 1:
350
383
  response = _a.sent();
351
384
  return [4 /*yield*/, response.value()];
@@ -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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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.1.0
5
+ * The version of the OpenAPI document: 1.3.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.1.0
8
+ * The version of the OpenAPI document: 1.3.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,13 +2,17 @@
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.1.0
5
+ * The version of the OpenAPI document: 1.3.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
+ export type OptionalProperties<T> = {
13
+ [K in keyof T]-?: undefined extends T[K] ? K : never;
14
+ }[keyof T];
15
+ export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
12
16
  export declare const BASE_PATH: string;
13
17
  export interface ConfigurationParameters {
14
18
  basePath?: string;
@@ -46,6 +50,7 @@ export declare class BaseAPI {
46
50
  private static readonly jsonRegex;
47
51
  private middleware;
48
52
  constructor(configuration?: Configuration);
53
+ isResponseError(error: any): error is ResponseError;
49
54
  withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
50
55
  withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
51
56
  withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
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.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -266,6 +266,9 @@ var BaseAPI = /** @class */ (function () {
266
266
  }); };
267
267
  this.middleware = configuration.middleware;
268
268
  }
269
+ BaseAPI.prototype.isResponseError = function (error) {
270
+ return error instanceof Error && error.name === 'ResponseError';
271
+ };
269
272
  BaseAPI.prototype.withMiddleware = function () {
270
273
  var _a;
271
274
  var middlewares = [];
@@ -456,8 +459,8 @@ function querystringSingleKey(key, value, keyPrefix) {
456
459
  var fullKey = keyPrefix + (keyPrefix.length ? "[".concat(key, "]") : key);
457
460
  if (value instanceof Array) {
458
461
  var multiValue = value.map(function (singleValue) { return encodeURIComponent(String(singleValue)); })
459
- .join("&".concat(encodeURIComponent(fullKey), "="));
460
- return "".concat(encodeURIComponent(fullKey), "=").concat(multiValue);
462
+ .join("&".concat(encodeURIComponent(fullKey), "[]="));
463
+ return "".concat(encodeURIComponent(fullKey), "[]=").concat(multiValue);
461
464
  }
462
465
  if (value instanceof Set) {
463
466
  var valueAsArray = Array.from(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/orders",
3
- "version": "1.1.0",
3
+ "version": "1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,6 +20,7 @@ import type {
20
20
  ConfirmOrderValidationError,
21
21
  Order,
22
22
  OrdersResponse,
23
+ Status,
23
24
  } from '../models/index';
24
25
  import {
25
26
  ApiErrorFromJSON,
@@ -32,31 +33,39 @@ import {
32
33
  OrderToJSON,
33
34
  OrdersResponseFromJSON,
34
35
  OrdersResponseToJSON,
36
+ StatusFromJSON,
37
+ StatusToJSON,
35
38
  } from '../models/index';
36
39
 
37
40
  export interface ConfirmOrderOperationRequest {
38
41
  project: string;
39
42
  orderId: string;
40
43
  confirmOrderRequest: ConfirmOrderRequest;
44
+ fields?: string;
41
45
  }
42
46
 
43
47
  export interface CreateOrderRequest {
44
48
  project: string;
45
49
  order: Order;
50
+ fields?: string;
46
51
  }
47
52
 
48
53
  export interface GetOrderRequest {
49
54
  project: string;
50
55
  orderId: string;
56
+ fields?: string;
51
57
  }
52
58
 
53
59
  export interface GetOrdersRequest {
54
60
  project: string;
61
+ fields?: string;
55
62
  pageToken?: number;
56
63
  pageSize?: number;
64
+ search?: string;
65
+ ids?: Array<string>;
66
+ statuses?: Array<Status>;
57
67
  start?: Date;
58
68
  end?: Date;
59
- search?: string;
60
69
  }
61
70
 
62
71
  /**
@@ -87,6 +96,10 @@ export class OrdersApi extends runtime.BaseAPI {
87
96
  queryParameters['project'] = requestParameters.project;
88
97
  }
89
98
 
99
+ if (requestParameters.fields !== undefined) {
100
+ queryParameters['fields'] = requestParameters.fields;
101
+ }
102
+
90
103
  const headerParameters: runtime.HTTPHeaders = {};
91
104
 
92
105
  headerParameters['Content-Type'] = 'application/json';
@@ -115,8 +128,21 @@ export class OrdersApi extends runtime.BaseAPI {
115
128
  * Confirms and order, and submits it as ready to take payment and begin processing.
116
129
  * Confirm order
117
130
  */
118
- async confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
119
- const response = await this.confirmOrderRaw({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest }, initOverrides);
131
+ async confirmOrder(
132
+ project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest,
133
+ optionalParameters: runtime.OptionalOnly<ConfirmOrderOperationRequest> = {},
134
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
135
+ ): Promise<Order> {
136
+ const response = await this.confirmOrderRaw(
137
+ {
138
+ project: project,
139
+ orderId: orderId,
140
+ confirmOrderRequest: confirmOrderRequest,
141
+ ...optionalParameters,
142
+ },
143
+ initOverrides
144
+ );
145
+
120
146
  return await response.value();
121
147
  }
122
148
 
@@ -139,6 +165,10 @@ export class OrdersApi extends runtime.BaseAPI {
139
165
  queryParameters['project'] = requestParameters.project;
140
166
  }
141
167
 
168
+ if (requestParameters.fields !== undefined) {
169
+ queryParameters['fields'] = requestParameters.fields;
170
+ }
171
+
142
172
  const headerParameters: runtime.HTTPHeaders = {};
143
173
 
144
174
  headerParameters['Content-Type'] = 'application/json';
@@ -167,8 +197,20 @@ export class OrdersApi extends runtime.BaseAPI {
167
197
  * Creates a new order for the provided variants.
168
198
  * Create order
169
199
  */
170
- async createOrder(project: string, order: Order, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
171
- const response = await this.createOrderRaw({ project: project, order: order }, initOverrides);
200
+ async createOrder(
201
+ project: string, order: Order,
202
+ optionalParameters: runtime.OptionalOnly<CreateOrderRequest> = {},
203
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
204
+ ): Promise<Order> {
205
+ const response = await this.createOrderRaw(
206
+ {
207
+ project: project,
208
+ order: order,
209
+ ...optionalParameters,
210
+ },
211
+ initOverrides
212
+ );
213
+
172
214
  return await response.value();
173
215
  }
174
216
 
@@ -191,6 +233,10 @@ export class OrdersApi extends runtime.BaseAPI {
191
233
  queryParameters['project'] = requestParameters.project;
192
234
  }
193
235
 
236
+ if (requestParameters.fields !== undefined) {
237
+ queryParameters['fields'] = requestParameters.fields;
238
+ }
239
+
194
240
  const headerParameters: runtime.HTTPHeaders = {};
195
241
 
196
242
  if (this.configuration && this.configuration.accessToken) {
@@ -216,8 +262,20 @@ export class OrdersApi extends runtime.BaseAPI {
216
262
  * Get an order
217
263
  * Get order
218
264
  */
219
- async getOrder(project: string, orderId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
220
- const response = await this.getOrderRaw({ project: project, orderId: orderId }, initOverrides);
265
+ async getOrder(
266
+ project: string, orderId: string,
267
+ optionalParameters: runtime.OptionalOnly<GetOrderRequest> = {},
268
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
269
+ ): Promise<Order> {
270
+ const response = await this.getOrderRaw(
271
+ {
272
+ project: project,
273
+ orderId: orderId,
274
+ ...optionalParameters,
275
+ },
276
+ initOverrides
277
+ );
278
+
221
279
  return await response.value();
222
280
  }
223
281
 
@@ -236,6 +294,10 @@ export class OrdersApi extends runtime.BaseAPI {
236
294
  queryParameters['project'] = requestParameters.project;
237
295
  }
238
296
 
297
+ if (requestParameters.fields !== undefined) {
298
+ queryParameters['fields'] = requestParameters.fields;
299
+ }
300
+
239
301
  if (requestParameters.pageToken !== undefined) {
240
302
  queryParameters['pageToken'] = requestParameters.pageToken;
241
303
  }
@@ -244,6 +306,18 @@ export class OrdersApi extends runtime.BaseAPI {
244
306
  queryParameters['pageSize'] = requestParameters.pageSize;
245
307
  }
246
308
 
309
+ if (requestParameters.search !== undefined) {
310
+ queryParameters['search'] = requestParameters.search;
311
+ }
312
+
313
+ if (requestParameters.ids) {
314
+ queryParameters['ids'] = requestParameters.ids;
315
+ }
316
+
317
+ if (requestParameters.statuses) {
318
+ queryParameters['statuses'] = requestParameters.statuses;
319
+ }
320
+
247
321
  if (requestParameters.start !== undefined) {
248
322
  queryParameters['start'] = (requestParameters.start as any).toISOString();
249
323
  }
@@ -252,10 +326,6 @@ export class OrdersApi extends runtime.BaseAPI {
252
326
  queryParameters['end'] = (requestParameters.end as any).toISOString();
253
327
  }
254
328
 
255
- if (requestParameters.search !== undefined) {
256
- queryParameters['search'] = requestParameters.search;
257
- }
258
-
259
329
  const headerParameters: runtime.HTTPHeaders = {};
260
330
 
261
331
  if (this.configuration && this.configuration.accessToken) {
@@ -281,8 +351,19 @@ export class OrdersApi extends runtime.BaseAPI {
281
351
  * Lists all orders available paginated into chunks
282
352
  * List orders
283
353
  */
284
- async getOrders(project: string, pageToken?: number, pageSize?: number, start?: Date, end?: Date, search?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse> {
285
- const response = await this.getOrdersRaw({ project: project, pageToken: pageToken, pageSize: pageSize, start: start, end: end, search: search }, initOverrides);
354
+ async getOrders(
355
+ project: string,
356
+ optionalParameters: runtime.OptionalOnly<GetOrdersRequest> = {},
357
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
358
+ ): Promise<OrdersResponse> {
359
+ const response = await this.getOrdersRaw(
360
+ {
361
+ project: project,
362
+ ...optionalParameters,
363
+ },
364
+ initOverrides
365
+ );
366
+
286
367
  return await response.value();
287
368
  }
288
369
 
@@ -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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.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.1.0
7
+ * The version of the OpenAPI document: 1.3.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
 
16
+ export type OptionalProperties<T> = {
17
+ [K in keyof T]-?: undefined extends T[K] ? K : never
18
+ }[keyof T];
19
+
20
+ export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
21
+
16
22
  export const BASE_PATH = "https://api.localhost:8080".replace(/\/+$/, "");
17
23
 
18
24
  export interface ConfigurationParameters {
@@ -98,6 +104,10 @@ export class BaseAPI {
98
104
  this.middleware = configuration.middleware;
99
105
  }
100
106
 
107
+ isResponseError(error: any): error is ResponseError {
108
+ return error instanceof Error && error.name === 'ResponseError';
109
+ }
110
+
101
111
  withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
102
112
  const next = this.clone<T>();
103
113
  next.middleware = next.middleware.concat(...middlewares);
@@ -326,8 +336,8 @@ function querystringSingleKey(key: string, value: string | number | null | undef
326
336
  const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
327
337
  if (value instanceof Array) {
328
338
  const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
329
- .join(`&${encodeURIComponent(fullKey)}=`);
330
- return `${encodeURIComponent(fullKey)}=${multiValue}`;
339
+ .join(`&${encodeURIComponent(fullKey)}[]=`);
340
+ return `${encodeURIComponent(fullKey)}[]=${multiValue}`;
331
341
  }
332
342
  if (value instanceof Set) {
333
343
  const valueAsArray = Array.from(value);