@teemill/orders 1.6.2 → 1.8.2

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.
@@ -1 +1 @@
1
- 7.6.0
1
+ 7.7.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/orders@1.6.2
1
+ ## @teemill/orders@1.8.2
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.6.2 --save
39
+ npm install @teemill/orders@1.8.2 --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.6.2
7
+ * The version of the OpenAPI document: 1.8.2
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -323,6 +323,56 @@ export interface FulfillmentItem {
323
323
  */
324
324
  'quantity'?: number;
325
325
  }
326
+ /**
327
+ * Image description
328
+ * @export
329
+ * @interface Image
330
+ */
331
+ export interface Image {
332
+ /**
333
+ * Unique object identifier
334
+ * @type {string}
335
+ * @memberof Image
336
+ */
337
+ 'id'?: string;
338
+ /**
339
+ *
340
+ * @type {string}
341
+ * @memberof Image
342
+ */
343
+ 'src'?: string;
344
+ /**
345
+ *
346
+ * @type {string}
347
+ * @memberof Image
348
+ */
349
+ 'alt'?: string;
350
+ /**
351
+ *
352
+ * @type {number}
353
+ * @memberof Image
354
+ */
355
+ 'sortOrder'?: number;
356
+ }
357
+ /**
358
+ *
359
+ * @export
360
+ * @interface Option
361
+ */
362
+ export interface Option {
363
+ /**
364
+ * Option name
365
+ * @type {string}
366
+ * @memberof Option
367
+ */
368
+ 'name': string;
369
+ /**
370
+ * Option value
371
+ * @type {string}
372
+ * @memberof Option
373
+ */
374
+ 'value': string;
375
+ }
326
376
  /**
327
377
  *
328
378
  * @export
@@ -452,12 +502,30 @@ export interface OrderItem {
452
502
  * @memberof OrderItem
453
503
  */
454
504
  'variantRef': string;
505
+ /**
506
+ * Options associated to an order item\'s variant, such as color and size.
507
+ * @type {Array<Option>}
508
+ * @memberof OrderItem
509
+ */
510
+ 'options'?: Array<Option>;
455
511
  /**
456
512
  *
457
513
  * @type {number}
458
514
  * @memberof OrderItem
459
515
  */
460
516
  'quantity': number;
517
+ /**
518
+ * The name of the product
519
+ * @type {string}
520
+ * @memberof OrderItem
521
+ */
522
+ 'name'?: string;
523
+ /**
524
+ * Images
525
+ * @type {Array<Image>}
526
+ * @memberof OrderItem
527
+ */
528
+ 'images'?: Array<Image>;
461
529
  /**
462
530
  *
463
531
  * @type {Price}
@@ -465,11 +533,11 @@ export interface OrderItem {
465
533
  */
466
534
  'totalPrice'?: Price;
467
535
  /**
468
- *
469
- * @type {OrderItemTaxPrice}
536
+ * This is an estimate until the order has been confirmed
537
+ * @type {Price}
470
538
  * @memberof OrderItem
471
539
  */
472
- 'taxPrice'?: OrderItemTaxPrice;
540
+ 'taxPrice'?: Price;
473
541
  /**
474
542
  *
475
543
  * @type {Price}
@@ -489,25 +557,6 @@ export interface OrderItem {
489
557
  */
490
558
  'recipientCost'?: Price;
491
559
  }
492
- /**
493
- * This is an estimate until the order has been confirmed
494
- * @export
495
- * @interface OrderItemTaxPrice
496
- */
497
- export interface OrderItemTaxPrice {
498
- /**
499
- * Price including tax in the specified currency.
500
- * @type {string}
501
- * @memberof OrderItemTaxPrice
502
- */
503
- 'amount'?: string;
504
- /**
505
- * Currency code for the currency the price is valued in.
506
- * @type {string}
507
- * @memberof OrderItemTaxPrice
508
- */
509
- 'currencyCode'?: string;
510
- }
511
560
  /**
512
561
  *
513
562
  * @export
@@ -552,6 +601,19 @@ export interface OrdersResponse {
552
601
  */
