flexinet-api 0.0.1298-prerelease0 → 0.0.1299
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +406 -451
- package/dist/api.d.ts +272 -306
- package/dist/api.js +222 -244
- package/dist/esm/api.d.ts +272 -306
- package/dist/esm/api.js +219 -241
- package/package.json +1 -1
package/api.ts
CHANGED
@@ -23,25 +23,6 @@ import type { RequestArgs } from './base';
|
|
23
23
|
// @ts-ignore
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
|
25
25
|
|
26
|
-
/**
|
27
|
-
*
|
28
|
-
* @export
|
29
|
-
* @interface AdminOrderCreationRequest
|
30
|
-
*/
|
31
|
-
export interface AdminOrderCreationRequest {
|
32
|
-
/**
|
33
|
-
*
|
34
|
-
* @type {Array<OrderItemCreationRequest>}
|
35
|
-
* @memberof AdminOrderCreationRequest
|
36
|
-
*/
|
37
|
-
'items': Array<OrderItemCreationRequest>;
|
38
|
-
/**
|
39
|
-
*
|
40
|
-
* @type {Beneficiary}
|
41
|
-
* @memberof AdminOrderCreationRequest
|
42
|
-
*/
|
43
|
-
'beneficiary'?: Beneficiary;
|
44
|
-
}
|
45
26
|
/**
|
46
27
|
*
|
47
28
|
* @export
|
@@ -225,15 +206,7 @@ export interface Balance {
|
|
225
206
|
* @memberof Balance
|
226
207
|
*/
|
227
208
|
'beneficiary': Beneficiary;
|
228
|
-
/**
|
229
|
-
*
|
230
|
-
* @type {TransactionCurrencyKind}
|
231
|
-
* @memberof Balance
|
232
|
-
*/
|
233
|
-
'currency': TransactionCurrencyKind;
|
234
209
|
}
|
235
|
-
|
236
|
-
|
237
210
|
/**
|
238
211
|
*
|
239
212
|
* @export
|
@@ -257,13 +230,7 @@ export interface BalanceUpdateRequest {
|
|
257
230
|
* @type {TransactionKind}
|
258
231
|
* @memberof BalanceUpdateRequest
|
259
232
|
*/
|
260
|
-
'transactionKind'
|
261
|
-
/**
|
262
|
-
*
|
263
|
-
* @type {TransactionCurrencyKind}
|
264
|
-
* @memberof BalanceUpdateRequest
|
265
|
-
*/
|
266
|
-
'currency'?: TransactionCurrencyKind;
|
233
|
+
'transactionKind'?: TransactionKind;
|
267
234
|
}
|
268
235
|
|
269
236
|
|
@@ -291,15 +258,7 @@ export interface BalanceWithBeneficiaryRef {
|
|
291
258
|
* @memberof BalanceWithBeneficiaryRef
|
292
259
|
*/
|
293
260
|
'beneficiaryRef': BeneficiaryWithRef;
|
294
|
-
/**
|
295
|
-
*
|
296
|
-
* @type {TransactionCurrencyKind}
|
297
|
-
* @memberof BalanceWithBeneficiaryRef
|
298
|
-
*/
|
299
|
-
'currency': TransactionCurrencyKind;
|
300
261
|
}
|
301
|
-
|
302
|
-
|
303
262
|
/**
|
304
263
|
*
|
305
264
|
* @export
|
@@ -440,7 +399,7 @@ export interface CallbackBeneficiaryDetails {
|
|
440
399
|
* @type {string}
|
441
400
|
* @memberof CallbackBeneficiaryDetails
|
442
401
|
*/
|
443
|
-
'clientReference'
|
402
|
+
'clientReference'?: string;
|
444
403
|
/**
|
445
404
|
*
|
446
405
|
* @type {BeneficiaryKind}
|
@@ -452,7 +411,7 @@ export interface CallbackBeneficiaryDetails {
|
|
452
411
|
* @type {string}
|
453
412
|
* @memberof CallbackBeneficiaryDetails
|
454
413
|
*/
|
455
|
-
'userReference'
|
414
|
+
'userReference': string;
|
456
415
|
}
|
457
416
|
|
458
417
|
|
@@ -644,6 +603,12 @@ export interface Client {
|
|
644
603
|
* @memberof Client
|
645
604
|
*/
|
646
605
|
'isSuspended'?: boolean;
|
606
|
+
/**
|
607
|
+
*
|
608
|
+
* @type {boolean}
|
609
|
+
* @memberof Client
|
610
|
+
*/
|
611
|
+
'isExcluded'?: boolean;
|
647
612
|
}
|
648
613
|
/**
|
649
614
|
*
|
@@ -707,6 +672,25 @@ export interface ClientListResponse {
|
|
707
672
|
*/
|
708
673
|
'hasMore': boolean;
|
709
674
|
}
|
675
|
+
/**
|
676
|
+
*
|
677
|
+
* @export
|
678
|
+
* @interface ClientUpdateRequest
|
679
|
+
*/
|
680
|
+
export interface ClientUpdateRequest {
|
681
|
+
/**
|
682
|
+
*
|
683
|
+
* @type {string}
|
684
|
+
* @memberof ClientUpdateRequest
|
685
|
+
*/
|
686
|
+
'referenceId': string;
|
687
|
+
/**
|
688
|
+
*
|
689
|
+
* @type {boolean}
|
690
|
+
* @memberof ClientUpdateRequest
|
691
|
+
*/
|
692
|
+
'isExcluded': boolean;
|
693
|
+
}
|
710
694
|
/**
|
711
695
|
*
|
712
696
|
* @export
|
@@ -720,6 +704,19 @@ export interface ClientsBulkCreationRequest {
|
|
720
704
|
*/
|
721
705
|
'clients': Array<ClientCreationRequest>;
|
722
706
|
}
|
707
|
+
/**
|
708
|
+
*
|
709
|
+
* @export
|
710
|
+
* @interface ClientsBulkUpdateRequest
|
711
|
+
*/
|
712
|
+
export interface ClientsBulkUpdateRequest {
|
713
|
+
/**
|
714
|
+
*
|
715
|
+
* @type {Array<ClientUpdateRequest>}
|
716
|
+
* @memberof ClientsBulkUpdateRequest
|
717
|
+
*/
|
718
|
+
'clients': Array<ClientUpdateRequest>;
|
719
|
+
}
|
723
720
|
/**
|
724
721
|
*
|
725
722
|
* @export
|
@@ -738,21 +735,53 @@ export type Condition = typeof Condition[keyof typeof Condition];
|
|
738
735
|
/**
|
739
736
|
*
|
740
737
|
* @export
|
741
|
-
* @interface
|
738
|
+
* @interface CustomDealRestriction
|
742
739
|
*/
|
743
|
-
export interface
|
740
|
+
export interface CustomDealRestriction {
|
741
|
+
/**
|
742
|
+
*
|
743
|
+
* @type {string}
|
744
|
+
* @memberof CustomDealRestriction
|
745
|
+
*/
|
746
|
+
'tagKey': string;
|
747
|
+
/**
|
748
|
+
*
|
749
|
+
* @type {string}
|
750
|
+
* @memberof CustomDealRestriction
|
751
|
+
*/
|
752
|
+
'tagValue': string;
|
753
|
+
/**
|
754
|
+
*
|
755
|
+
* @type {number}
|
756
|
+
* @memberof CustomDealRestriction
|
757
|
+
*/
|
758
|
+
'minTurnoverPercent': number;
|
759
|
+
/**
|
760
|
+
*
|
761
|
+
* @type {CustomDealRestrictionPriority}
|
762
|
+
* @memberof CustomDealRestriction
|
763
|
+
*/
|
764
|
+
'priority': CustomDealRestrictionPriority;
|
744
765
|
/**
|
745
766
|
*
|
746
767
|
* @type {number}
|
747
|
-
* @memberof
|
768
|
+
* @memberof CustomDealRestriction
|
769
|
+
*/
|
770
|
+
'points': number;
|
771
|
+
/**
|
772
|
+
*
|
773
|
+
* @type {string}
|
774
|
+
* @memberof CustomDealRestriction
|
775
|
+
*/
|
776
|
+
'createdAt': string;
|
777
|
+
/**
|
778
|
+
*
|
779
|
+
* @type {string}
|
780
|
+
* @memberof CustomDealRestriction
|
748
781
|
*/
|
749
|
-
'
|
782
|
+
'updatedAt': string;
|
750
783
|
}
|
751
|
-
|
752
|
-
* @type CustomDealRestriction
|
753
|
-
* @export
|
754
|
-
*/
|
755
|
-
export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction | { kind: 'required' } & RequiredRestriction;
|
784
|
+
|
756
785
|
|
757
786
|
/**
|
758
787
|
*
|
@@ -769,6 +798,45 @@ export const CustomDealRestrictionPriority = {
|
|
769
798
|
export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
|
770
799
|
|
771
800
|
|
801
|
+
/**
|
802
|
+
*
|
803
|
+
* @export
|
804
|
+
* @interface CustomDealRestrictionRequest
|
805
|
+
*/
|
806
|
+
export interface CustomDealRestrictionRequest {
|
807
|
+
/**
|
808
|
+
*
|
809
|
+
* @type {string}
|
810
|
+
* @memberof CustomDealRestrictionRequest
|
811
|
+
*/
|
812
|
+
'tagKey': string;
|
813
|
+
/**
|
814
|
+
*
|
815
|
+
* @type {string}
|
816
|
+
* @memberof CustomDealRestrictionRequest
|
817
|
+
*/
|
818
|
+
'tagValue': string;
|
819
|
+
/**
|
820
|
+
*
|
821
|
+
* @type {number}
|
822
|
+
* @memberof CustomDealRestrictionRequest
|
823
|
+
*/
|
824
|
+
'minTurnoverPercent': number;
|
825
|
+
/**
|
826
|
+
*
|
827
|
+
* @type {CustomDealRestrictionPriority}
|
828
|
+
* @memberof CustomDealRestrictionRequest
|
829
|
+
*/
|
830
|
+
'priority': CustomDealRestrictionPriority;
|
831
|
+
/**
|
832
|
+
*
|
833
|
+
* @type {number}
|
834
|
+
* @memberof CustomDealRestrictionRequest
|
835
|
+
*/
|
836
|
+
'points': number;
|
837
|
+
}
|
838
|
+
|
839
|
+
|
772
840
|
/**
|
773
841
|
*
|
774
842
|
* @export
|
@@ -900,9 +968,10 @@ export interface Item {
|
|
900
968
|
*/
|
901
969
|
|
902
970
|
export const Locale = {
|
903
|
-
EnUs: 'en-
|
904
|
-
RoRo: 'ro-
|
905
|
-
HuHu: 'hu-
|
971
|
+
EnUs: 'en-US',
|
972
|
+
RoRo: 'ro-RO',
|
973
|
+
HuHu: 'hu-HU',
|
974
|
+
DeDe: 'de-DE'
|
906
975
|
} as const;
|
907
976
|
|
908
977
|
export type Locale = typeof Locale[keyof typeof Locale];
|
@@ -963,6 +1032,12 @@ export interface MetricsAggregation {
|
|
963
1032
|
* @memberof MetricsAggregation
|
964
1033
|
*/
|
965
1034
|
'total': MetricsCollection;
|
1035
|
+
/**
|
1036
|
+
*
|
1037
|
+
* @type {string}
|
1038
|
+
* @memberof MetricsAggregation
|
1039
|
+
*/
|
1040
|
+
'updatedAt'?: string;
|
966
1041
|
}
|
967
1042
|
/**
|
968
1043
|
*
|
@@ -983,71 +1058,6 @@ export interface MetricsCollection {
|
|
983
1058
|
*/
|
984
1059
|
'total': Metrics;
|
985
1060
|
}
|
986
|
-
/**
|
987
|
-
*
|
988
|
-
* @export
|
989
|
-
* @interface MinTurnoverRestriction
|
990
|
-
*/
|
991
|
-
export interface MinTurnoverRestriction {
|
992
|
-
/**
|
993
|
-
*
|
994
|
-
* @type {string}
|
995
|
-
* @memberof MinTurnoverRestriction
|
996
|
-
*/
|
997
|
-
'kind': MinTurnoverRestrictionKindEnum;
|
998
|
-
/**
|
999
|
-
*
|
1000
|
-
* @type {Array<MinTurnoverRestrictionValue>}
|
1001
|
-
* @memberof MinTurnoverRestriction
|
1002
|
-
*/
|
1003
|
-
'values': Array<MinTurnoverRestrictionValue>;
|
1004
|
-
}
|
1005
|
-
|
1006
|
-
export const MinTurnoverRestrictionKindEnum = {
|
1007
|
-
MinTurnover: 'minTurnover'
|
1008
|
-
} as const;
|
1009
|
-
|
1010
|
-
export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
|
1011
|
-
|
1012
|
-
/**
|
1013
|
-
*
|
1014
|
-
* @export
|
1015
|
-
* @interface MinTurnoverRestrictionValue
|
1016
|
-
*/
|
1017
|
-
export interface MinTurnoverRestrictionValue {
|
1018
|
-
/**
|
1019
|
-
*
|
1020
|
-
* @type {string}
|
1021
|
-
* @memberof MinTurnoverRestrictionValue
|
1022
|
-
*/
|
1023
|
-
'tagKey': string;
|
1024
|
-
/**
|
1025
|
-
*
|
1026
|
-
* @type {string}
|
1027
|
-
* @memberof MinTurnoverRestrictionValue
|
1028
|
-
*/
|
1029
|
-
'tagValue': string;
|
1030
|
-
/**
|
1031
|
-
*
|
1032
|
-
* @type {number}
|
1033
|
-
* @memberof MinTurnoverRestrictionValue
|
1034
|
-
*/
|
1035
|
-
'minTurnoverPercent': number;
|
1036
|
-
/**
|
1037
|
-
*
|
1038
|
-
* @type {CustomDealRestrictionPriority}
|
1039
|
-
* @memberof MinTurnoverRestrictionValue
|
1040
|
-
*/
|
1041
|
-
'priority': CustomDealRestrictionPriority;
|
1042
|
-
/**
|
1043
|
-
*
|
1044
|
-
* @type {number}
|
1045
|
-
* @memberof MinTurnoverRestrictionValue
|
1046
|
-
*/
|
1047
|
-
'points': number;
|
1048
|
-
}
|
1049
|
-
|
1050
|
-
|
1051
1061
|
/**
|
1052
1062
|
*
|
1053
1063
|
* @export
|
@@ -1315,12 +1325,6 @@ export interface Order {
|
|
1315
1325
|
* @memberof Order
|
1316
1326
|
*/
|
1317
1327
|
'status'?: OrderStatus;
|
1318
|
-
/**
|
1319
|
-
*
|
1320
|
-
* @type {string}
|
1321
|
-
* @memberof Order
|
1322
|
-
*/
|
1323
|
-
'clientID'?: string;
|
1324
1328
|
}
|
1325
1329
|
|
1326
1330
|
|
@@ -1370,8 +1374,7 @@ export interface OrderItemCreationRequest {
|
|
1370
1374
|
|
1371
1375
|
export const OrderKind = {
|
1372
1376
|
Webshop: 'webshop',
|
1373
|
-
Promotions: 'promotions'
|
1374
|
-
SalesBudget: 'sales_budget'
|
1377
|
+
Promotions: 'promotions'
|
1375
1378
|
} as const;
|
1376
1379
|
|
1377
1380
|
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
@@ -1498,7 +1501,15 @@ export interface Preferences {
|
|
1498
1501
|
* @memberof Preferences
|
1499
1502
|
*/
|
1500
1503
|
'promotionConfig': PromotionConfig;
|
1504
|
+
/**
|
1505
|
+
*
|
1506
|
+
* @type {Locale}
|
1507
|
+
* @memberof Preferences
|
1508
|
+
*/
|
1509
|
+
'locale'?: Locale;
|
1501
1510
|
}
|
1511
|
+
|
1512
|
+
|
1502
1513
|
/**
|
1503
1514
|
*
|
1504
1515
|
* @export
|
@@ -1511,12 +1522,6 @@ export interface PreferencesRequest {
|
|
1511
1522
|
* @memberof PreferencesRequest
|
1512
1523
|
*/
|
1513
1524
|
'preferredLocale'?: Locale;
|
1514
|
-
/**
|
1515
|
-
*
|
1516
|
-
* @type {Array<NotificationPreference>}
|
1517
|
-
* @memberof PreferencesRequest
|
1518
|
-
*/
|
1519
|
-
'notificationPreferences': Array<NotificationPreference>;
|
1520
1525
|
}
|
1521
1526
|
|
1522
1527
|
|
@@ -2037,6 +2042,12 @@ export interface Profile {
|
|
2037
2042
|
* @interface Progress
|
2038
2043
|
*/
|
2039
2044
|
export interface Progress {
|
2045
|
+
/**
|
2046
|
+
*
|
2047
|
+
* @type {string}
|
2048
|
+
* @memberof Progress
|
2049
|
+
*/
|
2050
|
+
'promotionId': string;
|
2040
2051
|
/**
|
2041
2052
|
*
|
2042
2053
|
* @type {string}
|
@@ -2307,12 +2318,6 @@ export interface Promotion {
|
|
2307
2318
|
* @memberof Promotion
|
2308
2319
|
*/
|
2309
2320
|
'status'?: PromotionStatus;
|
2310
|
-
/**
|
2311
|
-
*
|
2312
|
-
* @type {string}
|
2313
|
-
* @memberof Promotion
|
2314
|
-
*/
|
2315
|
-
'reference'?: string;
|
2316
2321
|
}
|
2317
2322
|
|
2318
2323
|
|
@@ -2526,18 +2531,6 @@ export interface PromotionRequest {
|
|
2526
2531
|
* @memberof PromotionRequest
|
2527
2532
|
*/
|
2528
2533
|
'notificationConfig'?: PromotionNotificationConfig;
|
2529
|
-
/**
|
2530
|
-
*
|
2531
|
-
* @type {PromotionType}
|
2532
|
-
* @memberof PromotionRequest
|
2533
|
-
*/
|
2534
|
-
'type'?: PromotionType;
|
2535
|
-
/**
|
2536
|
-
*
|
2537
|
-
* @type {string}
|
2538
|
-
* @memberof PromotionRequest
|
2539
|
-
*/
|
2540
|
-
'reference'?: string;
|
2541
2534
|
}
|
2542
2535
|
/**
|
2543
2536
|
*
|
@@ -2733,32 +2726,6 @@ export const ReportTypesResponseTypesEnum = {
|
|
2733
2726
|
|
2734
2727
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2735
2728
|
|
2736
|
-
/**
|
2737
|
-
*
|
2738
|
-
* @export
|
2739
|
-
* @interface RequiredRestriction
|
2740
|
-
*/
|
2741
|
-
export interface RequiredRestriction {
|
2742
|
-
/**
|
2743
|
-
*
|
2744
|
-
* @type {string}
|
2745
|
-
* @memberof RequiredRestriction
|
2746
|
-
*/
|
2747
|
-
'kind': RequiredRestrictionKindEnum;
|
2748
|
-
/**
|
2749
|
-
*
|
2750
|
-
* @type {Array<string>}
|
2751
|
-
* @memberof RequiredRestriction
|
2752
|
-
*/
|
2753
|
-
'tagKeys': Array<string>;
|
2754
|
-
}
|
2755
|
-
|
2756
|
-
export const RequiredRestrictionKindEnum = {
|
2757
|
-
Required: 'required'
|
2758
|
-
} as const;
|
2759
|
-
|
2760
|
-
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2761
|
-
|
2762
2729
|
/**
|
2763
2730
|
* @type Rule
|
2764
2731
|
* @export
|
@@ -3543,11 +3510,13 @@ export interface Tenant {
|
|
3543
3510
|
'azureEntraClientID': string;
|
3544
3511
|
/**
|
3545
3512
|
*
|
3546
|
-
* @type {
|
3513
|
+
* @type {Locale}
|
3547
3514
|
* @memberof Tenant
|
3548
3515
|
*/
|
3549
|
-
'locale':
|
3516
|
+
'locale': Locale;
|
3550
3517
|
}
|
3518
|
+
|
3519
|
+
|
3551
3520
|
/**
|
3552
3521
|
*
|
3553
3522
|
* @export
|
@@ -3590,30 +3559,9 @@ export interface Transaction {
|
|
3590
3559
|
* @memberof Transaction
|
3591
3560
|
*/
|
3592
3561
|
'createdAt': string;
|
3593
|
-
/**
|
3594
|
-
*
|
3595
|
-
* @type {TransactionCurrencyKind}
|
3596
|
-
* @memberof Transaction
|
3597
|
-
*/
|
3598
|
-
'currency': TransactionCurrencyKind;
|
3599
3562
|
}
|
3600
3563
|
|
3601
3564
|
|
3602
|
-
/**
|
3603
|
-
*
|
3604
|
-
* @export
|
3605
|
-
* @enum {string}
|
3606
|
-
*/
|
3607
|
-
|
3608
|
-
export const TransactionCurrencyKind = {
|
3609
|
-
Points: 'points',
|
3610
|
-
CustomDealBudget: 'customDealBudget',
|
3611
|
-
SalesBudget: 'salesBudget'
|
3612
|
-
} as const;
|
3613
|
-
|
3614
|
-
export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
|
3615
|
-
|
3616
|
-
|
3617
3565
|
/**
|
3618
3566
|
*
|
3619
3567
|
* @export
|
@@ -3729,8 +3677,7 @@ export const TransactionSource = {
|
|
3729
3677
|
Promotion: 'promotion',
|
3730
3678
|
Manual: 'manual',
|
3731
3679
|
Expiry: 'expiry',
|
3732
|
-
Transfer: 'transfer'
|
3733
|
-
SalesBudget: 'sales_budget'
|
3680
|
+
Transfer: 'transfer'
|
3734
3681
|
} as const;
|
3735
3682
|
|
3736
3683
|
export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
|
@@ -3740,7 +3687,7 @@ export type TransactionSource = typeof TransactionSource[keyof typeof Transactio
|
|
3740
3687
|
* @type TransactionSourceReference
|
3741
3688
|
* @export
|
3742
3689
|
*/
|
3743
|
-
export type TransactionSourceReference = BalanceWithBeneficiaryRef |
|
3690
|
+
export type TransactionSourceReference = BalanceWithBeneficiaryRef | Order | PeriodPromotion | User;
|
3744
3691
|
|
3745
3692
|
/**
|
3746
3693
|
*
|
@@ -3875,12 +3822,6 @@ export interface UpdatePromotionRequest {
|
|
3875
3822
|
* @memberof UpdatePromotionRequest
|
3876
3823
|
*/
|
3877
3824
|
'notificationConfig'?: PromotionNotificationConfig;
|
3878
|
-
/**
|
3879
|
-
*
|
3880
|
-
* @type {string}
|
3881
|
-
* @memberof UpdatePromotionRequest
|
3882
|
-
*/
|
3883
|
-
'reference'?: string;
|
3884
3825
|
}
|
3885
3826
|
|
3886
3827
|
|
@@ -4095,7 +4036,7 @@ export interface UserOrder {
|
|
4095
4036
|
* @type {string}
|
4096
4037
|
* @memberof UserOrder
|
4097
4038
|
*/
|
4098
|
-
'source'
|
4039
|
+
'source'?: string;
|
4099
4040
|
/**
|
4100
4041
|
*
|
4101
4042
|
* @type {string}
|
@@ -4104,10 +4045,10 @@ export interface UserOrder {
|
|
4104
4045
|
'userID'?: string;
|
4105
4046
|
/**
|
4106
4047
|
*
|
4107
|
-
* @type {
|
4048
|
+
* @type {OrderStatus}
|
4108
4049
|
* @memberof UserOrder
|
4109
4050
|
*/
|
4110
|
-
'
|
4051
|
+
'status'?: OrderStatus;
|
4111
4052
|
}
|
4112
4053
|
|
4113
4054
|
|
@@ -4130,6 +4071,27 @@ export interface UserOrderListResponse {
|
|
4130
4071
|
*/
|
4131
4072
|
'nextToken'?: string;
|
4132
4073
|
}
|
4074
|
+
/**
|
4075
|
+
*
|
4076
|
+
* @export
|
4077
|
+
* @interface UserPreferencesRequest
|
4078
|
+
*/
|
4079
|
+
export interface UserPreferencesRequest {
|
4080
|
+
/**
|
4081
|
+
*
|
4082
|
+
* @type {Locale}
|
4083
|
+
* @memberof UserPreferencesRequest
|
4084
|
+
*/
|
4085
|
+
'preferredLocale'?: Locale;
|
4086
|
+
/**
|
4087
|
+
*
|
4088
|
+
* @type {Array<NotificationPreference>}
|
4089
|
+
* @memberof UserPreferencesRequest
|
4090
|
+
*/
|
4091
|
+
'notificationPreferences': Array<NotificationPreference>;
|
4092
|
+
}
|
4093
|
+
|
4094
|
+
|
4133
4095
|
/**
|
4134
4096
|
*
|
4135
4097
|
* @export
|
@@ -5078,6 +5040,44 @@ export const BulkApiAxiosParamCreator = function (configuration?: Configuration)
|
|
5078
5040
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5079
5041
|
localVarRequestOptions.data = serializeDataIfNeeded(tagsBulkCreationRequest, localVarRequestOptions, configuration)
|
5080
5042
|
|
5043
|
+
return {
|
5044
|
+
url: toPathString(localVarUrlObj),
|
5045
|
+
options: localVarRequestOptions,
|
5046
|
+
};
|
5047
|
+
},
|
5048
|
+
/**
|
5049
|
+
* Update multiple clients
|
5050
|
+
* @summary Update multiple clients
|
5051
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5052
|
+
* @param {*} [options] Override http request option.
|
5053
|
+
* @throws {RequiredError}
|
5054
|
+
*/
|
5055
|
+
bulkUpdateClients: async (clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
5056
|
+
const localVarPath = `/admins/clients/bulk`;
|
5057
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5058
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
5059
|
+
let baseOptions;
|
5060
|
+
if (configuration) {
|
5061
|
+
baseOptions = configuration.baseOptions;
|
5062
|
+
}
|
5063
|
+
|
5064
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
5065
|
+
const localVarHeaderParameter = {} as any;
|
5066
|
+
const localVarQueryParameter = {} as any;
|
5067
|
+
|
5068
|
+
// authentication systemJWT required
|
5069
|
+
// http bearer authentication required
|
5070
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
5071
|
+
|
5072
|
+
|
5073
|
+
|
5074
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
5075
|
+
|
5076
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5077
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5078
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5079
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkUpdateRequest, localVarRequestOptions, configuration)
|
5080
|
+
|
5081
5081
|
return {
|
5082
5082
|
url: toPathString(localVarUrlObj),
|
5083
5083
|
options: localVarRequestOptions,
|
@@ -5126,6 +5126,17 @@ export const BulkApiFp = function(configuration?: Configuration) {
|
|
5126
5126
|
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
|
5127
5127
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5128
5128
|
},
|
5129
|
+
/**
|
5130
|
+
* Update multiple clients
|
5131
|
+
* @summary Update multiple clients
|
5132
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5133
|
+
* @param {*} [options] Override http request option.
|
5134
|
+
* @throws {RequiredError}
|
5135
|
+
*/
|
5136
|
+
async bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>> {
|
5137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
5138
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5139
|
+
},
|
5129
5140
|
}
|
5130
5141
|
};
|
5131
5142
|
|
@@ -5166,6 +5177,16 @@ export const BulkApiFactory = function (configuration?: Configuration, basePath?
|
|
5166
5177
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>> {
|
5167
5178
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
5168
5179
|
},
|
5180
|
+
/**
|
5181
|
+
* Update multiple clients
|
5182
|
+
* @summary Update multiple clients
|
5183
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5184
|
+
* @param {*} [options] Override http request option.
|
5185
|
+
* @throws {RequiredError}
|
5186
|
+
*/
|
5187
|
+
bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: any): AxiosPromise<Array<Client>> {
|
5188
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
5189
|
+
},
|
5169
5190
|
};
|
5170
5191
|
};
|
5171
5192
|
|
@@ -5211,6 +5232,18 @@ export class BulkApi extends BaseAPI {
|
|
5211
5232
|
public bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) {
|
5212
5233
|
return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
5213
5234
|
}
|
5235
|
+
|
5236
|
+
/**
|
5237
|
+
* Update multiple clients
|
5238
|
+
* @summary Update multiple clients
|
5239
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5240
|
+
* @param {*} [options] Override http request option.
|
5241
|
+
* @throws {RequiredError}
|
5242
|
+
* @memberof BulkApi
|
5243
|
+
*/
|
5244
|
+
public bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig) {
|
5245
|
+
return BulkApiFp(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
5246
|
+
}
|
5214
5247
|
}
|
5215
5248
|
|
5216
5249
|
|
@@ -5957,13 +5990,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5957
5990
|
/**
|
5958
5991
|
* Create custom deal restrictions
|
5959
5992
|
* @summary Create custom deal restrictions
|
5960
|
-
* @param {
|
5993
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
5961
5994
|
* @param {*} [options] Override http request option.
|
5962
5995
|
* @throws {RequiredError}
|
5963
5996
|
*/
|
5964
|
-
createCustomDealRestrictions: async (
|
5965
|
-
// verify required parameter '
|
5966
|
-
assertParamExists('createCustomDealRestrictions', '
|
5997
|
+
createCustomDealRestrictions: async (customDealRestrictionRequest: CustomDealRestrictionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
5998
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
5999
|
+
assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest)
|
5967
6000
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
5968
6001
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5969
6002
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -5987,87 +6020,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5987
6020
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5988
6021
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5989
6022
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5990
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
5991
|
-
|
5992
|
-
return {
|
5993
|
-
url: toPathString(localVarUrlObj),
|
5994
|
-
options: localVarRequestOptions,
|
5995
|
-
};
|
5996
|
-
},
|
5997
|
-
/**
|
5998
|
-
* Get custom deal min target value
|
5999
|
-
* @summary Get custom deal min target value
|
6000
|
-
* @param {string} startingAt start at
|
6001
|
-
* @param {string} endingAt end at
|
6002
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6003
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6004
|
-
* @param {string} tagKey tag key
|
6005
|
-
* @param {string} tagValue tag value
|
6006
|
-
* @param {*} [options] Override http request option.
|
6007
|
-
* @throws {RequiredError}
|
6008
|
-
*/
|
6009
|
-
getCustomDealMinTargetValue: async (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6010
|
-
// verify required parameter 'startingAt' is not null or undefined
|
6011
|
-
assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt)
|
6012
|
-
// verify required parameter 'endingAt' is not null or undefined
|
6013
|
-
assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt)
|
6014
|
-
// verify required parameter 'beneficiaryKind' is not null or undefined
|
6015
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind)
|
6016
|
-
// verify required parameter 'beneficiaryValues' is not null or undefined
|
6017
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues)
|
6018
|
-
// verify required parameter 'tagKey' is not null or undefined
|
6019
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey)
|
6020
|
-
// verify required parameter 'tagValue' is not null or undefined
|
6021
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue)
|
6022
|
-
const localVarPath = `/admins/custom-deals/min-target-value`;
|
6023
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6024
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6025
|
-
let baseOptions;
|
6026
|
-
if (configuration) {
|
6027
|
-
baseOptions = configuration.baseOptions;
|
6028
|
-
}
|
6029
|
-
|
6030
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
6031
|
-
const localVarHeaderParameter = {} as any;
|
6032
|
-
const localVarQueryParameter = {} as any;
|
6033
|
-
|
6034
|
-
// authentication systemJWT required
|
6035
|
-
// http bearer authentication required
|
6036
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6037
|
-
|
6038
|
-
if (startingAt !== undefined) {
|
6039
|
-
localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
|
6040
|
-
(startingAt as any).toISOString() :
|
6041
|
-
startingAt;
|
6042
|
-
}
|
6043
|
-
|
6044
|
-
if (endingAt !== undefined) {
|
6045
|
-
localVarQueryParameter['endingAt'] = (endingAt as any instanceof Date) ?
|
6046
|
-
(endingAt as any).toISOString() :
|
6047
|
-
endingAt;
|
6048
|
-
}
|
6049
|
-
|
6050
|
-
if (beneficiaryKind !== undefined) {
|
6051
|
-
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
6052
|
-
}
|
6053
|
-
|
6054
|
-
if (beneficiaryValues) {
|
6055
|
-
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
6056
|
-
}
|
6057
|
-
|
6058
|
-
if (tagKey !== undefined) {
|
6059
|
-
localVarQueryParameter['tagKey'] = tagKey;
|
6060
|
-
}
|
6061
|
-
|
6062
|
-
if (tagValue !== undefined) {
|
6063
|
-
localVarQueryParameter['tagValue'] = tagValue;
|
6064
|
-
}
|
6065
|
-
|
6066
|
-
|
6067
|
-
|
6068
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6069
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6070
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6023
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration)
|
6071
6024
|
|
6072
6025
|
return {
|
6073
6026
|
url: toPathString(localVarUrlObj),
|
@@ -6121,28 +6074,12 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
|
|
6121
6074
|
/**
|
6122
6075
|
* Create custom deal restrictions
|
6123
6076
|
* @summary Create custom deal restrictions
|
6124
|
-
* @param {
|
6125
|
-
* @param {*} [options] Override http request option.
|
6126
|
-
* @throws {RequiredError}
|
6127
|
-
*/
|
6128
|
-
async createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
6129
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
|
6130
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6131
|
-
},
|
6132
|
-
/**
|
6133
|
-
* Get custom deal min target value
|
6134
|
-
* @summary Get custom deal min target value
|
6135
|
-
* @param {string} startingAt start at
|
6136
|
-
* @param {string} endingAt end at
|
6137
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6138
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6139
|
-
* @param {string} tagKey tag key
|
6140
|
-
* @param {string} tagValue tag value
|
6077
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6141
6078
|
* @param {*} [options] Override http request option.
|
6142
6079
|
* @throws {RequiredError}
|
6143
6080
|
*/
|
6144
|
-
async
|
6145
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
6081
|
+
async createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
6082
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
6146
6083
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6147
6084
|
},
|
6148
6085
|
/**
|
@@ -6168,27 +6105,12 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
|
|
6168
6105
|
/**
|
6169
6106
|
* Create custom deal restrictions
|
6170
6107
|
* @summary Create custom deal restrictions
|
6171
|
-
* @param {
|
6172
|
-
* @param {*} [options] Override http request option.
|
6173
|
-
* @throws {RequiredError}
|
6174
|
-
*/
|
6175
|
-
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void> {
|
6176
|
-
return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
|
6177
|
-
},
|
6178
|
-
/**
|
6179
|
-
* Get custom deal min target value
|
6180
|
-
* @summary Get custom deal min target value
|
6181
|
-
* @param {string} startingAt start at
|
6182
|
-
* @param {string} endingAt end at
|
6183
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6184
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6185
|
-
* @param {string} tagKey tag key
|
6186
|
-
* @param {string} tagValue tag value
|
6108
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6187
6109
|
* @param {*} [options] Override http request option.
|
6188
6110
|
* @throws {RequiredError}
|
6189
6111
|
*/
|
6190
|
-
|
6191
|
-
return localVarFp.
|
6112
|
+
createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: any): AxiosPromise<void> {
|
6113
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
6192
6114
|
},
|
6193
6115
|
/**
|
6194
6116
|
* List custom deal restrictions
|
@@ -6212,30 +6134,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
6212
6134
|
/**
|
6213
6135
|
* Create custom deal restrictions
|
6214
6136
|
* @summary Create custom deal restrictions
|
6215
|
-
* @param {
|
6216
|
-
* @param {*} [options] Override http request option.
|
6217
|
-
* @throws {RequiredError}
|
6218
|
-
* @memberof CustomDealsApi
|
6219
|
-
*/
|
6220
|
-
public createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) {
|
6221
|
-
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
|
6222
|
-
}
|
6223
|
-
|
6224
|
-
/**
|
6225
|
-
* Get custom deal min target value
|
6226
|
-
* @summary Get custom deal min target value
|
6227
|
-
* @param {string} startingAt start at
|
6228
|
-
* @param {string} endingAt end at
|
6229
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6230
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6231
|
-
* @param {string} tagKey tag key
|
6232
|
-
* @param {string} tagValue tag value
|
6137
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6233
6138
|
* @param {*} [options] Override http request option.
|
6234
6139
|
* @throws {RequiredError}
|
6235
6140
|
* @memberof CustomDealsApi
|
6236
6141
|
*/
|
6237
|
-
public
|
6238
|
-
return CustomDealsApiFp(this.configuration).
|
6142
|
+
public createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig) {
|
6143
|
+
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
6239
6144
|
}
|
6240
6145
|
|
6241
6146
|
/**
|
@@ -6701,6 +6606,40 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
6701
6606
|
* @throws {RequiredError}
|
6702
6607
|
*/
|
6703
6608
|
getPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6609
|
+
const localVarPath = `/admins/preferences`;
|
6610
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6611
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6612
|
+
let baseOptions;
|
6613
|
+
if (configuration) {
|
6614
|
+
baseOptions = configuration.baseOptions;
|
6615
|
+
}
|
6616
|
+
|
6617
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
6618
|
+
const localVarHeaderParameter = {} as any;
|
6619
|
+
const localVarQueryParameter = {} as any;
|
6620
|
+
|
6621
|
+
// authentication customerJWT required
|
6622
|
+
// http bearer authentication required
|
6623
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6624
|
+
|
6625
|
+
|
6626
|
+
|
6627
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6629
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6630
|
+
|
6631
|
+
return {
|
6632
|
+
url: toPathString(localVarUrlObj),
|
6633
|
+
options: localVarRequestOptions,
|
6634
|
+
};
|
6635
|
+
},
|
6636
|
+
/**
|
6637
|
+
* Get preferences for the authenticated user
|
6638
|
+
* @summary Get preferences
|
6639
|
+
* @param {*} [options] Override http request option.
|
6640
|
+
* @throws {RequiredError}
|
6641
|
+
*/
|
6642
|
+
getUserPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6704
6643
|
const localVarPath = `/users/preferences`;
|
6705
6644
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6706
6645
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -6820,7 +6759,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
6820
6759
|
updatePreferences: async (preferencesRequest: PreferencesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6821
6760
|
// verify required parameter 'preferencesRequest' is not null or undefined
|
6822
6761
|
assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest)
|
6823
|
-
const localVarPath = `/
|
6762
|
+
const localVarPath = `/admins/preferences`;
|
6824
6763
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6825
6764
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6826
6765
|
let baseOptions;
|
@@ -6845,6 +6784,46 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
6845
6784
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6846
6785
|
localVarRequestOptions.data = serializeDataIfNeeded(preferencesRequest, localVarRequestOptions, configuration)
|
6847
6786
|
|
6787
|
+
return {
|
6788
|
+
url: toPathString(localVarUrlObj),
|
6789
|
+
options: localVarRequestOptions,
|
6790
|
+
};
|
6791
|
+
},
|
6792
|
+
/**
|
6793
|
+
* Update preferences for the authenticated user
|
6794
|
+
* @summary Update preferences
|
6795
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
6796
|
+
* @param {*} [options] Override http request option.
|
6797
|
+
* @throws {RequiredError}
|
6798
|
+
*/
|
6799
|
+
updateUserPreferences: async (userPreferencesRequest: UserPreferencesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6800
|
+
// verify required parameter 'userPreferencesRequest' is not null or undefined
|
6801
|
+
assertParamExists('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest)
|
6802
|
+
const localVarPath = `/users/preferences`;
|
6803
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6804
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6805
|
+
let baseOptions;
|
6806
|
+
if (configuration) {
|
6807
|
+
baseOptions = configuration.baseOptions;
|
6808
|
+
}
|
6809
|
+
|
6810
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
6811
|
+
const localVarHeaderParameter = {} as any;
|
6812
|
+
const localVarQueryParameter = {} as any;
|
6813
|
+
|
6814
|
+
// authentication customerJWT required
|
6815
|
+
// http bearer authentication required
|
6816
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6817
|
+
|
6818
|
+
|
6819
|
+
|
6820
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
6821
|
+
|
6822
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6823
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6824
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6825
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userPreferencesRequest, localVarRequestOptions, configuration)
|
6826
|
+
|
6848
6827
|
return {
|
6849
6828
|
url: toPathString(localVarUrlObj),
|
6850
6829
|
options: localVarRequestOptions,
|
@@ -6892,6 +6871,16 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
6892
6871
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferences(options);
|
6893
6872
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6894
6873
|
},
|
6874
|
+
/**
|
6875
|
+
* Get preferences for the authenticated user
|
6876
|
+
* @summary Get preferences
|
6877
|
+
* @param {*} [options] Override http request option.
|
6878
|
+
* @throws {RequiredError}
|
6879
|
+
*/
|
6880
|
+
async getUserPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>> {
|
6881
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPreferences(options);
|
6882
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6883
|
+
},
|
6895
6884
|
/**
|
6896
6885
|
* List paginated notifications
|
6897
6886
|
* @summary List notifications
|
@@ -6926,6 +6915,17 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
6926
6915
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePreferences(preferencesRequest, options);
|
6927
6916
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6928
6917
|
},
|
6918
|
+
/**
|
6919
|
+
* Update preferences for the authenticated user
|
6920
|
+
* @summary Update preferences
|
6921
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
6922
|
+
* @param {*} [options] Override http request option.
|
6923
|
+
* @throws {RequiredError}
|
6924
|
+
*/
|
6925
|
+
async updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
6926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
|
6927
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6928
|
+
},
|
6929
6929
|
}
|
6930
6930
|
};
|
6931
6931
|
|
@@ -6965,6 +6965,15 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
6965
6965
|
getPreferences(options?: any): AxiosPromise<Preferences> {
|
6966
6966
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
6967
6967
|
},
|
6968
|
+
/**
|
6969
|
+
* Get preferences for the authenticated user
|
6970
|
+
* @summary Get preferences
|
6971
|
+
* @param {*} [options] Override http request option.
|
6972
|
+
* @throws {RequiredError}
|
6973
|
+
*/
|
6974
|
+
getUserPreferences(options?: any): AxiosPromise<Preferences> {
|
6975
|
+
return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
|
6976
|
+
},
|
6968
6977
|
/**
|
6969
6978
|
* List paginated notifications
|
6970
6979
|
* @summary List notifications
|
@@ -6996,6 +7005,16 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
6996
7005
|
updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void> {
|
6997
7006
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
6998
7007
|
},
|
7008
|
+
/**
|
7009
|
+
* Update preferences for the authenticated user
|
7010
|
+
* @summary Update preferences
|
7011
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
7012
|
+
* @param {*} [options] Override http request option.
|
7013
|
+
* @throws {RequiredError}
|
7014
|
+
*/
|
7015
|
+
updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: any): AxiosPromise<void> {
|
7016
|
+
return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
|
7017
|
+
},
|
6999
7018
|
};
|
7000
7019
|
};
|
7001
7020
|
|
@@ -7041,6 +7060,17 @@ export class NotificationApi extends BaseAPI {
|
|
7041
7060
|
return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
7042
7061
|
}
|
7043
7062
|
|
7063
|
+
/**
|
7064
|
+
* Get preferences for the authenticated user
|
7065
|
+
* @summary Get preferences
|
7066
|
+
* @param {*} [options] Override http request option.
|
7067
|
+
* @throws {RequiredError}
|
7068
|
+
* @memberof NotificationApi
|
7069
|
+
*/
|
7070
|
+
public getUserPreferences(options?: AxiosRequestConfig) {
|
7071
|
+
return NotificationApiFp(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
|
7072
|
+
}
|
7073
|
+
|
7044
7074
|
/**
|
7045
7075
|
* List paginated notifications
|
7046
7076
|
* @summary List notifications
|
@@ -7077,6 +7107,18 @@ export class NotificationApi extends BaseAPI {
|
|
7077
7107
|
public updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) {
|
7078
7108
|
return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
7079
7109
|
}
|
7110
|
+
|
7111
|
+
/**
|
7112
|
+
* Update preferences for the authenticated user
|
7113
|
+
* @summary Update preferences
|
7114
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
7115
|
+
* @param {*} [options] Override http request option.
|
7116
|
+
* @throws {RequiredError}
|
7117
|
+
* @memberof NotificationApi
|
7118
|
+
*/
|
7119
|
+
public updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig) {
|
7120
|
+
return NotificationApiFp(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
7121
|
+
}
|
7080
7122
|
}
|
7081
7123
|
|
7082
7124
|
|
@@ -7087,44 +7129,6 @@ export class NotificationApi extends BaseAPI {
|
|
7087
7129
|
*/
|
7088
7130
|
export const OrderApiAxiosParamCreator = function (configuration?: Configuration) {
|
7089
7131
|
return {
|
7090
|
-
/**
|
7091
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7092
|
-
* @summary Create an order for a product
|
7093
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7094
|
-
* @param {*} [options] Override http request option.
|
7095
|
-
* @throws {RequiredError}
|
7096
|
-
*/
|
7097
|
-
createAdminOrder: async (adminOrderCreationRequest?: AdminOrderCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7098
|
-
const localVarPath = `/admins/orders`;
|
7099
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7100
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
7101
|
-
let baseOptions;
|
7102
|
-
if (configuration) {
|
7103
|
-
baseOptions = configuration.baseOptions;
|
7104
|
-
}
|
7105
|
-
|
7106
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
7107
|
-
const localVarHeaderParameter = {} as any;
|
7108
|
-
const localVarQueryParameter = {} as any;
|
7109
|
-
|
7110
|
-
// authentication systemJWT required
|
7111
|
-
// http bearer authentication required
|
7112
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
7113
|
-
|
7114
|
-
|
7115
|
-
|
7116
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
7117
|
-
|
7118
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
7119
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
7120
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
7121
|
-
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration)
|
7122
|
-
|
7123
|
-
return {
|
7124
|
-
url: toPathString(localVarUrlObj),
|
7125
|
-
options: localVarRequestOptions,
|
7126
|
-
};
|
7127
|
-
},
|
7128
7132
|
/**
|
7129
7133
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7130
7134
|
* @summary Create an order for a product
|
@@ -7250,12 +7254,10 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7250
7254
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7251
7255
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7252
7256
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7253
|
-
* @param {OrderKind} [kind] Filter by kind
|
7254
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7255
7257
|
* @param {*} [options] Override http request option.
|
7256
7258
|
* @throws {RequiredError}
|
7257
7259
|
*/
|
7258
|
-
listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7260
|
+
listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7259
7261
|
const localVarPath = `/admins/orders`;
|
7260
7262
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7261
7263
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7308,14 +7310,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7308
7310
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
7309
7311
|
}
|
7310
7312
|
|
7311
|
-
if (kind !== undefined) {
|
7312
|
-
localVarQueryParameter['kind'] = kind;
|
7313
|
-
}
|
7314
|
-
|
7315
|
-
if (source !== undefined) {
|
7316
|
-
localVarQueryParameter['source'] = source;
|
7317
|
-
}
|
7318
|
-
|
7319
7313
|
|
7320
7314
|
|
7321
7315
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -7410,17 +7404,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7410
7404
|
export const OrderApiFp = function(configuration?: Configuration) {
|
7411
7405
|
const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration)
|
7412
7406
|
return {
|
7413
|
-
/**
|
7414
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7415
|
-
* @summary Create an order for a product
|
7416
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7417
|
-
* @param {*} [options] Override http request option.
|
7418
|
-
* @throws {RequiredError}
|
7419
|
-
*/
|
7420
|
-
async createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
|
7421
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
|
7422
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7423
|
-
},
|
7424
7407
|
/**
|
7425
7408
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7426
7409
|
* @summary Create an order for a product
|
@@ -7465,13 +7448,11 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7465
7448
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7466
7449
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7467
7450
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7468
|
-
* @param {OrderKind} [kind] Filter by kind
|
7469
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7470
7451
|
* @param {*} [options] Override http request option.
|
7471
7452
|
* @throws {RequiredError}
|
7472
7453
|
*/
|
7473
|
-
async listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7474
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
7454
|
+
async listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
|
7455
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
7475
7456
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7476
7457
|
},
|
7477
7458
|
/**
|
@@ -7501,16 +7482,6 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7501
7482
|
export const OrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
7502
7483
|
const localVarFp = OrderApiFp(configuration)
|
7503
7484
|
return {
|
7504
|
-
/**
|
7505
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7506
|
-
* @summary Create an order for a product
|
7507
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7508
|
-
* @param {*} [options] Override http request option.
|
7509
|
-
* @throws {RequiredError}
|
7510
|
-
*/
|
7511
|
-
createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: any): AxiosPromise<Order> {
|
7512
|
-
return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
|
7513
|
-
},
|
7514
7485
|
/**
|
7515
7486
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7516
7487
|
* @summary Create an order for a product
|
@@ -7552,13 +7523,11 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7552
7523
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7553
7524
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7554
7525
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7555
|
-
* @param {OrderKind} [kind] Filter by kind
|
7556
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7557
7526
|
* @param {*} [options] Override http request option.
|
7558
7527
|
* @throws {RequiredError}
|
7559
7528
|
*/
|
7560
|
-
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7561
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
7529
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse> {
|
7530
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
7562
7531
|
},
|
7563
7532
|
/**
|
7564
7533
|
* List existing orders
|
@@ -7586,18 +7555,6 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7586
7555
|
* @extends {BaseAPI}
|
7587
7556
|
*/
|
7588
7557
|
export class OrderApi extends BaseAPI {
|
7589
|
-
/**
|
7590
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7591
|
-
* @summary Create an order for a product
|
7592
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7593
|
-
* @param {*} [options] Override http request option.
|
7594
|
-
* @throws {RequiredError}
|
7595
|
-
* @memberof OrderApi
|
7596
|
-
*/
|
7597
|
-
public createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig) {
|
7598
|
-
return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
7599
|
-
}
|
7600
|
-
|
7601
7558
|
/**
|
7602
7559
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7603
7560
|
* @summary Create an order for a product
|
@@ -7645,14 +7602,12 @@ export class OrderApi extends BaseAPI {
|
|
7645
7602
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7646
7603
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7647
7604
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7648
|
-
* @param {OrderKind} [kind] Filter by kind
|
7649
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7650
7605
|
* @param {*} [options] Override http request option.
|
7651
7606
|
* @throws {RequiredError}
|
7652
7607
|
* @memberof OrderApi
|
7653
7608
|
*/
|
7654
|
-
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7655
|
-
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
7609
|
+
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) {
|
7610
|
+
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
7656
7611
|
}
|
7657
7612
|
|
7658
7613
|
/**
|