flexinet-api 0.0.1308-prerelease0 → 0.0.1308

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/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': 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': string;
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'?: string;
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 CustomDealMinTargetValueResponse
738
+ * @interface CustomDealRestriction
742
739
  */
743
- export interface CustomDealMinTargetValueResponse {
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 CustomDealMinTargetValueResponse
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
- 'minTargetValue': number;
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-us',
904
- RoRo: 'ro-ro',
905
- HuHu: 'hu-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];
@@ -989,71 +1058,6 @@ export interface MetricsCollection {
989
1058
  */
990
1059
  'total': Metrics;
991
1060
  }
992
- /**
993
- *
994
- * @export
995
- * @interface MinTurnoverRestriction
996
- */
997
- export interface MinTurnoverRestriction {
998
- /**
999
- *
1000
- * @type {string}
1001
- * @memberof MinTurnoverRestriction
1002
- */
1003
- 'kind': MinTurnoverRestrictionKindEnum;
1004
- /**
1005
- *
1006
- * @type {Array<MinTurnoverRestrictionValue>}
1007
- * @memberof MinTurnoverRestriction
1008
- */
1009
- 'values': Array<MinTurnoverRestrictionValue>;
1010
- }
1011
-
1012
- export const MinTurnoverRestrictionKindEnum = {
1013
- MinTurnover: 'minTurnover'
1014
- } as const;
1015
-
1016
- export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
1017
-
1018
- /**
1019
- *
1020
- * @export
1021
- * @interface MinTurnoverRestrictionValue
1022
- */
1023
- export interface MinTurnoverRestrictionValue {
1024
- /**
1025
- *
1026
- * @type {string}
1027
- * @memberof MinTurnoverRestrictionValue
1028
- */
1029
- 'tagKey': string;
1030
- /**
1031
- *
1032
- * @type {string}
1033
- * @memberof MinTurnoverRestrictionValue
1034
- */
1035
- 'tagValue': string;
1036
- /**
1037
- *
1038
- * @type {number}
1039
- * @memberof MinTurnoverRestrictionValue
1040
- */
1041
- 'minTurnoverPercent': number;
1042
- /**
1043
- *
1044
- * @type {CustomDealRestrictionPriority}
1045
- * @memberof MinTurnoverRestrictionValue
1046
- */
1047
- 'priority': CustomDealRestrictionPriority;
1048
- /**
1049
- *
1050
- * @type {number}
1051
- * @memberof MinTurnoverRestrictionValue
1052
- */
1053
- 'points': number;
1054
- }
1055
-
1056
-
1057
1061
  /**
1058
1062
  *
1059
1063
  * @export
@@ -1321,12 +1325,6 @@ export interface Order {
1321
1325
  * @memberof Order
1322
1326
  */
1323
1327
  'status'?: OrderStatus;
1324
- /**
1325
- *
1326
- * @type {string}
1327
- * @memberof Order
1328
- */
1329
- 'clientID'?: string;
1330
1328
  }
1331
1329
 
1332
1330
 
@@ -1376,8 +1374,7 @@ export interface OrderItemCreationRequest {
1376
1374
 
1377
1375
  export const OrderKind = {
1378
1376
  Webshop: 'webshop',
1379
- Promotions: 'promotions',
1380
- SalesBudget: 'sales_budget'
1377
+ Promotions: 'promotions'
1381
1378
  } as const;
1382
1379
 
1383
1380
  export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
@@ -1504,7 +1501,15 @@ export interface Preferences {
1504
1501
  * @memberof Preferences
1505
1502
  */
1506
1503
  'promotionConfig': PromotionConfig;
1504
+ /**
1505
+ *
1506
+ * @type {Locale}
1507
+ * @memberof Preferences
1508
+ */
1509
+ 'locale'?: Locale;
1507
1510
  }
1511
+
1512
+
1508
1513
  /**
1509
1514
  *
1510
1515
  * @export
@@ -1517,12 +1522,6 @@ export interface PreferencesRequest {
1517
1522
  * @memberof PreferencesRequest
1518
1523
  */
1519
1524
  'preferredLocale'?: Locale;
1520
- /**
1521
- *
1522
- * @type {Array<NotificationPreference>}
1523
- * @memberof PreferencesRequest
1524
- */
1525
- 'notificationPreferences': Array<NotificationPreference>;
1526
1525
  }
1527
1526
 
1528
1527
 
@@ -2043,6 +2042,12 @@ export interface Profile {
2043
2042
  * @interface Progress
2044
2043
  */
2045
2044
  export interface Progress {
2045
+ /**
2046
+ *
2047
+ * @type {string}
2048
+ * @memberof Progress
2049
+ */
2050
+ 'promotionId': string;
2046
2051
  /**
2047
2052
  *
2048
2053
  * @type {string}
@@ -2051,10 +2056,10 @@ export interface Progress {
2051
2056
  'id': string;
2052
2057
  /**
2053
2058
  *
2054
- * @type {number}
2059
+ * @type {string}
2055
2060
  * @memberof Progress
2056
2061
  */
2057
- 'value': number;
2062
+ 'value': string;
2058
2063
  /**
2059
2064
  *
2060
2065
  * @type {string}
@@ -2063,10 +2068,10 @@ export interface Progress {
2063
2068
  'value_mu': string;
2064
2069
  /**
2065
2070
  *
2066
- * @type {{ [key: string]: number; }}
2071
+ * @type {{ [key: string]: string; }}
2067
2072
  * @memberof Progress
2068
2073
  */
2069
- 'value_detailed'?: { [key: string]: number; };
2074
+ 'value_detailed'?: { [key: string]: string; };
2070
2075
  /**
2071
2076
  *
2072
2077
  * @type {ProgressState}
@@ -2313,12 +2318,6 @@ export interface Promotion {
2313
2318
  * @memberof Promotion
2314
2319
  */
2315
2320
  'status'?: PromotionStatus;
2316
- /**
2317
- *
2318
- * @type {string}
2319
- * @memberof Promotion
2320
- */
2321
- 'reference'?: string;
2322
2321
  }
2323
2322
 
2324
2323
 
@@ -2532,18 +2531,6 @@ export interface PromotionRequest {
2532
2531
  * @memberof PromotionRequest
2533
2532
  */
2534
2533
  'notificationConfig'?: PromotionNotificationConfig;
2535
- /**
2536
- *
2537
- * @type {PromotionType}
2538
- * @memberof PromotionRequest
2539
- */
2540
- 'type'?: PromotionType;
2541
- /**
2542
- *
2543
- * @type {string}
2544
- * @memberof PromotionRequest
2545
- */
2546
- 'reference'?: string;
2547
2534
  }
2548
2535
  /**
2549
2536
  *
@@ -2739,32 +2726,6 @@ export const ReportTypesResponseTypesEnum = {
2739
2726
 
2740
2727
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
2741
2728
 
2742
- /**
2743
- *
2744
- * @export
2745
- * @interface RequiredRestriction
2746
- */
2747
- export interface RequiredRestriction {
2748
- /**
2749
- *
2750
- * @type {string}
2751
- * @memberof RequiredRestriction
2752
- */
2753
- 'kind': RequiredRestrictionKindEnum;
2754
- /**
2755
- *
2756
- * @type {Array<string>}
2757
- * @memberof RequiredRestriction
2758
- */
2759
- 'tagKeys': Array<string>;
2760
- }
2761
-
2762
- export const RequiredRestrictionKindEnum = {
2763
- Required: 'required'
2764
- } as const;
2765
-
2766
- export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
2767
-
2768
2729
  /**
2769
2730
  * @type Rule
2770
2731
  * @export
@@ -3549,11 +3510,13 @@ export interface Tenant {
3549
3510
  'azureEntraClientID': string;
3550
3511
  /**
3551
3512
  *
3552
- * @type {string}
3513
+ * @type {Locale}
3553
3514
  * @memberof Tenant
3554
3515
  */
3555
- 'locale': string;
3516
+ 'locale': Locale;
3556
3517
  }
3518
+
3519
+
3557
3520
  /**
3558
3521
  *
3559
3522
  * @export
@@ -3596,30 +3559,9 @@ export interface Transaction {
3596
3559
  * @memberof Transaction
3597
3560
  */
