flexinet-api 0.0.1298-prerelease0 → 0.0.1303

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.d.ts CHANGED
@@ -13,25 +13,6 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
- /**
17
- *
18
- * @export
19
- * @interface AdminOrderCreationRequest
20
- */
21
- export interface AdminOrderCreationRequest {
22
- /**
23
- *
24
- * @type {Array<OrderItemCreationRequest>}
25
- * @memberof AdminOrderCreationRequest
26
- */
27
- 'items': Array<OrderItemCreationRequest>;
28
- /**
29
- *
30
- * @type {Beneficiary}
31
- * @memberof AdminOrderCreationRequest
32
- */
33
- 'beneficiary'?: Beneficiary;
34
- }
35
16
  /**
36
17
  *
37
18
  * @export
@@ -200,12 +181,6 @@ export interface Balance {
200
181
  * @memberof Balance
201
182
  */
202
183
  'beneficiary': Beneficiary;
203
- /**
204
- *
205
- * @type {TransactionCurrencyKind}
206
- * @memberof Balance
207
- */
208
- 'currency': TransactionCurrencyKind;
209
184
  }
210
185
  /**
211
186
  *
@@ -230,13 +205,7 @@ export interface BalanceUpdateRequest {
230
205
  * @type {TransactionKind}
231
206
  * @memberof BalanceUpdateRequest
232
207
  */
233
- 'transactionKind': TransactionKind;
234
- /**
235
- *
236
- * @type {TransactionCurrencyKind}
237
- * @memberof BalanceUpdateRequest
238
- */
239
- 'currency'?: TransactionCurrencyKind;
208
+ 'transactionKind'?: TransactionKind;
240
209
  }
241
210
  /**
242
211
  *
@@ -262,12 +231,6 @@ export interface BalanceWithBeneficiaryRef {
262
231
  * @memberof BalanceWithBeneficiaryRef
263
232
  */
264
233
  'beneficiaryRef': BeneficiaryWithRef;
265
- /**
266
- *
267
- * @type {TransactionCurrencyKind}
268
- * @memberof BalanceWithBeneficiaryRef
269
- */
270
- 'currency': TransactionCurrencyKind;
271
234
  }
272
235
  /**
273
236
  *
@@ -394,7 +357,7 @@ export interface CallbackBeneficiaryDetails {
394
357
  * @type {string}
395
358
  * @memberof CallbackBeneficiaryDetails
396
359
  */
397
- 'clientReference': string;
360
+ 'clientReference'?: string;
398
361
  /**
399
362
  *
400
363
  * @type {BeneficiaryKind}
@@ -406,7 +369,7 @@ export interface CallbackBeneficiaryDetails {
406
369
  * @type {string}
407
370
  * @memberof CallbackBeneficiaryDetails
408
371
  */
409
- 'userReference'?: string;
372
+ 'userReference': string;
410
373
  }
411
374
  /**
412
375
  * @type CallbackEvent
@@ -597,6 +560,12 @@ export interface Client {
597
560
  * @memberof Client
598
561
  */
599
562
  'isSuspended'?: boolean;
563
+ /**
564
+ *
565
+ * @type {boolean}
566
+ * @memberof Client
567
+ */
568
+ 'isExcluded'?: boolean;
600
569
  }
601
570
  /**
602
571
  *
@@ -662,6 +631,25 @@ export interface ClientListResponse {
662
631
  */
663
632
  'hasMore': boolean;
664
633
  }
634
+ /**
635
+ *
636
+ * @export
637
+ * @interface ClientUpdateRequest
638
+ */
639
+ export interface ClientUpdateRequest {
640
+ /**
641
+ *
642
+ * @type {string}
643
+ * @memberof ClientUpdateRequest
644
+ */
645
+ 'referenceId': string;
646
+ /**
647
+ *
648
+ * @type {boolean}
649
+ * @memberof ClientUpdateRequest
650
+ */
651
+ 'isExcluded': boolean;
652
+ }
665
653
  /**
666
654
  *
667
655
  * @export
@@ -675,6 +663,19 @@ export interface ClientsBulkCreationRequest {
675
663
  */
676
664
  'clients': Array<ClientCreationRequest>;
677
665
  }
666
+ /**
667
+ *
668
+ * @export
669
+ * @interface ClientsBulkUpdateRequest
670
+ */
671
+ export interface ClientsBulkUpdateRequest {
672
+ /**
673
+ *
674
+ * @type {Array<ClientUpdateRequest>}
675
+ * @memberof ClientsBulkUpdateRequest
676
+ */
677
+ 'clients': Array<ClientUpdateRequest>;
678
+ }
678
679
  /**
679
680
  *
680
681
  * @export
@@ -689,25 +690,52 @@ export type Condition = typeof Condition[keyof typeof Condition];
689
690
  /**
690
691
  *
691
692
  * @export
692
- * @interface CustomDealMinTargetValueResponse
693
+ * @interface CustomDealRestriction
693
694
  */
694
- export interface CustomDealMinTargetValueResponse {
695
+ export interface CustomDealRestriction {
696
+ /**
697
+ *
698
+ * @type {string}
699
+ * @memberof CustomDealRestriction
700
+ */
701
+ 'tagKey': string;
702
+ /**
703
+ *
704
+ * @type {string}
705
+ * @memberof CustomDealRestriction
706
+ */
707
+ 'tagValue': string;
695
708
  /**
696
709
  *
697
710
  * @type {number}
698
- * @memberof CustomDealMinTargetValueResponse
711
+ * @memberof CustomDealRestriction
712
+ */
713
+ 'minTurnoverPercent': number;
714
+ /**
715
+ *
716
+ * @type {CustomDealRestrictionPriority}
717
+ * @memberof CustomDealRestriction
699
718
  */
700
- 'minTargetValue': number;
719
+ 'priority': CustomDealRestrictionPriority;
720
+ /**
721
+ *
722
+ * @type {number}
723
+ * @memberof CustomDealRestriction
724
+ */
725
+ 'points': number;
726
+ /**
727
+ *
728
+ * @type {string}
729
+ * @memberof CustomDealRestriction
730
+ */
731
+ 'createdAt': string;
732
+ /**
733
+ *
734
+ * @type {string}
735
+ * @memberof CustomDealRestriction
736
+ */
737
+ 'updatedAt': string;
701
738
  }
702
- /**
703
- * @type CustomDealRestriction
704
- * @export
705
- */
706
- export type CustomDealRestriction = {
707
- kind: 'minTurnover';
708
- } & MinTurnoverRestriction | {
709
- kind: 'required';
710
- } & RequiredRestriction;
711
739
  /**
712
740
  *
713
741
  * @export
@@ -719,6 +747,43 @@ export declare const CustomDealRestrictionPriority: {
719
747
  readonly High: "high";
720
748
  };
721
749
  export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
750
+ /**
751
+ *
752
+ * @export
753
+ * @interface CustomDealRestrictionRequest
754
+ */
755
+ export interface CustomDealRestrictionRequest {
756
+ /**
757
+ *
758
+ * @type {string}
759
+ * @memberof CustomDealRestrictionRequest
760
+ */
761
+ 'tagKey': string;
762
+ /**
763
+ *
764
+ * @type {string}
765
+ * @memberof CustomDealRestrictionRequest
766
+ */
767
+ 'tagValue': string;
768
+ /**
769
+ *
770
+ * @type {number}
771
+ * @memberof CustomDealRestrictionRequest
772
+ */
773
+ 'minTurnoverPercent': number;
774
+ /**
775
+ *
776
+ * @type {CustomDealRestrictionPriority}
777
+ * @memberof CustomDealRestrictionRequest
778
+ */
779
+ 'priority': CustomDealRestrictionPriority;
780
+ /**
781
+ *
782
+ * @type {number}
783
+ * @memberof CustomDealRestrictionRequest
784
+ */
785
+ 'points': number;
786
+ }
722
787
  /**
723
788
  *
724
789
  * @export
@@ -841,9 +906,10 @@ export interface Item {
841
906
  * @enum {string}
842
907
  */
843
908
  export declare const Locale: {
844
- readonly EnUs: "en-us";
845
- readonly RoRo: "ro-ro";
846
- readonly HuHu: "hu-hu";
909
+ readonly EnUs: "en-US";
910
+ readonly RoRo: "ro-RO";
911
+ readonly HuHu: "hu-HU";
912
+ readonly DeDe: "de-DE";
847
913
  };
848
914
  export type Locale = typeof Locale[keyof typeof Locale];
849
915
  /**
@@ -907,6 +973,12 @@ export interface MetricsAggregation {
907
973
  * @memberof MetricsAggregation
908
974
  */
909
975
  'total': MetricsCollection;
976
+ /**
977
+ *
978
+ * @type {string}
979
+ * @memberof MetricsAggregation
980
+ */
981
+ 'updatedAt'?: string;
910
982
  }
911
983
  /**
912
984
  *
@@ -927,66 +999,6 @@ export interface MetricsCollection {
927
999
  */
928
1000
  'total': Metrics;
929
1001
  }