553
602
  'nextPageToken'?: number;
554
603
  }
604
+ /**
605
+ *
606
+ * @export
607
+ * @interface OrdersStatusesResponse
608
+ */
609
+ export interface OrdersStatusesResponse {
610
+ /**
611
+ *
612
+ * @type {Array<Status>}
613
+ * @memberof OrdersStatusesResponse
614
+ */
615
+ 'statuses'?: Array<Status>;
616
+ }
555
617
  /**
556
618
  *
557
619
  * @export
@@ -656,7 +718,8 @@ export const Status = {
656
718
  Paid: 'paid',
657
719
  Processing: 'processing',
658
720
  Complete: 'complete',
659
- Refunded: 'refunded'
721
+ Refunded: 'refunded',
722
+ Quote: 'quote'
660
723
  } as const;
661
724
 
662
725
  export type Status = typeof Status[keyof typeof Status];
@@ -1049,6 +1112,50 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
1049
1112
 
1050
1113
 
1051
1114
 
1115
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1117
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1118
+
1119
+ return {
1120
+ url: toPathString(localVarUrlObj),
1121
+ options: localVarRequestOptions,
1122
+ };
1123
+ },
1124
+ /**
1125
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
1126
+ * @summary List orders\' statuses
1127
+ * @param {string} project What project it is
1128
+ * @param {*} [options] Override http request option.
1129
+ * @throws {RequiredError}
1130
+ */
1131
+ getStatuses: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1132
+ // verify required parameter 'project' is not null or undefined
1133
+ assertParamExists('getStatuses', 'project', project)
1134
+ const localVarPath = `/v1/orders/statuses`;
1135
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1136
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1137
+ let baseOptions;
1138
+ if (configuration) {
1139
+ baseOptions = configuration.baseOptions;
1140
+ }
1141
+
1142
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1143
+ const localVarHeaderParameter = {} as any;
1144
+ const localVarQueryParameter = {} as any;
1145
+
1146
+ // authentication session-oauth required
1147
+ // oauth required
1148
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1149
+
1150
+ // authentication api-key required
1151
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1152
+
1153
+ if (project !== undefined) {
1154
+ localVarQueryParameter['project'] = project;
1155
+ }
1156
+
1157
+
1158
+
1052
1159
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1053
1160
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1054
1161
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1165,6 +1272,19 @@ export const OrdersApiFp = function(configuration?: Configuration) {
1165
1272
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getOrders']?.[localVarOperationServerIndex]?.url;
1166
1273
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1167
1274
  },
1275
+ /**
1276
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
1277
+ * @summary List orders\' statuses
1278
+ * @param {string} project What project it is
1279
+ * @param {*} [options] Override http request option.
1280
+ * @throws {RequiredError}
1281
+ */
1282
+ async getStatuses(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersStatusesResponse>> {
1283
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStatuses(project, options);
1284
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1285
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getStatuses']?.[localVarOperationServerIndex]?.url;
1286
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1287
+ },
1168
1288
  }
1169
1289
  };
1170
1290
 
@@ -1235,6 +1355,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
1235
1355
  getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse> {
1236
1356
  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));
1237
1357
  },
1358
+ /**
1359
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
1360
+ * @summary List orders\' statuses
1361
+ * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
1362
+ * @param {*} [options] Override http request option.
1363
+ * @throws {RequiredError}
1364
+ */
1365
+ getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersStatusesResponse> {
1366
+ return localVarFp.getStatuses(requestParameters.project, options).then((request) => request(axios, basePath));
1367
+ },
1238
1368
  };
1239
1369
  };
1240
1370
 
@@ -1455,6 +1585,20 @@ export interface OrdersApiGetOrdersRequest {
1455
1585
  readonly end?: string
1456
1586
  }
1457
1587
 
