@teemill/orders 1.0.3 → 1.2.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.
- package/.openapi-generator/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/OrdersApi.d.ts +13 -7
- package/dist/apis/OrdersApi.js +90 -32
- package/dist/models/Address.d.ts +1 -1
- package/dist/models/Address.js +1 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/ConfirmOrderFulfillment.d.ts +1 -1
- package/dist/models/ConfirmOrderFulfillment.js +1 -1
- package/dist/models/ConfirmOrderRequest.d.ts +1 -1
- package/dist/models/ConfirmOrderRequest.js +1 -1
- package/dist/models/ConfirmOrderValidationError.d.ts +1 -1
- package/dist/models/ConfirmOrderValidationError.js +1 -1
- package/dist/models/ContactInformation.d.ts +1 -1
- package/dist/models/ContactInformation.js +1 -1
- package/dist/models/DeliveryEstimates.d.ts +1 -1
- package/dist/models/DeliveryEstimates.js +1 -1
- package/dist/models/Fulfillment.d.ts +1 -1
- package/dist/models/Fulfillment.js +1 -1
- package/dist/models/FulfillmentItem.d.ts +1 -1
- package/dist/models/FulfillmentItem.js +1 -1
- package/dist/models/Order.d.ts +1 -1
- package/dist/models/Order.js +1 -1
- package/dist/models/OrderItem.d.ts +1 -1
- package/dist/models/OrderItem.js +1 -1
- package/dist/models/OrderItemTaxPrice.d.ts +1 -1
- package/dist/models/OrderItemTaxPrice.js +1 -1
- package/dist/models/OrderTracking.d.ts +1 -1
- package/dist/models/OrderTracking.js +1 -1
- package/dist/models/OrdersResponse.d.ts +1 -1
- package/dist/models/OrdersResponse.js +1 -1
- package/dist/models/Origin.d.ts +1 -1
- package/dist/models/Origin.js +1 -1
- package/dist/models/Price.d.ts +1 -1
- package/dist/models/Price.js +1 -1
- package/dist/models/ShippingMethod.d.ts +1 -1
- package/dist/models/ShippingMethod.js +1 -1
- package/dist/models/Status.d.ts +1 -1
- package/dist/models/Status.js +1 -1
- package/dist/models/StatusHistoryItem.d.ts +1 -1
- package/dist/models/StatusHistoryItem.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/OrdersApi.ts +67 -14
- package/src/models/Address.ts +1 -1
- package/src/models/ApiError.ts +1 -1
- package/src/models/ConfirmOrderFulfillment.ts +1 -1
- package/src/models/ConfirmOrderRequest.ts +1 -1
- package/src/models/ConfirmOrderValidationError.ts +1 -1
- package/src/models/ContactInformation.ts +1 -1
- package/src/models/DeliveryEstimates.ts +1 -1
- package/src/models/Fulfillment.ts +1 -1
- package/src/models/FulfillmentItem.ts +1 -1
- package/src/models/Order.ts +1 -1
- package/src/models/OrderItem.ts +1 -1
- package/src/models/OrderItemTaxPrice.ts +1 -1
- package/src/models/OrderTracking.ts +1 -1
- package/src/models/OrdersResponse.ts +1 -1
- package/src/models/Origin.ts +1 -1
- package/src/models/Price.ts +1 -1
- package/src/models/ShippingMethod.ts +1 -1
- package/src/models/Status.ts +1 -1
- package/src/models/StatusHistoryItem.ts +1 -1
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.2.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/orders@1.0
|
|
1
|
+
## @teemill/orders@1.2.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.0
|
|
39
|
+
npm install @teemill/orders@1.2.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/OrdersApi.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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(
|
|
54
|
+
confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, fields?: string, 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(
|
|
64
|
+
createOrder(project: string, order: Order, fields?: string, 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(
|
|
74
|
+
getOrder(project: string, orderId: string, fields?: string, 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(
|
|
84
|
+
getOrders(project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: Date, end?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse>;
|
|
79
85
|
}
|
package/dist/apis/OrdersApi.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -81,9 +81,9 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
81
81
|
*/
|
|
82
82
|
OrdersApi.prototype.confirmOrderRaw = function (requestParameters, initOverrides) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, response;
|
|
85
|
-
return __generator(this, function (
|
|
86
|
-
switch (
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
87
|
case 0:
|
|
88
88
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
89
89
|
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling confirmOrder.');
|
|
@@ -98,8 +98,21 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
98
98
|
if (requestParameters.project !== undefined) {
|
|
99
99
|
queryParameters['project'] = requestParameters.project;
|
|
100
100
|
}
|
|
101
|
+
if (requestParameters.fields !== undefined) {
|
|
102
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
103
|
+
}
|
|
101
104
|
headerParameters = {};
|
|
102
105
|
headerParameters['Content-Type'] = 'application/json';
|
|
106
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
107
|
+
// oauth required
|
|
108
|
+
_a = headerParameters;
|
|
109
|
+
_b = "Authorization";
|
|
110
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
111
|
+
case 1:
|
|
112
|
+
// oauth required
|
|
113
|
+
_a[_b] = _c.sent();
|
|
114
|
+
_c.label = 2;
|
|
115
|
+
case 2:
|
|
103
116
|
if (this.configuration && this.configuration.apiKey) {
|
|
104
117
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
105
118
|
}
|
|
@@ -110,8 +123,8 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
110
123
|
query: queryParameters,
|
|
111
124
|
body: (0, index_1.ConfirmOrderRequestToJSON)(requestParameters.confirmOrderRequest),
|
|
112
125
|
}, initOverrides)];
|
|
113
|
-
case
|
|
114
|
-
response =
|
|
126
|
+
case 3:
|
|
127
|
+
response = _c.sent();
|
|
115
128
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrderFromJSON)(jsonValue); })];
|
|
116
129
|
}
|
|
117
130
|
});
|
|
@@ -121,12 +134,12 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
121
134
|
* Confirms and order, and submits it as ready to take payment and begin processing.
|
|
122
135
|
* Confirm order
|
|
123
136
|
*/
|
|
124
|
-
OrdersApi.prototype.confirmOrder = function (
|
|
137
|
+
OrdersApi.prototype.confirmOrder = function (project, orderId, confirmOrderRequest, fields, initOverrides) {
|
|
125
138
|
return __awaiter(this, void 0, void 0, function () {
|
|
126
139
|
var response;
|
|
127
140
|
return __generator(this, function (_a) {
|
|
128
141
|
switch (_a.label) {
|
|
129
|
-
case 0: return [4 /*yield*/, this.confirmOrderRaw(
|
|
142
|
+
case 0: return [4 /*yield*/, this.confirmOrderRaw({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest, fields: fields }, initOverrides)];
|
|
130
143
|
case 1:
|
|
131
144
|
response = _a.sent();
|
|
132
145
|
return [4 /*yield*/, response.value()];
|
|
@@ -141,9 +154,9 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
141
154
|
*/
|
|
142
155
|
OrdersApi.prototype.createOrderRaw = function (requestParameters, initOverrides) {
|
|
143
156
|
return __awaiter(this, void 0, void 0, function () {
|
|
144
|
-
var queryParameters, headerParameters, response;
|
|
145
|
-
return __generator(this, function (
|
|
146
|
-
switch (
|
|
157
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
158
|
+
return __generator(this, function (_c) {
|
|
159
|
+
switch (_c.label) {
|
|
147
160
|
case 0:
|
|
148
161
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
149
162
|
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling createOrder.');
|
|
@@ -155,8 +168,21 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
155
168
|
if (requestParameters.project !== undefined) {
|
|
156
169
|
queryParameters['project'] = requestParameters.project;
|
|
157
170
|
}
|
|
171
|
+
if (requestParameters.fields !== undefined) {
|
|
172
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
173
|
+
}
|
|
158
174
|
headerParameters = {};
|
|
159
175
|
headerParameters['Content-Type'] = 'application/json';
|
|
176
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
177
|
+
// oauth required
|
|
178
|
+
_a = headerParameters;
|
|
179
|
+
_b = "Authorization";
|
|
180
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
181
|
+
case 1:
|
|
182
|
+
// oauth required
|
|
183
|
+
_a[_b] = _c.sent();
|
|
184
|
+
_c.label = 2;
|
|
185
|
+
case 2:
|
|
160
186
|
if (this.configuration && this.configuration.apiKey) {
|
|
161
187
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
162
188
|
}
|
|
@@ -167,8 +193,8 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
167
193
|
query: queryParameters,
|
|
168
194
|
body: (0, index_1.OrderToJSON)(requestParameters.order),
|
|
169
195
|
}, initOverrides)];
|
|
170
|
-
case
|
|
171
|
-
response =
|
|
196
|
+
case 3:
|
|
197
|
+
response = _c.sent();
|
|
172
198
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrderFromJSON)(jsonValue); })];
|
|
173
199
|
}
|
|
174
200
|
});
|
|
@@ -178,12 +204,12 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
178
204
|
* Creates a new order for the provided variants.
|
|
179
205
|
* Create order
|
|
180
206
|
*/
|
|
181
|
-
OrdersApi.prototype.createOrder = function (
|
|
207
|
+
OrdersApi.prototype.createOrder = function (project, order, fields, initOverrides) {
|
|
182
208
|
return __awaiter(this, void 0, void 0, function () {
|
|
183
209
|
var response;
|
|
184
210
|
return __generator(this, function (_a) {
|
|
185
211
|
switch (_a.label) {
|
|
186
|
-
case 0: return [4 /*yield*/, this.createOrderRaw(
|
|
212
|
+
case 0: return [4 /*yield*/, this.createOrderRaw({ project: project, order: order, fields: fields }, initOverrides)];
|
|
187
213
|
case 1:
|
|
188
214
|
response = _a.sent();
|
|
189
215
|
return [4 /*yield*/, response.value()];
|
|
@@ -198,9 +224,9 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
198
224
|
*/
|
|
199
225
|
OrdersApi.prototype.getOrderRaw = function (requestParameters, initOverrides) {
|
|
200
226
|
return __awaiter(this, void 0, void 0, function () {
|
|
201
|
-
var queryParameters, headerParameters, response;
|
|
202
|
-
return __generator(this, function (
|
|
203
|
-
switch (
|
|
227
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
228
|
+
return __generator(this, function (_c) {
|
|
229
|
+
switch (_c.label) {
|
|
204
230
|
case 0:
|
|
205
231
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
206
232
|
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getOrder.');
|
|
@@ -212,7 +238,20 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
212
238
|
if (requestParameters.project !== undefined) {
|
|
213
239
|
queryParameters['project'] = requestParameters.project;
|
|
214
240
|
}
|
|
241
|
+
if (requestParameters.fields !== undefined) {
|
|
242
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
243
|
+
}
|
|
215
244
|
headerParameters = {};
|
|
245
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
246
|
+
// oauth required
|
|
247
|
+
_a = headerParameters;
|
|
248
|
+
_b = "Authorization";
|
|
249
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
250
|
+
case 1:
|
|
251
|
+
// oauth required
|
|
252
|
+
_a[_b] = _c.sent();
|
|
253
|
+
_c.label = 2;
|
|
254
|
+
case 2:
|
|
216
255
|
if (this.configuration && this.configuration.apiKey) {
|
|
217
256
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
218
257
|
}
|
|
@@ -222,8 +261,8 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
222
261
|
headers: headerParameters,
|
|
223
262
|
query: queryParameters,
|
|
224
263
|
}, initOverrides)];
|
|
225
|
-
case
|
|
226
|
-
response =
|
|
264
|
+
case 3:
|
|
265
|
+
response = _c.sent();
|
|
227
266
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrderFromJSON)(jsonValue); })];
|
|
228
267
|
}
|
|
229
268
|
});
|
|
@@ -233,12 +272,12 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
233
272
|
* Get an order
|
|
234
273
|
* Get order
|
|
235
274
|
*/
|
|
236
|
-
OrdersApi.prototype.getOrder = function (
|
|
275
|
+
OrdersApi.prototype.getOrder = function (project, orderId, fields, initOverrides) {
|
|
237
276
|
return __awaiter(this, void 0, void 0, function () {
|
|
238
277
|
var response;
|
|
239
278
|
return __generator(this, function (_a) {
|
|
240
279
|
switch (_a.label) {
|
|
241
|
-
case 0: return [4 /*yield*/, this.getOrderRaw(
|
|
280
|
+
case 0: return [4 /*yield*/, this.getOrderRaw({ project: project, orderId: orderId, fields: fields }, initOverrides)];
|
|
242
281
|
case 1:
|
|
243
282
|
response = _a.sent();
|
|
244
283
|
return [4 /*yield*/, response.value()];
|
|
@@ -253,9 +292,9 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
253
292
|
*/
|
|
254
293
|
OrdersApi.prototype.getOrdersRaw = function (requestParameters, initOverrides) {
|
|
255
294
|
return __awaiter(this, void 0, void 0, function () {
|
|
256
|
-
var queryParameters, headerParameters, response;
|
|
257
|
-
return __generator(this, function (
|
|
258
|
-
switch (
|
|
295
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
296
|
+
return __generator(this, function (_c) {
|
|
297
|
+
switch (_c.label) {
|
|
259
298
|
case 0:
|
|
260
299
|
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
261
300
|
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getOrders.');
|
|
@@ -264,22 +303,41 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
264
303
|
if (requestParameters.project !== undefined) {
|
|
265
304
|
queryParameters['project'] = requestParameters.project;
|
|
266
305
|
}
|
|
306
|
+
if (requestParameters.fields !== undefined) {
|
|
307
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
308
|
+
}
|
|
267
309
|
if (requestParameters.pageToken !== undefined) {
|
|
268
310
|
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
269
311
|
}
|
|
270
312
|
if (requestParameters.pageSize !== undefined) {
|
|
271
313
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
272
314
|
}
|
|
315
|
+
if (requestParameters.search !== undefined) {
|
|
316
|
+
queryParameters['search'] = requestParameters.search;
|
|
317
|
+
}
|
|
318
|
+
if (requestParameters.ids) {
|
|
319
|
+
queryParameters['ids'] = requestParameters.ids;
|
|
320
|
+
}
|
|
321
|
+
if (requestParameters.statuses) {
|
|
322
|
+
queryParameters['statuses'] = requestParameters.statuses;
|
|
323
|
+
}
|
|
273
324
|
if (requestParameters.start !== undefined) {
|
|
274
325
|
queryParameters['start'] = requestParameters.start.toISOString();
|
|
275
326
|
}
|
|
276
327
|
if (requestParameters.end !== undefined) {
|
|
277
328
|
queryParameters['end'] = requestParameters.end.toISOString();
|
|
278
329
|
}
|
|
279
|
-
if (requestParameters.search !== undefined) {
|
|
280
|
-
queryParameters['search'] = requestParameters.search;
|
|
281
|
-
}
|
|
282
330
|
headerParameters = {};
|
|
331
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
332
|
+
// oauth required
|
|
333
|
+
_a = headerParameters;
|
|
334
|
+
_b = "Authorization";
|
|
335
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
336
|
+
case 1:
|
|
337
|
+
// oauth required
|
|
338
|
+
_a[_b] = _c.sent();
|
|
339
|
+
_c.label = 2;
|
|
340
|
+
case 2:
|
|
283
341
|
if (this.configuration && this.configuration.apiKey) {
|
|
284
342
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
285
343
|
}
|
|
@@ -289,8 +347,8 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
289
347
|
headers: headerParameters,
|
|
290
348
|
query: queryParameters,
|
|
291
349
|
}, initOverrides)];
|
|
292
|
-
case
|
|
293
|
-
response =
|
|
350
|
+
case 3:
|
|
351
|
+
response = _c.sent();
|
|
294
352
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrdersResponseFromJSON)(jsonValue); })];
|
|
295
353
|
}
|
|
296
354
|
});
|
|
@@ -300,12 +358,12 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
300
358
|
* Lists all orders available paginated into chunks
|
|
301
359
|
* List orders
|
|
302
360
|
*/
|
|
303
|
-
OrdersApi.prototype.getOrders = function (
|
|
361
|
+
OrdersApi.prototype.getOrders = function (project, fields, pageToken, pageSize, search, ids, statuses, start, end, initOverrides) {
|
|
304
362
|
return __awaiter(this, void 0, void 0, function () {
|
|
305
363
|
var response;
|
|
306
364
|
return __generator(this, function (_a) {
|
|
307
365
|
switch (_a.label) {
|
|
308
|
-
case 0: return [4 /*yield*/, this.getOrdersRaw(
|
|
366
|
+
case 0: return [4 /*yield*/, this.getOrdersRaw({ project: project, fields: fields, pageToken: pageToken, pageSize: pageSize, search: search, ids: ids, statuses: statuses, start: start, end: end }, initOverrides)];
|
|
309
367
|
case 1:
|
|
310
368
|
response = _a.sent();
|
|
311
369
|
return [4 /*yield*/, response.value()];
|
package/dist/models/Address.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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/models/Address.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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/models/ApiError.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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/models/Order.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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/models/Order.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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/models/OrderItem.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.2.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|