930
- /**
931
- *
932
- * @export
933
- * @interface MinTurnoverRestriction
934
- */
935
- export interface MinTurnoverRestriction {
936
- /**
937
- *
938
- * @type {string}
939
- * @memberof MinTurnoverRestriction
940
- */
941
- 'kind': MinTurnoverRestrictionKindEnum;
942
- /**
943
- *
944
- * @type {Array<MinTurnoverRestrictionValue>}
945
- * @memberof MinTurnoverRestriction
946
- */
947
- 'values': Array<MinTurnoverRestrictionValue>;
948
- }
949
- export declare const MinTurnoverRestrictionKindEnum: {
950
- readonly MinTurnover: "minTurnover";
951
- };
952
- export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
953
- /**
954
- *
955
- * @export
956
- * @interface MinTurnoverRestrictionValue
957
- */
958
- export interface MinTurnoverRestrictionValue {
959
- /**
960
- *
961
- * @type {string}
962
- * @memberof MinTurnoverRestrictionValue
963
- */
964
- 'tagKey': string;
965
- /**
966
- *
967
- * @type {string}
968
- * @memberof MinTurnoverRestrictionValue
969
- */
970
- 'tagValue': string;
971
- /**
972
- *
973
- * @type {number}
974
- * @memberof MinTurnoverRestrictionValue
975
- */
976
- 'minTurnoverPercent': number;
977
- /**
978
- *
979
- * @type {CustomDealRestrictionPriority}
980
- * @memberof MinTurnoverRestrictionValue
981
- */
982
- 'priority': CustomDealRestrictionPriority;
983
- /**
984
- *
985
- * @type {number}
986
- * @memberof MinTurnoverRestrictionValue
987
- */
988
- 'points': number;
989
- }
990
1002
  /**
991
1003
  *
992
1004
  * @export
@@ -1237,12 +1249,6 @@ export interface Order {
1237
1249
  * @memberof Order
1238
1250
  */
1239
1251
  'status'?: OrderStatus;
1240
- /**
1241
- *
1242
- * @type {string}
1243
- * @memberof Order
1244
- */
1245
- 'clientID'?: string;
1246
1252
  }
1247
1253
  /**
1248
1254
  *
@@ -1290,7 +1296,6 @@ export interface OrderItemCreationRequest {
1290
1296
  export declare const OrderKind: {
1291
1297
  readonly Webshop: "webshop";
1292
1298
  readonly Promotions: "promotions";
1293
- readonly SalesBudget: "sales_budget";
1294
1299
  };
1295
1300
  export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
1296
1301
  /**
@@ -1412,6 +1417,12 @@ export interface Preferences {
1412
1417
  * @memberof Preferences
1413
1418
  */
1414
1419
  'promotionConfig': PromotionConfig;
1420
+ /**
1421
+ *
1422
+ * @type {Locale}
1423
+ * @memberof Preferences
1424
+ */
1425
+ 'locale'?: Locale;
1415
1426
  }
1416
1427
  /**
1417
1428
  *
@@ -1425,12 +1436,6 @@ export interface PreferencesRequest {
1425
1436
  * @memberof PreferencesRequest
1426
1437
  */
1427
1438
  'preferredLocale'?: Locale;
1428
- /**
1429
- *
1430
- * @type {Array<NotificationPreference>}
1431
- * @memberof PreferencesRequest
1432
- */
1433
- 'notificationPreferences': Array<NotificationPreference>;
1434
1439
  }
1435
1440
  /**
1436
1441
  *
@@ -1920,6 +1925,12 @@ export interface Profile {
1920
1925
  * @interface Progress
1921
1926
  */
1922
1927
  export interface Progress {
1928
+ /**
1929
+ *
1930
+ * @type {string}
1931
+ * @memberof Progress
1932
+ */
1933
+ 'promotionId': string;
1923
1934
  /**
1924
1935
  *
1925
1936
  * @type {string}
@@ -1928,10 +1939,10 @@ export interface Progress {
1928
1939
  'id': string;
1929
1940
  /**
1930
1941
  *
1931
- * @type {number}
1942
+ * @type {string}
1932
1943
  * @memberof Progress
1933
1944
  */
1934
- 'value': number;
1945
+ 'value': string;
1935
1946
  /**
1936
1947
  *
1937
1948
  * @type {string}
@@ -1940,11 +1951,11 @@ export interface Progress {
1940
1951
  'value_mu': string;
1941
1952
  /**
1942
1953
  *
1943
- * @type {{ [key: string]: number; }}
1954
+ * @type {{ [key: string]: string; }}
1944
1955
  * @memberof Progress
1945
1956
  */
1946
1957
  'value_detailed'?: {
1947
- [key: string]: number;
1958
+ [key: string]: string;
1948
1959
  };
1949
1960
  /**
1950
1961
  *
@@ -2180,12 +2191,6 @@ export interface Promotion {
2180
2191
  * @memberof Promotion
2181
2192
  */
2182
2193
  'status'?: PromotionStatus;
2183
- /**
2184
- *
2185
- * @type {string}
2186
- * @memberof Promotion
2187
- */
2188
- 'reference'?: string;
2189
2194
  }
