@teemill/platform 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.3.0
5
+ * The version of the OpenAPI document: 0.4.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,61 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
+ /**
17
+ * A person\'s address.
18
+ * @export
19
+ * @interface Address
20
+ */
21
+ export interface Address {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Address
26
+ */
27
+ 'contactName': string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Address
32
+ */
33
+ 'company'?: string;
34
+ /**
35
+ * First line of the address.
36
+ * @type {string}
37
+ * @memberof Address
38
+ */
39
+ 'line1': string;
40
+ /**
41
+ * Second line of the address.
42
+ * @type {string}
43
+ * @memberof Address
44
+ */
45
+ 'line2'?: string;
46
+ /**
47
+ * City of the address.
48
+ * @type {string}
49
+ * @memberof Address
50
+ */
51
+ 'city': string;
52
+ /**
53
+ * Postal code of the address.
54
+ * @type {string}
55
+ * @memberof Address
56
+ */
57
+ 'postalCode'?: string;
58
+ /**
59
+ * Country of the address (ISO 3166-1 alpha-2).
60
+ * @type {string}
61
+ * @memberof Address
62
+ */
63
+ 'country': string;
64
+ /**
65
+ * State of the address.
66
+ * @type {string}
67
+ * @memberof Address
68
+ */
69
+ 'state'?: string;
70
+ }
16
71
  /**
17
72
  *
18
73
  * @export
@@ -32,6 +87,371 @@ export interface ApiError {
32
87
  */
33
88
  'message': string;
34
89
  }