3598
3561
  'createdAt': string;
3599
- /**
3600
- *
3601
- * @type {TransactionCurrencyKind}
3602
- * @memberof Transaction
3603
- */
3604
- 'currency': TransactionCurrencyKind;
3605
3562
  }
3606
3563
 
3607
3564
 
3608
- /**
3609
- *
3610
- * @export
3611
- * @enum {string}
3612
- */
3613
-
3614
- export const TransactionCurrencyKind = {
3615
- Points: 'points',
3616
- CustomDealBudget: 'customDealBudget',
3617
- SalesBudget: 'salesBudget'
3618
- } as const;
3619
-
3620
- export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
3621
-
3622
-
3623
3565
  /**
3624
3566
  *
3625
3567
  * @export
@@ -3735,8 +3677,7 @@ export const TransactionSource = {
3735
3677
  Promotion: 'promotion',
3736
3678
  Manual: 'manual',
3737
3679
  Expiry: 'expiry',
3738
- Transfer: 'transfer',
3739
- SalesBudget: 'sales_budget'
3680
+ Transfer: 'transfer'
3740
3681
  } as const;
3741
3682
 
3742
3683
  export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
@@ -3746,7 +3687,7 @@ export type TransactionSource = typeof TransactionSource[keyof typeof Transactio
3746
3687
  * @type TransactionSourceReference
3747
3688
  * @export
3748
3689
  */
3749
- export type TransactionSourceReference = BalanceWithBeneficiaryRef | PeriodPromotion | User | UserOrder;
3690
+ export type TransactionSourceReference = BalanceWithBeneficiaryRef | Order | PeriodPromotion | User;
3750
3691
 
3751
3692
  /**
3752
3693
  *
@@ -3881,12 +3822,6 @@ export interface UpdatePromotionRequest {
3881
3822
  * @memberof UpdatePromotionRequest
3882
3823
  */
3883
3824
  'notificationConfig'?: PromotionNotificationConfig;
3884
- /**
3885
- *
3886
- * @type {string}
3887
- * @memberof UpdatePromotionRequest
3888
- */
3889
- 'reference'?: string;
3890
3825
  }
3891
3826
 
3892
3827
 
@@ -4101,7 +4036,7 @@ export interface UserOrder {
4101
4036
  * @type {string}
4102
4037
  * @memberof UserOrder
4103
4038
  */
4104
- 'source': string;
4039
+ 'source'?: string;
4105
4040
  /**
4106
4041
  *
4107
4042
  * @type {string}
@@ -4110,10 +4045,10 @@ export interface UserOrder {
4110
4045
  'userID'?: string;
4111
4046
  /**
4112
4047
  *
4113
- * @type {string}
4048
+ * @type {OrderStatus}
4114
4049
  * @memberof UserOrder
4115
4050
  */
4116
- 'clientID': string;
4051
+ 'status'?: OrderStatus;
4117
4052
  }
4118
4053
 
4119
4054
 
