flexinet-api 0.0.877-prerelease0 → 0.0.879-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 +2 -2
- package/api.ts +15 -7
- package/dist/api.d.ts +8 -4
- package/dist/api.js +14 -7
- package/dist/esm/api.d.ts +8 -4
- package/dist/esm/api.js +14 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.879-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.
|
|
39
|
+
npm install flexinet-api@0.0.879-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -8687,10 +8687,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
8687
8687
|
* @param {string} [nextToken] This is the pagination token
|
|
8688
8688
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
8689
8689
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
8690
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
8690
8691
|
* @param {*} [options] Override http request option.
|
|
8691
8692
|
* @throws {RequiredError}
|
|
8692
8693
|
*/
|
|
8693
|
-
listPromotionBeneficiaries: async (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8694
|
+
listPromotionBeneficiaries: async (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8694
8695
|
// verify required parameter 'id' is not null or undefined
|
|
8695
8696
|
assertParamExists('listPromotionBeneficiaries', 'id', id)
|
|
8696
8697
|
const localVarPath = `/admins/promotions/{id}/beneficiaries`
|
|
@@ -8730,6 +8731,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
8730
8731
|
localVarQueryParameter['interval'] = interval;
|
|
8731
8732
|
}
|
|
8732
8733
|
|
|
8734
|
+
if (state !== undefined) {
|
|
8735
|
+
localVarQueryParameter['state'] = state;
|
|
8736
|
+
}
|
|
8737
|
+
|
|
8733
8738
|
|
|
8734
8739
|
|
|
8735
8740
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -9109,11 +9114,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
9109
9114
|
* @param {string} [nextToken] This is the pagination token
|
|
9110
9115
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
9111
9116
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
9117
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
9112
9118
|
* @param {*} [options] Override http request option.
|
|
9113
9119
|
* @throws {RequiredError}
|
|
9114
9120
|
*/
|
|
9115
|
-
async listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>> {
|
|
9116
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options);
|
|
9121
|
+
async listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>> {
|
|
9122
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options);
|
|
9117
9123
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9118
9124
|
},
|
|
9119
9125
|
/**
|
|
@@ -9283,11 +9289,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
9283
9289
|
* @param {string} [nextToken] This is the pagination token
|
|
9284
9290
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
9285
9291
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
9292
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
9286
9293
|
* @param {*} [options] Override http request option.
|
|
9287
9294
|
* @throws {RequiredError}
|
|
9288
9295
|
*/
|
|
9289
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: any): AxiosPromise<PromotionBeneficiariesResponse> {
|
|
9290
|
-
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options).then((request) => request(axios, basePath));
|
|
9296
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: any): AxiosPromise<PromotionBeneficiariesResponse> {
|
|
9297
|
+
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options).then((request) => request(axios, basePath));
|
|
9291
9298
|
},
|
|
9292
9299
|
/**
|
|
9293
9300
|
* List all promotions
|
|
@@ -9471,12 +9478,13 @@ export class PromotionApi extends BaseAPI {
|
|
|
9471
9478
|
* @param {string} [nextToken] This is the pagination token
|
|
9472
9479
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
9473
9480
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
9481
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
9474
9482
|
* @param {*} [options] Override http request option.
|
|
9475
9483
|
* @throws {RequiredError}
|
|
9476
9484
|
* @memberof PromotionApi
|
|
9477
9485
|
*/
|
|
9478
|
-
public listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: AxiosRequestConfig) {
|
|
9479
|
-
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options).then((request) => request(this.axios, this.basePath));
|
|
9486
|
+
public listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: AxiosRequestConfig) {
|
|
9487
|
+
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options).then((request) => request(this.axios, this.basePath));
|
|
9480
9488
|
}
|
|
9481
9489
|
|
|
9482
9490
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -5998,10 +5998,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
5998
5998
|
* @param {string} [nextToken] This is the pagination token
|
|
5999
5999
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
6000
6000
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
6001
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
6001
6002
|
* @param {*} [options] Override http request option.
|
|
6002
6003
|
* @throws {RequiredError}
|
|
6003
6004
|
*/
|
|
6004
|
-
listPromotionBeneficiaries: (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6005
|
+
listPromotionBeneficiaries: (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6005
6006
|
/**
|
|
6006
6007
|
* List all promotions
|
|
6007
6008
|
* @summary List promotions
|
|
@@ -6138,10 +6139,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
6138
6139
|
* @param {string} [nextToken] This is the pagination token
|
|
6139
6140
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
6140
6141
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
6142
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
6141
6143
|
* @param {*} [options] Override http request option.
|
|
6142
6144
|
* @throws {RequiredError}
|
|
6143
6145
|
*/
|
|
6144
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>>;
|
|
6146
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>>;
|
|
6145
6147
|
/**
|
|
6146
6148
|
* List all promotions
|
|
6147
6149
|
* @summary List promotions
|
|
@@ -6278,10 +6280,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
6278
6280
|
* @param {string} [nextToken] This is the pagination token
|
|
6279
6281
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
6280
6282
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
6283
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
6281
6284
|
* @param {*} [options] Override http request option.
|
|
6282
6285
|
* @throws {RequiredError}
|
|
6283
6286
|
*/
|
|
6284
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: any): AxiosPromise<PromotionBeneficiariesResponse>;
|
|
6287
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: any): AxiosPromise<PromotionBeneficiariesResponse>;
|
|
6285
6288
|
/**
|
|
6286
6289
|
* List all promotions
|
|
6287
6290
|
* @summary List promotions
|
|
@@ -6429,11 +6432,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
6429
6432
|
* @param {string} [nextToken] This is the pagination token
|
|
6430
6433
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
6431
6434
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
6435
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
6432
6436
|
* @param {*} [options] Override http request option.
|
|
6433
6437
|
* @throws {RequiredError}
|
|
6434
6438
|
* @memberof PromotionApi
|
|
6435
6439
|
*/
|
|
6436
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionBeneficiariesResponse, any>>;
|
|
6440
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionBeneficiariesResponse, any>>;
|
|
6437
6441
|
/**
|
|
6438
6442
|
* List all promotions
|
|
6439
6443
|
* @summary List promotions
|
package/dist/api.js
CHANGED
|
@@ -4686,10 +4686,11 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4686
4686
|
* @param {string} [nextToken] This is the pagination token
|
|
4687
4687
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
4688
4688
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
4689
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
4689
4690
|
* @param {*} [options] Override http request option.
|
|
4690
4691
|
* @throws {RequiredError}
|
|
4691
4692
|
*/
|
|
4692
|
-
listPromotionBeneficiaries: (id, periodID, hasProgress, nextToken, search, interval, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4693
|
+
listPromotionBeneficiaries: (id, periodID, hasProgress, nextToken, search, interval, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4693
4694
|
// verify required parameter 'id' is not null or undefined
|
|
4694
4695
|
(0, common_1.assertParamExists)('listPromotionBeneficiaries', 'id', id);
|
|
4695
4696
|
const localVarPath = `/admins/promotions/{id}/beneficiaries`
|
|
@@ -4721,6 +4722,9 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4721
4722
|
if (interval !== undefined) {
|
|
4722
4723
|
localVarQueryParameter['interval'] = interval;
|
|
4723
4724
|
}
|
|
4725
|
+
if (state !== undefined) {
|
|
4726
|
+
localVarQueryParameter['state'] = state;
|
|
4727
|
+
}
|
|
4724
4728
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4725
4729
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4726
4730
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5072,12 +5076,13 @@ const PromotionApiFp = function (configuration) {
|
|
|
5072
5076
|
* @param {string} [nextToken] This is the pagination token
|
|
5073
5077
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
5074
5078
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
5079
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
5075
5080
|
* @param {*} [options] Override http request option.
|
|
5076
5081
|
* @throws {RequiredError}
|
|
5077
5082
|
*/
|
|
5078
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options) {
|
|
5083
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options) {
|
|
5079
5084
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5080
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options);
|
|
5085
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options);
|
|
5081
5086
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5082
5087
|
});
|
|
5083
5088
|
},
|
|
@@ -5254,11 +5259,12 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
5254
5259
|
* @param {string} [nextToken] This is the pagination token
|
|
5255
5260
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
5256
5261
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
5262
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
5257
5263
|
* @param {*} [options] Override http request option.
|
|
5258
5264
|
* @throws {RequiredError}
|
|
5259
5265
|
*/
|
|
5260
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options) {
|
|
5261
|
-
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options).then((request) => request(axios, basePath));
|
|
5266
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options) {
|
|
5267
|
+
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options).then((request) => request(axios, basePath));
|
|
5262
5268
|
},
|
|
5263
5269
|
/**
|
|
5264
5270
|
* List all promotions
|
|
@@ -5433,12 +5439,13 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
5433
5439
|
* @param {string} [nextToken] This is the pagination token
|
|
5434
5440
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
5435
5441
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
5442
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
5436
5443
|
* @param {*} [options] Override http request option.
|
|
5437
5444
|
* @throws {RequiredError}
|
|
5438
5445
|
* @memberof PromotionApi
|
|
5439
5446
|
*/
|
|
5440
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options) {
|
|
5441
|
-
return (0, exports.PromotionApiFp)(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options).then((request) => request(this.axios, this.basePath));
|
|
5447
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options) {
|
|
5448
|
+
return (0, exports.PromotionApiFp)(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options).then((request) => request(this.axios, this.basePath));
|
|
5442
5449
|
}
|
|
5443
5450
|
/**
|
|
5444
5451
|
* List all promotions
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -5998,10 +5998,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
5998
5998
|
* @param {string} [nextToken] This is the pagination token
|
|
5999
5999
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
6000
6000
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
6001
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
6001
6002
|
* @param {*} [options] Override http request option.
|
|
6002
6003
|
* @throws {RequiredError}
|
|
6003
6004
|
*/
|
|
6004
|
-
listPromotionBeneficiaries: (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6005
|
+
listPromotionBeneficiaries: (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6005
6006
|
/**
|
|
6006
6007
|
* List all promotions
|
|
6007
6008
|
* @summary List promotions
|
|
@@ -6138,10 +6139,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
6138
6139
|
* @param {string} [nextToken] This is the pagination token
|
|
6139
6140
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
6140
6141
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
6142
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
6141
6143
|
* @param {*} [options] Override http request option.
|
|
6142
6144
|
* @throws {RequiredError}
|
|
6143
6145
|
*/
|
|
6144
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>>;
|
|
6146
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>>;
|
|
6145
6147
|
/**
|
|
6146
6148
|
* List all promotions
|
|
6147
6149
|
* @summary List promotions
|
|
@@ -6278,10 +6280,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
6278
6280
|
* @param {string} [nextToken] This is the pagination token
|
|
6279
6281
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
6280
6282
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
6283
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
6281
6284
|
* @param {*} [options] Override http request option.
|
|
6282
6285
|
* @throws {RequiredError}
|
|
6283
6286
|
*/
|
|
6284
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: any): AxiosPromise<PromotionBeneficiariesResponse>;
|
|
6287
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: any): AxiosPromise<PromotionBeneficiariesResponse>;
|
|
6285
6288
|
/**
|
|
6286
6289
|
* List all promotions
|
|
6287
6290
|
* @summary List promotions
|
|
@@ -6429,11 +6432,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
6429
6432
|
* @param {string} [nextToken] This is the pagination token
|
|
6430
6433
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
6431
6434
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
6435
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
6432
6436
|
* @param {*} [options] Override http request option.
|
|
6433
6437
|
* @throws {RequiredError}
|
|
6434
6438
|
* @memberof PromotionApi
|
|
6435
6439
|
*/
|
|
6436
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionBeneficiariesResponse, any>>;
|
|
6440
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionBeneficiariesResponse, any>>;
|
|
6437
6441
|
/**
|
|
6438
6442
|
* List all promotions
|
|
6439
6443
|
* @summary List promotions
|
package/dist/esm/api.js
CHANGED
|
@@ -4629,10 +4629,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4629
4629
|
* @param {string} [nextToken] This is the pagination token
|
|
4630
4630
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
4631
4631
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
4632
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
4632
4633
|
* @param {*} [options] Override http request option.
|
|
4633
4634
|
* @throws {RequiredError}
|
|
4634
4635
|
*/
|
|
4635
|
-
listPromotionBeneficiaries: (id, periodID, hasProgress, nextToken, search, interval, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4636
|
+
listPromotionBeneficiaries: (id, periodID, hasProgress, nextToken, search, interval, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4636
4637
|
// verify required parameter 'id' is not null or undefined
|
|
4637
4638
|
assertParamExists('listPromotionBeneficiaries', 'id', id);
|
|
4638
4639
|
const localVarPath = `/admins/promotions/{id}/beneficiaries`
|
|
@@ -4664,6 +4665,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4664
4665
|
if (interval !== undefined) {
|
|
4665
4666
|
localVarQueryParameter['interval'] = interval;
|
|
4666
4667
|
}
|
|
4668
|
+
if (state !== undefined) {
|
|
4669
|
+
localVarQueryParameter['state'] = state;
|
|
4670
|
+
}
|
|
4667
4671
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4668
4672
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4669
4673
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5014,12 +5018,13 @@ export const PromotionApiFp = function (configuration) {
|
|
|
5014
5018
|
* @param {string} [nextToken] This is the pagination token
|
|
5015
5019
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
5016
5020
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
5021
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
5017
5022
|
* @param {*} [options] Override http request option.
|
|
5018
5023
|
* @throws {RequiredError}
|
|
5019
5024
|
*/
|
|
5020
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options) {
|
|
5025
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options) {
|
|
5021
5026
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5022
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options);
|
|
5027
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options);
|
|
5023
5028
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5024
5029
|
});
|
|
5025
5030
|
},
|
|
@@ -5195,11 +5200,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
5195
5200
|
* @param {string} [nextToken] This is the pagination token
|
|
5196
5201
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
5197
5202
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
5203
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
5198
5204
|
* @param {*} [options] Override http request option.
|
|
5199
5205
|
* @throws {RequiredError}
|
|
5200
5206
|
*/
|
|
5201
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options) {
|
|
5202
|
-
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options).then((request) => request(axios, basePath));
|
|
5207
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options) {
|
|
5208
|
+
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options).then((request) => request(axios, basePath));
|
|
5203
5209
|
},
|
|
5204
5210
|
/**
|
|
5205
5211
|
* List all promotions
|
|
@@ -5373,12 +5379,13 @@ export class PromotionApi extends BaseAPI {
|
|
|
5373
5379
|
* @param {string} [nextToken] This is the pagination token
|
|
5374
5380
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
|
5375
5381
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
|
5382
|
+
* @param {ProgressStateAggregation} [state] Progress state
|
|
5376
5383
|
* @param {*} [options] Override http request option.
|
|
5377
5384
|
* @throws {RequiredError}
|
|
5378
5385
|
* @memberof PromotionApi
|
|
5379
5386
|
*/
|
|
5380
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options) {
|
|
5381
|
-
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, options).then((request) => request(this.axios, this.basePath));
|
|
5387
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options) {
|
|
5388
|
+
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options).then((request) => request(this.axios, this.basePath));
|
|
5382
5389
|
}
|
|
5383
5390
|
/**
|
|
5384
5391
|
* List all promotions
|