@teemill/platform 0.3.0 → 0.5.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/esm/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.5.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
@@ -62,6 +482,12 @@ export interface Platform {
62
482
  * @memberof Platform
63
483
  */
64
484
  'logos': Array<PlatformLogo>;
485
+ /**
486
+ *
487
+ * @type {string}
488
+ * @memberof Platform
489
+ */
490
+ 'favicon': string | null;
65
491
  }
66
492
  /**
67
493
  *
@@ -84,6 +510,99 @@ export interface PlatformLogo {
84
510
  [key: string]: string;
85
511
  };
86
512
  }
513
+ /**
514
+ * Standard price definition that defines the amount and currency.
515
+ * @export
516
+ * @interface Price
517
+ */
518
+ export interface Price {
519
+ /**
520
+ * Price including tax in the specified currency.
521
+ * @type {string}
522
+ * @memberof Price
523
+ */
524
+ 'amount'?: string;
525
+ /**
526
+ * Currency code for the currency the price is valued in.
527
+ * @type {string}
528
+ * @memberof Price
529
+ */
530
+ 'currencyCode'?: string;
531
+ }
532
+ /**
533
+ *
534
+ * @export
535
+ * @interface ShippingMethod
536
+ */
537
+ export interface ShippingMethod {
538
+ /**
539
+ * Unique object identifier
540
+ * @type {string}
541
+ * @memberof ShippingMethod
542
+ */
543
+ 'id'?: string;
544
+ /**
545
+ *
546
+ * @type {string}
547
+ * @memberof ShippingMethod
548
+ */
549
+ 'name'?: string;
550
+ /**
551
+ *
552
+ * @type {string}
553
+ * @memberof ShippingMethod
554
+ */
555
+ 'description'?: string;
556
+ /**
557
+ *
558
+ * @type {DeliveryEstimates}
559
+ * @memberof ShippingMethod
560
+ */
561
+ 'deliveryEstimates'?: DeliveryEstimates;
562
+ /**
563
+ *
564
+ * @type {Price}
565
+ * @memberof ShippingMethod
566
+ */
567
+ 'totalPrice'?: Price;
568
+ /**
569
+ *
570
+ * @type {Price}
571
+ * @memberof ShippingMethod
572
+ */
573
+ 'taxPrice'?: Price;
574
+ /**
575
+ *
576
+ * @type {Price}
577
+ * @memberof ShippingMethod
578
+ */
579
+ 'subtotalPrice'?: Price;
580
+ /**
581
+ *
582
+ * @type {Price}
583
+ * @memberof ShippingMethod
584
+ */
585
+ 'discountPrice'?: Price;
586
+ }
587
+ /**
588
+ *
589
+ * @export
590
+ * @interface StatusHistoryItem
591
+ */
592
+ export interface StatusHistoryItem {
593
+ /**
594
+ *
595
+ * @type {OrderStatus}
596
+ * @memberof StatusHistoryItem
597
+ */
598
+ 'status'?: OrderStatus;
599
+ /**
600
+ * ISO 8601 Timestamp
601
+ * @type {string}
602
+ * @memberof StatusHistoryItem
603
+ */
604
+ 'createdAt'?: string;
605
+ }
87
606
  /**
88
607
  *
89
608
  * @export
@@ -96,6 +615,12 @@ export interface UpdatePlatformRequest {
96
615
  * @memberof UpdatePlatformRequest
97
616
  */
98
617
  'logos'?: Array<PlatformLogo>;
618
+ /**
619
+ *
620
+ * @type {string}
621
+ * @memberof UpdatePlatformRequest
622
+ */
623
+ 'favicon'?: string;
99
624
  }