1588
+ /**
1589
+ * Request parameters for getStatuses operation in OrdersApi.
1590
+ * @export
1591
+ * @interface OrdersApiGetStatusesRequest
1592
+ */
1593
+ export interface OrdersApiGetStatusesRequest {
1594
+ /**
1595
+ * What project it is
1596
+ * @type {string}
1597
+ * @memberof OrdersApiGetStatuses
1598
+ */
1599
+ readonly project: string
1600
+ }
1601
+
1458
1602
  /**
1459
1603
  * OrdersApi - object-oriented interface
1460
1604
  * @export
@@ -1533,6 +1677,18 @@ export class OrdersApi extends BaseAPI {
1533
1677
  public getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig) {
1534
1678
  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));
1535
1679
  }
1680
+
1681
+ /**
1682
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
1683
+ * @summary List orders\' statuses
1684
+ * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
1685
+ * @param {*} [options] Override http request option.
1686
+ * @throws {RequiredError}
1687
+ * @memberof OrdersApi
1688
+ */
1689
+ public getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig) {
1690
+ return OrdersApiFp(this.configuration).getStatuses(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1691
+ }
1536
1692
  }
1537
1693
 
1538
1694
 
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.6.2
7
+ * The version of the OpenAPI document: 1.8.2
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.6.2
7
+ * The version of the OpenAPI document: 1.8.2
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.6.2
7
+ * The version of the OpenAPI document: 1.8.2
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.2
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -308,6 +308,56 @@ export interface FulfillmentItem {
308
308
  */
309
309
  'quantity'?: number;
310
310
  }
311
+ /**
312
+ * Image description
313
+ * @export
314
+ * @interface Image
315
+ */
316
+ export interface Image {
317
+ /**
318
+ * Unique object identifier
319
+ * @type {string}
320
+ * @memberof Image
321
+ */
322
+ 'id'?: string;
323
+ /**
324
+ *
325
+ * @type {string}
326
+ * @memberof Image
327
+ */
328
+ 'src'?: string;
329
+ /**
330
+ *
331
+ * @type {string}
332
+ * @memberof Image
333
+ */
334
+ 'alt'?: string;
335
+ /**
336
+ *
337
+ * @type {number}
338
+ * @memberof Image
339
+ */
340
+ 'sortOrder'?: number;
341
+ }
342
+ /**
343
+ *
344
+ * @export
345
+ * @interface Option
346
+ */
347
+ export interface Option {
348
+ /**
349
+ * Option name
350
+ * @type {string}
351
+ * @memberof Option
352
+ */
353
+ 'name': string;
354
+ /**
355
+ * Option value
356
+ * @type {string}
357
+ * @memberof Option
358
+ */
359
+ 'value': string;
360
+ }
311
361
  /**
312
362
  *
313
363
  * @export
@@ -435,12 +485,30 @@ export interface OrderItem {
435
485
  * @memberof OrderItem
436
486
  */
437
487
  'variantRef': string;
488
+ /**
489
+ * Options associated to an order item\'s variant, such as color and size.
490
+ * @type {Array<Option>}
491
+ * @memberof OrderItem
492
+ */
493
+ 'options'?: Array<Option>;
438
494
  /**
439
495
  *
440
496
  * @type {number}
441
497
  * @memberof OrderItem
442
498
  */
443
499
  'quantity': number;
500
+ /**
501
+ * The name of the product
502
+ * @type {string}
503
+ * @memberof OrderItem
504
+ */
505
+ 'name'?: string;
506
+ /**
507
+ * Images
508
+ * @type {Array<Image>}
509
+ * @memberof OrderItem
510
+ */
511
+ 'images'?: Array<Image>;
444
512
  /**
445
513
  *
446
514
  * @type {Price}
@@ -448,11 +516,11 @@ export interface OrderItem {
448
516
  */
449
517
  'totalPrice'?: Price;
450
518
  /**
451
- *
452
- * @type {OrderItemTaxPrice}
519
+ * This is an estimate until the order has been confirmed
520
+ * @type {Price}
453
521
  * @memberof OrderItem
454
522
  */
