flexinet-api 0.0.1863 → 0.0.1864

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.1863
1
+ ## flexinet-api@0.0.1864
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.1863 --save
39
+ npm install flexinet-api@0.0.1864 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -10150,10 +10150,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10150
10150
  * @param {PromotionSortByField} [sortBy] sort by field
10151
10151
  * @param {SortDirection} [sortDirection] sort direction
10152
10152
  * @param {boolean} [onlyClaimable] only claimable promotions
10153
+ * @param {Array<string>} [iDs] IDs to filter by
10153
10154
  * @param {*} [options] Override http request option.
10154
10155
  * @throws {RequiredError}
10155
10156
  */
10156
- 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> => {
10157
10158
  const localVarPath = `/admins/promotions`;
10158
10159
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10159
10160
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10234,6 +10235,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10234
10235
  localVarQueryParameter['onlyClaimable'] = onlyClaimable;
10235
10236
  }
10236
10237
 
10238
+ if (iDs) {
10239
+ localVarQueryParameter['IDs'] = iDs;
10240
+ }
10241
+
10237
10242
 
10238
10243
 
10239
10244
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -10259,10 +10264,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10259
10264
  * @param {SortDirection} [sortDirection] sort direction
10260
10265
  * @param {boolean} [onlyClaimable] only claimable promotions
10261
10266
  * @param {PromotionType} [type] promotion type
10267
+ * @param {Array<string>} [iDs] IDs to filter by
10262
10268
  * @param {*} [options] Override http request option.
10263
10269
  * @throws {RequiredError}
10264
10270
  */
10265
- 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> => {
10266
10272
  const localVarPath = `/users/promotions`;
10267
10273
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10268
10274
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10331,6 +10337,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10331
10337
  localVarQueryParameter['type'] = type;
10332
10338
  }
10333
10339
 
10340
+ if (iDs) {
10341
+ localVarQueryParameter['IDs'] = iDs;
10342
+ }
10343
+
10334
10344
 
10335
10345
 
10336
10346
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -10531,11 +10541,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
10531
10541
  * @param {PromotionSortByField} [sortBy] sort by field
10532
10542
  * @param {SortDirection} [sortDirection] sort direction
10533
10543
  * @param {boolean} [onlyClaimable] only claimable promotions
10544
+ * @param {Array<string>} [iDs] IDs to filter by
10534
10545
  * @param {*} [options] Override http request option.
10535
10546
  * @throws {RequiredError}
10536
10547
  */
10537
- 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>> {
10538
- 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);
10539
10550
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10540
10551
  },
10541
10552
  /**
@@ -10552,11 +10563,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
10552
10563
  * @param {SortDirection} [sortDirection] sort direction
10553
10564
  * @param {boolean} [onlyClaimable] only claimable promotions
10554
10565
  * @param {PromotionType} [type] promotion type
10566
+ * @param {Array<string>} [iDs] IDs to filter by
10555
10567
  * @param {*} [options] Override http request option.
10556
10568
  * @throws {RequiredError}
10557
10569
  */
10558
- 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>> {
10559
- 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);
10560
10572
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10561
10573
  },
10562
10574
  /**
@@ -10706,11 +10718,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
10706
10718
  * @param {PromotionSortByField} [sortBy] sort by field
10707
10719
  * @param {SortDirection} [sortDirection] sort direction
10708
10720
  * @param {boolean} [onlyClaimable] only claimable promotions
10721
+ * @param {Array<string>} [iDs] IDs to filter by
10709
10722
  * @param {*} [options] Override http request option.
10710
10723
  * @throws {RequiredError}
10711
10724
  */
10712
- 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> {
10713
- 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));
10714
10727
  },
10715
10728
  /**
10716
10729
  * List users promotions
@@ -10726,11 +10739,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
10726
10739
  * @param {SortDirection} [sortDirection] sort direction
10727
10740
  * @param {boolean} [onlyClaimable] only claimable promotions
10728
10741
  * @param {PromotionType} [type] promotion type
10742
+ * @param {Array<string>} [iDs] IDs to filter by
10729
10743
  * @param {*} [options] Override http request option.
10730
10744
  * @throws {RequiredError}
10731
10745
  */
10732
- 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> {
10733
- 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));
10734
10748
  },
10735
10749
  /**
10736
10750
  * Update promotion by id
@@ -10898,12 +10912,13 @@ export class PromotionApi extends BaseAPI {
10898
10912
  * @param {PromotionSortByField} [sortBy] sort by field
10899
10913
  * @param {SortDirection} [sortDirection] sort direction
10900
10914
  * @param {boolean} [onlyClaimable] only claimable promotions
10915
+ * @param {Array<string>} [iDs] IDs to filter by
10901
10916
  * @param {*} [options] Override http request option.
10902
10917
  * @throws {RequiredError}
10903
10918
  * @memberof PromotionApi
10904
10919
  */
10905
- 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) {
10906
- 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));
10907
10922
  }
10908
10923
 
10909
10924
  /**
@@ -10920,12 +10935,13 @@ export class PromotionApi extends BaseAPI {
10920
10935
  * @param {SortDirection} [sortDirection] sort direction
10921
10936
  * @param {boolean} [onlyClaimable] only claimable promotions
10922
10937
  * @param {PromotionType} [type] promotion type
10938
+ * @param {Array<string>} [iDs] IDs to filter by
10923
10939
  * @param {*} [options] Override http request option.
10924
10940
  * @throws {RequiredError}
10925
10941
  * @memberof PromotionApi
10926
10942
  */
10927
- 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) {
10928
- 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));
10929
10945
  }
10930
10946
 
10931
10947
  /**
package/dist/api.d.ts CHANGED
@@ -6963,10 +6963,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
6963
6963
  * @param {PromotionSortByField} [sortBy] sort by field
6964
6964
  * @param {SortDirection} [sortDirection] sort direction
6965
6965
  * @param {boolean} [onlyClaimable] only claimable promotions
6966
+ * @param {Array<string>} [iDs] IDs to filter by
6966
6967
  * @param {*} [options] Override http request option.
6967
6968
  * @throws {RequiredError}
6968
6969
  */
6969
- 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<RequestArgs>;
6970
+ 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<RequestArgs>;
6970
6971
  /**
6971
6972
  * List users promotions
6972
6973
  * @summary List promotions
@@ -6981,10 +6982,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
6981
6982
  * @param {SortDirection} [sortDirection] sort direction
6982
6983
  * @param {boolean} [onlyClaimable] only claimable promotions
6983
6984
  * @param {PromotionType} [type] promotion type
6985
+ * @param {Array<string>} [iDs] IDs to filter by
6984
6986
  * @param {*} [options] Override http request option.
6985
6987
  * @throws {RequiredError}
6986
6988
  */
6987
- 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<RequestArgs>;
6989
+ 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<RequestArgs>;
6988
6990
  /**
6989
6991
  * Update promotion by id
6990
6992
  * @summary Update promotion
@@ -7105,10 +7107,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
7105
7107
  * @param {PromotionSortByField} [sortBy] sort by field
7106
7108
  * @param {SortDirection} [sortDirection] sort direction
7107
7109
  * @param {boolean} [onlyClaimable] only claimable promotions
7110
+ * @param {Array<string>} [iDs] IDs to filter by
7108
7111
  * @param {*} [options] Override http request option.
7109
7112
  * @throws {RequiredError}
7110
7113
  */
7111
- 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>>;
7114
+ 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>>;
7112
7115
  /**
7113
7116
  * List users promotions
7114
7117
  * @summary List promotions
@@ -7123,10 +7126,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
7123
7126
  * @param {SortDirection} [sortDirection] sort direction
7124
7127
  * @param {boolean} [onlyClaimable] only claimable promotions
7125
7128
  * @param {PromotionType} [type] promotion type
7129
+ * @param {Array<string>} [iDs] IDs to filter by
7126
7130
  * @param {*} [options] Override http request option.
7127
7131
  * @throws {RequiredError}
7128
7132
  */
7129
- 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>>;
7133
+ 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>>;
7130
7134
  /**
7131
7135
  * Update promotion by id
7132
7136
  * @summary Update promotion
@@ -7247,10 +7251,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
7247
7251
  * @param {PromotionSortByField} [sortBy] sort by field
7248
7252
  * @param {SortDirection} [sortDirection] sort direction
7249
7253
  * @param {boolean} [onlyClaimable] only claimable promotions
7254
+ * @param {Array<string>} [iDs] IDs to filter by
7250
7255
  * @param {*} [options] Override http request option.
7251
7256
  * @throws {RequiredError}
7252
7257
  */
7253
- 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>;
7258
+ 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>;
7254
7259
  /**
7255
7260
  * List users promotions
7256
7261
  * @summary List promotions
@@ -7265,10 +7270,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
7265
7270
  * @param {SortDirection} [sortDirection] sort direction
7266
7271
  * @param {boolean} [onlyClaimable] only claimable promotions
7267
7272
  * @param {PromotionType} [type] promotion type
7273
+ * @param {Array<string>} [iDs] IDs to filter by
7268
7274
  * @param {*} [options] Override http request option.
7269
7275
  * @throws {RequiredError}
7270
7276
  */
7271
- 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>;
7277
+ 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>;
7272
7278
  /**
7273
7279
  * Update promotion by id
7274
7280
  * @summary Update promotion
@@ -7401,11 +7407,12 @@ export declare class PromotionApi extends BaseAPI {
7401
7407
  * @param {PromotionSortByField} [sortBy] sort by field
7402
7408
  * @param {SortDirection} [sortDirection] sort direction
7403
7409
  * @param {boolean} [onlyClaimable] only claimable promotions
7410
+ * @param {Array<string>} [iDs] IDs to filter by
7404
7411
  * @param {*} [options] Override http request option.
7405
7412
  * @throws {RequiredError}
7406
7413
  * @memberof PromotionApi
7407
7414
  */
7408
- 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<import("axios").AxiosResponse<PromotionsResponse, any>>;
7415
+ 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<import("axios").AxiosResponse<PromotionsResponse, any>>;
7409
7416
  /**
7410
7417
  * List users promotions
7411
7418
  * @summary List promotions
@@ -7420,11 +7427,12 @@ export declare class PromotionApi extends BaseAPI {
7420
7427
  * @param {SortDirection} [sortDirection] sort direction
7421
7428
  * @param {boolean} [onlyClaimable] only claimable promotions
7422
7429
  * @param {PromotionType} [type] promotion type
7430
+ * @param {Array<string>} [iDs] IDs to filter by
7423
7431
  * @param {*} [options] Override http request option.
7424
7432
  * @throws {RequiredError}
7425
7433
  * @memberof PromotionApi
7426
7434
  */
7427
- 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<import("axios").AxiosResponse<UserPromotionsResponse, any>>;
7435
+ 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<import("axios").AxiosResponse<UserPromotionsResponse, any>>;
7428
7436
  /**
7429
7437
  * Update promotion by id
7430
7438
  * @summary Update promotion
package/dist/api.js CHANGED
@@ -5473,10 +5473,11 @@ const PromotionApiAxiosParamCreator = function (configuration) {
5473
5473
  * @param {PromotionSortByField} [sortBy] sort by field
5474
5474
  * @param {SortDirection} [sortDirection] sort direction
5475
5475
  * @param {boolean} [onlyClaimable] only claimable promotions
5476
+ * @param {Array<string>} [iDs] IDs to filter by
5476
5477
  * @param {*} [options] Override http request option.
5477
5478
  * @throws {RequiredError}
5478
5479
  */
5479
- listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
5480
+ listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
5480
5481
  const localVarPath = `/admins/promotions`;
5481
5482
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5482
5483
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -5540,6 +5541,9 @@ const PromotionApiAxiosParamCreator = function (configuration) {
5540
5541
  if (onlyClaimable !== undefined) {
5541
5542
  localVarQueryParameter['onlyClaimable'] = onlyClaimable;
5542
5543
  }
5544
+ if (iDs) {
5545
+ localVarQueryParameter['IDs'] = iDs;
5546
+ }
5543
5547
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5544
5548
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5545
5549
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5562,10 +5566,11 @@ const PromotionApiAxiosParamCreator = function (configuration) {
5562
5566
  * @param {SortDirection} [sortDirection] sort direction
5563
5567
  * @param {boolean} [onlyClaimable] only claimable promotions
5564
5568
  * @param {PromotionType} [type] promotion type
5569
+ * @param {Array<string>} [iDs] IDs to filter by
5565
5570
  * @param {*} [options] Override http request option.
5566
5571
  * @throws {RequiredError}
5567
5572
  */
5568
- listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options = {}) => __awaiter(this, void 0, void 0, function* () {
5573
+ listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
5569
5574
  const localVarPath = `/users/promotions`;
5570
5575
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5571
5576
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -5620,6 +5625,9 @@ const PromotionApiAxiosParamCreator = function (configuration) {
5620
5625
  if (type !== undefined) {
5621
5626
  localVarQueryParameter['type'] = type;
5622
5627
  }
5628
+ if (iDs) {
5629
+ localVarQueryParameter['IDs'] = iDs;
5630
+ }
5623
5631
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5624
5632
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5625
5633
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5830,12 +5838,13 @@ const PromotionApiFp = function (configuration) {
5830
5838
  * @param {PromotionSortByField} [sortBy] sort by field
5831
5839
  * @param {SortDirection} [sortDirection] sort direction
5832
5840
  * @param {boolean} [onlyClaimable] only claimable promotions
5841
+ * @param {Array<string>} [iDs] IDs to filter by
5833
5842
  * @param {*} [options] Override http request option.
5834
5843
  * @throws {RequiredError}
5835
5844
  */
5836
- listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
5845
+ listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
5837
5846
  return __awaiter(this, void 0, void 0, function* () {
5838
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
5847
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options);
5839
5848
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
5840
5849
  });
5841
5850
  },
@@ -5853,12 +5862,13 @@ const PromotionApiFp = function (configuration) {
5853
5862
  * @param {SortDirection} [sortDirection] sort direction
5854
5863
  * @param {boolean} [onlyClaimable] only claimable promotions
5855
5864
  * @param {PromotionType} [type] promotion type
5865
+ * @param {Array<string>} [iDs] IDs to filter by
5856
5866
  * @param {*} [options] Override http request option.
5857
5867
  * @throws {RequiredError}
5858
5868
  */
5859
- listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
5869
+ listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
5860
5870
  return __awaiter(this, void 0, void 0, function* () {
5861
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options);
5871
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options);
5862
5872
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
5863
5873
  });
5864
5874
  },
@@ -6011,11 +6021,12 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
6011
6021
  * @param {PromotionSortByField} [sortBy] sort by field
6012
6022
  * @param {SortDirection} [sortDirection] sort direction
6013
6023
  * @param {boolean} [onlyClaimable] only claimable promotions
6024
+ * @param {Array<string>} [iDs] IDs to filter by
6014
6025
  * @param {*} [options] Override http request option.
6015
6026
  * @throws {RequiredError}
6016
6027
  */
6017
- listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
6018
- return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
6028
+ listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
6029
+ return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options).then((request) => request(axios, basePath));
6019
6030
  },
6020
6031
  /**
6021
6032
  * List users promotions
@@ -6031,11 +6042,12 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
6031
6042
  * @param {SortDirection} [sortDirection] sort direction
6032
6043
  * @param {boolean} [onlyClaimable] only claimable promotions
6033
6044
  * @param {PromotionType} [type] promotion type
6045
+ * @param {Array<string>} [iDs] IDs to filter by
6034
6046
  * @param {*} [options] Override http request option.
6035
6047
  * @throws {RequiredError}
6036
6048
  */
6037
- listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
6038
- return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(axios, basePath));
6049
+ listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
6050
+ return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(axios, basePath));
6039
6051
  },
6040
6052
  /**
6041
6053
  * Update promotion by id
@@ -6193,12 +6205,13 @@ class PromotionApi extends base_1.BaseAPI {
6193
6205
  * @param {PromotionSortByField} [sortBy] sort by field
6194
6206
  * @param {SortDirection} [sortDirection] sort direction
6195
6207
  * @param {boolean} [onlyClaimable] only claimable promotions
6208
+ * @param {Array<string>} [iDs] IDs to filter by
6196
6209
  * @param {*} [options] Override http request option.
6197
6210
  * @throws {RequiredError}
6198
6211
  * @memberof PromotionApi
6199
6212
  */
6200
- listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
6201
- return (0, exports.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));
6213
+ listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
6214
+ return (0, exports.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));
6202
6215
  }
6203
6216
  /**
6204
6217
  * List users promotions
@@ -6214,12 +6227,13 @@ class PromotionApi extends base_1.BaseAPI {
6214
6227
  * @param {SortDirection} [sortDirection] sort direction
6215
6228
  * @param {boolean} [onlyClaimable] only claimable promotions
6216
6229
  * @param {PromotionType} [type] promotion type
6230
+ * @param {Array<string>} [iDs] IDs to filter by
6217
6231
  * @param {*} [options] Override http request option.
6218
6232
  * @throws {RequiredError}
6219
6233
  * @memberof PromotionApi
6220
6234
  */
6221
- listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
6222
- return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(this.axios, this.basePath));
6235
+ listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
6236
+ return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(this.axios, this.basePath));
6223
6237
  }
6224
6238
  /**
6225
6239
  * Update promotion by id
package/dist/esm/api.d.ts CHANGED
@@ -6963,10 +6963,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
6963
6963
  * @param {PromotionSortByField} [sortBy] sort by field
6964
6964
  * @param {SortDirection} [sortDirection] sort direction
6965
6965
  * @param {boolean} [onlyClaimable] only claimable promotions
6966
+ * @param {Array<string>} [iDs] IDs to filter by
6966
6967
  * @param {*} [options] Override http request option.
6967
6968
  * @throws {RequiredError}
6968
6969
  */
6969
- 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<RequestArgs>;
6970
+ 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<RequestArgs>;
6970
6971
  /**
6971
6972
  * List users promotions
6972
6973
  * @summary List promotions
@@ -6981,10 +6982,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
6981
6982
  * @param {SortDirection} [sortDirection] sort direction
6982
6983
  * @param {boolean} [onlyClaimable] only claimable promotions
6983
6984
  * @param {PromotionType} [type] promotion type
6985
+ * @param {Array<string>} [iDs] IDs to filter by
6984
6986
  * @param {*} [options] Override http request option.
6985
6987
  * @throws {RequiredError}
6986
6988
  */
6987
- 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<RequestArgs>;
6989
+ 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<RequestArgs>;
6988
6990
  /**
6989
6991
  * Update promotion by id
6990
6992
  * @summary Update promotion
@@ -7105,10 +7107,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
7105
7107
  * @param {PromotionSortByField} [sortBy] sort by field
7106
7108
  * @param {SortDirection} [sortDirection] sort direction
7107
7109
  * @param {boolean} [onlyClaimable] only claimable promotions
7110
+ * @param {Array<string>} [iDs] IDs to filter by
7108
7111
  * @param {*} [options] Override http request option.
7109
7112
  * @throws {RequiredError}
7110
7113
  */
7111
- 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>>;
7114
+ 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>>;
7112
7115
  /**
7113
7116
  * List users promotions
7114
7117
  * @summary List promotions
@@ -7123,10 +7126,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
7123
7126
  * @param {SortDirection} [sortDirection] sort direction
7124
7127
  * @param {boolean} [onlyClaimable] only claimable promotions
7125
7128
  * @param {PromotionType} [type] promotion type
7129
+ * @param {Array<string>} [iDs] IDs to filter by
7126
7130
  * @param {*} [options] Override http request option.
7127
7131
  * @throws {RequiredError}
7128
7132
  */
7129
- 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>>;
7133
+ 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>>;
7130
7134
  /**
7131
7135
  * Update promotion by id
7132
7136
  * @summary Update promotion
@@ -7247,10 +7251,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
7247
7251
  * @param {PromotionSortByField} [sortBy] sort by field
7248
7252
  * @param {SortDirection} [sortDirection] sort direction
7249
7253
  * @param {boolean} [onlyClaimable] only claimable promotions
7254
+ * @param {Array<string>} [iDs] IDs to filter by
7250
7255
  * @param {*} [options] Override http request option.
7251
7256
  * @throws {RequiredError}
7252
7257
  */
7253
- 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>;
7258
+ 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>;
7254
7259
  /**
7255
7260
  * List users promotions
7256
7261
  * @summary List promotions
@@ -7265,10 +7270,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
7265
7270
  * @param {SortDirection} [sortDirection] sort direction
7266
7271
  * @param {boolean} [onlyClaimable] only claimable promotions
7267
7272
  * @param {PromotionType} [type] promotion type
7273
+ * @param {Array<string>} [iDs] IDs to filter by
7268
7274
  * @param {*} [options] Override http request option.
7269
7275
  * @throws {RequiredError}
7270
7276
  */
7271
- 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>;
7277
+ 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>;
7272
7278
  /**
7273
7279
  * Update promotion by id
7274
7280
  * @summary Update promotion
@@ -7401,11 +7407,12 @@ export declare class PromotionApi extends BaseAPI {
7401
7407
  * @param {PromotionSortByField} [sortBy] sort by field
7402
7408
  * @param {SortDirection} [sortDirection] sort direction
7403
7409
  * @param {boolean} [onlyClaimable] only claimable promotions
7410
+ * @param {Array<string>} [iDs] IDs to filter by
7404
7411
  * @param {*} [options] Override http request option.
7405
7412
  * @throws {RequiredError}
7406
7413
  * @memberof PromotionApi
7407
7414
  */
7408
- 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<import("axios").AxiosResponse<PromotionsResponse, any>>;
7415
+ 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<import("axios").AxiosResponse<PromotionsResponse, any>>;
7409
7416
  /**
7410
7417
  * List users promotions
7411
7418
  * @summary List promotions
@@ -7420,11 +7427,12 @@ export declare class PromotionApi extends BaseAPI {
7420
7427
  * @param {SortDirection} [sortDirection] sort direction
7421
7428
  * @param {boolean} [onlyClaimable] only claimable promotions
7422
7429
  * @param {PromotionType} [type] promotion type
7430
+ * @param {Array<string>} [iDs] IDs to filter by
7423
7431
  * @param {*} [options] Override http request option.
7424
7432
  * @throws {RequiredError}
7425
7433
  * @memberof PromotionApi
7426
7434
  */
7427
- 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<import("axios").AxiosResponse<UserPromotionsResponse, any>>;
7435
+ 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<import("axios").AxiosResponse<UserPromotionsResponse, any>>;
7428
7436
  /**
7429
7437
  * Update promotion by id
7430
7438
  * @summary Update promotion
package/dist/esm/api.js CHANGED
@@ -5416,10 +5416,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
5416
5416
  * @param {PromotionSortByField} [sortBy] sort by field
5417
5417
  * @param {SortDirection} [sortDirection] sort direction
5418
5418
  * @param {boolean} [onlyClaimable] only claimable promotions
5419
+ * @param {Array<string>} [iDs] IDs to filter by
5419
5420
  * @param {*} [options] Override http request option.
5420
5421
  * @throws {RequiredError}
5421
5422
  */
5422
- listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
5423
+ listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
5423
5424
  const localVarPath = `/admins/promotions`;
5424
5425
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5425
5426
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5483,6 +5484,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
5483
5484
  if (onlyClaimable !== undefined) {
5484
5485
  localVarQueryParameter['onlyClaimable'] = onlyClaimable;
5485
5486
  }
5487
+ if (iDs) {
5488
+ localVarQueryParameter['IDs'] = iDs;
5489
+ }
5486
5490
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5487
5491
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5488
5492
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5505,10 +5509,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
5505
5509
  * @param {SortDirection} [sortDirection] sort direction
5506
5510
  * @param {boolean} [onlyClaimable] only claimable promotions
5507
5511
  * @param {PromotionType} [type] promotion type
5512
+ * @param {Array<string>} [iDs] IDs to filter by
5508
5513
  * @param {*} [options] Override http request option.
5509
5514
  * @throws {RequiredError}
5510
5515
  */
5511
- listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options = {}) => __awaiter(this, void 0, void 0, function* () {
5516
+ listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
5512
5517
  const localVarPath = `/users/promotions`;
5513
5518
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5514
5519
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5563,6 +5568,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
5563
5568
  if (type !== undefined) {
5564
5569
  localVarQueryParameter['type'] = type;
5565
5570
  }
5571
+ if (iDs) {
5572
+ localVarQueryParameter['IDs'] = iDs;
5573
+ }
5566
5574
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5567
5575
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5568
5576
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5772,12 +5780,13 @@ export const PromotionApiFp = function (configuration) {
5772
5780
  * @param {PromotionSortByField} [sortBy] sort by field
5773
5781
  * @param {SortDirection} [sortDirection] sort direction
5774
5782
  * @param {boolean} [onlyClaimable] only claimable promotions
5783
+ * @param {Array<string>} [iDs] IDs to filter by
5775
5784
  * @param {*} [options] Override http request option.
5776
5785
  * @throws {RequiredError}
5777
5786
  */
5778
- listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
5787
+ listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
5779
5788
  return __awaiter(this, void 0, void 0, function* () {
5780
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
5789
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options);
5781
5790
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5782
5791
  });
5783
5792
  },
@@ -5795,12 +5804,13 @@ export const PromotionApiFp = function (configuration) {
5795
5804
  * @param {SortDirection} [sortDirection] sort direction
5796
5805
  * @param {boolean} [onlyClaimable] only claimable promotions
5797
5806
  * @param {PromotionType} [type] promotion type
5807
+ * @param {Array<string>} [iDs] IDs to filter by
5798
5808
  * @param {*} [options] Override http request option.
5799
5809
  * @throws {RequiredError}
5800
5810
  */
5801
- listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
5811
+ listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
5802
5812
  return __awaiter(this, void 0, void 0, function* () {
5803
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options);
5813
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options);
5804
5814
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5805
5815
  });
5806
5816
  },
@@ -5952,11 +5962,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
5952
5962
  * @param {PromotionSortByField} [sortBy] sort by field
5953
5963
  * @param {SortDirection} [sortDirection] sort direction
5954
5964
  * @param {boolean} [onlyClaimable] only claimable promotions
5965
+ * @param {Array<string>} [iDs] IDs to filter by
5955
5966
  * @param {*} [options] Override http request option.
5956
5967
  * @throws {RequiredError}
5957
5968
  */
5958
- listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
5959
- return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
5969
+ listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
5970
+ return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options).then((request) => request(axios, basePath));
5960
5971
  },
5961
5972
  /**
5962
5973
  * List users promotions
@@ -5972,11 +5983,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
5972
5983
  * @param {SortDirection} [sortDirection] sort direction
5973
5984
  * @param {boolean} [onlyClaimable] only claimable promotions
5974
5985
  * @param {PromotionType} [type] promotion type
5986
+ * @param {Array<string>} [iDs] IDs to filter by
5975
5987
  * @param {*} [options] Override http request option.
5976
5988
  * @throws {RequiredError}
5977
5989
  */
5978
- listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
5979
- return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(axios, basePath));
5990
+ listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
5991
+ return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(axios, basePath));
5980
5992
  },
5981
5993
  /**
5982
5994
  * Update promotion by id
@@ -6133,12 +6145,13 @@ export class PromotionApi extends BaseAPI {
6133
6145
  * @param {PromotionSortByField} [sortBy] sort by field
6134
6146
  * @param {SortDirection} [sortDirection] sort direction
6135
6147
  * @param {boolean} [onlyClaimable] only claimable promotions
6148
+ * @param {Array<string>} [iDs] IDs to filter by
6136
6149
  * @param {*} [options] Override http request option.
6137
6150
  * @throws {RequiredError}
6138
6151
  * @memberof PromotionApi
6139
6152
  */
6140
- listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
6141
- 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));
6153
+ listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
6154
+ 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));
6142
6155
  }
6143
6156
  /**
6144
6157
  * List users promotions
@@ -6154,12 +6167,13 @@ export class PromotionApi extends BaseAPI {
6154
6167
  * @param {SortDirection} [sortDirection] sort direction
6155
6168
  * @param {boolean} [onlyClaimable] only claimable promotions
6156
6169
  * @param {PromotionType} [type] promotion type
6170
+ * @param {Array<string>} [iDs] IDs to filter by
6157
6171
  * @param {*} [options] Override http request option.
6158
6172
  * @throws {RequiredError}
6159
6173
  * @memberof PromotionApi
6160
6174
  */
6161
- listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
6162
- return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(this.axios, this.basePath));
6175
+ listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
6176
+ 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));
6163
6177
  }
6164
6178
  /**
6165
6179
  * Update promotion by id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.1863",
3
+ "version": "0.0.1864",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {