flexinet-api 0.0.1882-prerelease0-dev → 0.0.1882

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## flexinet-api@0.0.1882-prerelease0-dev
1
+ ## flexinet-api@0.0.1882
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install flexinet-api@0.0.1882-prerelease0-dev --save
39
+ npm install flexinet-api@0.0.1882 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -297,6 +297,12 @@ export interface BalanceBulkUpdateRequest {
297
297
  * @memberof BalanceBulkUpdateRequest
298
298
  */
299
299
  'currency'?: TransactionCurrencyKind;
300
+ /**
301
+ *
302
+ * @type {string}
303
+ * @memberof BalanceBulkUpdateRequest
304
+ */
305
+ 'description'?: string;
300
306
  }
301
307
 
302
308
 
@@ -330,6 +336,12 @@ export interface BalanceUpdateRequest {
330
336
  * @memberof BalanceUpdateRequest
331
337
  */
332
338
  'currency'?: TransactionCurrencyKind;
339
+ /**
340
+ *
341
+ * @type {string}
342
+ * @memberof BalanceUpdateRequest
343
+ */
344
+ 'description'?: string;
333
345
  }
334
346
 
335
347
 
@@ -898,7 +910,7 @@ export interface CustomDealMinTargetValueResponse {
898
910
  * @type CustomDealRestriction
899
911
  * @export
900
912
  */
901
- export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction;
913
+ export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction | { kind: 'required' } & RequiredRestriction;
902
914
 
903
915
  /**
904
916
  *
@@ -1139,45 +1151,6 @@ export interface MetricsCollection {
1139
1151
  */
1140
1152
  'total': Metrics;
1141
1153
  }
1142
- /**
1143
- *
1144
- * @export
1145
- * @interface MinTargetValue
1146
- */
1147
- export interface MinTargetValue {
1148
- /**
1149
- *
1150
- * @type {string}
1151
- * @memberof MinTargetValue
1152
- */
1153
- 'startingAt': string;
1154
- /**
1155
- *
1156
- * @type {string}
1157
- * @memberof MinTargetValue
1158
- */
1159
- 'endingAt': string;
1160
- /**
1161
- *
1162
- * @type {BeneficiaryKind}
1163
- * @memberof MinTargetValue
1164
- */
1165
- 'beneficiaryKind': BeneficiaryKind;
1166
- /**
1167
- *
1168
- * @type {Array<string>}
1169
- * @memberof MinTargetValue
1170
- */
1171
- 'beneficiaryValues': Array<string>;
1172
- /**
1173
- *
1174
- * @type {Array<Rule>}
1175
- * @memberof MinTargetValue
1176
- */
1177
- 'rules': Array<Rule>;
1178
- }
1179
-
1180
-
1181
1154
  /**
1182
1155
  *
1183
1156
  * @export
@@ -1212,10 +1185,16 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
1212
1185
  export interface MinTurnoverRestrictionValue {
1213
1186
  /**
1214
1187
  *
1215
- * @type {Array<Rule>}
1188
+ * @type {string}
1216
1189
  * @memberof MinTurnoverRestrictionValue
1217
1190
  */
1218
- 'rules': Array<Rule>;
1191
+ 'tagKey': string;
1192
+ /**
1193
+ *
1194
+ * @type {string}
1195
+ * @memberof MinTurnoverRestrictionValue
1196
+ */
1197
+ 'tagValue': string;
1219
1198
  /**
1220
1199
  *
1221
1200
  * @type {string}
@@ -1230,10 +1209,10 @@ export interface MinTurnoverRestrictionValue {
1230
1209
  'priority': CustomDealRestrictionPriority;
1231
1210
  /**
1232
1211
  *
1233
- * @type {string}
1212
+ * @type {number}
1234
1213
  * @memberof MinTurnoverRestrictionValue
1235
1214
  */
1236
- 'pointsPercent': string;
1215
+ 'points': number;
1237
1216
  }
1238
1217
 
1239
1218
 
@@ -1492,6 +1471,12 @@ export interface Order {
1492
1471
  * @memberof Order
1493
1472
  */
1494
1473
  'source'?: string;
1474
+ /**
1475
+ *
1476
+ * @type {OrderSourceReference}
1477
+ * @memberof Order
1478
+ */
1479
+ 'sourceReference'?: OrderSourceReference;
1495
1480
  /**
1496
1481
  *
1497
1482
  * @type {string}
@@ -1585,6 +1570,12 @@ export interface OrderListResponse {
1585
1570
  */
1586
1571
  'nextToken'?: string;
1587
1572
  }