455
- 'taxPrice'?: OrderItemTaxPrice;
523
+ 'taxPrice'?: Price;
456
524
  /**
457
525
  *
458
526
  * @type {Price}
@@ -472,25 +540,6 @@ export interface OrderItem {
472
540
  */
473
541
  'recipientCost'?: Price;
474
542
  }
475
- /**
476
- * This is an estimate until the order has been confirmed
477
- * @export
478
- * @interface OrderItemTaxPrice
479
- */
480
- export interface OrderItemTaxPrice {
481
- /**
482
- * Price including tax in the specified currency.
483
- * @type {string}
484
- * @memberof OrderItemTaxPrice
485
- */
486
- 'amount'?: string;
487
- /**
488
- * Currency code for the currency the price is valued in.
489
- * @type {string}
490
- * @memberof OrderItemTaxPrice
491
- */
492
- 'currencyCode'?: string;
493
- }
494
543
  /**
495
544
  *
496
545
  * @export
@@ -535,6 +584,19 @@ export interface OrdersResponse {
535
584
  */
536
585
  'nextPageToken'?: number;
537
586
  }
587
+ /**
588
+ *
589
+ * @export
590
+ * @interface OrdersStatusesResponse
591
+ */
592
+ export interface OrdersStatusesResponse {
593
+ /**
594
+ *
595
+ * @type {Array<Status>}
596
+ * @memberof OrdersStatusesResponse
597
+ */
598
+ 'statuses'?: Array<Status>;
599
+ }
538
600
  /**
539
601
  *
540
602
  * @export
@@ -639,6 +701,7 @@ export declare const Status: {
639
701
  readonly Processing: "processing";
640
702
  readonly Complete: "complete";
641
703
  readonly Refunded: "refunded";
704
+ readonly Quote: "quote";
642
705
  };
643
706
  export type Status = typeof Status[keyof typeof Status];
644
707
  /**
@@ -732,6 +795,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
732
795
  * @throws {RequiredError}
733
796
  */
734
797
  getOrders: (project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
798
+ /**
799
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
800
+ * @summary List orders\' statuses
801
+ * @param {string} project What project it is
802
+ * @param {*} [options] Override http request option.
803
+ * @throws {RequiredError}
804
+ */
805
+ getStatuses: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
735
806
  };
736
807
  /**
737
808
  * OrdersApi - functional programming interface
@@ -805,6 +876,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
805
876
  * @throws {RequiredError}
806
877
  */
807
878
  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>>;
879
+ /**
880
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
881
+ * @summary List orders\' statuses
882
+ * @param {string} project What project it is
883
+ * @param {*} [options] Override http request option.
884
+ * @throws {RequiredError}
885
+ */
886
+ getStatuses(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersStatusesResponse>>;
808
887
  };
809
888
  /**
810
889
  * OrdersApi - factory interface
@@ -859,6 +938,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
859
938
  * @throws {RequiredError}
860
939
  */
861
940
  getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
941
+ /**
942
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
943
+ * @summary List orders\' statuses
944
+ * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersStatusesResponse>;
862
949
  };
863
950
  /**
864
951
  * Request parameters for cancelOrder operation in OrdersApi.
@@ -1052,6 +1139,19 @@ export interface OrdersApiGetOrdersRequest {
1052
1139
  */
1053
1140
  readonly end?: string;
1054
1141
  }
1142
+ /**
1143
+ * Request parameters for getStatuses operation in OrdersApi.
1144
+ * @export
1145
+ * @interface OrdersApiGetStatusesRequest
1146
+ */
1147
+ export interface OrdersApiGetStatusesRequest {
1148
+ /**
1149
+ * What project it is
1150
+ * @type {string}
1151
+ * @memberof OrdersApiGetStatuses
1152
+ */
1153
+ readonly project: string;
1154
+ }
1055
1155
  /**
1056
1156
  * OrdersApi - object-oriented interface
1057
1157
  * @export
@@ -1113,4 +1213,13 @@ export declare class OrdersApi extends BaseAPI {
1113
1213
  * @memberof OrdersApi
1114
1214
  */
1115
1215
  getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
1216
+ /**
1217
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
1218
+ * @summary List orders\' statuses
1219
+ * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
1220
+ * @param {*} [options] Override http request option.
1221
+ * @throws {RequiredError}
1222
+ * @memberof OrdersApi
1223
+ */
1224
+ getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersStatusesResponse, any>>;
1116
1225
  }
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * 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)
7
7
  *
8
- * The version of the OpenAPI document: 1.6.2
8
+ * The version of the OpenAPI document: 1.8.2
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -45,7 +45,8 @@ exports.Status = {
45
45
  Paid: 'paid',
46
46
  Processing: 'processing',
47
47
  Complete: 'complete',
48
- Refunded: 'refunded'
48
+ Refunded: 'refunded',
49
+ Quote: 'quote'
49
50
  };
50
51
  /**
51
52
  * OrdersApi - axios parameter creator
@@ -357,6 +358,42 @@ const OrdersApiAxiosParamCreator = function (configuration) {
357
358
  options: localVarRequestOptions,
358
359
  };
359
360
  }),
361
+ /**
362
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
363
+ * @summary List orders\' statuses
364
+ * @param {string} project What project it is
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ getStatuses: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
369
+ // verify required parameter 'project' is not null or undefined
370
+ (0, common_1.assertParamExists)('getStatuses', 'project', project);
371
+ const localVarPath = `/v1/orders/statuses`;
372
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
373
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
374
+ let baseOptions;
375
+ if (configuration) {
376
+ baseOptions = configuration.baseOptions;
377
+ }
378
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
379
+ const localVarHeaderParameter = {};
380
+ const localVarQueryParameter = {};
381
+ // authentication session-oauth required
382
+ // oauth required
383
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
384
+ // authentication api-key required
385
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
386
+ if (project !== undefined) {
387
+ localVarQueryParameter['project'] = project;
388
+ }
389
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
391
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
392
+ return {
393
+ url: (0, common_1.toPathString)(localVarUrlObj),
394
+ options: localVarRequestOptions,
395
+ };
396
+ }),
360
397
  };
361
398
  };
362
399
  exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
@@ -482,6 +519,22 @@ const OrdersApiFp = function (configuration) {
482
519
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
483
520
  });
484
521
  },
522
+ /**
523
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
524
+ * @summary List orders\' statuses
525
+ * @param {string} project What project it is
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ getStatuses(project, options) {
530
+ return __awaiter(this, void 0, void 0, function* () {
531
+ var _a, _b, _c;
532
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStatuses(project, options);
533
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
534
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getStatuses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
535
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
536
+ });
537
+ },
485
538
  };
486
539
  };
487
540
  exports.OrdersApiFp = OrdersApiFp;
@@ -552,6 +605,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
552
605
  getOrders(requestParameters, options) {
553
606
  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));
554
607
  },
608
+ /**
609
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
610
+ * @summary List orders\' statuses
611
+ * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ getStatuses(requestParameters, options) {
616
+ return localVarFp.getStatuses(requestParameters.project, options).then((request) => request(axios, basePath));
617
+ },
555
618
  };
556
619
  };
557
620
  exports.OrdersApiFactory = OrdersApiFactory;
@@ -628,5 +691,16 @@ class OrdersApi extends base_1.BaseAPI {
628
691
  getOrders(requestParameters, options) {
629
692
  return (0, exports.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));
630
693
  }
694
+ /**
695
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
696
+ * @summary List orders\' statuses
697
+ * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ * @memberof OrdersApi
701
+ */
702
+ getStatuses(requestParameters, options) {
703
+ return (0, exports.OrdersApiFp)(this.configuration).getStatuses(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
704
+ }
631
705
  }
632
706
  exports.OrdersApi = OrdersApi;
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.2
5
+ * The version of the OpenAPI document: 1.8.2
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/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * 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)
7
7
  *
8
- * The version of the OpenAPI document: 1.6.2
8
+ * The version of the OpenAPI document: 1.8.2
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/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.2
5
+ * The version of the OpenAPI document: 1.8.2
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/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * 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)
7
7
  *