90
+ /**
91
+ * Order recipient contact information, used only for courier tracking/updates.
92
+ * @export
93
+ * @interface ContactInformation
94
+ */
95
+ export interface ContactInformation {
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof ContactInformation
100
+ */
101
+ 'email': string;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof ContactInformation
106
+ */
107
+ 'phone'?: string | null;
108
+ }
109
+ /**
110
+ *
111
+ * @export
112
+ * @interface DeliveryEstimates
113
+ */
114
+ export interface DeliveryEstimates {
115
+ /**
116
+ * ISO 8601 Timestamp
117
+ * @type {string}
118
+ * @memberof DeliveryEstimates
119
+ */
120
+ 'min'?: string;
121
+ /**
122
+ * ISO 8601 Timestamp
123
+ * @type {string}
124
+ * @memberof DeliveryEstimates
125
+ */
126
+ 'max'?: string;
127
+ }
128
+ /**
129
+ *
130
+ * @export
131
+ * @interface ExportOrders202Response
132
+ */
133
+ export interface ExportOrders202Response {
134
+ /**
135
+ * A message describing the export status
136
+ * @type {string}
137
+ * @memberof ExportOrders202Response
138
+ */
139
+ 'message'?: string;
140
+ }
141
+ /**
142
+ *
143
+ * @export
144
+ * @interface Fulfillment
145
+ */
146
+ export interface Fulfillment {
147
+ /**
148
+ * Unique fulfillment id
149
+ * @type {string}
150
+ * @memberof Fulfillment
151
+ */
152
+ 'id'?: string;
153
+ /**
154
+ *
155
+ * @type {OrderStatus}
156
+ * @memberof Fulfillment
157
+ */
158
+ 'status'?: OrderStatus;
159
+ /**
160
+ *
161
+ * @type {Array<FulfillmentItem>}
162
+ * @memberof Fulfillment
163
+ */
164
+ 'items'?: Array<FulfillmentItem>;
165
+ /**
166
+ *
167
+ * @type {OrderTracking}
168
+ * @memberof Fulfillment
169
+ */
170
+ 'tracking'?: OrderTracking | null;
171
+ /**
172
+ * Shipping method currently set
173
+ * @type {ShippingMethod}
174
+ * @memberof Fulfillment
175
+ */
176
+ 'shippingMethod'?: ShippingMethod;
177
+ /**
178
+ * Shipping methods available for this fulfillment. One of these should be used to confirm the fulfillment.
179
+ * @type {Array<ShippingMethod>}
180
+ * @memberof Fulfillment
181
+ */
182
+ 'availableShippingMethods'?: Array<ShippingMethod>;
183
+ /**
184
+ * Weight of the package being shipped in grams
185
+ * @type {number}
186
+ * @memberof Fulfillment
187
+ */
188
+ 'packageWeight'?: number;
189
+ }
190
+ /**
191
+ *
192
+ * @export
193
+ * @interface FulfillmentItem
194
+ */
195
+ export interface FulfillmentItem {
196
+ /**
197
+ * Unique fulfillment item id
198
+ * @type {string}
199
+ * @memberof FulfillmentItem
200
+ */
201
+ 'id'?: string;
202
+ /**
203
+ * Id of the order item being fulfilled
204
+ * @type {string}
205
+ * @memberof FulfillmentItem
206
+ */
207
+ 'itemId'?: string;
208
+ /**
209
+ * Number of this item being fulfilled
210
+ * @type {number}
211
+ * @memberof FulfillmentItem
212
+ */
213
+ 'quantity'?: number;
214
+ }
215
+ /**
216
+ *
217
+ * @export
218
+ * @interface Order
219
+ */
220
+ export interface Order {
221
+ /**
222
+ * Unique object identifier
223
+ * @type {string}
224
+ * @memberof Order
225
+ */
226
+ 'id'?: string;
227
+ /**
228
+ * A reference to the resource location
229
+ * @type {string}
230
+ * @memberof Order
231
+ */
232
+ 'ref'?: string;
233
+ /**
234
+ *
235
+ * @type {OrderStatus}
236
+ * @memberof Order
237
+ */
238
+ 'status'?: OrderStatus;
239
+ /**
240
+ *
241
+ * @type {ContactInformation}
242
+ * @memberof Order
243
+ */
244
+ 'contactInformation': ContactInformation;
245
+ /**
246
+ *
247
+ * @type {Address}
248
+ * @memberof Order
249
+ */
250
+ 'shippingAddress': Address;
251
+ /**
252
+ * ISO 8601 Timestamp
253
+ * @type {string}
254
+ * @memberof Order
255
+ */
256
+ 'createdAt'?: string;
257
+ /**
258
+ * ISO 8601 Timestamp
259
+ * @type {string}
260
+ * @memberof Order
261
+ */
262
+ 'updatedAt'?: string;
263
+ /**
264
+ * A custom reference to the merchant\'s order that will be displayed on the shipping label.
265
+ * @type {string}
266
+ * @memberof Order
267
+ */
268
+ 'merchantReference'?: string | null;
269
+ /**
270
+ *
271
+ * @type {Array<Fulfillment>}
272
+ * @memberof Order
273
+ */
274
+ 'fulfillments'?: Array<Fulfillment>;
275
+ /**
276
+ *
277
+ * @type {Array<OrderItem>}
278
+ * @memberof Order
279
+ */
280
+ 'items': Array<OrderItem>;
281
+ /**
282
+ *
283
+ * @type {Price}
284
+ * @memberof Order
285
+ */
286
+ 'totalPrice'?: Price;
287
+ /**
288
+ *
289
+ * @type {Price}
290
+ * @memberof Order
291
+ */
292
+ 'taxPrice'?: Price;
293
+ /**
294
+ *
295
+ * @type {Price}
296
+ * @memberof Order
297
+ */
298
+ 'subtotalPrice'?: Price;
299
+ /**
300
+ *
301
+ * @type {Price}
302
+ * @memberof Order
303
+ */
304
+ 'discountPrice'?: Price;
305
+ /**
306
+ *
307
+ * @type {Price}
308
+ * @memberof Order
309
+ */
310
+ 'shippingPrice'?: Price;
311
+ /**
312
+ *
313
+ * @type {Origin}
314
+ * @memberof Order
315
+ */
316
+ 'origin'?: Origin;
317
+ /**
318
+ *
319
+ * @type {Array<StatusHistoryItem>}
320
+ * @memberof Order
321
+ */
322
+ 'statusHistory'?: Array<StatusHistoryItem>;
323
+ }
324
+ /**
325
+ *
326
+ * @export
327
+ * @interface OrderItem
328
+ */
329
+ export interface OrderItem {
330
+ /**
331
+ * Unique object identifier
332
+ * @type {string}
333
+ * @memberof OrderItem
334
+ */
335
+ 'id'?: string;
336
+ /**
337
+ * Reference URL to the order item variant
338
+ * @type {string}
339
+ * @memberof OrderItem
340
+ */
341
+ 'variantRef': string;
342
+ /**
343
+ *
344
+ * @type {number}
345
+ * @memberof OrderItem
346
+ */
347
+ 'quantity': number;
348
+ /**
349
+ *
350
+ * @type {Price}
351
+ * @memberof OrderItem
352
+ */
353
+ 'totalPrice'?: Price;
354
+ /**
355
+ * This is an estimate until the order has been confirmed
356
+ * @type {Price}
357
+ * @memberof OrderItem
358
+ */
359
+ 'taxPrice'?: Price;
360
+ /**
361
+ *
362
+ * @type {Price}
363
+ * @memberof OrderItem
364
+ */
365
+ 'subtotalPrice'?: Price;
366
+ /**
367
+ *
368
+ * @type {Price}
369
+ * @memberof OrderItem
370
+ */
371
+ 'discountPrice'?: Price;
372
+ /**
373
+ * The price you charged the recipient for each item. It\'s highly recommended if you have international orders as it aids customs issues.
374
+ * @type {Price}
375
+ * @memberof OrderItem
376
+ */
377
+ 'recipientCost'?: Price;
378
+ }
379
+ /**
380
+ *
381
+ * @export
382
+ * @enum {string}
383
+ */
384
+ export declare const OrderStatus: {
385
+ readonly New: "new";
386
+ readonly Paid: "paid";
387
+ readonly Processing: "processing";
388
+ readonly Complete: "complete";
389
+ readonly Refunded: "refunded";
390
+ };
391
+ export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
392
+ /**
393
+ *
394
+ * @export
395
+ * @interface OrderTracking
396
+ */
397
+ export interface OrderTracking {
398
+ /**
399
+ *
400
+ * @type {string}
401
+ * @memberof OrderTracking
402
+ */
403
+ 'courier'?: string;
404
+ /**
405
+ *
406
+ * @type {string}
407
+ * @memberof OrderTracking
408
+ */
409
+ 'code'?: string;
410
+ /**
411
+ *
412
+ * @type {string}
413
+ * @memberof OrderTracking
414
+ */
415
+ 'url'?: string;
416
+ }
417
+ /**
418
+ *
419
+ * @export
420
+ * @interface OrdersResponse
421
+ */
422
+ export interface OrdersResponse {
423
+ /**
424
+ *
425
+ * @type {Array<Order>}
426
+ * @memberof OrdersResponse
427
+ */
428
+ 'orders'?: Array<Order>;
429
+ /**
430
+ *
431
+ * @type {number}
432
+ * @memberof OrdersResponse
433
+ */
434
+ 'nextPageToken'?: number;
435
+ }
436
+ /**
437
+ *
438
+ * @export
439
+ * @interface Origin
440
+ */
441
+ export interface Origin {
442
+ /**
443
+ *
444
+ * @type {string}
445
+ * @memberof Origin
446
+ */
447
+ 'code'?: string;
448
+ /**
449
+ *
450
+ * @type {boolean}
451
+ * @memberof Origin
452
+ */
453
+ 'isPaid'?: boolean;
454
+ }
35
455
  /**
36
456
  *
37
457
  * @export
@@ -84,6 +504,99 @@ export interface PlatformLogo {
84
504
  [key: string]: string;
85
505
  };
86
506
  }
507
+ /**
508
+ * Standard price definition that defines the amount and currency.
509
+ * @export
510
+ * @interface Price
511
+ */
512
+ export interface Price {
513
+ /**
514
+ * Price including tax in the specified currency.
515
+ * @type {string}
516
+ * @memberof Price
517
+ */
518
+ 'amount'?: string;
519
+ /**
520
+ * Currency code for the currency the price is valued in.
521
+ * @type {string}
522
+ * @memberof Price
523
+ */
524
+ 'currencyCode'?: string;
525
+ }
526
+ /**
527
+ *
528
+ * @export
529
+ * @interface ShippingMethod
530
+ */
531
+ export interface ShippingMethod {
532
+ /**
533
+ * Unique object identifier
534
+ * @type {string}
535
+ * @memberof ShippingMethod
536
+ */
537
+ 'id'?: string;
538
+ /**
539
+ *
540
+ * @type {string}
541
+ * @memberof ShippingMethod
542
+ */
543
+ 'name'?: string;
544
+ /**
545
+ *
546
+ * @type {string}
547
+ * @memberof ShippingMethod
548
+ */
549
+ 'description'?: string;
550
+ /**
551
+ *
552
+ * @type {DeliveryEstimates}
553
+ * @memberof ShippingMethod
554
+ */
555
+ 'deliveryEstimates'?: DeliveryEstimates;
556
+ /**
557
+ *
558
+ * @type {Price}
559
+ * @memberof ShippingMethod
560
+ */
561
+ 'totalPrice'?: Price;
562
+ /**
563
+ *
564
+ * @type {Price}
565
+ * @memberof ShippingMethod
566
+ */
567
+ 'taxPrice'?: Price;
568
+ /**
569
+ *
570
+ * @type {Price}
571
+ * @memberof ShippingMethod
572
+ */
573
+ 'subtotalPrice'?: Price;
574
+ /**
575
+ *
576
+ * @type {Price}
577
+ * @memberof ShippingMethod
578
+ */
579
+ 'discountPrice'?: Price;
580
+ }
581
+ /**
582
+ *
583
+ * @export
584
+ * @interface StatusHistoryItem
585
+ */
586
+ export interface StatusHistoryItem {
587
+ /**
588
+ *
589
+ * @type {OrderStatus}
590
+ * @memberof StatusHistoryItem
591
+ */
592
+ 'status'?: OrderStatus;
593
+ /**
594
+ * ISO 8601 Timestamp
595
+ * @type {string}
596
+ * @memberof StatusHistoryItem
597
+ */
598
+ 'createdAt'?: string;
599
+ }
87
600
  /**
88
601
  *
89
602
  * @export
@@ -118,11 +631,212 @@ export interface ValidationError {
118
631
  [key: string]: Array<string>;
119
632
  };
120
633
  }
634
+ /**
635
+ * OrdersApi - axios parameter creator
636
+ * @export
637
+ */
638
+ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration) => {
639
+ /**
640
+ * Export orders as a CSV file
641
+ * @summary Export orders
642
+ * @param {string} project Project unique identifier
643
+ * @param {string} platformId The platform identifier
644
+ * @param {string} start Start of date range to filter by when orders were placed
645
+ * @param {string} [end] End of date range to filter by when orders were placed
646
+ * @param {*} [options] Override http request option.
647
+ * @throws {RequiredError}
648
+ */
649
+ exportOrders: (project: string, platformId: string, start: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
650
+ /**
651
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
652
+ * @summary List orders
653
+ * @param {string} project Project unique identifier
654
+ * @param {string} platformId The platform identifier
655
+ * @param {number} [pageToken] Page reference token
656
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
657
+ * @param {string} [search] Search term to filter based on order reference, customer name and email
658
+ * @param {string} [start] Start of date range to filter by when orders were placed
659
+ * @param {string} [end] End of date range to filter by when orders were placed
660
+ * @param {*} [options] Override http request option.
661
+ * @throws {RequiredError}
662
+ */
663
+ listOrders: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
664
+ };
665
+ /**
666
+ * OrdersApi - functional programming interface
667
+ * @export
668
+ */
669
+ export declare const OrdersApiFp: (configuration?: Configuration) => {
670
+ /**
671
+ * Export orders as a CSV file
672
+ * @summary Export orders
673
+ * @param {string} project Project unique identifier
674
+ * @param {string} platformId The platform identifier
675
+ * @param {string} start Start of date range to filter by when orders were placed
676
+ * @param {string} [end] End of date range to filter by when orders were placed
677
+ * @param {*} [options] Override http request option.
678
+ * @throws {RequiredError}
679
+ */
680
+ exportOrders(project: string, platformId: string, start: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
681
+ /**
682
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
683
+ * @summary List orders
684
+ * @param {string} project Project unique identifier
685
+ * @param {string} platformId The platform identifier
686
+ * @param {number} [pageToken] Page reference token
687
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
688
+ * @param {string} [search] Search term to filter based on order reference, customer name and email
689
+ * @param {string} [start] Start of date range to filter by when orders were placed
690
+ * @param {string} [end] End of date range to filter by when orders were placed
691
+ * @param {*} [options] Override http request option.
692
+ * @throws {RequiredError}
693
+ */
694
+ listOrders(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>>;
695
+ };
696
+ /**
697
+ * OrdersApi - factory interface
698
+ * @export
699
+ */
700
+ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
701
+ /**
702
+ * Export orders as a CSV file
703
+ * @summary Export orders
704
+ * @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ */
708
+ exportOrders(requestParameters: OrdersApiExportOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
709
+ /**
710
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
711
+ * @summary List orders
712
+ * @param {OrdersApiListOrdersRequest} requestParameters Request parameters.
713
+ * @param {*} [options] Override http request option.
714
+ * @throws {RequiredError}
715
+ */
716
+ listOrders(requestParameters: OrdersApiListOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
717
+ };
718
+ /**
719
+ * Request parameters for exportOrders operation in OrdersApi.
720
+ * @export
721
+ * @interface OrdersApiExportOrdersRequest
722
+ */
723
+ export interface OrdersApiExportOrdersRequest {
724
+ /**
725
+ * Project unique identifier
726
+ * @type {string}
727
+ * @memberof OrdersApiExportOrders
728
+ */
729
+ readonly project: string;
730
+ /**
731
+ * The platform identifier
732
+ * @type {string}
733
+ * @memberof OrdersApiExportOrders
734
+ */
735
+ readonly platformId: string;
736
+ /**
737
+ * Start of date range to filter by when orders were placed
738
+ * @type {string}
739
+ * @memberof OrdersApiExportOrders
740
+ */
741
+ readonly start: string;
742
+ /**
743
+ * End of date range to filter by when orders were placed
744
+ * @type {string}
745
+ * @memberof OrdersApiExportOrders
746
+ */
747
+ readonly end?: string;
748
+ }
749
+ /**
750
+ * Request parameters for listOrders operation in OrdersApi.
751
+ * @export
752
+ * @interface OrdersApiListOrdersRequest
753
+ */
754
+ export interface OrdersApiListOrdersRequest {
755
+ /**
756
+ * Project unique identifier
757
+ * @type {string}
758
+ * @memberof OrdersApiListOrders
759
+ */
760
+ readonly project: string;
761
+ /**
762
+ * The platform identifier
763
+ * @type {string}
764
+ * @memberof OrdersApiListOrders
765
+ */
766
+ readonly platformId: string;
767
+ /**
768
+ * Page reference token
769
+ * @type {number}
770
+ * @memberof OrdersApiListOrders
771
+ */
772
+ readonly pageToken?: number;
773
+ /**
774
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
775
+ * @type {number}
776
+ * @memberof OrdersApiListOrders
777
+ */
778
+ readonly pageSize?: number;
779
+ /**
780
+ * Search term to filter based on order reference, customer name and email
781
+ * @type {string}
782
+ * @memberof OrdersApiListOrders
783
+ */
784
+ readonly search?: string;
785
+ /**
786
+ * Start of date range to filter by when orders were placed
787
+ * @type {string}
788
+ * @memberof OrdersApiListOrders
789
+ */
790
+ readonly start?: string;
791
+ /**
792
+ * End of date range to filter by when orders were placed
793
+ * @type {string}
794
+ * @memberof OrdersApiListOrders
795
+ */
796
+ readonly end?: string;
797
+ }
798
+ /**
799
+ * OrdersApi - object-oriented interface
800
+ * @export
801
+ * @class OrdersApi
802
+ * @extends {BaseAPI}
803
+ */
804
+ export declare class OrdersApi extends BaseAPI {
805
+ /**
806
+ * Export orders as a CSV file
807
+ * @summary Export orders
808
+ * @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
809
+ * @param {*} [options] Override http request option.
810
+ * @throws {RequiredError}
811
+ * @memberof OrdersApi
812
+ */
813
+ exportOrders(requestParameters: OrdersApiExportOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
814
+ /**
815
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
816
+ * @summary List orders
817
+ * @param {OrdersApiListOrdersRequest} requestParameters Request parameters.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ * @memberof OrdersApi
821
+ */
822
+ listOrders(requestParameters: OrdersApiListOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
823
+ }
121
824
  /**
122
825
  * PlatformApi - axios parameter creator
123
826
  * @export
124
827
  */
125
828
  export declare const PlatformApiAxiosParamCreator: (configuration?: Configuration) => {
829
+ /**
830
+ * Export orders as a CSV file
831
+ * @summary Export orders
832
+ * @param {string} project Project unique identifier
833
+ * @param {string} platformId The platform identifier
834
+ * @param {string} start Start of date range to filter by when orders were placed
835
+ * @param {string} [end] End of date range to filter by when orders were placed
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ exportOrders: (project: string, platformId: string, start: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
126
840
  /**
127
841
  *
128
842
  * @summary Get platform details
@@ -131,6 +845,20 @@ export declare const PlatformApiAxiosParamCreator: (configuration?: Configuratio
131
845
  * @throws {RequiredError}
132
846
  */
133
847
  getPlatform: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
848
+ /**
849
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
850
+ * @summary List orders
851
+ * @param {string} project Project unique identifier
852
+ * @param {string} platformId The platform identifier
853
+ * @param {number} [pageToken] Page reference token
854
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
855
+ * @param {string} [search] Search term to filter based on order reference, customer name and email
856
+ * @param {string} [start] Start of date range to filter by when orders were placed
857
+ * @param {string} [end] End of date range to filter by when orders were placed
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ listOrders: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
134
862
  /**
135
863
  *
136
864
  * @summary Update platform
@@ -146,6 +874,17 @@ export declare const PlatformApiAxiosParamCreator: (configuration?: Configuratio
146
874
  * @export
147
875
  */
148
876
  export declare const PlatformApiFp: (configuration?: Configuration) => {
877
+ /**
878
+ * Export orders as a CSV file
879
+ * @summary Export orders
880
+ * @param {string} project Project unique identifier
881
+ * @param {string} platformId The platform identifier
882
+ * @param {string} start Start of date range to filter by when orders were placed
883
+ * @param {string} [end] End of date range to filter by when orders were placed
884
+ * @param {*} [options] Override http request option.
885
+ * @throws {RequiredError}
886
+ */
887
+ exportOrders(project: string, platformId: string, start: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
149
888
  /**
150
889
  *
151
890
  * @summary Get platform details
@@ -154,6 +893,20 @@ export declare const PlatformApiFp: (configuration?: Configuration) => {
154
893
  * @throws {RequiredError}
155
894
  */
156
895
  getPlatform(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>>;
896
+ /**
897
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
898
+ * @summary List orders
899
+ * @param {string} project Project unique identifier
900
+ * @param {string} platformId The platform identifier
901
+ * @param {number} [pageToken] Page reference token
902
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
903
+ * @param {string} [search] Search term to filter based on order reference, customer name and email
904
+ * @param {string} [start] Start of date range to filter by when orders were placed
905
+ * @param {string} [end] End of date range to filter by when orders were placed
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ */
909
+ listOrders(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>>;
157
910
  /**
158
911
  *
159
912
  * @summary Update platform
@@ -169,6 +922,14 @@ export declare const PlatformApiFp: (configuration?: Configuration) => {
169
922
  * @export
170
923
  */
171
924
  export declare const PlatformApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
925
+ /**
926
+ * Export orders as a CSV file
927
+ * @summary Export orders
928
+ * @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ exportOrders(requestParameters: PlatformApiExportOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
172
933
  /**
173
934
  *
174
935
  * @summary Get platform details
@@ -177,6 +938,14 @@ export declare const PlatformApiFactory: (configuration?: Configuration, basePat
177
938
  * @throws {RequiredError}
178
939
  */
179
940
  getPlatform(requestParameters: PlatformApiGetPlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform>;
941
+ /**
942
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
943
+ * @summary List orders
944
+ * @param {PlatformApiListOrdersRequest} requestParameters Request parameters.
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ listOrders(requestParameters: PlatformApiListOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
180
949
  /**
181
950
  *
182
951
  * @summary Update platform
@@ -186,6 +955,37 @@ export declare const PlatformApiFactory: (configuration?: Configuration, basePat
186
955
  */
187
956
  updatePlatform(requestParameters: PlatformApiUpdatePlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform>;
188
957
  };
958
+ /**
959
+ * Request parameters for exportOrders operation in PlatformApi.
960
+ * @export
961
+ * @interface PlatformApiExportOrdersRequest
962
+ */
963
+ export interface PlatformApiExportOrdersRequest {
964
+ /**
965
+ * Project unique identifier
966
+ * @type {string}
967
+ * @memberof PlatformApiExportOrders
968
+ */
969
+ readonly project: string;
970
+ /**
971
+ * The platform identifier
972
+ * @type {string}
973
+ * @memberof PlatformApiExportOrders
974
+ */
975
+ readonly platformId: string;
976
+ /**
977
+ * Start of date range to filter by when orders were placed
978
+ * @type {string}
979
+ * @memberof PlatformApiExportOrders
980
+ */
981
+ readonly start: string;
982
+ /**
983
+ * End of date range to filter by when orders were placed
984
+ * @type {string}
985
+ * @memberof PlatformApiExportOrders
986
+ */
987
+ readonly end?: string;
988
+ }
189
989
  /**
190
990
  * Request parameters for getPlatform operation in PlatformApi.
191
991
  * @export
@@ -199,6 +999,55 @@ export interface PlatformApiGetPlatformRequest {
199
999
  */
200
1000
  readonly project: string;
201
1001
  }
1002
+ /**
1003
+ * Request parameters for listOrders operation in PlatformApi.
1004
+ * @export
1005
+ * @interface PlatformApiListOrdersRequest
1006
+ */
1007
+ export interface PlatformApiListOrdersRequest {
1008
+ /**
1009
+ * Project unique identifier
1010
+ * @type {string}
1011
+ * @memberof PlatformApiListOrders
1012
+ */
1013
+ readonly project: string;
1014
+ /**
1015
+ * The platform identifier
1016
+ * @type {string}
1017
+ * @memberof PlatformApiListOrders
1018
+ */
1019
+ readonly platformId: string;
1020
+ /**
1021
+ * Page reference token
1022
+ * @type {number}
1023
+ * @memberof PlatformApiListOrders
1024
+ */
1025
+ readonly pageToken?: number;
1026
+ /**
1027
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
1028
+ * @type {number}
1029
+ * @memberof PlatformApiListOrders
1030
+ */
1031
+ readonly pageSize?: number;
1032
+ /**
1033
+ * Search term to filter based on order reference, customer name and email
1034
+ * @type {string}
1035
+ * @memberof PlatformApiListOrders
1036
+ */
1037
+ readonly search?: string;
1038
+ /**
1039
+ * Start of date range to filter by when orders were placed
1040
+ * @type {string}
1041
+ * @memberof PlatformApiListOrders
1042
+ */
1043
+ readonly start?: string;
1044
+ /**
1045
+ * End of date range to filter by when orders were placed
1046
+ * @type {string}
1047
+ * @memberof PlatformApiListOrders
1048
+ */
1049
+ readonly end?: string;
1050
+ }
202
1051
  /**
203
1052
  * Request parameters for updatePlatform operation in PlatformApi.
204
1053
  * @export
@@ -225,6 +1074,15 @@ export interface PlatformApiUpdatePlatformRequest {
225
1074
  * @extends {BaseAPI}
226
1075
  */
227
1076
  export declare class PlatformApi extends BaseAPI {
1077
+ /**
1078
+ * Export orders as a CSV file
1079
+ * @summary Export orders
1080
+ * @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
1081
+ * @param {*} [options] Override http request option.
1082
+ * @throws {RequiredError}
1083
+ * @memberof PlatformApi
1084
+ */
1085
+ exportOrders(requestParameters: PlatformApiExportOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
228
1086
  /**
229
1087
  *
230
1088
  * @summary Get platform details
@@ -234,6 +1092,15 @@ export declare class PlatformApi extends BaseAPI {
234
1092
  * @memberof PlatformApi
235
1093
  */
236
1094
  getPlatform(requestParameters: PlatformApiGetPlatformRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Platform, any>>;
1095
+ /**
1096
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1097
+ * @summary List orders
1098
+ * @param {PlatformApiListOrdersRequest} requestParameters Request parameters.
1099
+ * @param {*} [options] Override http request option.
1100
+ * @throws {RequiredError}
1101
+ * @memberof PlatformApi
1102
+ */
1103
+ listOrders(requestParameters: PlatformApiListOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
237
1104
  /**
238
1105
  *
239
1106
  * @summary Update platform