1573
+ /**
1574
+ * @type OrderSourceReference
1575
+ * @export
1576
+ */
1577
+ export type OrderSourceReference = PeriodPromotion | User;
1578
+
1588
1579
  /**
1589
1580
  *
1590
1581
  * @export
@@ -1594,8 +1585,7 @@ export interface OrderListResponse {
1594
1585
  export const OrderStatus = {
1595
1586
  Pending: 'pending',
1596
1587
  Completed: 'completed',
1597
- Cancelled: 'cancelled',
1598
- Unknown: 'unknown'
1588
+ Cancelled: 'cancelled'
1599
1589
  } as const;
1600
1590
 
1601
1591
  export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
@@ -2933,6 +2923,32 @@ export const ReportTypesResponseTypesEnum = {
2933
2923
 
2934
2924
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
2935
2925
 
2926
+ /**
2927
+ *
2928
+ * @export
2929
+ * @interface RequiredRestriction
2930
+ */
2931
+ export interface RequiredRestriction {
2932
+ /**
2933
+ *
2934
+ * @type {string}
2935
+ * @memberof RequiredRestriction
2936
+ */
2937
+ 'kind': RequiredRestrictionKindEnum;
2938
+ /**
2939
+ *
2940
+ * @type {Array<string>}
2941
+ * @memberof RequiredRestriction
2942
+ */
2943
+ 'tagKeys': Array<string>;
2944
+ }
2945
+
2946
+ export const RequiredRestrictionKindEnum = {
2947
+ Required: 'required'
2948
+ } as const;
2949
+
2950
+ export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
2951
+
2936
2952
  /**
2937
2953
  * @type Rule
2938
2954
  * @export
@@ -3772,6 +3788,12 @@ export interface Transaction {
3772
3788
  * @memberof Transaction
3773
3789
  */
3774
3790
  'currency': TransactionCurrencyKind;
3791
+ /**
3792
+ *
3793
+ * @type {string}
3794
+ * @memberof Transaction
3795
+ */
3796
+ 'description'?: string;
3775
3797
  }
3776
3798
 
3777
3799
 
@@ -4303,7 +4325,7 @@ export interface UserOrder {
4303
4325
  * @type {string}
4304
4326
  * @memberof UserOrder
4305
4327
  */
4306
- 'clientID': string;
4328
+ 'clientID'?: string;
4307
4329
  /**
4308
4330
  *
4309
4331
  * @type {OrderStatus}
@@ -6596,13 +6618,28 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
6596
6618
  /**
6597
6619
  * Get custom deal min target value
6598
6620
  * @summary Get custom deal min target value
6599
- * @param {MinTargetValue} minTargetValue
6600
- * @param {*} [options] Override http request option.
6601
- * @throws {RequiredError}
6602
- */
6603
- getCustomDealMinTargetValue: async (minTargetValue: MinTargetValue, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6604
- // verify required parameter 'minTargetValue' is not null or undefined
6605
- assertParamExists('getCustomDealMinTargetValue', 'minTargetValue', minTargetValue)
6621
+ * @param {string} startingAt start at
6622
+ * @param {string} endingAt end at
6623
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6624
+ * @param {Array<string>} beneficiaryValues beneficiary values
6625
+ * @param {string} tagKey tag key
6626
+ * @param {string} tagValue tag value
6627
+ * @param {*} [options] Override http request option.
6628
+ * @throws {RequiredError}
6629
+ */
6630
+ getCustomDealMinTargetValue: async (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6631
+ // verify required parameter 'startingAt' is not null or undefined
6632
+ assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt)
6633
+ // verify required parameter 'endingAt' is not null or undefined
6634
+ assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt)
6635
+ // verify required parameter 'beneficiaryKind' is not null or undefined
6636
+ assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind)
6637
+ // verify required parameter 'beneficiaryValues' is not null or undefined
6638
+ assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues)
6639
+ // verify required parameter 'tagKey' is not null or undefined
6640
+ assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey)
6641
+ // verify required parameter 'tagValue' is not null or undefined
6642
+ assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue)
6606
6643
  const localVarPath = `/admins/custom-deals/min-target-value`;
6607
6644
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6608
6645
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6611,7 +6648,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
6611
6648
  baseOptions = configuration.baseOptions;
6612
6649
  }
6613
6650
 
6614
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6651
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6615
6652
  const localVarHeaderParameter = {} as any;
6616
6653
  const localVarQueryParameter = {} as any;
6617
6654
 
@@ -6619,14 +6656,39 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
6619
6656
  // http bearer authentication required
6620
6657
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
6621
6658
 
6659
+ if (startingAt !== undefined) {
6660
+ localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
6661
+ (startingAt as any).toISOString() :
6662
+ startingAt;
6663
+ }
6664
+
6665
+ if (endingAt !== undefined) {
6666
+ localVarQueryParameter['endingAt'] = (endingAt as any instanceof Date) ?
6667
+ (endingAt as any).toISOString() :
6668
+ endingAt;
6669
+ }
6670
+
6671
+ if (beneficiaryKind !== undefined) {
6672
+ localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
6673
+ }
6674
+
6675
+ if (beneficiaryValues) {
6676
+ localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
6677
+ }
6678
+
6679
+ if (tagKey !== undefined) {
6680
+ localVarQueryParameter['tagKey'] = tagKey;
6681
+ }
6682
+
6683
+ if (tagValue !== undefined) {
6684
+ localVarQueryParameter['tagValue'] = tagValue;
6685
+ }
6622
6686
 
6623
-
6624
- localVarHeaderParameter['Content-Type'] = 'application/json';
6625
6687
 
6688
+
6626
6689
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6627
6690
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6628
6691
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6629
- localVarRequestOptions.data = serializeDataIfNeeded(minTargetValue, localVarRequestOptions, configuration)
6630
6692
 
6631
6693
  return {
6632
6694
  url: toPathString(localVarUrlObj),
@@ -6691,12 +6753,17 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
6691
6753
  /**
6692
6754
  * Get custom deal min target value
6693
6755
  * @summary Get custom deal min target value
6694
- * @param {MinTargetValue} minTargetValue
6756
+ * @param {string} startingAt start at
6757
+ * @param {string} endingAt end at
6758
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6759
+ * @param {Array<string>} beneficiaryValues beneficiary values
6760
+ * @param {string} tagKey tag key
6761
+ * @param {string} tagValue tag value
6695
6762
  * @param {*} [options] Override http request option.
6696
6763
  * @throws {RequiredError}
6697
6764
  */
6698
- async getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
6699
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(minTargetValue, options);
6765
+ async getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
6766
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
6700
6767
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6701
6768
  },
6702
6769
  /**
@@ -6732,12 +6799,17 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
6732
6799
  /**
6733
6800
  * Get custom deal min target value
6734
6801
  * @summary Get custom deal min target value
6735
- * @param {MinTargetValue} minTargetValue
6802
+ * @param {string} startingAt start at
6803
+ * @param {string} endingAt end at
6804
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6805
+ * @param {Array<string>} beneficiaryValues beneficiary values
6806
+ * @param {string} tagKey tag key
6807
+ * @param {string} tagValue tag value
6736
6808
  * @param {*} [options] Override http request option.
6737
6809
  * @throws {RequiredError}
6738
6810
  */
6739
- getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
6740
- return localVarFp.getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(axios, basePath));
6811
+ getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
6812
+ return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
6741
6813
  },
6742
6814
  /**
6743
6815
  * List custom deal restrictions
@@ -6773,13 +6845,18 @@ export class CustomDealsApi extends BaseAPI {
6773
6845
  /**
6774
6846
  * Get custom deal min target value
6775
6847
  * @summary Get custom deal min target value
6776
- * @param {MinTargetValue} minTargetValue
6848
+ * @param {string} startingAt start at
6849
+ * @param {string} endingAt end at
6850
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6851
+ * @param {Array<string>} beneficiaryValues beneficiary values
6852
+ * @param {string} tagKey tag key
6853
+ * @param {string} tagValue tag value
6777
6854
  * @param {*} [options] Override http request option.
6778
6855
  * @throws {RequiredError}
6779
6856
  * @memberof CustomDealsApi
6780
6857
  */
6781
- public getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig) {
6782
- return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(this.axios, this.basePath));
6858
+ public getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) {
6859
+ return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
6783
6860
  }
6784
6861
 
6785
6862
  /**
@@ -10073,10 +10150,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10073
10150
  * @param {PromotionSortByField} [sortBy] sort by field
10074
10151
  * @param {SortDirection} [sortDirection] sort direction
10075
10152
  * @param {boolean} [onlyClaimable] only claimable promotions
10153
+ * @param {Array<string>} [iDs] IDs to filter by
10076
10154
  * @param {*} [options] Override http request option.
10077
10155
  * @throws {RequiredError}
10078
10156
  */
10079
- listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10157
+ listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, iDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10080
10158
  const localVarPath = `/admins/promotions`;
10081
10159
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10082
10160
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10157,6 +10235,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10157
10235
  localVarQueryParameter['onlyClaimable'] = onlyClaimable;
10158
10236
  }
10159
10237
 
10238
+ if (iDs) {
10239
+ localVarQueryParameter['IDs'] = iDs;
10240
+ }
10241
+
10160
10242
 
10161
10243
 
10162
10244
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -10182,10 +10264,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10182
10264
  * @param {SortDirection} [sortDirection] sort direction
10183
10265
  * @param {boolean} [onlyClaimable] only claimable promotions
10184
10266
  * @param {PromotionType} [type] promotion type
10267
+ * @param {Array<string>} [iDs] IDs to filter by
10185
10268
  * @param {*} [options] Override http request option.
10186
10269
  * @throws {RequiredError}
10187
10270
  */
10188
- listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10271
+ listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10189
10272
  const localVarPath = `/users/promotions`;
10190
10273
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10191
10274
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10254,6 +10337,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10254
10337
  localVarQueryParameter['type'] = type;
10255
10338
  }
10256
10339
 
10340
+ if (iDs) {
10341
+ localVarQueryParameter['IDs'] = iDs;
10342
+ }
10343
+
10257
10344
 
10258
10345
 
10259
10346
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -10454,11 +10541,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
10454
10541
  * @param {PromotionSortByField} [sortBy] sort by field
10455
10542
  * @param {SortDirection} [sortDirection] sort direction
10456
10543
  * @param {boolean} [onlyClaimable] only claimable promotions
10544
+ * @param {Array<string>} [iDs] IDs to filter by
10457
10545
  * @param {*} [options] Override http request option.
10458
10546
  * @throws {RequiredError}
10459
10547
  */
10460
- async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
10461
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
10548
+ async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, iDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
10549
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options);
10462
10550
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10463
10551
  },
10464
10552
  /**
@@ -10475,11 +10563,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
10475
10563
  * @param {SortDirection} [sortDirection] sort direction
10476
10564
  * @param {boolean} [onlyClaimable] only claimable promotions
10477
10565
  * @param {PromotionType} [type] promotion type
10566
+ * @param {Array<string>} [iDs] IDs to filter by
10478
10567
  * @param {*} [options] Override http request option.
10479
10568
  * @throws {RequiredError}
10480
10569
  */
10481
- async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>> {
10482
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options);
10570
+ async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>> {
10571
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options);
10483
10572
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10484
10573
  },
10485
10574
  /**
@@ -10629,11 +10718,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
10629
10718
  * @param {PromotionSortByField} [sortBy] sort by field
10630
10719
  * @param {SortDirection} [sortDirection] sort direction
10631
10720
  * @param {boolean} [onlyClaimable] only claimable promotions
10721
+ * @param {Array<string>} [iDs] IDs to filter by
10632
10722
  * @param {*} [options] Override http request option.
10633
10723
  * @throws {RequiredError}
10634
10724
  */
10635
- listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: any): AxiosPromise<PromotionsResponse> {
10636
- return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
10725
+ listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, iDs?: Array<string>, options?: any): AxiosPromise<PromotionsResponse> {
10726
+ return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options).then((request) => request(axios, basePath));
10637
10727
  },
10638
10728
  /**
10639
10729
  * List users promotions
@@ -10649,11 +10739,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
10649
10739
  * @param {SortDirection} [sortDirection] sort direction
10650
10740
  * @param {boolean} [onlyClaimable] only claimable promotions
10651
10741
  * @param {PromotionType} [type] promotion type
10742
+ * @param {Array<string>} [iDs] IDs to filter by
10652
10743
  * @param {*} [options] Override http request option.
10653
10744
  * @throws {RequiredError}
10654
10745
  */
10655
- listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: any): AxiosPromise<UserPromotionsResponse> {
10656
- return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(axios, basePath));
10746
+ listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options?: any): AxiosPromise<UserPromotionsResponse> {
10747
+ return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(axios, basePath));
10657
10748
  },
10658
10749
  /**
10659
10750
  * Update promotion by id
@@ -10821,12 +10912,13 @@ export class PromotionApi extends BaseAPI {
10821
10912
  * @param {PromotionSortByField} [sortBy] sort by field
10822
10913
  * @param {SortDirection} [sortDirection] sort direction
10823
10914
  * @param {boolean} [onlyClaimable] only claimable promotions
10915
+ * @param {Array<string>} [iDs] IDs to filter by
10824
10916
  * @param {*} [options] Override http request option.
10825
10917
  * @throws {RequiredError}
10826
10918
  * @memberof PromotionApi
10827
10919
  */
10828
- public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig) {
10829
- return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
10920
+ public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, iDs?: Array<string>, options?: AxiosRequestConfig) {
10921
+ return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options).then((request) => request(this.axios, this.basePath));
10830
10922
  }
10831
10923
 
10832
10924
  /**
@@ -10843,12 +10935,13 @@ export class PromotionApi extends BaseAPI {
10843
10935
  * @param {SortDirection} [sortDirection] sort direction
10844
10936
  * @param {boolean} [onlyClaimable] only claimable promotions
10845
10937
  * @param {PromotionType} [type] promotion type
10938
+ * @param {Array<string>} [iDs] IDs to filter by
10846
10939
  * @param {*} [options] Override http request option.
10847
10940
  * @throws {RequiredError}
10848
10941
  * @memberof PromotionApi
10849
10942
  */
10850
- public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig) {
10851
- return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(this.axios, this.basePath));
10943
+ public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options?: AxiosRequestConfig) {
10944
+ return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(this.axios, this.basePath));
10852
10945
  }
10853
10946
 
10854
10947
  /**