@teemill/orders 1.10.0 → 1.13.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/orders@1.10.0
1
+ ## @teemill/orders@1.13.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). 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.10.0 --save
39
+ npm install @teemill/orders@1.13.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.10.0
7
+ * The version of the OpenAPI document: 1.13.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,7 +34,7 @@ export interface Address {
34
34
  * @type {string}
35
35
  * @memberof Address
36
36
  */
37
- 'contactName': string;
37
+ 'contactName'?: string;
38
38
  /**
39
39
  *
40
40
  * @type {string}
@@ -46,7 +46,7 @@ export interface Address {
46
46
  * @type {string}
47
47
  * @memberof Address
48
48
  */
49
- 'line1': string;
49
+ 'line1'?: string;
50
50
  /**
51
51
  * Second line of the address.
52
52
  * @type {string}
@@ -58,7 +58,7 @@ export interface Address {
58
58
  * @type {string}
59
59
  * @memberof Address
60
60
  */
61
- 'city': string;
61
+ 'city'?: string;
62
62
  /**
63
63
  * Postal code of the address.
64
64
  * @type {string}
@@ -72,7 +72,7 @@ export interface Address {
72
72
  */
73
73
  'country': string;
74
74
  /**
75
- * State of the address.
75
+ * State of the address. If the country is Canada, Australia, or the United States, this field is required.
76
76
  * @type {string}
77
77
  * @memberof Address
78
78
  */
@@ -177,12 +177,143 @@ export interface ContactInformation {
177
177
  */
178
178
  'phone'?: string | null;
179
179
  }
180
+ /**
181
+ * Create an order
182
+ * @export
183
+ * @interface CreateOrder
184
+ */
185
+ export interface CreateOrder {
186
+ /**
187
+ * A custom reference to the merchant\'s order.
188
+ * @type {string}
189
+ * @memberof CreateOrder
190
+ */
191
+ 'merchantReference'?: string | null;
192
+ /**
193
+ *
194
+ * @type {CreateOrderContactInformation}
195
+ * @memberof CreateOrder
196
+ */
197
+ 'contactInformation': CreateOrderContactInformation;
198
+ /**
199
+ *
200
+ * @type {Address}
201
+ * @memberof CreateOrder
202
+ */
203
+ 'shippingAddress': Address;
204
+ /**
205
+ *
206
+ * @type {CustomsInformation}
207
+ * @memberof CreateOrder
208
+ */
209
+ 'customsInformation'?: CustomsInformation;
210
+ /**
211
+ * Items to be ordered
212
+ * @type {Array<OrderItem1>}
213
+ * @memberof CreateOrder
214
+ */
215
+ 'items': Array<OrderItem1>;
216
+ }
217
+ /**
218
+ * Contact information for the order
219
+ * @export
220
+ * @interface CreateOrderContactInformation
221
+ */
222
+ export interface CreateOrderContactInformation {
223
+ /**
224
+ *
225
+ * @type {string}
226
+ * @memberof CreateOrderContactInformation
227
+ */
228
+ 'email': string;
229
+ /**
230
+ *
231
+ * @type {string}
232
+ * @memberof CreateOrderContactInformation
233
+ */
234
+ 'phone'?: string | null;
235
+ }
236
+ /**
237
+ *
238
+ * @export
239
+ * @interface CustomsInformation
240
+ */
241
+ export interface CustomsInformation {
242
+ /**
243
+ * Pre-registration type
244
+ * @type {string}
245
+ * @memberof CustomsInformation
246
+ */
247
+ 'preRegistrationType'?: CustomsInformationPreRegistrationTypeEnum;
248
+ /**
249
+ * Pre-registration number
250
+ * @type {string}
251
+ * @memberof CustomsInformation
252
+ */
253
+ 'preRegistrationNumber'?: string;
254
+ /**
255
+ * VAT number
256
+ * @type {string}
257
+ * @memberof CustomsInformation
258
+ */
259
+ 'vatNumber'?: string;
260
+ /**
261
+ * EORI number
262
+ * @type {string}
263
+ * @memberof CustomsInformation
264
+ */
265
+ 'eoriNumber'?: string;
266
+ }
267
+
268
+ export const CustomsInformationPreRegistrationTypeEnum = {
269
+ Ioss: 'IOSS'
270
+ } as const;
271
+
272
+ export type CustomsInformationPreRegistrationTypeEnum = typeof CustomsInformationPreRegistrationTypeEnum[keyof typeof CustomsInformationPreRegistrationTypeEnum];
273
+
274
+ /**
275
+ *
276
+ * @export
277
+ * @interface CustomsInformation1
278
+ */
279
+ export interface CustomsInformation1 {
280
+ /**
281
+ *
282
+ * @type {string}
283
+ * @memberof CustomsInformation1
284
+ */
285
+ 'preRegistrationType'?: string;
286
+ /**
287
+ *
288
+ * @type {string}
289
+ * @memberof CustomsInformation1
290
+ */
291
+ 'preRegistrationNumber'?: string;
292
+ /**
293
+ *
294
+ * @type {string}
295
+ * @memberof CustomsInformation1
296
+ */
297
+ 'vatNumber'?: string;
298
+ /**
299
+ *
300
+ * @type {string}
301
+ * @memberof CustomsInformation1
302
+ */
303
+ 'eoriNumber'?: string;
304
+ }
180
305
  /**
181
306
  *
182
307
  * @export
183
308
  * @interface DeliveryEstimates
184
309
  */
185
310
  export interface DeliveryEstimates {
311
+ /**
312
+ * Whether this is a priority shipping method. Fulfillments with priority methods aim for same day dispatch when ordered before 1pm, and typically offer faster delivery times.
313
+ * @type {boolean}
314
+ * @memberof DeliveryEstimates
315
+ */
316
+ 'isPriority'?: boolean;
186
317
  /**
187
318
  * ISO 8601 Timestamp
188
319
  * @type {string}
@@ -415,6 +546,12 @@ export interface Order {
415
546
  * @memberof Order
416
547
  */
417
548
  'shippingAddress': Address;
549
+ /**
550
+ *
551
+ * @type {CustomsInformation1}
552
+ * @memberof Order
553
+ */
554
+ 'customsInformation'?: CustomsInformation1;
418
555
  /**
419
556
  * ISO 8601 Timestamp
420
557
  * @type {string}
@@ -428,7 +565,13 @@ export interface Order {
428
565
  */
429
566
  'updatedAt'?: string;
430
567
  /**
431
- * A custom reference to the merchant\'s order that will be displayed on the shipping label.
568
+ * ISO 8601 Timestamp
569
+ * @type {string}
570
+ * @memberof Order
571
+ */
572
+ 'statusChangedAt'?: string;
573
+ /**
574
+ * A custom reference to the merchant\'s order.
432
575
  * @type {string}
433
576
  * @memberof Order
434
577
  */
@@ -563,6 +706,50 @@ export interface OrderItem {
563
706
  */
564
707
  'recipientCost'?: Price;
565
708
  }
709
+ /**
710
+ *
711
+ * @export
712
+ * @interface OrderItem1
713
+ */
714
+ export interface OrderItem1 {
715
+ /**
716
+ * A reference to the resource location
717
+ * @type {string}
718
+ * @memberof OrderItem1
719
+ */
720
+ 'variantRef': string;
721
+ /**
722
+ *
723
+ * @type {number}
724
+ * @memberof OrderItem1
725
+ */
726
+ 'quantity': number;
727
+ /**
728
+ *
729
+ * @type {OrderItem1RecipientCost}
730
+ * @memberof OrderItem1
731
+ */
732
+ 'recipientCost'?: OrderItem1RecipientCost;
733
+ }
734
+ /**
735
+ *
736
+ * @export
737
+ * @interface OrderItem1RecipientCost
738
+ */
739
+ export interface OrderItem1RecipientCost {
740
+ /**
741
+ *
742
+ * @type {string}
743
+ * @memberof OrderItem1RecipientCost
744
+ */
745
+ 'amount': string;
746
+ /**
747
+ *
748
+ * @type {string}
749
+ * @memberof OrderItem1RecipientCost
750
+ */
751
+ 'currencyCode': string;
752
+ }
566
753
  /**
567
754
  *
568
755
  * @export
@@ -607,19 +794,6 @@ export interface OrdersResponse {
607
794
  */
608
795
  'nextPageToken'?: number;
609
796
  }
610
- /**
611
- *
612
- * @export
613
- * @interface OrdersStatusesResponse
614
- */
615
- export interface OrdersStatusesResponse {
616
- /**
617
- *
618
- * @type {Array<Status>}
619
- * @memberof OrdersStatusesResponse
620
- */
621
- 'statuses'?: Array<Status>;
622
- }
623
797
  /**
624
798
  *
625
799
  * @export
@@ -875,16 +1049,16 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
875
1049
  * Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
876
1050
  * @summary Create order
877
1051
  * @param {string} project What project it is
878
- * @param {Order} order Order schema
1052
+ * @param {CreateOrder} createOrder Create Order schema
879
1053
  * @param {string} [fields] Specifies which fields to return, separated by commas
880
1054
  * @param {*} [options] Override http request option.
881
1055
  * @throws {RequiredError}
882
1056
  */
883
- createOrder: async (project: string, order: Order, fields?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1057
+ createOrder: async (project: string, createOrder: CreateOrder, fields?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
884
1058
  // verify required parameter 'project' is not null or undefined
885
1059
  assertParamExists('createOrder', 'project', project)
886
- // verify required parameter 'order' is not null or undefined
887
- assertParamExists('createOrder', 'order', order)
1060
+ // verify required parameter 'createOrder' is not null or undefined
1061
+ assertParamExists('createOrder', 'createOrder', createOrder)
888
1062
  const localVarPath = `/v1/orders`;
889
1063
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
890
1064
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -919,7 +1093,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
919
1093
  setSearchParams(localVarUrlObj, localVarQueryParameter);
920
1094
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
921
1095
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
922
- localVarRequestOptions.data = serializeDataIfNeeded(order, localVarRequestOptions, configuration)
1096
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrder, localVarRequestOptions, configuration)
923
1097
 
924
1098
  return {
925
1099
  url: toPathString(localVarUrlObj),
@@ -1056,10 +1230,11 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
1056
1230
  * @param {Array<Status>} [statuses] Filter by fulfillment status
1057
1231
  * @param {string} [start] Start of date range to filter by when orders were placed
1058
1232
  * @param {string} [end] End of date range to filter by when orders were placed
1233
+ * @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Filter by date range type
1059
1234
  * @param {*} [options] Override http request option.
1060
1235
  * @throws {RequiredError}
1061
1236
  */
1062
- getOrders: async (project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1237
+ getOrders: async (project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, dateFilterType?: GetOrdersDateFilterTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1063
1238
  // verify required parameter 'project' is not null or undefined
1064
1239
  assertParamExists('getOrders', 'project', project)
1065
1240
  const localVarPath = `/v1/orders`;
@@ -1121,48 +1296,8 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
1121
1296
  end;
1122
1297
  }
1123
1298
 
1124
-
1125
-
1126
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1127
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1128
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1129
-
1130
- return {
1131
- url: toPathString(localVarUrlObj),
1132
- options: localVarRequestOptions,
1133
- };
1134
- },
1135
- /**
1136
- * Lists orders\' statuses and only include \'quote\' if at least one order has that status
1137
- * @summary List orders\' statuses
1138
- * @param {string} project What project it is
1139
- * @param {*} [options] Override http request option.
1140
- * @throws {RequiredError}
1141
- */
1142
- getStatuses: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1143
- // verify required parameter 'project' is not null or undefined
1144
- assertParamExists('getStatuses', 'project', project)
1145
- const localVarPath = `/v1/orders/statuses`;
1146
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1147
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1148
- let baseOptions;
1149
- if (configuration) {
1150
- baseOptions = configuration.baseOptions;
1151
- }
1152
-
1153
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1154
- const localVarHeaderParameter = {} as any;
1155
- const localVarQueryParameter = {} as any;
1156
-
1157
- // authentication session-oauth required
1158
- // oauth required
1159
- await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1160
-
1161
- // authentication api-key required
1162
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1163
-
1164
- if (project !== undefined) {
1165
- localVarQueryParameter['project'] = project;
1299
+ if (dateFilterType !== undefined) {
1300
+ localVarQueryParameter['dateFilterType'] = dateFilterType;
1166
1301
  }
1167
1302
 
1168
1303
 
@@ -1221,13 +1356,13 @@ export const OrdersApiFp = function(configuration?: Configuration) {
1221
1356
  * Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
1222
1357
  * @summary Create order
1223
1358
  * @param {string} project What project it is
1224
- * @param {Order} order Order schema
1359
+ * @param {CreateOrder} createOrder Create Order schema
1225
1360
  * @param {string} [fields] Specifies which fields to return, separated by commas
1226
1361
  * @param {*} [options] Override http request option.
1227
1362
  * @throws {RequiredError}
1228
1363
  */
1229
- async createOrder(project: string, order: Order, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
1230
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOrder(project, order, fields, options);
1364
+ async createOrder(project: string, createOrder: CreateOrder, fields?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
1365
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrder(project, createOrder, fields, options);
1231
1366
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1232
1367
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.createOrder']?.[localVarOperationServerIndex]?.url;
1233
1368
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1275,28 +1410,16 @@ export const OrdersApiFp = function(configuration?: Configuration) {
1275
1410
  * @param {Array<Status>} [statuses] Filter by fulfillment status
1276
1411
  * @param {string} [start] Start of date range to filter by when orders were placed
1277
1412
  * @param {string} [end] End of date range to filter by when orders were placed
1413
+ * @param {GetOrdersDateFilterTypeEnum} [dateFilterType] Filter by date range type
1278
1414
  * @param {*} [options] Override http request option.
1279
1415
  * @throws {RequiredError}
1280
1416
  */
1281
- async getOrders(project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>> {
1282
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(project, fields, pageToken, pageSize, search, ids, statuses, start, end, options);
1417
+ async getOrders(project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, dateFilterType?: GetOrdersDateFilterTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>> {
1418
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(project, fields, pageToken, pageSize, search, ids, statuses, start, end, dateFilterType, options);
1283
1419
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1284
1420
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getOrders']?.[localVarOperationServerIndex]?.url;
1285
1421
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1286
1422
  },
1287
- /**
1288
- * Lists orders\' statuses and only include \'quote\' if at least one order has that status
1289
- * @summary List orders\' statuses
1290
- * @param {string} project What project it is
1291
- * @param {*} [options] Override http request option.
1292
- * @throws {RequiredError}
1293
- */
1294
- async getStatuses(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersStatusesResponse>> {
1295
- const localVarAxiosArgs = await localVarAxiosParamCreator.getStatuses(project, options);
1296
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1297
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getStatuses']?.[localVarOperationServerIndex]?.url;
1298
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1299
- },
1300
1423
  }
1301
1424
  };
1302
1425
 
@@ -1335,7 +1458,7 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
1335
1458
  * @throws {RequiredError}
1336
1459
  */
1337
1460
  createOrder(requestParameters: OrdersApiCreateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order> {
1338
- return localVarFp.createOrder(requestParameters.project, requestParameters.order, requestParameters.fields, options).then((request) => request(axios, basePath));
1461
+ return localVarFp.createOrder(requestParameters.project, requestParameters.createOrder, requestParameters.fields, options).then((request) => request(axios, basePath));
1339
1462
  },
1340
1463
  /**
1341
1464
  * Export orders as a CSV file
@@ -1365,17 +1488,7 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
1365
1488
  * @throws {RequiredError}
1366
1489
  */
1367
1490
  getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse> {
1368
- return localVarFp.getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1369
- },
1370
- /**
1371
- * Lists orders\' statuses and only include \'quote\' if at least one order has that status
1372
- * @summary List orders\' statuses
1373
- * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
1374
- * @param {*} [options] Override http request option.
1375
- * @throws {RequiredError}
1376
- */
1377
- getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersStatusesResponse> {
1378
- return localVarFp.getStatuses(requestParameters.project, options).then((request) => request(axios, basePath));
1491
+ return localVarFp.getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(axios, basePath));
1379
1492
  },
1380
1493
  };
1381
1494
  };
@@ -1457,11 +1570,11 @@ export interface OrdersApiCreateOrderRequest {
1457
1570
  readonly project: string
1458
1571
 
1459
1572
  /**
1460
- * Order schema
1461
- * @type {Order}
1573
+ * Create Order schema
1574
+ * @type {CreateOrder}
1462
1575
  * @memberof OrdersApiCreateOrder
1463
1576
  */
1464
- readonly order: Order
1577
+ readonly createOrder: CreateOrder
1465
1578
 
1466
1579
  /**
1467
1580
  * Specifies which fields to return, separated by commas
@@ -1602,20 +1715,13 @@ export interface OrdersApiGetOrdersRequest {
1602
1715
  * @memberof OrdersApiGetOrders
1603
1716
  */
1604
1717
  readonly end?: string
1605
- }
1606
1718
 
1607
- /**
1608
- * Request parameters for getStatuses operation in OrdersApi.
1609
- * @export
1610
- * @interface OrdersApiGetStatusesRequest
1611
- */
1612
- export interface OrdersApiGetStatusesRequest {
1613
1719
  /**
1614
- * What project it is
1615
- * @type {string}
1616
- * @memberof OrdersApiGetStatuses
1720
+ * Filter by date range type
1721
+ * @type {'createdAt' | 'updatedAt' | 'statusChangedAt'}
1722
+ * @memberof OrdersApiGetOrders
1617
1723
  */
1618
- readonly project: string
1724
+ readonly dateFilterType?: GetOrdersDateFilterTypeEnum
1619
1725
  }
1620
1726
 
1621
1727
  /**
@@ -1658,7 +1764,7 @@ export class OrdersApi extends BaseAPI {
1658
1764
  * @memberof OrdersApi
1659
1765
  */
1660
1766
  public createOrder(requestParameters: OrdersApiCreateOrderRequest, options?: RawAxiosRequestConfig) {
1661
- return OrdersApiFp(this.configuration).createOrder(requestParameters.project, requestParameters.order, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
1767
+ return OrdersApiFp(this.configuration).createOrder(requestParameters.project, requestParameters.createOrder, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
1662
1768
  }
1663
1769
 
1664
1770
  /**
@@ -1694,21 +1800,18 @@ export class OrdersApi extends BaseAPI {
1694
1800
  * @memberof OrdersApi
1695
1801
  */
1696
1802
  public getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig) {
1697
- return OrdersApiFp(this.configuration).getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1698
- }
1699
-
1700
- /**
1701
- * Lists orders\' statuses and only include \'quote\' if at least one order has that status
1702
- * @summary List orders\' statuses
1703
- * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
1704
- * @param {*} [options] Override http request option.
1705
- * @throws {RequiredError}
1706
- * @memberof OrdersApi
1707
- */
1708
- public getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig) {
1709
- return OrdersApiFp(this.configuration).getStatuses(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1803
+ return OrdersApiFp(this.configuration).getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, requestParameters.dateFilterType, options).then((request) => request(this.axios, this.basePath));
1710
1804
  }
1711
1805
  }
1712
1806
 
1807
+ /**
1808
+ * @export
1809
+ */
1810
+ export const GetOrdersDateFilterTypeEnum = {
1811
+ CreatedAt: 'createdAt',
1812
+ UpdatedAt: 'updatedAt',
1813
+ StatusChangedAt: 'statusChangedAt'
1814
+ } as const;
1815
+ export type GetOrdersDateFilterTypeEnum = typeof GetOrdersDateFilterTypeEnum[keyof typeof GetOrdersDateFilterTypeEnum];
1713
1816
 
1714
1817
 
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.10.0
7
+ * The version of the OpenAPI document: 1.13.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/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.10.0
7
+ * The version of the OpenAPI document: 1.13.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/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.10.0
7
+ * The version of the OpenAPI document: 1.13.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).