flexinet-api 0.0.416-prerelease0 → 0.0.428-prerelease0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## flexinet-api@0.0.416-prerelease0
1
+ ## flexinet-api@0.0.428-prerelease0
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.416-prerelease0 --save
39
+ npm install flexinet-api@0.0.428-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -1926,6 +1926,21 @@ export interface PromotionRequest {
1926
1926
  }
1927
1927
 
1928
1928
 
1929
+ /**
1930
+ *
1931
+ * @export
1932
+ * @enum {string}
1933
+ */
1934
+
1935
+ export const PromotionSortByField = {
1936
+ CreatedAt: 'createdAt',
1937
+ StartsAt: 'startsAt',
1938
+ EndsAt: 'endsAt'
1939
+ } as const;
1940
+
1941
+ export type PromotionSortByField = typeof PromotionSortByField[keyof typeof PromotionSortByField];
1942
+
1943
+
1929
1944
  /**
1930
1945
  *
1931
1946
  * @export
@@ -2146,6 +2161,20 @@ export interface SegmentListResponse {
2146
2161
  */
2147
2162
  'hasMore': boolean;
2148
2163
  }
2164
+ /**
2165
+ *
2166
+ * @export
2167
+ * @enum {string}
2168
+ */
2169
+
2170
+ export const SortDirection = {
2171
+ Asc: 'asc',
2172
+ Desc: 'desc'
2173
+ } as const;
2174
+
2175
+ export type SortDirection = typeof SortDirection[keyof typeof SortDirection];
2176
+
2177
+
2149
2178
  /**
2150
2179
  *
2151
2180
  * @export
@@ -6561,22 +6590,21 @@ export class ProductApi extends BaseAPI {
6561
6590
  export const ProgressApiAxiosParamCreator = function (configuration?: Configuration) {
6562
6591
  return {
6563
6592
  /**
6564
- * List all progress of a promotion
6565
- * @summary List promotion\'s progress
6566
- * @param {string} id Promotion ID
6593
+ * List progress
6594
+ * @summary List progress
6595
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
6567
6596
  * @param {number} [periodID] Period ID
6568
- * @param {string} [userID] User ID
6569
- * @param {string} [clientID] Client ID
6597
+ * @param {Array<string>} [userIDs] User ID to filter by
6598
+ * @param {Array<string>} [clientIDs] Client ID to filter by
6570
6599
  * @param {ListProgressIntervalEnum} [interval] Interval
6571
6600
  * @param {string} [nextToken] This is the pagination token
6572
6601
  * @param {*} [options] Override http request option.
6573
6602
  * @throws {RequiredError}
6574
6603
  */
6575
- listProgress: async (id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6576
- // verify required parameter 'id' is not null or undefined
6577
- assertParamExists('listProgress', 'id', id)
6578
- const localVarPath = `/admins/promotions/{id}/progress`
6579
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6604
+ listProgress: async (promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ListProgressIntervalEnum, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6605
+ // verify required parameter 'promotionIDs' is not null or undefined
6606
+ assertParamExists('listProgress', 'promotionIDs', promotionIDs)
6607
+ const localVarPath = `/admins/progress`;
6580
6608
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6581
6609
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6582
6610
  let baseOptions;
@@ -6592,16 +6620,20 @@ export const ProgressApiAxiosParamCreator = function (configuration?: Configurat
6592
6620
  // http bearer authentication required
6593
6621
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
6594
6622
 
6623
+ if (promotionIDs) {
6624
+ localVarQueryParameter['promotionIDs'] = promotionIDs;
6625
+ }
6626
+
6595
6627
  if (periodID !== undefined) {
6596
6628
  localVarQueryParameter['periodID'] = periodID;
6597
6629
  }
6598
6630
 
6599
- if (userID !== undefined) {
6600
- localVarQueryParameter['userID'] = userID;
6631
+ if (userIDs) {
6632
+ localVarQueryParameter['userIDs'] = userIDs;
6601
6633
  }
6602
6634
 
6603
- if (clientID !== undefined) {
6604
- localVarQueryParameter['clientID'] = clientID;
6635
+ if (clientIDs) {
6636
+ localVarQueryParameter['clientIDs'] = clientIDs;
6605
6637
  }
6606
6638
 
6607
6639
  if (interval !== undefined) {
@@ -6624,19 +6656,18 @@ export const ProgressApiAxiosParamCreator = function (configuration?: Configurat
6624
6656
  };
6625
6657
  },
6626
6658
  /**
6627
- * List users progress of a promotion
6628
- * @summary List promotion\'s progress
6629
- * @param {string} id Promotion ID
6659
+ * List users progress
6660
+ * @summary List progress
6661
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
6630
6662
  * @param {number} [periodID] Period ID
6631
6663
  * @param {string} [nextToken] This is the pagination token
6632
6664
  * @param {*} [options] Override http request option.
6633
6665
  * @throws {RequiredError}
6634
6666
  */
6635
- listUserProgress: async (id: string, periodID?: number, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6636
- // verify required parameter 'id' is not null or undefined
6637
- assertParamExists('listUserProgress', 'id', id)
6638
- const localVarPath = `/users/promotions/{id}/progress`
6639
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6667
+ listUserProgress: async (promotionIDs: Array<string>, periodID?: number, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6668
+ // verify required parameter 'promotionIDs' is not null or undefined
6669
+ assertParamExists('listUserProgress', 'promotionIDs', promotionIDs)
6670
+ const localVarPath = `/users/progress`;
6640
6671
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6641
6672
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6642
6673
  let baseOptions;
@@ -6652,6 +6683,10 @@ export const ProgressApiAxiosParamCreator = function (configuration?: Configurat
6652
6683
  // http bearer authentication required
6653
6684
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
6654
6685
 
6686
+ if (promotionIDs) {
6687
+ localVarQueryParameter['promotionIDs'] = promotionIDs;
6688
+ }
6689
+
6655
6690
  if (periodID !== undefined) {
6656
6691
  localVarQueryParameter['periodID'] = periodID;
6657
6692
  }
@@ -6682,32 +6717,32 @@ export const ProgressApiFp = function(configuration?: Configuration) {
6682
6717
  const localVarAxiosParamCreator = ProgressApiAxiosParamCreator(configuration)
6683
6718
  return {
6684
6719
  /**
6685
- * List all progress of a promotion
6686
- * @summary List promotion\'s progress
6687
- * @param {string} id Promotion ID
6720
+ * List progress
6721
+ * @summary List progress
6722
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
6688
6723
  * @param {number} [periodID] Period ID
6689
- * @param {string} [userID] User ID
6690
- * @param {string} [clientID] Client ID
6724
+ * @param {Array<string>} [userIDs] User ID to filter by
6725
+ * @param {Array<string>} [clientIDs] Client ID to filter by
6691
6726
  * @param {ListProgressIntervalEnum} [interval] Interval
6692
6727
  * @param {string} [nextToken] This is the pagination token
6693
6728
  * @param {*} [options] Override http request option.
6694
6729
  * @throws {RequiredError}
6695
6730
  */
6696
- async listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>> {
6697
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProgress(id, periodID, userID, clientID, interval, nextToken, options);
6731
+ async listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>> {
6732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options);
6698
6733
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6699
6734
  },
6700
6735
  /**
6701
- * List users progress of a promotion
6702
- * @summary List promotion\'s progress
6703
- * @param {string} id Promotion ID
6736
+ * List users progress
6737
+ * @summary List progress
6738
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
6704
6739
  * @param {number} [periodID] Period ID
6705
6740
  * @param {string} [nextToken] This is the pagination token
6706
6741
  * @param {*} [options] Override http request option.
6707
6742
  * @throws {RequiredError}
6708
6743
  */
6709
- async listUserProgress(id: string, periodID?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>> {
6710
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProgress(id, periodID, nextToken, options);
6744
+ async listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>> {
6745
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProgress(promotionIDs, periodID, nextToken, options);
6711
6746
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6712
6747
  },
6713
6748
  }
@@ -6721,31 +6756,31 @@ export const ProgressApiFactory = function (configuration?: Configuration, baseP
6721
6756
  const localVarFp = ProgressApiFp(configuration)
6722
6757
  return {
6723
6758
  /**
6724
- * List all progress of a promotion
6725
- * @summary List promotion\'s progress
6726
- * @param {string} id Promotion ID
6759
+ * List progress
6760
+ * @summary List progress
6761
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
6727
6762
  * @param {number} [periodID] Period ID
6728
- * @param {string} [userID] User ID
6729
- * @param {string} [clientID] Client ID
6763
+ * @param {Array<string>} [userIDs] User ID to filter by
6764
+ * @param {Array<string>} [clientIDs] Client ID to filter by
6730
6765
  * @param {ListProgressIntervalEnum} [interval] Interval
6731
6766
  * @param {string} [nextToken] This is the pagination token
6732
6767
  * @param {*} [options] Override http request option.
6733
6768
  * @throws {RequiredError}
6734
6769
  */
6735
- listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: any): AxiosPromise<ProgressResponse> {
6736
- return localVarFp.listProgress(id, periodID, userID, clientID, interval, nextToken, options).then((request) => request(axios, basePath));
6770
+ listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ListProgressIntervalEnum, nextToken?: string, options?: any): AxiosPromise<ProgressResponse> {
6771
+ return localVarFp.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options).then((request) => request(axios, basePath));
6737
6772
  },
6738
6773
  /**
6739
- * List users progress of a promotion
6740
- * @summary List promotion\'s progress
6741
- * @param {string} id Promotion ID
6774
+ * List users progress
6775
+ * @summary List progress
6776
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
6742
6777
  * @param {number} [periodID] Period ID
6743
6778
  * @param {string} [nextToken] This is the pagination token
6744
6779
  * @param {*} [options] Override http request option.
6745
6780
  * @throws {RequiredError}
6746
6781
  */
6747
- listUserProgress(id: string, periodID?: number, nextToken?: string, options?: any): AxiosPromise<ProgressResponse> {
6748
- return localVarFp.listUserProgress(id, periodID, nextToken, options).then((request) => request(axios, basePath));
6782
+ listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, options?: any): AxiosPromise<ProgressResponse> {
6783
+ return localVarFp.listUserProgress(promotionIDs, periodID, nextToken, options).then((request) => request(axios, basePath));
6749
6784
  },
6750
6785
  };
6751
6786
  };
@@ -6758,34 +6793,34 @@ export const ProgressApiFactory = function (configuration?: Configuration, baseP
6758
6793
  */
6759
6794
  export class ProgressApi extends BaseAPI {
6760
6795
  /**
6761
- * List all progress of a promotion
6762
- * @summary List promotion\'s progress
6763
- * @param {string} id Promotion ID
6796
+ * List progress
6797
+ * @summary List progress
6798
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
6764
6799
  * @param {number} [periodID] Period ID
6765
- * @param {string} [userID] User ID
6766
- * @param {string} [clientID] Client ID
6800
+ * @param {Array<string>} [userIDs] User ID to filter by
6801
+ * @param {Array<string>} [clientIDs] Client ID to filter by
6767
6802
  * @param {ListProgressIntervalEnum} [interval] Interval
6768
6803
  * @param {string} [nextToken] This is the pagination token
6769
6804
  * @param {*} [options] Override http request option.
6770
6805
  * @throws {RequiredError}
6771
6806
  * @memberof ProgressApi
6772
6807
  */
6773
- public listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig) {
6774
- return ProgressApiFp(this.configuration).listProgress(id, periodID, userID, clientID, interval, nextToken, options).then((request) => request(this.axios, this.basePath));
6808
+ public listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig) {
6809
+ return ProgressApiFp(this.configuration).listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options).then((request) => request(this.axios, this.basePath));
6775
6810
  }
6776
6811
 
6777
6812
  /**
6778
- * List users progress of a promotion
6779
- * @summary List promotion\'s progress
6780
- * @param {string} id Promotion ID
6813
+ * List users progress
6814
+ * @summary List progress
6815
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
6781
6816
  * @param {number} [periodID] Period ID
6782
6817
  * @param {string} [nextToken] This is the pagination token
6783
6818
  * @param {*} [options] Override http request option.
6784
6819
  * @throws {RequiredError}
6785
6820
  * @memberof ProgressApi
6786
6821
  */
6787
- public listUserProgress(id: string, periodID?: number, nextToken?: string, options?: AxiosRequestConfig) {
6788
- return ProgressApiFp(this.configuration).listUserProgress(id, periodID, nextToken, options).then((request) => request(this.axios, this.basePath));
6822
+ public listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, options?: AxiosRequestConfig) {
6823
+ return ProgressApiFp(this.configuration).listUserProgress(promotionIDs, periodID, nextToken, options).then((request) => request(this.axios, this.basePath));
6789
6824
  }
6790
6825
  }
6791
6826
 
@@ -7157,10 +7192,12 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
7157
7192
  * @param {string} [endingAfter] end time after time
7158
7193
  * @param {Array<string>} [clientIDs] client ID to filter by
7159
7194
  * @param {string} [search] search by name or description
7195
+ * @param {PromotionSortByField} [sortBy] sort by field
7196
+ * @param {SortDirection} [sortDirection] sort direction
7160
7197
  * @param {*} [options] Override http request option.
7161
7198
  * @throws {RequiredError}
7162
7199
  */
7163
- 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, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7200
+ 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, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7164
7201
  const localVarPath = `/admins/promotions`;
7165
7202
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7166
7203
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7229,6 +7266,14 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
7229
7266
  localVarQueryParameter['search'] = search;
7230
7267
  }
7231
7268
 
7269
+ if (sortBy !== undefined) {
7270
+ localVarQueryParameter['sortBy'] = sortBy;
7271
+ }
7272
+
7273
+ if (sortDirection !== undefined) {
7274
+ localVarQueryParameter['sortDirection'] = sortDirection;
7275
+ }
7276
+
7232
7277
 
7233
7278
 
7234
7279
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7250,10 +7295,12 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
7250
7295
  * @param {string} [startingBefore] start time before time
7251
7296
  * @param {string} [endingAfter] end time after time
7252
7297
  * @param {string} [search] search by name or description
7298
+ * @param {PromotionSortByField} [sortBy] sort by field
7299
+ * @param {SortDirection} [sortDirection] sort direction
7253
7300
  * @param {*} [options] Override http request option.
7254
7301
  * @throws {RequiredError}
7255
7302
  */
7256
- listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7303
+ listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7257
7304
  const localVarPath = `/users/promotions`;
7258
7305
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7259
7306
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7306,6 +7353,14 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
7306
7353
  localVarQueryParameter['search'] = search;
7307
7354
  }
7308
7355
 
7356
+ if (sortBy !== undefined) {
7357
+ localVarQueryParameter['sortBy'] = sortBy;
7358
+ }
7359
+
7360
+ if (sortDirection !== undefined) {
7361
+ localVarQueryParameter['sortDirection'] = sortDirection;
7362
+ }
7363
+
7309
7364
 
7310
7365
 
7311
7366
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7486,11 +7541,13 @@ export const PromotionApiFp = function(configuration?: Configuration) {
7486
7541
  * @param {string} [endingAfter] end time after time
7487
7542
  * @param {Array<string>} [clientIDs] client ID to filter by
7488
7543
  * @param {string} [search] search by name or description
7544
+ * @param {PromotionSortByField} [sortBy] sort by field
7545
+ * @param {SortDirection} [sortDirection] sort direction
7489
7546
  * @param {*} [options] Override http request option.
7490
7547
  * @throws {RequiredError}
7491
7548
  */
7492
- 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, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
7493
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options);
7549
+ 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, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
7550
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options);
7494
7551
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7495
7552
  },
7496
7553
  /**
@@ -7503,11 +7560,13 @@ export const PromotionApiFp = function(configuration?: Configuration) {
7503
7560
  * @param {string} [startingBefore] start time before time
7504
7561
  * @param {string} [endingAfter] end time after time
7505
7562
  * @param {string} [search] search by name or description
7563
+ * @param {PromotionSortByField} [sortBy] sort by field
7564
+ * @param {SortDirection} [sortDirection] sort direction
7506
7565
  * @param {*} [options] Override http request option.
7507
7566
  * @throws {RequiredError}
7508
7567
  */
7509
- async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
7510
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options);
7568
+ async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
7569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
7511
7570
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7512
7571
  },
7513
7572
  /**
@@ -7638,11 +7697,13 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
7638
7697
  * @param {string} [endingAfter] end time after time
7639
7698
  * @param {Array<string>} [clientIDs] client ID to filter by
7640
7699
  * @param {string} [search] search by name or description
7700
+ * @param {PromotionSortByField} [sortBy] sort by field
7701
+ * @param {SortDirection} [sortDirection] sort direction
7641
7702
  * @param {*} [options] Override http request option.
7642
7703
  * @throws {RequiredError}
7643
7704
  */
7644
- listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: any): AxiosPromise<PromotionsResponse> {
7645
- return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(axios, basePath));
7705
+ 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, options?: any): AxiosPromise<PromotionsResponse> {
7706
+ return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
7646
7707
  },
7647
7708
  /**
7648
7709
  * List users promotions
@@ -7654,11 +7715,13 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
7654
7715
  * @param {string} [startingBefore] start time before time
7655
7716
  * @param {string} [endingAfter] end time after time
7656
7717
  * @param {string} [search] search by name or description
7718
+ * @param {PromotionSortByField} [sortBy] sort by field
7719
+ * @param {SortDirection} [sortDirection] sort direction
7657
7720
  * @param {*} [options] Override http request option.
7658
7721
  * @throws {RequiredError}
7659
7722
  */
7660
- listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse> {
7661
- return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(axios, basePath));
7723
+ listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse> {
7724
+ return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
7662
7725
  },
7663
7726
  /**
7664
7727
  * Update promotion by id
@@ -7805,12 +7868,14 @@ export class PromotionApi extends BaseAPI {
7805
7868
  * @param {string} [endingAfter] end time after time
7806
7869
  * @param {Array<string>} [clientIDs] client ID to filter by
7807
7870
  * @param {string} [search] search by name or description
7871
+ * @param {PromotionSortByField} [sortBy] sort by field
7872
+ * @param {SortDirection} [sortDirection] sort direction
7808
7873
  * @param {*} [options] Override http request option.
7809
7874
  * @throws {RequiredError}
7810
7875
  * @memberof PromotionApi
7811
7876
  */
7812
- 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, options?: AxiosRequestConfig) {
7813
- return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(this.axios, this.basePath));
7877
+ 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, options?: AxiosRequestConfig) {
7878
+ return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
7814
7879
  }
7815
7880
 
7816
7881
  /**
@@ -7823,12 +7888,14 @@ export class PromotionApi extends BaseAPI {
7823
7888
  * @param {string} [startingBefore] start time before time
7824
7889
  * @param {string} [endingAfter] end time after time
7825
7890
  * @param {string} [search] search by name or description
7891
+ * @param {PromotionSortByField} [sortBy] sort by field
7892
+ * @param {SortDirection} [sortDirection] sort direction
7826
7893
  * @param {*} [options] Override http request option.
7827
7894
  * @throws {RequiredError}
7828
7895
  * @memberof PromotionApi
7829
7896
  */
7830
- public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig) {
7831
- return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(this.axios, this.basePath));
7897
+ public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) {
7898
+ return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
7832
7899
  }
7833
7900
 
7834
7901
  /**