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/dist/esm/api.d.ts CHANGED
@@ -1838,6 +1838,17 @@ export interface PromotionRequest {
1838
1838
  */
1839
1839
  'endAt': string;
1840
1840
  }
1841
+ /**
1842
+ *
1843
+ * @export
1844
+ * @enum {string}
1845
+ */
1846
+ export declare const PromotionSortByField: {
1847
+ readonly CreatedAt: "createdAt";
1848
+ readonly StartsAt: "startsAt";
1849
+ readonly EndsAt: "endsAt";
1850
+ };
1851
+ export type PromotionSortByField = typeof PromotionSortByField[keyof typeof PromotionSortByField];
1841
1852
  /**
1842
1853
  *
1843
1854
  * @export
@@ -2041,6 +2052,16 @@ export interface SegmentListResponse {
2041
2052
  */
2042
2053
  'hasMore': boolean;
2043
2054
  }
2055
+ /**
2056
+ *
2057
+ * @export
2058
+ * @enum {string}
2059
+ */
2060
+ export declare const SortDirection: {
2061
+ readonly Asc: "asc";
2062
+ readonly Desc: "desc";
2063
+ };
2064
+ export type SortDirection = typeof SortDirection[keyof typeof SortDirection];
2044
2065
  /**
2045
2066
  *
2046
2067
  * @export
@@ -4676,28 +4697,28 @@ export declare class ProductApi extends BaseAPI {
4676
4697
  */
4677
4698
  export declare const ProgressApiAxiosParamCreator: (configuration?: Configuration) => {
4678
4699
  /**
4679
- * List all progress of a promotion
4680
- * @summary List promotion\'s progress
4681
- * @param {string} id Promotion ID
4700
+ * List progress
4701
+ * @summary List progress
4702
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
4682
4703
  * @param {number} [periodID] Period ID
4683
- * @param {string} [userID] User ID
4684
- * @param {string} [clientID] Client ID
4704
+ * @param {Array<string>} [userIDs] User ID to filter by
4705
+ * @param {Array<string>} [clientIDs] Client ID to filter by
4685
4706
  * @param {ListProgressIntervalEnum} [interval] Interval
4686
4707
  * @param {string} [nextToken] This is the pagination token
4687
4708
  * @param {*} [options] Override http request option.
4688
4709
  * @throws {RequiredError}
4689
4710
  */
4690
- listProgress: (id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4711
+ listProgress: (promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4691
4712
  /**
4692
- * List users progress of a promotion
4693
- * @summary List promotion\'s progress
4694
- * @param {string} id Promotion ID
4713
+ * List users progress
4714
+ * @summary List progress
4715
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
4695
4716
  * @param {number} [periodID] Period ID
4696
4717
  * @param {string} [nextToken] This is the pagination token
4697
4718
  * @param {*} [options] Override http request option.
4698
4719
  * @throws {RequiredError}
4699
4720
  */
4700
- listUserProgress: (id: string, periodID?: number, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4721
+ listUserProgress: (promotionIDs: Array<string>, periodID?: number, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4701
4722
  };
4702
4723
  /**
4703
4724
  * ProgressApi - functional programming interface
@@ -4705,28 +4726,28 @@ export declare const ProgressApiAxiosParamCreator: (configuration?: Configuratio
4705
4726
  */
4706
4727
  export declare const ProgressApiFp: (configuration?: Configuration) => {
4707
4728
  /**
4708
- * List all progress of a promotion
4709
- * @summary List promotion\'s progress
4710
- * @param {string} id Promotion ID
4729
+ * List progress
4730
+ * @summary List progress
4731
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
4711
4732
  * @param {number} [periodID] Period ID
4712
- * @param {string} [userID] User ID
4713
- * @param {string} [clientID] Client ID
4733
+ * @param {Array<string>} [userIDs] User ID to filter by
4734
+ * @param {Array<string>} [clientIDs] Client ID to filter by
4714
4735
  * @param {ListProgressIntervalEnum} [interval] Interval
4715
4736
  * @param {string} [nextToken] This is the pagination token
4716
4737
  * @param {*} [options] Override http request option.
4717
4738
  * @throws {RequiredError}
4718
4739
  */
4719
- listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>>;
4740
+ 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>>;
4720
4741
  /**
4721
- * List users progress of a promotion
4722
- * @summary List promotion\'s progress
4723
- * @param {string} id Promotion ID
4742
+ * List users progress
4743
+ * @summary List progress
4744
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
4724
4745
  * @param {number} [periodID] Period ID
4725
4746
  * @param {string} [nextToken] This is the pagination token
4726
4747
  * @param {*} [options] Override http request option.
4727
4748
  * @throws {RequiredError}
4728
4749
  */
4729
- listUserProgress(id: string, periodID?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>>;
4750
+ listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>>;
4730
4751
  };
4731
4752
  /**
4732
4753
  * ProgressApi - factory interface
@@ -4734,28 +4755,28 @@ export declare const ProgressApiFp: (configuration?: Configuration) => {
4734
4755
  */
4735
4756
  export declare const ProgressApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4736
4757
  /**
4737
- * List all progress of a promotion
4738
- * @summary List promotion\'s progress
4739
- * @param {string} id Promotion ID
4758
+ * List progress
4759
+ * @summary List progress
4760
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
4740
4761
  * @param {number} [periodID] Period ID
4741
- * @param {string} [userID] User ID
4742
- * @param {string} [clientID] Client ID
4762
+ * @param {Array<string>} [userIDs] User ID to filter by
4763
+ * @param {Array<string>} [clientIDs] Client ID to filter by
4743
4764
  * @param {ListProgressIntervalEnum} [interval] Interval
4744
4765
  * @param {string} [nextToken] This is the pagination token
4745
4766
  * @param {*} [options] Override http request option.
4746
4767
  * @throws {RequiredError}
4747
4768
  */
4748
- listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: any): AxiosPromise<ProgressResponse>;
4769
+ listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ListProgressIntervalEnum, nextToken?: string, options?: any): AxiosPromise<ProgressResponse>;
4749
4770
  /**
4750
- * List users progress of a promotion
4751
- * @summary List promotion\'s progress
4752
- * @param {string} id Promotion ID
4771
+ * List users progress
4772
+ * @summary List progress
4773
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
4753
4774
  * @param {number} [periodID] Period ID
4754
4775
  * @param {string} [nextToken] This is the pagination token
4755
4776
  * @param {*} [options] Override http request option.
4756
4777
  * @throws {RequiredError}
4757
4778
  */
4758
- listUserProgress(id: string, periodID?: number, nextToken?: string, options?: any): AxiosPromise<ProgressResponse>;
4779
+ listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, options?: any): AxiosPromise<ProgressResponse>;
4759
4780
  };
4760
4781
  /**
4761
4782
  * ProgressApi - object-oriented interface
@@ -4765,30 +4786,30 @@ export declare const ProgressApiFactory: (configuration?: Configuration, basePat
4765
4786
  */
4766
4787
  export declare class ProgressApi extends BaseAPI {
4767
4788
  /**
4768
- * List all progress of a promotion
4769
- * @summary List promotion\'s progress
4770
- * @param {string} id Promotion ID
4789
+ * List progress
4790
+ * @summary List progress
4791
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
4771
4792
  * @param {number} [periodID] Period ID
4772
- * @param {string} [userID] User ID
4773
- * @param {string} [clientID] Client ID
4793
+ * @param {Array<string>} [userIDs] User ID to filter by
4794
+ * @param {Array<string>} [clientIDs] Client ID to filter by
4774
4795
  * @param {ListProgressIntervalEnum} [interval] Interval
4775
4796
  * @param {string} [nextToken] This is the pagination token
4776
4797
  * @param {*} [options] Override http request option.
4777
4798
  * @throws {RequiredError}
4778
4799
  * @memberof ProgressApi
4779
4800
  */
4780
- listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProgressResponse, any>>;
4801
+ listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProgressResponse, any>>;
4781
4802
  /**
4782
- * List users progress of a promotion
4783
- * @summary List promotion\'s progress
4784
- * @param {string} id Promotion ID
4803
+ * List users progress
4804
+ * @summary List progress
4805
+ * @param {Array<string>} promotionIDs Promotion ID to filter by
4785
4806
  * @param {number} [periodID] Period ID
4786
4807
  * @param {string} [nextToken] This is the pagination token
4787
4808
  * @param {*} [options] Override http request option.
4788
4809
  * @throws {RequiredError}
4789
4810
  * @memberof ProgressApi
4790
4811
  */
4791
- listUserProgress(id: string, periodID?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProgressResponse, any>>;
4812
+ listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProgressResponse, any>>;
4792
4813
  }
4793
4814
  /**
4794
4815
  * @export
@@ -4893,10 +4914,12 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
4893
4914
  * @param {string} [endingAfter] end time after time
4894
4915
  * @param {Array<string>} [clientIDs] client ID to filter by
4895
4916
  * @param {string} [search] search by name or description
4917
+ * @param {PromotionSortByField} [sortBy] sort by field
4918
+ * @param {SortDirection} [sortDirection] sort direction
4896
4919
  * @param {*} [options] Override http request option.
4897
4920
  * @throws {RequiredError}
4898
4921
  */
4899
- 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<RequestArgs>;
4922
+ 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<RequestArgs>;
4900
4923
  /**
4901
4924
  * List users promotions
4902
4925
  * @summary List promotions
@@ -4907,10 +4930,12 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
4907
4930
  * @param {string} [startingBefore] start time before time
4908
4931
  * @param {string} [endingAfter] end time after time
4909
4932
  * @param {string} [search] search by name or description
4933
+ * @param {PromotionSortByField} [sortBy] sort by field
4934
+ * @param {SortDirection} [sortDirection] sort direction
4910
4935
  * @param {*} [options] Override http request option.
4911
4936
  * @throws {RequiredError}
4912
4937
  */
4913
- listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4938
+ listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4914
4939
  /**
4915
4940
  * Update promotion by id
4916
4941
  * @summary Update promotion
@@ -5014,10 +5039,12 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
5014
5039
  * @param {string} [endingAfter] end time after time
5015
5040
  * @param {Array<string>} [clientIDs] client ID to filter by
5016
5041
  * @param {string} [search] search by name or description
5042
+ * @param {PromotionSortByField} [sortBy] sort by field
5043
+ * @param {SortDirection} [sortDirection] sort direction
5017
5044
  * @param {*} [options] Override http request option.
5018
5045
  * @throws {RequiredError}
5019
5046
  */
5020
- 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>>;
5047
+ 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>>;
5021
5048
  /**
5022
5049
  * List users promotions
5023
5050
  * @summary List promotions
@@ -5028,10 +5055,12 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
5028
5055
  * @param {string} [startingBefore] start time before time
5029
5056
  * @param {string} [endingAfter] end time after time
5030
5057
  * @param {string} [search] search by name or description
5058
+ * @param {PromotionSortByField} [sortBy] sort by field
5059
+ * @param {SortDirection} [sortDirection] sort direction
5031
5060
  * @param {*} [options] Override http request option.
5032
5061
  * @throws {RequiredError}
5033
5062
  */
5034
- listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
5063
+ 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>>;
5035
5064
  /**
5036
5065
  * Update promotion by id
5037
5066
  * @summary Update promotion
@@ -5135,10 +5164,12 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
5135
5164
  * @param {string} [endingAfter] end time after time
5136
5165
  * @param {Array<string>} [clientIDs] client ID to filter by
5137
5166
  * @param {string} [search] search by name or description
5167
+ * @param {PromotionSortByField} [sortBy] sort by field
5168
+ * @param {SortDirection} [sortDirection] sort direction
5138
5169
  * @param {*} [options] Override http request option.
5139
5170
  * @throws {RequiredError}
5140
5171
  */
5141
- 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>;
5172
+ 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>;
5142
5173
  /**
5143
5174
  * List users promotions
5144
5175
  * @summary List promotions
@@ -5149,10 +5180,12 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
5149
5180
  * @param {string} [startingBefore] start time before time
5150
5181
  * @param {string} [endingAfter] end time after time
5151
5182
  * @param {string} [search] search by name or description
5183
+ * @param {PromotionSortByField} [sortBy] sort by field
5184
+ * @param {SortDirection} [sortDirection] sort direction
5152
5185
  * @param {*} [options] Override http request option.
5153
5186
  * @throws {RequiredError}
5154
5187
  */
5155
- listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
5188
+ listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse>;
5156
5189
  /**
5157
5190
  * Update promotion by id
5158
5191
  * @summary Update promotion
@@ -5267,11 +5300,13 @@ export declare class PromotionApi extends BaseAPI {
5267
5300
  * @param {string} [endingAfter] end time after time
5268
5301
  * @param {Array<string>} [clientIDs] client ID to filter by
5269
5302
  * @param {string} [search] search by name or description
5303
+ * @param {PromotionSortByField} [sortBy] sort by field
5304
+ * @param {SortDirection} [sortDirection] sort direction
5270
5305
  * @param {*} [options] Override http request option.
5271
5306
  * @throws {RequiredError}
5272
5307
  * @memberof PromotionApi
5273
5308
  */
5274
- 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<import("axios").AxiosResponse<PromotionsResponse, any>>;
5309
+ 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<import("axios").AxiosResponse<PromotionsResponse, any>>;
5275
5310
  /**
5276
5311
  * List users promotions
5277
5312
  * @summary List promotions
@@ -5282,11 +5317,13 @@ export declare class PromotionApi extends BaseAPI {
5282
5317
  * @param {string} [startingBefore] start time before time
5283
5318
  * @param {string} [endingAfter] end time after time
5284
5319
  * @param {string} [search] search by name or description
5320
+ * @param {PromotionSortByField} [sortBy] sort by field
5321
+ * @param {SortDirection} [sortDirection] sort direction
5285
5322
  * @param {*} [options] Override http request option.
5286
5323
  * @throws {RequiredError}
5287
5324
  * @memberof PromotionApi
5288
5325
  */
5289
- listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
5326
+ listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
5290
5327
  /**
5291
5328
  * Update promotion by id
5292
5329
  * @summary Update promotion