2190
2195
  /**
2191
2196
  * @type PromotionBeneficiariesResponse
@@ -2400,18 +2405,6 @@ export interface PromotionRequest {
2400
2405
  * @memberof PromotionRequest
2401
2406
  */
2402
2407
  'notificationConfig'?: PromotionNotificationConfig;
2403
- /**
2404
- *
2405
- * @type {PromotionType}
2406
- * @memberof PromotionRequest
2407
- */
2408
- 'type'?: PromotionType;
2409
- /**
2410
- *
2411
- * @type {string}
2412
- * @memberof PromotionRequest
2413
- */
2414
- 'reference'?: string;
2415
2408
  }
2416
2409
  /**
2417
2410
  *
@@ -2586,29 +2579,6 @@ export declare const ReportTypesResponseTypesEnum: {
2586
2579
  readonly PromotionExpanded: "promotion_expanded";
2587
2580
  };
2588
2581
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
2589
- /**
2590
- *
2591
- * @export
2592
- * @interface RequiredRestriction
2593
- */
2594
- export interface RequiredRestriction {
2595
- /**
2596
- *
2597
- * @type {string}
2598
- * @memberof RequiredRestriction
2599
- */
2600
- 'kind': RequiredRestrictionKindEnum;
2601
- /**
2602
- *
2603
- * @type {Array<string>}
2604
- * @memberof RequiredRestriction
2605
- */
2606
- 'tagKeys': Array<string>;
2607
- }
2608
- export declare const RequiredRestrictionKindEnum: {
2609
- readonly Required: "required";
2610
- };
2611
- export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
2612
2582
  /**
2613
2583
  * @type Rule
2614
2584
  * @export
@@ -3359,10 +3329,10 @@ export interface Tenant {
3359
3329
  'azureEntraClientID': string;
3360
3330
  /**
3361
3331
  *
3362
- * @type {string}
3332
+ * @type {Locale}
3363
3333
  * @memberof Tenant
3364
3334
  */
3365
- 'locale': string;
3335
+ 'locale': Locale;
3366
3336
  }
3367
3337
  /**
3368
3338
  *
@@ -3406,24 +3376,7 @@ export interface Transaction {
3406
3376
  * @memberof Transaction
3407
3377
  */
3408
3378
  'createdAt': string;
3409
- /**
3410
- *
3411
- * @type {TransactionCurrencyKind}
3412
- * @memberof Transaction
3413
- */
3414
- 'currency': TransactionCurrencyKind;
3415
3379
  }
3416
- /**
3417
- *
3418
- * @export
3419
- * @enum {string}
3420
- */
3421
- export declare const TransactionCurrencyKind: {
3422
- readonly Points: "points";
3423
- readonly CustomDealBudget: "customDealBudget";
3424
- readonly SalesBudget: "salesBudget";
3425
- };
3426
- export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
3427
3380
  /**
3428
3381
  *
3429
3382
  * @export
@@ -3533,14 +3486,13 @@ export declare const TransactionSource: {
3533
3486
  readonly Manual: "manual";
3534
3487
  readonly Expiry: "expiry";
3535
3488
  readonly Transfer: "transfer";
3536
- readonly SalesBudget: "sales_budget";
3537
3489
  };
3538
3490
  export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
3539
3491
  /**
3540
3492
  * @type TransactionSourceReference
3541
3493
  * @export
3542
3494
  */
3543
- export type TransactionSourceReference = BalanceWithBeneficiaryRef | PeriodPromotion | User | UserOrder;
3495
+ export type TransactionSourceReference = BalanceWithBeneficiaryRef | Order | PeriodPromotion | User;
3544
3496
  /**
3545
3497
  *
3546
3498
  * @export
@@ -3676,12 +3628,6 @@ export interface UpdatePromotionRequest {
3676
3628
  * @memberof UpdatePromotionRequest
3677
3629
  */
3678
3630
  'notificationConfig'?: PromotionNotificationConfig;
3679
- /**
3680
- *
3681
- * @type {string}
3682
- * @memberof UpdatePromotionRequest
3683
- */
3684
- 'reference'?: string;
3685
3631
  }