@@ -4136,6 +4071,27 @@ export interface UserOrderListResponse {
4136
4071
  */
4137
4072
  'nextToken'?: string;
4138
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
+
4139
4095
  /**
4140
4096
  *
4141
4097
  * @export
@@ -5084,6 +5040,44 @@ export const BulkApiAxiosParamCreator = function (configuration?: Configuration)
5084
5040
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5085
5041
  localVarRequestOptions.data = serializeDataIfNeeded(tagsBulkCreationRequest, localVarRequestOptions, configuration)
5086
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
+
5087
5081
  return {
5088
5082
  url: toPathString(localVarUrlObj),
5089
5083
  options: localVarRequestOptions,
@@ -5132,6 +5126,17 @@ export const BulkApiFp = function(configuration?: Configuration) {
5132
5126
  const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
5133
5127
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5134
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
+ },
5135
5140
  }
5136
5141
  };
5137
5142
 
@@ -5172,6 +5177,16 @@ export const BulkApiFactory = function (configuration?: Configuration, basePath?
5172
5177
  bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>> {
5173
5178
  return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
5174
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
+ },
5175
5190
  };
5176
5191
  };
5177
5192
 
@@ -5217,6 +5232,18 @@ export class BulkApi extends BaseAPI {
5217
5232
  public bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) {
5218
5233
  return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
5219
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
+ }
5220
5247
  }
5221
5248
 
5222
5249
 
@@ -5963,13 +5990,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
5963
5990
  /**
5964
5991
  * Create custom deal restrictions
5965
5992
  * @summary Create custom deal restrictions
5966
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
5993
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
5967
5994
  * @param {*} [options] Override http request option.
5968
5995
  * @throws {RequiredError}
5969
5996
  */
5970
- createCustomDealRestrictions: async (customDealRestriction: CustomDealRestriction, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5971
- // verify required parameter 'customDealRestriction' is not null or undefined
5972
- assertParamExists('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction)
5997
+ createCustomDealRestrictions: async (customDealRestrictionRequest: CustomDealRestrictionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5998
+ // verify required parameter 'customDealRestrictionRequest' is not null or undefined
5999
+ assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest)
5973
6000
  const localVarPath = `/admins/custom-deals/restrictions`;
5974
6001
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5975
6002
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5993,87 +6020,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
5993
6020
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5994
6021
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5995
6022
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5996
- localVarRequestOptions.data = serializeDataIfNeeded(customDealRestriction, localVarRequestOptions, configuration)
5997
-
5998
- return {
5999
- url: toPathString(localVarUrlObj),
6000
- options: localVarRequestOptions,
6001
- };
6002
- },
6003
- /**
6004
- * Get custom deal min target value
6005
- * @summary Get custom deal min target value
6006
- * @param {string} startingAt start at
6007
- * @param {string} endingAt end at
6008
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6009
- * @param {Array<string>} beneficiaryValues beneficiary values
6010
- * @param {string} tagKey tag key
6011
- * @param {string} tagValue tag value
6012
- * @param {*} [options] Override http request option.
6013
- * @throws {RequiredError}
6014
- */
6015
- getCustomDealMinTargetValue: async (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6016
- // verify required parameter 'startingAt' is not null or undefined
6017
- assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt)
6018
- // verify required parameter 'endingAt' is not null or undefined
6019
- assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt)
6020
- // verify required parameter 'beneficiaryKind' is not null or undefined
6021
- assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind)
6022
- // verify required parameter 'beneficiaryValues' is not null or undefined
6023
- assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues)
6024
- // verify required parameter 'tagKey' is not null or undefined
6025
- assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey)
6026
- // verify required parameter 'tagValue' is not null or undefined
6027
- assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue)
6028
- const localVarPath = `/admins/custom-deals/min-target-value`;
6029
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6030
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6031
- let baseOptions;
6032
- if (configuration) {
6033
- baseOptions = configuration.baseOptions;
6034
- }
6035
-
6036
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6037
- const localVarHeaderParameter = {} as any;
6038
- const localVarQueryParameter = {} as any;
6039
-
6040
- // authentication systemJWT required
6041
- // http bearer authentication required
6042
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
6043
-
6044
- if (startingAt !== undefined) {
6045
- localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
6046
- (startingAt as any).toISOString() :
6047
- startingAt;
6048
- }
6049
-
6050
- if (endingAt !== undefined) {
6051
- localVarQueryParameter['endingAt'] = (endingAt as any instanceof Date) ?
6052
- (endingAt as any).toISOString() :
6053
- endingAt;
6054
- }
6055
-
6056
- if (beneficiaryKind !== undefined) {
6057
- localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
6058
- }
6059
-
6060
- if (beneficiaryValues) {
6061
- localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
6062
- }
6063
-
6064
- if (tagKey !== undefined) {
6065
- localVarQueryParameter['tagKey'] = tagKey;
6066
- }
6067
-
6068
- if (tagValue !== undefined) {
6069
- localVarQueryParameter['tagValue'] = tagValue;
6070
- }
6071
-
6072
-
6073
-
6074
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6075
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6076
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6023
+ localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration)
6077
6024
 
6078
6025
  return {
6079
6026
  url: toPathString(localVarUrlObj),
@@ -6127,28 +6074,12 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
6127
6074
  /**
6128
6075
  * Create custom deal restrictions
6129
6076
  * @summary Create custom deal restrictions
6130
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
6131
- * @param {*} [options] Override http request option.
6132
- * @throws {RequiredError}
6133
- */
6134
- async createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6135
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
6136
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6137
- },
6138
- /**
6139
- * Get custom deal min target value
6140
- * @summary Get custom deal min target value
6141
- * @param {string} startingAt start at
6142
- * @param {string} endingAt end at
6143
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6144
- * @param {Array<string>} beneficiaryValues beneficiary values
6145
- * @param {string} tagKey tag key
6146
- * @param {string} tagValue tag value
6077
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
6147
6078
  * @param {*} [options] Override http request option.
6148
6079
  * @throws {RequiredError}
6149
6080
  */
6150
- async getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
6151
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
6081
+ async createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6082
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
6152
6083
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6153
6084
  },
6154
6085
  /**
@@ -6174,27 +6105,12 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
6174
6105
  /**
6175
6106
  * Create custom deal restrictions
6176
6107
  * @summary Create custom deal restrictions
6177
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
6178
- * @param {*} [options] Override http request option.
6179
- * @throws {RequiredError}
6180
- */
6181
- createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void> {
6182
- return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
6183
- },
6184
- /**
6185
- * Get custom deal min target value
6186
- * @summary Get custom deal min target value
6187
- * @param {string} startingAt start at
6188
- * @param {string} endingAt end at
6189
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6190
- * @param {Array<string>} beneficiaryValues beneficiary values
6191
- * @param {string} tagKey tag key
6192
- * @param {string} tagValue tag value
6108
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
6193
6109
  * @param {*} [options] Override http request option.
6194
6110
  * @throws {RequiredError}
6195
6111
  */
6196
- getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
6197
- return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
6112
+ createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: any): AxiosPromise<void> {
6113
+ return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
6198
6114
  },
6199
6115
  /**
6200
6116
  * List custom deal restrictions
@@ -6218,30 +6134,13 @@ export class CustomDealsApi extends BaseAPI {
6218
6134
  /**
6219
6135
  * Create custom deal restrictions
6220
6136
  * @summary Create custom deal restrictions
6221
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
6222
- * @param {*} [options] Override http request option.
6223
- * @throws {RequiredError}
6224
- * @memberof CustomDealsApi
6225
- */
6226
- public createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) {
6227
- return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
6228
- }
6229
-
6230
- /**
6231
- * Get custom deal min target value
6232
- * @summary Get custom deal min target value
6233
- * @param {string} startingAt start at
6234
- * @param {string} endingAt end at
6235
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6236
- * @param {Array<string>} beneficiaryValues beneficiary values
6237
- * @param {string} tagKey tag key
6238
- * @param {string} tagValue tag value
6137
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
6239
6138
  * @param {*} [options] Override http request option.
6240
6139
  * @throws {RequiredError}
6241
6140
  * @memberof CustomDealsApi
6242
6141
  */
6243
- public getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) {
6244
- return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
6142
+ public createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig) {
6143
+ return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
6245
6144
  }
6246
6145
 
6247
6146
  /**
@@ -6707,6 +6606,40 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
6707
6606
  * @throws {RequiredError}
6708
6607
  */
6709
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> => {
6710
6643
  const localVarPath = `/users/preferences`;
6711
6644
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6712
6645
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6826,7 +6759,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
6826
6759
  updatePreferences: async (preferencesRequest: PreferencesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6827
6760
  // verify required parameter 'preferencesRequest' is not null or undefined
6828
6761
  assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest)
6829
- const localVarPath = `/users/preferences`;
6762
+ const localVarPath = `/admins/preferences`;
6830
6763
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6831
6764
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6832
6765
  let baseOptions;
@@ -6851,6 +6784,46 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
6851
6784
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6852
6785
  localVarRequestOptions.data = serializeDataIfNeeded(preferencesRequest, localVarRequestOptions, configuration)
6853
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
+
6854
6827
  return {
6855
6828
  url: toPathString(localVarUrlObj),
6856
6829
  options: localVarRequestOptions,
@@ -6898,6 +6871,16 @@ export const NotificationApiFp = function(configuration?: Configuration) {
6898
6871
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferences(options);
6899
6872
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6900
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
+ },
6901
6884
  /**
6902
6885
  * List paginated notifications
6903
6886
  * @summary List notifications
@@ -6932,6 +6915,17 @@ export const NotificationApiFp = function(configuration?: Configuration) {
6932
6915
  const localVarAxiosArgs = await localVarAxiosParamCreator.updatePreferences(preferencesRequest, options);
6933
6916
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6934
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
+ },
6935
6929
  }
6936
6930
  };
6937
6931
 
@@ -6971,6 +6965,15 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
6971
6965
  getPreferences(options?: any): AxiosPromise<Preferences> {
6972
6966
  return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
6973
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
+ },
6974
6977
  /**
6975
6978
  * List paginated notifications
6976
6979
  * @summary List notifications
@@ -7002,6 +7005,16 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
7002
7005
  updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void> {
7003
7006
  return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
7004
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
+ },
7005
7018
  };
7006
7019
  };
7007
7020
 
@@ -7047,6 +7060,17 @@ export class NotificationApi extends BaseAPI {
7047
7060
  return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
7048
7061
  }
7049
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
+
7050
7074
  /**
7051
7075
  * List paginated notifications
7052
7076
  * @summary List notifications
@@ -7083,6 +7107,18 @@ export class NotificationApi extends BaseAPI {
7083
7107
  public updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) {
7084
7108
  return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
7085
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
+ }
7086
7122
  }
7087
7123
 
7088
7124
 
@@ -7093,44 +7129,6 @@ export class NotificationApi extends BaseAPI {
7093
7129
  */
7094
7130
  export const OrderApiAxiosParamCreator = function (configuration?: Configuration) {
7095
7131
  return {
7096
- /**
7097
- * Create a product order. If successful the value of the product will be deducted from the used balance.
7098
- * @summary Create an order for a product
7099
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7100
- * @param {*} [options] Override http request option.
7101
- * @throws {RequiredError}
7102
- */
7103
- createAdminOrder: async (adminOrderCreationRequest?: AdminOrderCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7104
- const localVarPath = `/admins/orders`;
7105
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7106
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7107
- let baseOptions;
7108
- if (configuration) {
7109
- baseOptions = configuration.baseOptions;
7110
- }
7111
-
7112
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7113
- const localVarHeaderParameter = {} as any;
7114
- const localVarQueryParameter = {} as any;
7115
-
7116
- // authentication systemJWT required
7117
- // http bearer authentication required
7118
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7119
-
7120
-
7121
-
7122
- localVarHeaderParameter['Content-Type'] = 'application/json';
7123
-
7124
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7125
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7126
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7127
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration)
7128
-
7129
- return {
7130
- url: toPathString(localVarUrlObj),
7131
- options: localVarRequestOptions,
7132
- };
7133
- },
7134
7132
  /**
7135
7133
  * Create a product order. If successful the value of the product will be deducted from the used balance.
7136
7134
  * @summary Create an order for a product
@@ -7256,12 +7254,10 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
7256
7254
  * @param {string} [createdBefore] Filter orders created before the specified date
7257
7255
  * @param {Array<string>} [userIDs] Filter by user ids
7258
7256
  * @param {Array<string>} [clientIDs] Filter by client ids
7259
- * @param {OrderKind} [kind] Filter by kind
7260
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7261
7257
  * @param {*} [options] Override http request option.
7262
7258
  * @throws {RequiredError}
7263
7259
  */
7264
- listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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> => {
7265
7261
  const localVarPath = `/admins/orders`;
7266
7262
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7267
7263
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7314,14 +7310,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
7314
7310
  localVarQueryParameter['clientIDs'] = clientIDs;
7315
7311
  }
7316
7312
 
7317
- if (kind !== undefined) {
7318
- localVarQueryParameter['kind'] = kind;
7319
- }
7320
-
7321
- if (source !== undefined) {
7322
- localVarQueryParameter['source'] = source;
7323
- }
7324
-
7325
7313
 
7326
7314
 
7327
7315
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7416,17 +7404,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
7416
7404
  export const OrderApiFp = function(configuration?: Configuration) {
7417
7405
  const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration)
7418
7406
  return {
7419
- /**
7420
- * Create a product order. If successful the value of the product will be deducted from the used balance.
7421
- * @summary Create an order for a product
7422
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7423
- * @param {*} [options] Override http request option.
7424
- * @throws {RequiredError}
7425
- */
7426
- async createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
7427
- const localVarAxiosArgs = await localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
7428
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7429
- },
7430
7407
  /**
7431
7408
  * Create a product order. If successful the value of the product will be deducted from the used balance.
7432
7409
  * @summary Create an order for a product
@@ -7471,13 +7448,11 @@ export const OrderApiFp = function(configuration?: Configuration) {
7471
7448
  * @param {string} [createdBefore] Filter orders created before the specified date
7472
7449
  * @param {Array<string>} [userIDs] Filter by user ids
7473
7450
  * @param {Array<string>} [clientIDs] Filter by client ids
7474
- * @param {OrderKind} [kind] Filter by kind
7475
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7476
7451
  * @param {*} [options] Override http request option.
7477
7452
  * @throws {RequiredError}
7478
7453
  */
7479
- async listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
7480
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options);
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);
7481
7456
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7482
7457
  },
7483
7458
  /**
@@ -7507,16 +7482,6 @@ export const OrderApiFp = function(configuration?: Configuration) {
7507
7482
  export const OrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7508
7483
  const localVarFp = OrderApiFp(configuration)
7509
7484
  return {
7510
- /**
7511
- * Create a product order. If successful the value of the product will be deducted from the used balance.
7512
- * @summary Create an order for a product
7513
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7514
- * @param {*} [options] Override http request option.
7515
- * @throws {RequiredError}
7516
- */
7517
- createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: any): AxiosPromise<Order> {
7518
- return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
7519
- },
7520
7485
  /**
7521
7486
  * Create a product order. If successful the value of the product will be deducted from the used balance.
7522
7487
  * @summary Create an order for a product
@@ -7558,13 +7523,11 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
7558
7523
  * @param {string} [createdBefore] Filter orders created before the specified date
7559
7524
  * @param {Array<string>} [userIDs] Filter by user ids
7560
7525
  * @param {Array<string>} [clientIDs] Filter by client ids
7561
- * @param {OrderKind} [kind] Filter by kind
7562
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7563
7526
  * @param {*} [options] Override http request option.
7564
7527
  * @throws {RequiredError}
7565
7528
  */
7566
- listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: any): AxiosPromise<OrderListResponse> {
7567
- return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(axios, basePath));
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));
7568
7531
  },
7569
7532
  /**
7570
7533
  * List existing orders
@@ -7592,18 +7555,6 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
7592
7555
  * @extends {BaseAPI}
7593
7556
  */
7594
7557
  export class OrderApi extends BaseAPI {
7595
- /**
7596
- * Create a product order. If successful the value of the product will be deducted from the used balance.
7597
- * @summary Create an order for a product
7598
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7599
- * @param {*} [options] Override http request option.
7600
- * @throws {RequiredError}
7601
- * @memberof OrderApi
7602
- */
7603
- public createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig) {
7604
- return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
7605
- }
7606
-
7607
7558
  /**
7608
7559
  * Create a product order. If successful the value of the product will be deducted from the used balance.
7609
7560
  * @summary Create an order for a product
@@ -7651,14 +7602,12 @@ export class OrderApi extends BaseAPI {
7651
7602
  * @param {string} [createdBefore] Filter orders created before the specified date
7652
7603
  * @param {Array<string>} [userIDs] Filter by user ids
7653
7604
  * @param {Array<string>} [clientIDs] Filter by client ids
7654
- * @param {OrderKind} [kind] Filter by kind
7655
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7656
7605
  * @param {*} [options] Override http request option.
7657
7606
  * @throws {RequiredError}
7658
7607
  * @memberof OrderApi
7659
7608
  */
7660
- public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig) {
7661
- return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(this.axios, this.basePath));
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));
7662
7611
  }
7663
7612
 
7664
7613
  /**