8
- * The version of the OpenAPI document: 1.6.2
8
+ * The version of the OpenAPI document: 1.8.2
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
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.2
5
+ * The version of the OpenAPI document: 1.8.2
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
  * 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)
7
7
  *
8
- * The version of the OpenAPI document: 1.6.2
8
+ * The version of the OpenAPI document: 1.8.2
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/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.2
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -308,6 +308,56 @@ export interface FulfillmentItem {
308
308
  */
309
309
  'quantity'?: number;
310
310
  }
311
+ /**
312
+ * Image description
313
+ * @export
314
+ * @interface Image
315
+ */
316
+ export interface Image {
317
+ /**
318
+ * Unique object identifier
319
+ * @type {string}
320
+ * @memberof Image
321
+ */
322
+ 'id'?: string;
323
+ /**
324
+ *
325
+ * @type {string}
326
+ * @memberof Image
327
+ */
328
+ 'src'?: string;
329
+ /**
330
+ *
331
+ * @type {string}
332
+ * @memberof Image
333
+ */
334
+ 'alt'?: string;
335
+ /**
336
+ *
337
+ * @type {number}
338
+ * @memberof Image
339
+ */
340
+ 'sortOrder'?: number;
341
+ }
342
+ /**
343
+ *
344
+ * @export
345
+ * @interface Option
346
+ */
347
+ export interface Option {
348
+ /**
349
+ * Option name
350
+ * @type {string}
351
+ * @memberof Option
352
+ */
353
+ 'name': string;
354
+ /**
355
+ * Option value
356
+ * @type {string}
357
+ * @memberof Option
358
+ */
359
+ 'value': string;
360
+ }
311
361
  /**
312
362
  *
313
363
  * @export
@@ -435,12 +485,30 @@ export interface OrderItem {
435
485
  * @memberof OrderItem
436
486
  */
437
487
  'variantRef': string;
488
+ /**
489
+ * Options associated to an order item\'s variant, such as color and size.
490
+ * @type {Array<Option>}
491
+ * @memberof OrderItem
492
+ */
493
+ 'options'?: Array<Option>;
438
494
  /**
439
495
  *
440
496
  * @type {number}
441
497
  * @memberof OrderItem
442
498
  */
443
499
  'quantity': number;
500
+ /**
501
+ * The name of the product
502
+ * @type {string}
503
+ * @memberof OrderItem
504
+ */
505
+ 'name'?: string;
506
+ /**
507
+ * Images
508
+ * @type {Array<Image>}
509
+ * @memberof OrderItem
510
+ */
511
+ 'images'?: Array<Image>;
444
512
  /**
445
513
  *
446
514
  * @type {Price}
@@ -448,11 +516,11 @@ export interface OrderItem {
448
516
  */
449
517
  'totalPrice'?: Price;
450
518
  /**
451
- *
452
- * @type {OrderItemTaxPrice}
519
+ * This is an estimate until the order has been confirmed
520
+ * @type {Price}
453
521
  * @memberof OrderItem
454
522
  */
455
- 'taxPrice'?: OrderItemTaxPrice;
523
+ 'taxPrice'?: Price;
456
524
  /**
457
525
  *
458
526
  * @type {Price}
@@ -472,25 +540,6 @@ export interface OrderItem {
472
540
  */
473
541
  'recipientCost'?: Price;
474
542
  }
475
- /**
476
- * This is an estimate until the order has been confirmed
477
- * @export
478
- * @interface OrderItemTaxPrice
479
- */
480
- export interface OrderItemTaxPrice {
481
- /**
482
- * Price including tax in the specified currency.
483
- * @type {string}
484
- * @memberof OrderItemTaxPrice
485
- */
486
- 'amount'?: string;
487
- /**
488
- * Currency code for the currency the price is valued in.
489
- * @type {string}
490
- * @memberof OrderItemTaxPrice
491
- */
492
- 'currencyCode'?: string;
493
- }
494
543
  /**
495
544
  *
496
545
  * @export
@@ -535,6 +584,19 @@ export interface OrdersResponse {
535
584
  */