100
625
  /**
101
626
  *
@@ -118,11 +643,212 @@ export interface ValidationError {
118
643
  [key: string]: Array<string>;
119
644
  };
120
645
  }
646
+ /**
647
+ * OrdersApi - axios parameter creator
648
+ * @export
649
+ */
650
+ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration) => {
651
+ /**
652
+ * Export orders as a CSV file
653
+ * @summary Export orders
654
+ * @param {string} project Project unique identifier
655
+ * @param {string} platformId The platform identifier
656
+ * @param {string} start Start of date range to filter by when orders were placed
657
+ * @param {string} [end] End of date range to filter by when orders were placed
658
+ * @param {*} [options] Override http request option.
659
+ * @throws {RequiredError}
660
+ */
661
+ exportOrders: (project: string, platformId: string, start: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
662
+ /**
663
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
664
+ * @summary List orders
665
+ * @param {string} project Project unique identifier
666
+ * @param {string} platformId The platform identifier
667
+ * @param {number} [pageToken] Page reference token
668
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
669
+ * @param {string} [search] Search term to filter based on order reference, customer name and email
670
+ * @param {string} [start] Start of date range to filter by when orders were placed
671
+ * @param {string} [end] End of date range to filter by when orders were placed
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ */
675
+ listOrders: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
676
+ };
677
+ /**
678
+ * OrdersApi - functional programming interface
679
+ * @export
680
+ */
681
+ export declare const OrdersApiFp: (configuration?: Configuration) => {
682
+ /**
683
+ * Export orders as a CSV file
684
+ * @summary Export orders
685
+ * @param {string} project Project unique identifier
686
+ * @param {string} platformId The platform identifier
687
+ * @param {string} start Start of date range to filter by when orders were placed
688
+ * @param {string} [end] End of date range to filter by when orders were placed
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ */
692
+ exportOrders(project: string, platformId: string, start: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
693
+ /**
694
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
695
+ * @summary List orders
696
+ * @param {string} project Project unique identifier
697
+ * @param {string} platformId The platform identifier
698
+ * @param {number} [pageToken] Page reference token
699
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
700
+ * @param {string} [search] Search term to filter based on order reference, customer name and email
701
+ * @param {string} [start] Start of date range to filter by when orders were placed
702
+ * @param {string} [end] End of date range to filter by when orders were placed
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ listOrders(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrdersResponse>>;
707
+ };
708
+ /**
709
+ * OrdersApi - factory interface
710
+ * @export
711
+ */
712
+ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
713
+ /**
714
+ * Export orders as a CSV file
715
+ * @summary Export orders
716
+ * @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ exportOrders(requestParameters: OrdersApiExportOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
721
+ /**
722
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
723
+ * @summary List orders
724
+ * @param {OrdersApiListOrdersRequest} requestParameters Request parameters.
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ listOrders(requestParameters: OrdersApiListOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
729
+ };
730
+ /**
731
+ * Request parameters for exportOrders operation in OrdersApi.
732
+ * @export
733
+ * @interface OrdersApiExportOrdersRequest
734
+ */
735
+ export interface OrdersApiExportOrdersRequest {
736
+ /**
737
+ * Project unique identifier
738
+ * @type {string}
739
+ * @memberof OrdersApiExportOrders
740
+ */
741
+ readonly project: string;
742
+ /**
743
+ * The platform identifier
744
+ * @type {string}
745
+ * @memberof OrdersApiExportOrders
746
+ */
747
+ readonly platformId: string;
748
+ /**
749
+ * Start of date range to filter by when orders were placed
750
+ * @type {string}
751
+ * @memberof OrdersApiExportOrders
752
+ */
753
+ readonly start: string;
754
+ /**
755
+ * End of date range to filter by when orders were placed
756
+ * @type {string}
757
+ * @memberof OrdersApiExportOrders
758
+ */
759
+ readonly end?: string;
760
+ }
761
+ /**
762
+ * Request parameters for listOrders operation in OrdersApi.
763
+ * @export
764
+ * @interface OrdersApiListOrdersRequest
765
+ */
766
+ export interface OrdersApiListOrdersRequest {
767
+ /**
768
+ * Project unique identifier
769
+ * @type {string}
770
+ * @memberof OrdersApiListOrders
771
+ */
772
+ readonly project: string;
773
+ /**
774
+ * The platform identifier
775
+ * @type {string}
776
+ * @memberof OrdersApiListOrders
777
+ */
778
+ readonly platformId: string;
779
+ /**
780
+ * Page reference token
781
+ * @type {number}
782
+ * @memberof OrdersApiListOrders
783
+ */
784
+ readonly pageToken?: number;
785
+ /**
786
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
787
+ * @type {number}
788
+ * @memberof OrdersApiListOrders
789
+ */
790
+ readonly pageSize?: number;
791
+ /**
792
+ * Search term to filter based on order reference, customer name and email
793
+ * @type {string}
794
+ * @memberof OrdersApiListOrders
795
+ */
796
+ readonly search?: string;
797
+ /**
798
+ * Start of date range to filter by when orders were placed
799
+ * @type {string}
800
+ * @memberof OrdersApiListOrders
801
+ */
802
+ readonly start?: string;
803
+ /**
804
+ * End of date range to filter by when orders were placed
805
+ * @type {string}
806
+ * @memberof OrdersApiListOrders
807
+ */
808
+ readonly end?: string;
809
+ }
810
+ /**
811
+ * OrdersApi - object-oriented interface
812
+ * @export
813
+ * @class OrdersApi
814
+ * @extends {BaseAPI}
815
+ */
816
+ export declare class OrdersApi extends BaseAPI {
817
+ /**
818
+ * Export orders as a CSV file
819
+ * @summary Export orders
820
+ * @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ * @memberof OrdersApi
824
+ */
825
+ exportOrders(requestParameters: OrdersApiExportOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
826
+ /**
827
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
828
+ * @summary List orders
829
+ * @param {OrdersApiListOrdersRequest} requestParameters Request parameters.
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ * @memberof OrdersApi
833
+ */
834
+ listOrders(requestParameters: OrdersApiListOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
835
+ }
121
836
  /**
122
837
  * PlatformApi - axios parameter creator
123
838
  * @export
124
839
  */
125
840
  export declare const PlatformApiAxiosParamCreator: (configuration?: Configuration) => {
841
+ /**
842
+ * Export orders as a CSV file
843
+ * @summary Export orders
844
+ * @param {string} project Project unique identifier
845
+ * @param {string} platformId The platform identifier
846
+ * @param {string} start Start of date range to filter by when orders were placed
847
+ * @param {string} [end] End of date range to filter by when orders were placed
848
+ * @param {*} [options] Override http request option.
849
+ * @throws {RequiredError}
850
+ */
851
+ exportOrders: (project: string, platformId: string, start: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
126
852
  /**
127
853
  *
128
854
  * @summary Get platform details
@@ -131,6 +857,20 @@ export declare const PlatformApiAxiosParamCreator: (configuration?: Configuratio
131
857
  * @throws {RequiredError}
132
858
  */
133
859
  getPlatform: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
860
+ /**
861
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
862
+ * @summary List orders
863
+ * @param {string} project Project unique identifier
864
+ * @param {string} platformId The platform identifier
865
+ * @param {number} [pageToken] Page reference token
866
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
867
+ * @param {string} [search] Search term to filter based on order reference, customer name and email
868
+ * @param {string} [start] Start of date range to filter by when orders were placed
869
+ * @param {string} [end] End of date range to filter by when orders were placed
870
+ * @param {*} [options] Override http request option.
871
+ * @throws {RequiredError}
872
+ */
873
+ listOrders: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
134
874
  /**
135
875
  *
136
876
  * @summary Update platform
@@ -146,6 +886,17 @@ export declare const PlatformApiAxiosParamCreator: (configuration?: Configuratio
146
886
  * @export
147
887
  */
148
888
  export declare const PlatformApiFp: (configuration?: Configuration) => {
889
+ /**
890
+ * Export orders as a CSV file
891
+ * @summary Export orders
892
+ * @param {string} project Project unique identifier
893
+ * @param {string} platformId The platform identifier
894
+ * @param {string} start Start of date range to filter by when orders were placed
895
+ * @param {string} [end] End of date range to filter by when orders were placed
896
+ * @param {*} [options] Override http request option.
897
+ * @throws {RequiredError}
898
+ */
899
+ exportOrders(project: string, platformId: string, start: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
149
900
  /**
150
901
  *
151
902
  * @summary Get platform details
@@ -154,6 +905,20 @@ export declare const PlatformApiFp: (configuration?: Configuration) => {
154
905
  * @throws {RequiredError}
155
906
  */
156
907
  getPlatform(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>>;
908
+ /**
909
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
910
+ * @summary List orders
911
+ * @param {string} project Project unique identifier
912
+ * @param {string} platformId The platform identifier
913
+ * @param {number} [pageToken] Page reference token
914
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
915
+ * @param {string} [search] Search term to filter based on order reference, customer name and email
916
+ * @param {string} [start] Start of date range to filter by when orders were placed
917
+ * @param {string} [end] End of date range to filter by when orders were placed
918
+ * @param {*} [options] Override http request option.
919
+ * @throws {RequiredError}
920
+ */
921
+ 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
922
  /**
158
923
  *
159
924
  * @summary Update platform
@@ -169,6 +934,14 @@ export declare const PlatformApiFp: (configuration?: Configuration) => {
169
934
  * @export
170
935
  */
171
936
  export declare const PlatformApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
937
+ /**
938
+ * Export orders as a CSV file
939
+ * @summary Export orders
940
+ * @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
941
+ * @param {*} [options] Override http request option.
942
+ * @throws {RequiredError}
943
+ */
944
+ exportOrders(requestParameters: PlatformApiExportOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
172
945
  /**
173
946
  *
174
947
  * @summary Get platform details
@@ -177,6 +950,14 @@ export declare const PlatformApiFactory: (configuration?: Configuration, basePat
177
950
  * @throws {RequiredError}
178
951
  */
179
952
  getPlatform(requestParameters: PlatformApiGetPlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform>;
953
+ /**
954
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
955
+ * @summary List orders
956
+ * @param {PlatformApiListOrdersRequest} requestParameters Request parameters.
957
+ * @param {*} [options] Override http request option.
958
+ * @throws {RequiredError}
959
+ */
960
+ listOrders(requestParameters: PlatformApiListOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrdersResponse>;
180
961
  /**
181
962
  *
182
963
  * @summary Update platform
@@ -186,6 +967,37 @@ export declare const PlatformApiFactory: (configuration?: Configuration, basePat
186
967
  */
187
968
  updatePlatform(requestParameters: PlatformApiUpdatePlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform>;
188
969
  };
970
+ /**
971
+ * Request parameters for exportOrders operation in PlatformApi.
972
+ * @export
973
+ * @interface PlatformApiExportOrdersRequest
974
+ */
975
+ export interface PlatformApiExportOrdersRequest {
976
+ /**
977
+ * Project unique identifier
978
+ * @type {string}
979
+ * @memberof PlatformApiExportOrders
980
+ */
981
+ readonly project: string;
982
+ /**
983
+ * The platform identifier
984
+ * @type {string}
985
+ * @memberof PlatformApiExportOrders
986
+ */
987
+ readonly platformId: string;
988
+ /**
989
+ * Start of date range to filter by when orders were placed
990
+ * @type {string}
991
+ * @memberof PlatformApiExportOrders
992
+ */
993
+ readonly start: string;
994
+ /**
995
+ * End of date range to filter by when orders were placed
996
+ * @type {string}
997
+ * @memberof PlatformApiExportOrders
998
+ */
999
+ readonly end?: string;
1000
+ }
189
1001
  /**
190
1002
  * Request parameters for getPlatform operation in PlatformApi.
191
1003
  * @export
@@ -199,6 +1011,55 @@ export interface PlatformApiGetPlatformRequest {
199
1011
  */
200
1012
  readonly project: string;
201
1013
  }
1014
+ /**
1015
+ * Request parameters for listOrders operation in PlatformApi.
1016
+ * @export
1017
+ * @interface PlatformApiListOrdersRequest
1018
+ */
1019
+ export interface PlatformApiListOrdersRequest {
1020
+ /**
1021
+ * Project unique identifier
1022
+ * @type {string}
1023
+ * @memberof PlatformApiListOrders
1024
+ */
1025
+ readonly project: string;
1026
+ /**
1027
+ * The platform identifier
1028
+ * @type {string}
1029
+ * @memberof PlatformApiListOrders
1030
+ */
1031
+ readonly platformId: string;
1032
+ /**
1033
+ * Page reference token
1034
+ * @type {number}
1035
+ * @memberof PlatformApiListOrders
1036
+ */
1037
+ readonly pageToken?: number;
1038
+ /**
1039
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
1040
+ * @type {number}
1041
+ * @memberof PlatformApiListOrders
1042
+ */
1043
+ readonly pageSize?: number;
1044
+ /**
1045
+ * Search term to filter based on order reference, customer name and email
1046
+ * @type {string}
1047
+ * @memberof PlatformApiListOrders
1048
+ */
1049
+ readonly search?: string;
1050
+ /**
1051
+ * Start of date range to filter by when orders were placed
1052
+ * @type {string}
1053
+ * @memberof PlatformApiListOrders
1054
+ */
1055
+ readonly start?: string;
1056
+ /**
1057
+ * End of date range to filter by when orders were placed
1058
+ * @type {string}
1059
+ * @memberof PlatformApiListOrders
1060
+ */
1061
+ readonly end?: string;
1062
+ }
202
1063
  /**
203
1064
  * Request parameters for updatePlatform operation in PlatformApi.
204
1065
  * @export
@@ -225,6 +1086,15 @@ export interface PlatformApiUpdatePlatformRequest {
225
1086
  * @extends {BaseAPI}
226
1087
  */
227
1088
  export declare class PlatformApi extends BaseAPI {
1089
+ /**
1090
+ * Export orders as a CSV file
1091
+ * @summary Export orders
1092
+ * @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ * @memberof PlatformApi
1096
+ */
1097
+ exportOrders(requestParameters: PlatformApiExportOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
228
1098
  /**
229
1099
  *
230
1100
  * @summary Get platform details
@@ -234,6 +1104,15 @@ export declare class PlatformApi extends BaseAPI {
234
1104
  * @memberof PlatformApi
235
1105
  */
236
1106
  getPlatform(requestParameters: PlatformApiGetPlatformRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Platform, any>>;
1107
+ /**
1108
+ * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1109
+ * @summary List orders
1110
+ * @param {PlatformApiListOrdersRequest} requestParameters Request parameters.
1111
+ * @param {*} [options] Override http request option.
1112
+ * @throws {RequiredError}
1113
+ * @memberof PlatformApi
1114
+ */
1115
+ listOrders(requestParameters: PlatformApiListOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrdersResponse, any>>;
237
1116
  /**
238
1117
  *
239
1118
  * @summary Update platform