3686
3632
  /**
3687
3633
  *
@@ -3897,7 +3843,7 @@ export interface UserOrder {
3897
3843
  * @type {string}
3898
3844
  * @memberof UserOrder
3899
3845
  */
3900
- 'source': string;
3846
+ 'source'?: string;
3901
3847
  /**
3902
3848
  *
3903
3849
  * @type {string}
@@ -3906,10 +3852,10 @@ export interface UserOrder {
3906
3852
  'userID'?: string;
3907
3853
  /**
3908
3854
  *
3909
- * @type {string}
3855
+ * @type {OrderStatus}
3910
3856
  * @memberof UserOrder
3911
3857
  */
3912
- 'clientID': string;
3858
+ 'status'?: OrderStatus;
3913
3859
  }
3914
3860
  /**
3915
3861
  *
@@ -3930,6 +3876,25 @@ export interface UserOrderListResponse {
3930
3876
  */
3931
3877
  'nextToken'?: string;
3932
3878
  }
3879
+ /**
3880
+ *
3881
+ * @export
3882
+ * @interface UserPreferencesRequest
3883
+ */
3884
+ export interface UserPreferencesRequest {
3885
+ /**
3886
+ *
3887
+ * @type {Locale}
3888
+ * @memberof UserPreferencesRequest
3889
+ */
3890
+ 'preferredLocale'?: Locale;
3891
+ /**
3892
+ *
3893
+ * @type {Array<NotificationPreference>}
3894
+ * @memberof UserPreferencesRequest
3895
+ */
3896
+ 'notificationPreferences': Array<NotificationPreference>;
3897
+ }
3933
3898
  /**
3934
3899
  *
3935
3900
  * @export
@@ -4501,6 +4466,14 @@ export declare const BulkApiAxiosParamCreator: (configuration?: Configuration) =
4501
4466
  * @throws {RequiredError}
4502
4467
  */
4503
4468
  bulkCreateTags: (tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4469
+ /**
4470
+ * Update multiple clients
4471
+ * @summary Update multiple clients
4472
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
4473
+ * @param {*} [options] Override http request option.
4474
+ * @throws {RequiredError}
4475
+ */
4476
+ bulkUpdateClients: (clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4504
4477
  };
4505
4478
  /**
4506
4479
  * BulkApi - functional programming interface
@@ -4531,6 +4504,14 @@ export declare const BulkApiFp: (configuration?: Configuration) => {
4531
4504
  * @throws {RequiredError}
4532
4505
  */
4533
4506
  bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagDetailed>>>;
4507
+ /**
4508
+ * Update multiple clients
4509
+ * @summary Update multiple clients
4510
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
4511
+ * @param {*} [options] Override http request option.
4512
+ * @throws {RequiredError}
4513
+ */
4514
+ bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>>;
4534
4515
  };
4535
4516
  /**
4536
4517
  * BulkApi - factory interface
@@ -4561,6 +4542,14 @@ export declare const BulkApiFactory: (configuration?: Configuration, basePath?:
4561
4542
  * @throws {RequiredError}
4562
4543
  */
4563
4544
  bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>>;
4545
+ /**
4546
+ * Update multiple clients
4547
+ * @summary Update multiple clients
4548
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
4549
+ * @param {*} [options] Override http request option.
4550
+ * @throws {RequiredError}
4551
+ */
4552
+ bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: any): AxiosPromise<Array<Client>>;
4564
4553
  };
4565
4554
  /**
4566
4555
  * BulkApi - object-oriented interface
@@ -4596,6 +4585,15 @@ export declare class BulkApi extends BaseAPI {
4596
4585
  * @memberof BulkApi
4597
4586
  */
4598
4587
  bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TagDetailed[], any>>;
4588
+ /**
4589
+ * Update multiple clients
4590
+ * @summary Update multiple clients
4591
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
4592
+ * @param {*} [options] Override http request option.
4593
+ * @throws {RequiredError}
4594
+ * @memberof BulkApi
4595
+ */
4596
+ bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Client[], any>>;
4599
4597
  }
4600
4598
  /**
4601
4599
  * CategoryApi - axios parameter creator
@@ -4963,24 +4961,11 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
4963
4961
  /**
4964
4962
  * Create custom deal restrictions
4965
4963
  * @summary Create custom deal restrictions
4966
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
4967
- * @param {*} [options] Override http request option.
4968
- * @throws {RequiredError}
4969
- */
4970
- createCustomDealRestrictions: (customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4971
- /**
4972
- * Get custom deal min target value
4973
- * @summary Get custom deal min target value
4974
- * @param {string} startingAt start at
4975
- * @param {string} endingAt end at
4976
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
4977
- * @param {Array<string>} beneficiaryValues beneficiary values
4978
- * @param {string} tagKey tag key
4979
- * @param {string} tagValue tag value
4964
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
4980
4965
  * @param {*} [options] Override http request option.
4981
4966
  * @throws {RequiredError}
4982
4967
  */
4983
- getCustomDealMinTargetValue: (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4968
+ createCustomDealRestrictions: (customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4984
4969
  /**
4985
4970
  * List custom deal restrictions
4986
4971
  * @summary List custom deal restrictions
@@ -4997,24 +4982,11 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
4997
4982
  /**
4998
4983
  * Create custom deal restrictions
4999
4984
  * @summary Create custom deal restrictions
5000
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
5001
- * @param {*} [options] Override http request option.
5002
- * @throws {RequiredError}
5003
- */
5004
- createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5005
- /**
5006
- * Get custom deal min target value
5007
- * @summary Get custom deal min target value
5008
- * @param {string} startingAt start at
5009
- * @param {string} endingAt end at
5010
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5011
- * @param {Array<string>} beneficiaryValues beneficiary values
5012
- * @param {string} tagKey tag key
5013
- * @param {string} tagValue tag value
4985
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
5014
4986
  * @param {*} [options] Override http request option.
5015
4987
  * @throws {RequiredError}
5016
4988
  */
5017
- getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
4989
+ createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5018
4990
  /**
5019
4991
  * List custom deal restrictions
5020
4992
  * @summary List custom deal restrictions
@@ -5031,24 +5003,11 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
5031
5003
  /**
5032
5004
  * Create custom deal restrictions
5033
5005
  * @summary Create custom deal restrictions
5034
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
5035
- * @param {*} [options] Override http request option.
5036
- * @throws {RequiredError}
5037
- */
5038
- createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void>;
5039
- /**
5040
- * Get custom deal min target value
5041
- * @summary Get custom deal min target value
5042
- * @param {string} startingAt start at
5043
- * @param {string} endingAt end at
5044
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5045
- * @param {Array<string>} beneficiaryValues beneficiary values
5046
- * @param {string} tagKey tag key
5047
- * @param {string} tagValue tag value
5006
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
5048
5007
  * @param {*} [options] Override http request option.
5049
5008
  * @throws {RequiredError}
5050
5009
  */
5051
- getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
5010
+ createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: any): AxiosPromise<void>;
5052
5011
  /**
5053
5012
  * List custom deal restrictions
5054
5013
  * @summary List custom deal restrictions
@@ -5067,26 +5026,12 @@ export declare class CustomDealsApi extends BaseAPI {
5067
5026
  /**
5068
5027
  * Create custom deal restrictions
5069
5028
  * @summary Create custom deal restrictions
5070
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
5071
- * @param {*} [options] Override http request option.
5072
- * @throws {RequiredError}
5073
- * @memberof CustomDealsApi
5074
- */
5075
- createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
5076
- /**
5077
- * Get custom deal min target value
5078
- * @summary Get custom deal min target value
5079
- * @param {string} startingAt start at
5080
- * @param {string} endingAt end at
5081
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5082
- * @param {Array<string>} beneficiaryValues beneficiary values
5083
- * @param {string} tagKey tag key
5084
- * @param {string} tagValue tag value
5029
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
5085
5030
  * @param {*} [options] Override http request option.
5086
5031
  * @throws {RequiredError}
5087
5032
  * @memberof CustomDealsApi
5088
5033
  */
5089
- getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
5034
+ createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
5090
5035
  /**
5091
5036
  * List custom deal restrictions
5092
5037
  * @summary List custom deal restrictions
@@ -5304,6 +5249,13 @@ export declare const NotificationApiAxiosParamCreator: (configuration?: Configur
5304
5249
  * @throws {RequiredError}
5305
5250
  */
5306
5251
  getPreferences: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
5252
+ /**
5253
+ * Get preferences for the authenticated user
5254
+ * @summary Get preferences
5255
+ * @param {*} [options] Override http request option.
5256
+ * @throws {RequiredError}
5257
+ */
5258
+ getUserPreferences: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
5307
5259
  /**
5308
5260
  * List paginated notifications
5309
5261
  * @summary List notifications
@@ -5329,6 +5281,14 @@ export declare const NotificationApiAxiosParamCreator: (configuration?: Configur
5329
5281
  * @throws {RequiredError}
5330
5282
  */
5331
5283
  updatePreferences: (preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5284
+ /**
5285
+ * Update preferences for the authenticated user
5286
+ * @summary Update preferences
5287
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5288
+ * @param {*} [options] Override http request option.
5289
+ * @throws {RequiredError}
5290
+ */
5291
+ updateUserPreferences: (userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5332
5292
  };
5333
5293
  /**
5334
5294
  * NotificationApi - functional programming interface
@@ -5358,6 +5318,13 @@ export declare const NotificationApiFp: (configuration?: Configuration) => {
5358
5318
  * @throws {RequiredError}
5359
5319
  */
5360
5320
  getPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>>;
5321
+ /**
5322
+ * Get preferences for the authenticated user
5323
+ * @summary Get preferences
5324
+ * @param {*} [options] Override http request option.
5325
+ * @throws {RequiredError}
5326
+ */
5327
+ getUserPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>>;
5361
5328
  /**
5362
5329
  * List paginated notifications
5363
5330
  * @summary List notifications
@@ -5383,6 +5350,14 @@ export declare const NotificationApiFp: (configuration?: Configuration) => {
5383
5350
  * @throws {RequiredError}
5384
5351
  */
5385
5352
  updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5353
+ /**
5354
+ * Update preferences for the authenticated user
5355
+ * @summary Update preferences
5356
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5357
+ * @param {*} [options] Override http request option.
5358
+ * @throws {RequiredError}
5359
+ */
5360
+ updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5386
5361
  };
5387
5362
  /**
5388
5363
  * NotificationApi - factory interface
@@ -5412,6 +5387,13 @@ export declare const NotificationApiFactory: (configuration?: Configuration, bas
5412
5387
  * @throws {RequiredError}
5413
5388
  */
5414
5389
  getPreferences(options?: any): AxiosPromise<Preferences>;
5390
+ /**
5391
+ * Get preferences for the authenticated user
5392
+ * @summary Get preferences
5393
+ * @param {*} [options] Override http request option.
5394
+ * @throws {RequiredError}
5395
+ */
5396
+ getUserPreferences(options?: any): AxiosPromise<Preferences>;
5415
5397
  /**
5416
5398
  * List paginated notifications
5417
5399
  * @summary List notifications
@@ -5437,6 +5419,14 @@ export declare const NotificationApiFactory: (configuration?: Configuration, bas
5437
5419
  * @throws {RequiredError}
5438
5420
  */
5439
5421
  updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void>;
5422
+ /**
5423
+ * Update preferences for the authenticated user
5424
+ * @summary Update preferences
5425
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5426
+ * @param {*} [options] Override http request option.
5427
+ * @throws {RequiredError}
5428
+ */
5429
+ updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: any): AxiosPromise<void>;
5440
5430
  };
5441
5431
  /**
5442
5432
  * NotificationApi - object-oriented interface
@@ -5471,6 +5461,14 @@ export declare class NotificationApi extends BaseAPI {
5471
5461
  * @memberof NotificationApi
5472
5462
  */
5473
5463
  getPreferences(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Preferences, any>>;
5464
+ /**
5465
+ * Get preferences for the authenticated user
5466
+ * @summary Get preferences
5467
+ * @param {*} [options] Override http request option.
5468
+ * @throws {RequiredError}
5469
+ * @memberof NotificationApi
5470
+ */
5471
+ getUserPreferences(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Preferences, any>>;
5474
5472
  /**
5475
5473
  * List paginated notifications
5476
5474
  * @summary List notifications
@@ -5499,20 +5497,21 @@ export declare class NotificationApi extends BaseAPI {
5499
5497
  * @memberof NotificationApi
5500
5498
  */
5501
5499
  updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
5500
+ /**
5501
+ * Update preferences for the authenticated user
5502
+ * @summary Update preferences
5503
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5504
+ * @param {*} [options] Override http request option.
5505
+ * @throws {RequiredError}
5506
+ * @memberof NotificationApi
5507
+ */
5508
+ updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
5502
5509
  }
5503
5510
  /**
5504
5511
  * OrderApi - axios parameter creator
5505
5512
  * @export
5506
5513
  */
5507
5514
  export declare const OrderApiAxiosParamCreator: (configuration?: Configuration) => {
5508
- /**
5509
- * Create a product order. If successful the value of the product will be deducted from the used balance.
5510
- * @summary Create an order for a product
5511
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
5512
- * @param {*} [options] Override http request option.
5513
- * @throws {RequiredError}
5514
- */
5515
- createAdminOrder: (adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5516
5515
  /**
5517
5516
  * Create a product order. If successful the value of the product will be deducted from the used balance.
5518
5517
  * @summary Create an order for a product
@@ -5548,12 +5547,10 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
5548
5547
  * @param {string} [createdBefore] Filter orders created before the specified date
5549
5548
  * @param {Array<string>} [userIDs] Filter by user ids
5550
5549
  * @param {Array<string>} [clientIDs] Filter by client ids
5551
- * @param {OrderKind} [kind] Filter by kind
5552
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
5553
5550
  * @param {*} [options] Override http request option.
5554
5551
  * @throws {RequiredError}
5555
5552
  */
5556
- 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<RequestArgs>;
5553
+ listOrders: (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5557
5554
  /**
5558
5555
  * List existing orders
5559
5556
  * @summary List existing orders
@@ -5574,14 +5571,6 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
5574
5571
  * @export
5575
5572
  */
5576
5573
  export declare const OrderApiFp: (configuration?: Configuration) => {
5577
- /**
5578
- * Create a product order. If successful the value of the product will be deducted from the used balance.
5579
- * @summary Create an order for a product
5580
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
5581
- * @param {*} [options] Override http request option.
5582
- * @throws {RequiredError}
5583
- */
5584
- createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
5585
5574
  /**
5586
5575
  * Create a product order. If successful the value of the product will be deducted from the used balance.
5587
5576
  * @summary Create an order for a product
@@ -5617,12 +5606,10 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
5617
5606
  * @param {string} [createdBefore] Filter orders created before the specified date
5618
5607
  * @param {Array<string>} [userIDs] Filter by user ids
5619
5608
  * @param {Array<string>} [clientIDs] Filter by client ids
5620
- * @param {OrderKind} [kind] Filter by kind
5621
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
5622
5609
  * @param {*} [options] Override http request option.
5623
5610
  * @throws {RequiredError}
5624
5611
  */
5625
- 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>>;
5612
+ 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>>;
5626
5613
  /**
5627
5614
  * List existing orders
5628
5615
  * @summary List existing orders
@@ -5643,14 +5630,6 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
5643
5630
  * @export
5644
5631
  */
5645
5632
  export declare const OrderApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5646
- /**
5647
- * Create a product order. If successful the value of the product will be deducted from the used balance.
5648
- * @summary Create an order for a product
5649
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
5650
- * @param {*} [options] Override http request option.
5651
- * @throws {RequiredError}
5652
- */
5653
- createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: any): AxiosPromise<Order>;
5654
5633
  /**
5655
5634
  * Create a product order. If successful the value of the product will be deducted from the used balance.
5656
5635
  * @summary Create an order for a product
@@ -5686,12 +5665,10 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
5686
5665
  * @param {string} [createdBefore] Filter orders created before the specified date
5687
5666
  * @param {Array<string>} [userIDs] Filter by user ids
5688
5667
  * @param {Array<string>} [clientIDs] Filter by client ids
5689
- * @param {OrderKind} [kind] Filter by kind
5690
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
5691
5668
  * @param {*} [options] Override http request option.
5692
5669
  * @throws {RequiredError}
5693
5670
  */
5694
- 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>;
5671
+ listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse>;
5695
5672
  /**
5696
5673
  * List existing orders
5697
5674
  * @summary List existing orders
@@ -5714,15 +5691,6 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
5714
5691
  * @extends {BaseAPI}
5715
5692
  */
5716
5693
  export declare class OrderApi extends BaseAPI {
5717
- /**
5718
- * Create a product order. If successful the value of the product will be deducted from the used balance.
5719
- * @summary Create an order for a product
5720
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
5721
- * @param {*} [options] Override http request option.
5722
- * @throws {RequiredError}
5723
- * @memberof OrderApi
5724
- */
5725
- createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
5726
5694
  /**
5727
5695
  * Create a product order. If successful the value of the product will be deducted from the used balance.
5728
5696
  * @summary Create an order for a product
@@ -5761,13 +5729,11 @@ export declare class OrderApi extends BaseAPI {
5761
5729
  * @param {string} [createdBefore] Filter orders created before the specified date
5762
5730
  * @param {Array<string>} [userIDs] Filter by user ids
5763
5731
  * @param {Array<string>} [clientIDs] Filter by client ids
5764
- * @param {OrderKind} [kind] Filter by kind
5765
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
5766
5732
  * @param {*} [options] Override http request option.
5767
5733
  * @throws {RequiredError}
5768
5734
  * @memberof OrderApi
5769
5735
  */
5770
- 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<import("axios").AxiosResponse<OrderListResponse, any>>;
5736
+ listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
5771
5737
  /**
5772
5738
  * List existing orders
5773
5739
  * @summary List existing orders