536
585
  'nextPageToken'?: number;
537
586
  }
587
+ /**
588
+ *
589
+ * @export
590
+ * @interface OrdersStatusesResponse
591
+ */
592
+ export interface OrdersStatusesResponse {
593
+ /**
594
+ *
595
+ * @type {Array<Status>}
596
+ * @memberof OrdersStatusesResponse
597
+ */
598
+ 'statuses'?: Array<Status>;
599
+ }
538
600
  /**
539
601
  *
540
602
  * @export
@@ -639,6 +701,7 @@ export declare const Status: {
639
701
  readonly Processing: "processing";
640
702
  readonly Complete: "complete";
641
703
  readonly Refunded: "refunded";
704
+ readonly Quote: "quote";
642
705
  };
643
706
  export type Status = typeof Status[keyof typeof Status];
644
707
  /**
@@ -732,6 +795,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
732
795
  * @throws {RequiredError}
733
796
  */
734
797
  getOrders: (project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
798
+ /**
799
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
800
+ * @summary List orders\' statuses
801
+ * @param {string} project What project it is
802
+ * @param {*} [options] Override http request option.
803
+ * @throws {RequiredError}
804
+ */
805
+ getStatuses: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
735
806
  };
736
807
  /**
737
808
  * OrdersApi - functional programming interface
@@ -805,6 +876,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
805
876
  * @throws {RequiredError}
806
877
  */
807
878
  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>>;
879
+ /**
880
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
881
+ * @summary List orders\' statuses
882
+ * @param {string} project What project it is
883
+ * @param {*} [options] Override http request option.
884
+ * @throws {RequiredError}
885
+ */
886
+ getStatuses(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersStatusesResponse>>;
808
887
  };
809
888
  /**
810
889
  * OrdersApi - factory interface
@@ -859,6 +938,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
859
938
  * @throws {RequiredError}
860
939
  */
861
940
  getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
941
+ /**
942
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
943
+ * @summary List orders\' statuses
944
+ * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersStatusesResponse>;
862
949
  };
863
950
  /**
864
951
  * Request parameters for cancelOrder operation in OrdersApi.
@@ -1052,6 +1139,19 @@ export interface OrdersApiGetOrdersRequest {
1052
1139
  */
1053
1140
  readonly end?: string;
1054
1141
  }
1142
+ /**
1143
+ * Request parameters for getStatuses operation in OrdersApi.
1144
+ * @export
1145
+ * @interface OrdersApiGetStatusesRequest
1146
+ */
1147
+ export interface OrdersApiGetStatusesRequest {
1148
+ /**
1149
+ * What project it is
1150
+ * @type {string}
1151
+ * @memberof OrdersApiGetStatuses
1152
+ */
1153
+ readonly project: string;
1154
+ }
1055
1155
  /**
1056
1156
  * OrdersApi - object-oriented interface
1057
1157
  * @export
@@ -1113,4 +1213,13 @@ export declare class OrdersApi extends BaseAPI {
1113
1213
  * @memberof OrdersApi
1114
1214
  */
1115
1215
  getOrders(requestParameters: OrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
1216
+ /**
1217
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
1218
+ * @summary List orders\' statuses
1219
+ * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
1220
+ * @param {*} [options] Override http request option.
1221
+ * @throws {RequiredError}
1222
+ * @memberof OrdersApi
1223
+ */
1224
+ getStatuses(requestParameters: OrdersApiGetStatusesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersStatusesResponse, any>>;
1116
1225
  }
package/dist/esm/api.js 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.6.2
7
+ * The version of the OpenAPI document: 1.8.2
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -42,7 +42,8 @@ export const Status = {
42
42
  Paid: 'paid',
43
43
  Processing: 'processing',
44
44
  Complete: 'complete',
45
- Refunded: 'refunded'
45
+ Refunded: 'refunded',
46
+ Quote: 'quote'
46
47
  };
47
48
  /**
48
49
  * OrdersApi - axios parameter creator
@@ -354,6 +355,42 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
354
355
  options: localVarRequestOptions,
355
356
  };
356
357
  }),
358
+ /**
359
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
360
+ * @summary List orders\' statuses
361
+ * @param {string} project What project it is
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ getStatuses: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
366
+ // verify required parameter 'project' is not null or undefined
367
+ assertParamExists('getStatuses', 'project', project);
368
+ const localVarPath = `/v1/orders/statuses`;
369
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
370
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
371
+ let baseOptions;
372
+ if (configuration) {
373
+ baseOptions = configuration.baseOptions;
374
+ }
375
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
376
+ const localVarHeaderParameter = {};
377
+ const localVarQueryParameter = {};
378
+ // authentication session-oauth required
379
+ // oauth required
380
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
381
+ // authentication api-key required
382
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
383
+ if (project !== undefined) {
384
+ localVarQueryParameter['project'] = project;
385
+ }
386
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
387
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
388
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
389
+ return {
390
+ url: toPathString(localVarUrlObj),
391
+ options: localVarRequestOptions,
392
+ };
393
+ }),
357
394
  };
358
395
  };
359
396
  /**
@@ -478,6 +515,22 @@ export const OrdersApiFp = function (configuration) {
478
515
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
479
516
  });
480
517
  },
518
+ /**
519
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
520
+ * @summary List orders\' statuses
521
+ * @param {string} project What project it is
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ */
525
+ getStatuses(project, options) {
526
+ return __awaiter(this, void 0, void 0, function* () {
527
+ var _a, _b, _c;
528
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStatuses(project, options);
529
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
530
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.getStatuses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
531
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
532
+ });
533
+ },
481
534
  };
482
535
  };
483
536
  /**
@@ -547,6 +600,16 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
547
600
  getOrders(requestParameters, options) {
548
601
  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));
549
602
  },
603
+ /**
604
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
605
+ * @summary List orders\' statuses
606
+ * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ */
610
+ getStatuses(requestParameters, options) {
611
+ return localVarFp.getStatuses(requestParameters.project, options).then((request) => request(axios, basePath));
612
+ },
550
613
  };
551
614
  };
552
615
  /**
@@ -622,4 +685,15 @@ export class OrdersApi extends BaseAPI {
622
685
  getOrders(requestParameters, options) {
623
686
  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));
624
687
  }
688
+ /**
689
+ * Lists orders\' statuses and only include \'quote\' if at least one order has that status
690
+ * @summary List orders\' statuses
691
+ * @param {OrdersApiGetStatusesRequest} requestParameters Request parameters.
692
+ * @param {*} [options] Override http request option.
693
+ * @throws {RequiredError}
694
+ * @memberof OrdersApi
695
+ */
696
+ getStatuses(requestParameters, options) {
697
+ return OrdersApiFp(this.configuration).getStatuses(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
698
+ }
625
699
  }
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.2
5
+ * The version of the OpenAPI document: 1.8.2
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/esm/base.js 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.6.2
7
+ * The version of the OpenAPI document: 1.8.2
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.2
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * 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.6.2
7
+ * The version of the OpenAPI document: 1.8.2
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.2
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * 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.6.2
7
+ * The version of the OpenAPI document: 1.8.2
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.2
5
+ * The version of the OpenAPI document: 1.8.2
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/esm/index.js 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.6.2
7
+ * The version of the OpenAPI document: 1.8.2
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Orders API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 1.6.2
5
+ * The version of the OpenAPI document: 1.8.2
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/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Orders API
6
6
  * 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)
7
7
  *
8
- * The version of the OpenAPI document: 1.6.2
8
+ * The version of the OpenAPI document: 1.8.2
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/index.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.6.2
7
+ * The version of the OpenAPI document: 1.8.2
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/orders",
3
- "version": "1.6.2",
3
+ "version": "1.8.2",
4
4
  "description": "OpenAPI client for @teemill/orders",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {