flexinet-api 0.0.292-prerelease0 → 0.0.318-prerelease0

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
@@ -1100,6 +1100,19 @@ export declare const ProductAvailability: {
1100
1100
  readonly Unavailable: "unavailable";
1101
1101
  };
1102
1102
  export type ProductAvailability = typeof ProductAvailability[keyof typeof ProductAvailability];
1103
+ /**
1104
+ *
1105
+ * @export
1106
+ * @interface ProductBulkCreationRequest
1107
+ */
1108
+ export interface ProductBulkCreationRequest {
1109
+ /**
1110
+ *
1111
+ * @type {Array<ProductCreationRequest>}
1112
+ * @memberof ProductBulkCreationRequest
1113
+ */
1114
+ 'products': Array<ProductCreationRequest>;
1115
+ }
1103
1116
  /**
1104
1117
  *
1105
1118
  * @export
@@ -2606,6 +2619,111 @@ export interface UserListResponse {
2606
2619
  */
2607
2620
  'hasMore': boolean;
2608
2621
  }
2622
+ /**
2623
+ *
2624
+ * @export
2625
+ * @interface UserPromotion
2626
+ */
2627
+ export interface UserPromotion {
2628
+ /**
2629
+ *
2630
+ * @type {string}
2631
+ * @memberof UserPromotion
2632
+ */
2633
+ 'id': string;
2634
+ /**
2635
+ *
2636
+ * @type {string}
2637
+ * @memberof UserPromotion
2638
+ */
2639
+ 'name': string;
2640
+ /**
2641
+ *
2642
+ * @type {string}
2643
+ * @memberof UserPromotion
2644
+ */
2645
+ 'description': string;
2646
+ /**
2647
+ *
2648
+ * @type {Target}
2649
+ * @memberof UserPromotion
2650
+ */
2651
+ 'target': Target;
2652
+ /**
2653
+ *
2654
+ * @type {boolean}
2655
+ * @memberof UserPromotion
2656
+ */
2657
+ 'repeatable': boolean;
2658
+ /**
2659
+ *
2660
+ * @type {number}
2661
+ * @memberof UserPromotion
2662
+ */
2663
+ 'repeatCount'?: number;
2664
+ /**
2665
+ *
2666
+ * @type {Array<RuleGroup>}
2667
+ * @memberof UserPromotion
2668
+ */
2669
+ 'ruleGroups': Array<RuleGroup>;
2670
+ /**
2671
+ *
2672
+ * @type {string}
2673
+ * @memberof UserPromotion
2674
+ */
2675
+ 'brandLogoURL': string;
2676
+ /**
2677
+ *
2678
+ * @type {string}
2679
+ * @memberof UserPromotion
2680
+ */
2681
+ 'imageURL': string;
2682
+ /**
2683
+ *
2684
+ * @type {string}
2685
+ * @memberof UserPromotion
2686
+ */
2687
+ 'startAt': string;
2688
+ /**
2689
+ *
2690
+ * @type {string}
2691
+ * @memberof UserPromotion
2692
+ */
2693
+ 'endAt': string;
2694
+ /**
2695
+ *
2696
+ * @type {{ [key: string]: string; }}
2697
+ * @memberof UserPromotion
2698
+ */
2699
+ 'tags': {
2700
+ [key: string]: string;
2701
+ };
2702
+ /**
2703
+ *
2704
+ * @type {Repetition}
2705
+ * @memberof UserPromotion
2706
+ */
2707
+ 'repetition'?: Repetition;
2708
+ /**
2709
+ *
2710
+ * @type {string}
2711
+ * @memberof UserPromotion
2712
+ */
2713
+ 'createdAt': string;
2714
+ /**
2715
+ *
2716
+ * @type {string}
2717
+ * @memberof UserPromotion
2718
+ */
2719
+ 'updatedAt'?: string;
2720
+ /**
2721
+ *
2722
+ * @type {Array<Period>}
2723
+ * @memberof UserPromotion
2724
+ */
2725
+ 'periods'?: Array<Period>;
2726
+ }
2609
2727
  /**
2610
2728
  *
2611
2729
  * @export
@@ -2789,6 +2907,13 @@ export declare const BalanceApiAxiosParamCreator: (configuration?: Configuration
2789
2907
  * @throws {RequiredError}
2790
2908
  */
2791
2909
  getBalance: (beneficiaryValue: string, kind: BeneficiaryKind, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2910
+ /**
2911
+ * Get balance for the user
2912
+ * @summary Get balance
2913
+ * @param {*} [options] Override http request option.
2914
+ * @throws {RequiredError}
2915
+ */
2916
+ getUserBalance: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
2792
2917
  /**
2793
2918
  * Transfer balance
2794
2919
  * @summary Transfer balance
@@ -2822,6 +2947,13 @@ export declare const BalanceApiFp: (configuration?: Configuration) => {
2822
2947
  * @throws {RequiredError}
2823
2948
  */
2824
2949
  getBalance(beneficiaryValue: string, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>>;
2950
+ /**
2951
+ * Get balance for the user
2952
+ * @summary Get balance
2953
+ * @param {*} [options] Override http request option.
2954
+ * @throws {RequiredError}
2955
+ */
2956
+ getUserBalance(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>>;
2825
2957
  /**
2826
2958
  * Transfer balance
2827
2959
  * @summary Transfer balance
@@ -2855,6 +2987,13 @@ export declare const BalanceApiFactory: (configuration?: Configuration, basePath
2855
2987
  * @throws {RequiredError}
2856
2988
  */
2857
2989
  getBalance(beneficiaryValue: string, kind: BeneficiaryKind, options?: any): AxiosPromise<Balance>;
2990
+ /**
2991
+ * Get balance for the user
2992
+ * @summary Get balance
2993
+ * @param {*} [options] Override http request option.
2994
+ * @throws {RequiredError}
2995
+ */
2996
+ getUserBalance(options?: any): AxiosPromise<Balance>;
2858
2997
  /**
2859
2998
  * Transfer balance
2860
2999
  * @summary Transfer balance
@@ -2891,6 +3030,14 @@ export declare class BalanceApi extends BaseAPI {
2891
3030
  * @memberof BalanceApi
2892
3031
  */
2893
3032
  getBalance(beneficiaryValue: string, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Balance, any>>;
3033
+ /**
3034
+ * Get balance for the user
3035
+ * @summary Get balance
3036
+ * @param {*} [options] Override http request option.
3037
+ * @throws {RequiredError}
3038
+ * @memberof BalanceApi
3039
+ */
3040
+ getUserBalance(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Balance, any>>;
2894
3041
  /**
2895
3042
  * Transfer balance
2896
3043
  * @summary Transfer balance
@@ -3780,6 +3927,14 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
3780
3927
  * @throws {RequiredError}
3781
3928
  */
3782
3929
  approveProduct: (id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3930
+ /**
3931
+ * Get a product by id
3932
+ * @summary Get a product by id
3933
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
3934
+ * @param {*} [options] Override http request option.
3935
+ * @throws {RequiredError}
3936
+ */
3937
+ bulkCreateProducts: (productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3783
3938
  /**
3784
3939
  * Create a new product
3785
3940
  * @summary Create a new product
@@ -3819,6 +3974,14 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
3819
3974
  * @throws {RequiredError}
3820
3975
  */
3821
3976
  getProductRequestById: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3977
+ /**
3978
+ * Get a product by id, if user is allowed to see it
3979
+ * @summary Get a product by id
3980
+ * @param {string} id The product id
3981
+ * @param {*} [options] Override http request option.
3982
+ * @throws {RequiredError}
3983
+ */
3984
+ getUserProductById: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3822
3985
  /**
3823
3986
  * List existing product requests
3824
3987
  * @summary List existing product requests
@@ -3868,6 +4031,14 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
3868
4031
  * @throws {RequiredError}
3869
4032
  */
3870
4033
  approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestApprovalResponse>>;
4034
+ /**
4035
+ * Get a product by id
4036
+ * @summary Get a product by id
4037
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
4038
+ * @param {*} [options] Override http request option.
4039
+ * @throws {RequiredError}
4040
+ */
4041
+ bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>>;
3871
4042
  /**
3872
4043
  * Create a new product
3873
4044
  * @summary Create a new product
@@ -3907,6 +4078,14 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
3907
4078
  * @throws {RequiredError}
3908
4079
  */
3909
4080
  getProductRequestById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestApprovalResponse>>;
4081
+ /**
4082
+ * Get a product by id, if user is allowed to see it
4083
+ * @summary Get a product by id
4084
+ * @param {string} id The product id
4085
+ * @param {*} [options] Override http request option.
4086
+ * @throws {RequiredError}
4087
+ */
4088
+ getUserProductById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>>;
3910
4089
  /**
3911
4090
  * List existing product requests
3912
4091
  * @summary List existing product requests
@@ -3956,6 +4135,14 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
3956
4135
  * @throws {RequiredError}
3957
4136
  */
3958
4137
  approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: any): AxiosPromise<ProductRequestApprovalResponse>;
4138
+ /**
4139
+ * Get a product by id
4140
+ * @summary Get a product by id
4141
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
4142
+ * @param {*} [options] Override http request option.
4143
+ * @throws {RequiredError}
4144
+ */
4145
+ bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: any): AxiosPromise<Array<Product>>;
3959
4146
  /**
3960
4147
  * Create a new product
3961
4148
  * @summary Create a new product
@@ -3995,6 +4182,14 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
3995
4182
  * @throws {RequiredError}
3996
4183
  */
3997
4184
  getProductRequestById(id: string, options?: any): AxiosPromise<ProductRequestApprovalResponse>;
4185
+ /**
4186
+ * Get a product by id, if user is allowed to see it
4187
+ * @summary Get a product by id
4188
+ * @param {string} id The product id
4189
+ * @param {*} [options] Override http request option.
4190
+ * @throws {RequiredError}
4191
+ */
4192
+ getUserProductById(id: string, options?: any): AxiosPromise<Product>;
3998
4193
  /**
3999
4194
  * List existing product requests
4000
4195
  * @summary List existing product requests
@@ -4047,6 +4242,15 @@ export declare class ProductApi extends BaseAPI {
4047
4242
  * @memberof ProductApi
4048
4243
  */
4049
4244
  approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestApprovalResponse, any>>;
4245
+ /**
4246
+ * Get a product by id
4247
+ * @summary Get a product by id
4248
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
4249
+ * @param {*} [options] Override http request option.
4250
+ * @throws {RequiredError}
4251
+ * @memberof ProductApi
4252
+ */
4253
+ bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Product[], any>>;
4050
4254
  /**
4051
4255
  * Create a new product
4052
4256
  * @summary Create a new product
@@ -4091,6 +4295,15 @@ export declare class ProductApi extends BaseAPI {
4091
4295
  * @memberof ProductApi
4092
4296
  */
4093
4297
  getProductRequestById(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestApprovalResponse, any>>;
4298
+ /**
4299
+ * Get a product by id, if user is allowed to see it
4300
+ * @summary Get a product by id
4301
+ * @param {string} id The product id
4302
+ * @param {*} [options] Override http request option.
4303
+ * @throws {RequiredError}
4304
+ * @memberof ProductApi
4305
+ */
4306
+ getUserProductById(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Product, any>>;
4094
4307
  /**
4095
4308
  * List existing product requests
4096
4309
  * @summary List existing product requests
@@ -4147,6 +4360,16 @@ export declare const ProgressApiAxiosParamCreator: (configuration?: Configuratio
4147
4360
  * @throws {RequiredError}
4148
4361
  */
4149
4362
  listProgress: (id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4363
+ /**
4364
+ * List users progress of a promotion
4365
+ * @summary List promotion\'s progress
4366
+ * @param {string} id Promotion ID
4367
+ * @param {number} [periodID] Period ID
4368
+ * @param {string} [nextToken] This is the pagination token
4369
+ * @param {*} [options] Override http request option.
4370
+ * @throws {RequiredError}
4371
+ */
4372
+ listUserProgress: (id: string, periodID?: number, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4150
4373
  };
4151
4374
  /**
4152
4375
  * ProgressApi - functional programming interface
@@ -4166,6 +4389,16 @@ export declare const ProgressApiFp: (configuration?: Configuration) => {
4166
4389
  * @throws {RequiredError}
4167
4390
  */
4168
4391
  listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>>;
4392
+ /**
4393
+ * List users progress of a promotion
4394
+ * @summary List promotion\'s progress
4395
+ * @param {string} id Promotion ID
4396
+ * @param {number} [periodID] Period ID
4397
+ * @param {string} [nextToken] This is the pagination token
4398
+ * @param {*} [options] Override http request option.
4399
+ * @throws {RequiredError}
4400
+ */
4401
+ listUserProgress(id: string, periodID?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>>;
4169
4402
  };
4170
4403
  /**
4171
4404
  * ProgressApi - factory interface
@@ -4185,6 +4418,16 @@ export declare const ProgressApiFactory: (configuration?: Configuration, basePat
4185
4418
  * @throws {RequiredError}
4186
4419
  */
4187
4420
  listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: any): AxiosPromise<ProgressResponse>;
4421
+ /**
4422
+ * List users progress of a promotion
4423
+ * @summary List promotion\'s progress
4424
+ * @param {string} id Promotion ID
4425
+ * @param {number} [periodID] Period ID
4426
+ * @param {string} [nextToken] This is the pagination token
4427
+ * @param {*} [options] Override http request option.
4428
+ * @throws {RequiredError}
4429
+ */
4430
+ listUserProgress(id: string, periodID?: number, nextToken?: string, options?: any): AxiosPromise<ProgressResponse>;
4188
4431
  };
4189
4432
  /**
4190
4433
  * ProgressApi - object-oriented interface
@@ -4207,6 +4450,17 @@ export declare class ProgressApi extends BaseAPI {
4207
4450
  * @memberof ProgressApi
4208
4451
  */
4209
4452
  listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProgressResponse, any>>;
4453
+ /**
4454
+ * List users progress of a promotion
4455
+ * @summary List promotion\'s progress
4456
+ * @param {string} id Promotion ID
4457
+ * @param {number} [periodID] Period ID
4458
+ * @param {string} [nextToken] This is the pagination token
4459
+ * @param {*} [options] Override http request option.
4460
+ * @throws {RequiredError}
4461
+ * @memberof ProgressApi
4462
+ */
4463
+ listUserProgress(id: string, periodID?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProgressResponse, any>>;
4210
4464
  }
4211
4465
  /**
4212
4466
  * @export
@@ -4282,6 +4536,14 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
4282
4536
  * @throws {RequiredError}
4283
4537
  */
4284
4538
  getPromotion: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4539
+ /**
4540
+ * Get promotion by id, if user is allowed to see it
4541
+ * @summary Get promotion
4542
+ * @param {string} id Promotion id
4543
+ * @param {*} [options] Override http request option.
4544
+ * @throws {RequiredError}
4545
+ */
4546
+ getUserPromotion: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4285
4547
  /**
4286
4548
  * List all promotions
4287
4549
  * @summary List promotions
@@ -4298,6 +4560,18 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
4298
4560
  * @throws {RequiredError}
4299
4561
  */
4300
4562
  listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4563
+ /**
4564
+ * List users promotions
4565
+ * @summary List promotions
4566
+ * @param {string} [nextToken] This is the pagination token
4567
+ * @param {string} [tags] tags to filter by, format is key1&#x3D;value1;key2&#x3D;value2. Should be url encoded.
4568
+ * @param {string} [startAtAfter] start time after time
4569
+ * @param {string} [endAtBefore] end time before time
4570
+ * @param {string} [search] search by name or description
4571
+ * @param {*} [options] Override http request option.
4572
+ * @throws {RequiredError}
4573
+ */
4574
+ listUserPromotions: (nextToken?: string, tags?: string, startAtAfter?: string, endAtBefore?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4301
4575
  /**
4302
4576
  * Update promotion by id
4303
4577
  * @summary Update promotion
@@ -4372,6 +4646,14 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
4372
4646
  * @throws {RequiredError}
4373
4647
  */
4374
4648
  getPromotion(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
4649
+ /**
4650
+ * Get promotion by id, if user is allowed to see it
4651
+ * @summary Get promotion
4652
+ * @param {string} id Promotion id
4653
+ * @param {*} [options] Override http request option.
4654
+ * @throws {RequiredError}
4655
+ */
4656
+ getUserPromotion(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotion>>;
4375
4657
  /**
4376
4658
  * List all promotions
4377
4659
  * @summary List promotions
@@ -4388,6 +4670,18 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
4388
4670
  * @throws {RequiredError}
4389
4671
  */
4390
4672
  listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
4673
+ /**
4674
+ * List users promotions
4675
+ * @summary List promotions
4676
+ * @param {string} [nextToken] This is the pagination token
4677
+ * @param {string} [tags] tags to filter by, format is key1&#x3D;value1;key2&#x3D;value2. Should be url encoded.
4678
+ * @param {string} [startAtAfter] start time after time
4679
+ * @param {string} [endAtBefore] end time before time
4680
+ * @param {string} [search] search by name or description
4681
+ * @param {*} [options] Override http request option.
4682
+ * @throws {RequiredError}
4683
+ */
4684
+ listUserPromotions(nextToken?: string, tags?: string, startAtAfter?: string, endAtBefore?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
4391
4685
  /**
4392
4686
  * Update promotion by id
4393
4687
  * @summary Update promotion
@@ -4462,6 +4756,14 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
4462
4756
  * @throws {RequiredError}
4463
4757
  */
4464
4758
  getPromotion(id: string, options?: any): AxiosPromise<Promotion>;
4759
+ /**
4760
+ * Get promotion by id, if user is allowed to see it
4761
+ * @summary Get promotion
4762
+ * @param {string} id Promotion id
4763
+ * @param {*} [options] Override http request option.
4764
+ * @throws {RequiredError}
4765
+ */
4766
+ getUserPromotion(id: string, options?: any): AxiosPromise<UserPromotion>;
4465
4767
  /**
4466
4768
  * List all promotions
4467
4769
  * @summary List promotions
@@ -4478,6 +4780,18 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
4478
4780
  * @throws {RequiredError}
4479
4781
  */
4480
4782
  listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
4783
+ /**
4784
+ * List users promotions
4785
+ * @summary List promotions
4786
+ * @param {string} [nextToken] This is the pagination token
4787
+ * @param {string} [tags] tags to filter by, format is key1&#x3D;value1;key2&#x3D;value2. Should be url encoded.
4788
+ * @param {string} [startAtAfter] start time after time
4789
+ * @param {string} [endAtBefore] end time before time
4790
+ * @param {string} [search] search by name or description
4791
+ * @param {*} [options] Override http request option.
4792
+ * @throws {RequiredError}
4793
+ */
4794
+ listUserPromotions(nextToken?: string, tags?: string, startAtAfter?: string, endAtBefore?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
4481
4795
  /**
4482
4796
  * Update promotion by id
4483
4797
  * @summary Update promotion
@@ -4561,6 +4875,15 @@ export declare class PromotionApi extends BaseAPI {
4561
4875
  * @memberof PromotionApi
4562
4876
  */
4563
4877
  getPromotion(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
4878
+ /**
4879
+ * Get promotion by id, if user is allowed to see it
4880
+ * @summary Get promotion
4881
+ * @param {string} id Promotion id
4882
+ * @param {*} [options] Override http request option.
4883
+ * @throws {RequiredError}
4884
+ * @memberof PromotionApi
4885
+ */
4886
+ getUserPromotion(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPromotion, any>>;
4564
4887
  /**
4565
4888
  * List all promotions
4566
4889
  * @summary List promotions
@@ -4578,6 +4901,19 @@ export declare class PromotionApi extends BaseAPI {
4578
4901
  * @memberof PromotionApi
4579
4902
  */
4580
4903
  listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
4904
+ /**
4905
+ * List users promotions
4906
+ * @summary List promotions
4907
+ * @param {string} [nextToken] This is the pagination token
4908
+ * @param {string} [tags] tags to filter by, format is key1&#x3D;value1;key2&#x3D;value2. Should be url encoded.
4909
+ * @param {string} [startAtAfter] start time after time
4910
+ * @param {string} [endAtBefore] end time before time
4911
+ * @param {string} [search] search by name or description
4912
+ * @param {*} [options] Override http request option.
4913
+ * @throws {RequiredError}
4914
+ * @memberof PromotionApi
4915
+ */
4916
+ listUserPromotions(nextToken?: string, tags?: string, startAtAfter?: string, endAtBefore?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
4581
4917
  /**
4582
4918
  * Update promotion by id
4583
4919
  * @summary Update promotion
@@ -4589,6 +4925,69 @@ export declare class PromotionApi extends BaseAPI {
4589
4925
  */
4590
4926
  updatePromotion(id: string, updatePromotionRequest: UpdatePromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
4591
4927
  }
4928
+ /**
4929
+ * RewardApi - axios parameter creator
4930
+ * @export
4931
+ */
4932
+ export declare const RewardApiAxiosParamCreator: (configuration?: Configuration) => {
4933
+ /**
4934
+ * List existing products for the user
4935
+ * @summary List existing products
4936
+ * @param {ProductKind} [kind] The product kind
4937
+ * @param {string} [nextToken] This is the pagination token
4938
+ * @param {*} [options] Override http request option.
4939
+ * @throws {RequiredError}
4940
+ */
4941
+ listUserProducts: (kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4942
+ };
4943
+ /**
4944
+ * RewardApi - functional programming interface
4945
+ * @export
4946
+ */
4947
+ export declare const RewardApiFp: (configuration?: Configuration) => {
4948
+ /**
4949
+ * List existing products for the user
4950
+ * @summary List existing products
4951
+ * @param {ProductKind} [kind] The product kind
4952
+ * @param {string} [nextToken] This is the pagination token
4953
+ * @param {*} [options] Override http request option.
4954
+ * @throws {RequiredError}
4955
+ */
4956
+ listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
4957
+ };
4958
+ /**
4959
+ * RewardApi - factory interface
4960
+ * @export
4961
+ */
4962
+ export declare const RewardApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4963
+ /**
4964
+ * List existing products for the user
4965
+ * @summary List existing products
4966
+ * @param {ProductKind} [kind] The product kind
4967
+ * @param {string} [nextToken] This is the pagination token
4968
+ * @param {*} [options] Override http request option.
4969
+ * @throws {RequiredError}
4970
+ */
4971
+ listUserProducts(kind?: ProductKind, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
4972
+ };
4973
+ /**
4974
+ * RewardApi - object-oriented interface
4975
+ * @export
4976
+ * @class RewardApi
4977
+ * @extends {BaseAPI}
4978
+ */
4979
+ export declare class RewardApi extends BaseAPI {
4980
+ /**
4981
+ * List existing products for the user
4982
+ * @summary List existing products
4983
+ * @param {ProductKind} [kind] The product kind
4984
+ * @param {string} [nextToken] This is the pagination token
4985
+ * @param {*} [options] Override http request option.
4986
+ * @throws {RequiredError}
4987
+ * @memberof RewardApi
4988
+ */
4989
+ listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
4990
+ }
4592
4991
  /**
4593
4992
  * SegmentApi - axios parameter creator
4594
4993
  * @export