flexinet-api 0.0.700-prerelease0 → 0.0.703-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 +35 -7
- package/dist/api.d.ts +24 -4
- package/dist/api.js +21 -7
- package/dist/esm/api.d.ts +24 -4
- package/dist/esm/api.js +21 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.703-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.703-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -2128,6 +2128,12 @@ export interface PromotionClientBeneficiaries {
|
|
|
2128
2128
|
* @memberof PromotionClientBeneficiaries
|
|
2129
2129
|
*/
|
|
2130
2130
|
'beneficiaries': Array<Client>;
|
|
2131
|
+
/**
|
|
2132
|
+
* This is the pagination token
|
|
2133
|
+
* @type {string}
|
|
2134
|
+
* @memberof PromotionClientBeneficiaries
|
|
2135
|
+
*/
|
|
2136
|
+
'nextToken'?: string;
|
|
2131
2137
|
}
|
|
2132
2138
|
|
|
2133
2139
|
|
|
@@ -2327,6 +2333,12 @@ export interface PromotionUserBeneficiaries {
|
|
|
2327
2333
|
* @memberof PromotionUserBeneficiaries
|
|
2328
2334
|
*/
|
|
2329
2335
|
'beneficiaries': Array<User>;
|
|
2336
|
+
/**
|
|
2337
|
+
* This is the pagination token
|
|
2338
|
+
* @type {string}
|
|
2339
|
+
* @memberof PromotionUserBeneficiaries
|
|
2340
|
+
*/
|
|
2341
|
+
'nextToken'?: string;
|
|
2330
2342
|
}
|
|
2331
2343
|
|
|
2332
2344
|
|
|
@@ -8223,10 +8235,12 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
8223
8235
|
* @param {string} id Promotion ID
|
|
8224
8236
|
* @param {number} [periodID] Period ID
|
|
8225
8237
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
8238
|
+
* @param {string} [nextToken] This is the pagination token
|
|
8239
|
+
* @param {string} [search] search string
|
|
8226
8240
|
* @param {*} [options] Override http request option.
|
|
8227
8241
|
* @throws {RequiredError}
|
|
8228
8242
|
*/
|
|
8229
|
-
listPromotionBeneficiaries: async (id: string, periodID?: number, hasProgress?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8243
|
+
listPromotionBeneficiaries: async (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8230
8244
|
// verify required parameter 'id' is not null or undefined
|
|
8231
8245
|
assertParamExists('listPromotionBeneficiaries', 'id', id)
|
|
8232
8246
|
const localVarPath = `/admins/promotions/{id}/beneficiaries`
|
|
@@ -8254,6 +8268,14 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
8254
8268
|
localVarQueryParameter['hasProgress'] = hasProgress;
|
|
8255
8269
|
}
|
|
8256
8270
|
|
|
8271
|
+
if (nextToken !== undefined) {
|
|
8272
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
8273
|
+
}
|
|
8274
|
+
|
|
8275
|
+
if (search !== undefined) {
|
|
8276
|
+
localVarQueryParameter['search'] = search;
|
|
8277
|
+
}
|
|
8278
|
+
|
|
8257
8279
|
|
|
8258
8280
|
|
|
8259
8281
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -8630,11 +8652,13 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
8630
8652
|
* @param {string} id Promotion ID
|
|
8631
8653
|
* @param {number} [periodID] Period ID
|
|
8632
8654
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
8655
|
+
* @param {string} [nextToken] This is the pagination token
|
|
8656
|
+
* @param {string} [search] search string
|
|
8633
8657
|
* @param {*} [options] Override http request option.
|
|
8634
8658
|
* @throws {RequiredError}
|
|
8635
8659
|
*/
|
|
8636
|
-
async listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>> {
|
|
8637
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, options);
|
|
8660
|
+
async listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>> {
|
|
8661
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options);
|
|
8638
8662
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8639
8663
|
},
|
|
8640
8664
|
/**
|
|
@@ -8801,11 +8825,13 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
8801
8825
|
* @param {string} id Promotion ID
|
|
8802
8826
|
* @param {number} [periodID] Period ID
|
|
8803
8827
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
8828
|
+
* @param {string} [nextToken] This is the pagination token
|
|
8829
|
+
* @param {string} [search] search string
|
|
8804
8830
|
* @param {*} [options] Override http request option.
|
|
8805
8831
|
* @throws {RequiredError}
|
|
8806
8832
|
*/
|
|
8807
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, options?: any): AxiosPromise<PromotionBeneficiariesResponse> {
|
|
8808
|
-
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, options).then((request) => request(axios, basePath));
|
|
8833
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: any): AxiosPromise<PromotionBeneficiariesResponse> {
|
|
8834
|
+
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options).then((request) => request(axios, basePath));
|
|
8809
8835
|
},
|
|
8810
8836
|
/**
|
|
8811
8837
|
* List all promotions
|
|
@@ -8986,12 +9012,14 @@ export class PromotionApi extends BaseAPI {
|
|
|
8986
9012
|
* @param {string} id Promotion ID
|
|
8987
9013
|
* @param {number} [periodID] Period ID
|
|
8988
9014
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
9015
|
+
* @param {string} [nextToken] This is the pagination token
|
|
9016
|
+
* @param {string} [search] search string
|
|
8989
9017
|
* @param {*} [options] Override http request option.
|
|
8990
9018
|
* @throws {RequiredError}
|
|
8991
9019
|
* @memberof PromotionApi
|
|
8992
9020
|
*/
|
|
8993
|
-
public listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, options?: AxiosRequestConfig) {
|
|
8994
|
-
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, options).then((request) => request(this.axios, this.basePath));
|
|
9021
|
+
public listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: AxiosRequestConfig) {
|
|
9022
|
+
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options).then((request) => request(this.axios, this.basePath));
|
|
8995
9023
|
}
|
|
8996
9024
|
|
|
8997
9025
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -2030,6 +2030,12 @@ export interface PromotionClientBeneficiaries {
|
|
|
2030
2030
|
* @memberof PromotionClientBeneficiaries
|
|
2031
2031
|
*/
|
|
2032
2032
|
'beneficiaries': Array<Client>;
|
|
2033
|
+
/**
|
|
2034
|
+
* This is the pagination token
|
|
2035
|
+
* @type {string}
|
|
2036
|
+
* @memberof PromotionClientBeneficiaries
|
|
2037
|
+
*/
|
|
2038
|
+
'nextToken'?: string;
|
|
2033
2039
|
}
|
|
2034
2040
|
/**
|
|
2035
2041
|
*
|
|
@@ -2219,6 +2225,12 @@ export interface PromotionUserBeneficiaries {
|
|
|
2219
2225
|
* @memberof PromotionUserBeneficiaries
|
|
2220
2226
|
*/
|
|
2221
2227
|
'beneficiaries': Array<User>;
|
|
2228
|
+
/**
|
|
2229
|
+
* This is the pagination token
|
|
2230
|
+
* @type {string}
|
|
2231
|
+
* @memberof PromotionUserBeneficiaries
|
|
2232
|
+
*/
|
|
2233
|
+
'nextToken'?: string;
|
|
2222
2234
|
}
|
|
2223
2235
|
/**
|
|
2224
2236
|
*
|
|
@@ -5610,10 +5622,12 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
5610
5622
|
* @param {string} id Promotion ID
|
|
5611
5623
|
* @param {number} [periodID] Period ID
|
|
5612
5624
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
5625
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5626
|
+
* @param {string} [search] search string
|
|
5613
5627
|
* @param {*} [options] Override http request option.
|
|
5614
5628
|
* @throws {RequiredError}
|
|
5615
5629
|
*/
|
|
5616
|
-
listPromotionBeneficiaries: (id: string, periodID?: number, hasProgress?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5630
|
+
listPromotionBeneficiaries: (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5617
5631
|
/**
|
|
5618
5632
|
* List all promotions
|
|
5619
5633
|
* @summary List promotions
|
|
@@ -5747,10 +5761,12 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5747
5761
|
* @param {string} id Promotion ID
|
|
5748
5762
|
* @param {number} [periodID] Period ID
|
|
5749
5763
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
5764
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5765
|
+
* @param {string} [search] search string
|
|
5750
5766
|
* @param {*} [options] Override http request option.
|
|
5751
5767
|
* @throws {RequiredError}
|
|
5752
5768
|
*/
|
|
5753
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>>;
|
|
5769
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>>;
|
|
5754
5770
|
/**
|
|
5755
5771
|
* List all promotions
|
|
5756
5772
|
* @summary List promotions
|
|
@@ -5884,10 +5900,12 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5884
5900
|
* @param {string} id Promotion ID
|
|
5885
5901
|
* @param {number} [periodID] Period ID
|
|
5886
5902
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
5903
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5904
|
+
* @param {string} [search] search string
|
|
5887
5905
|
* @param {*} [options] Override http request option.
|
|
5888
5906
|
* @throws {RequiredError}
|
|
5889
5907
|
*/
|
|
5890
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, options?: any): AxiosPromise<PromotionBeneficiariesResponse>;
|
|
5908
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: any): AxiosPromise<PromotionBeneficiariesResponse>;
|
|
5891
5909
|
/**
|
|
5892
5910
|
* List all promotions
|
|
5893
5911
|
* @summary List promotions
|
|
@@ -6032,11 +6050,13 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
6032
6050
|
* @param {string} id Promotion ID
|
|
6033
6051
|
* @param {number} [periodID] Period ID
|
|
6034
6052
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
6053
|
+
* @param {string} [nextToken] This is the pagination token
|
|
6054
|
+
* @param {string} [search] search string
|
|
6035
6055
|
* @param {*} [options] Override http request option.
|
|
6036
6056
|
* @throws {RequiredError}
|
|
6037
6057
|
* @memberof PromotionApi
|
|
6038
6058
|
*/
|
|
6039
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionBeneficiariesResponse, any>>;
|
|
6059
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionBeneficiariesResponse, any>>;
|
|
6040
6060
|
/**
|
|
6041
6061
|
* List all promotions
|
|
6042
6062
|
* @summary List promotions
|
package/dist/api.js
CHANGED
|
@@ -4519,10 +4519,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4519
4519
|
* @param {string} id Promotion ID
|
|
4520
4520
|
* @param {number} [periodID] Period ID
|
|
4521
4521
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
4522
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4523
|
+
* @param {string} [search] search string
|
|
4522
4524
|
* @param {*} [options] Override http request option.
|
|
4523
4525
|
* @throws {RequiredError}
|
|
4524
4526
|
*/
|
|
4525
|
-
listPromotionBeneficiaries: (id, periodID, hasProgress, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4527
|
+
listPromotionBeneficiaries: (id, periodID, hasProgress, nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4526
4528
|
// verify required parameter 'id' is not null or undefined
|
|
4527
4529
|
(0, common_1.assertParamExists)('listPromotionBeneficiaries', 'id', id);
|
|
4528
4530
|
const localVarPath = `/admins/promotions/{id}/beneficiaries`
|
|
@@ -4545,6 +4547,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4545
4547
|
if (hasProgress !== undefined) {
|
|
4546
4548
|
localVarQueryParameter['hasProgress'] = hasProgress;
|
|
4547
4549
|
}
|
|
4550
|
+
if (nextToken !== undefined) {
|
|
4551
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
4552
|
+
}
|
|
4553
|
+
if (search !== undefined) {
|
|
4554
|
+
localVarQueryParameter['search'] = search;
|
|
4555
|
+
}
|
|
4548
4556
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4549
4557
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4550
4558
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4893,12 +4901,14 @@ const PromotionApiFp = function (configuration) {
|
|
|
4893
4901
|
* @param {string} id Promotion ID
|
|
4894
4902
|
* @param {number} [periodID] Period ID
|
|
4895
4903
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
4904
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4905
|
+
* @param {string} [search] search string
|
|
4896
4906
|
* @param {*} [options] Override http request option.
|
|
4897
4907
|
* @throws {RequiredError}
|
|
4898
4908
|
*/
|
|
4899
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, options) {
|
|
4909
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options) {
|
|
4900
4910
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4901
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, options);
|
|
4911
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options);
|
|
4902
4912
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4903
4913
|
});
|
|
4904
4914
|
},
|
|
@@ -5072,11 +5082,13 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
5072
5082
|
* @param {string} id Promotion ID
|
|
5073
5083
|
* @param {number} [periodID] Period ID
|
|
5074
5084
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
5085
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5086
|
+
* @param {string} [search] search string
|
|
5075
5087
|
* @param {*} [options] Override http request option.
|
|
5076
5088
|
* @throws {RequiredError}
|
|
5077
5089
|
*/
|
|
5078
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, options) {
|
|
5079
|
-
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, options).then((request) => request(axios, basePath));
|
|
5090
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options) {
|
|
5091
|
+
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options).then((request) => request(axios, basePath));
|
|
5080
5092
|
},
|
|
5081
5093
|
/**
|
|
5082
5094
|
* List all promotions
|
|
@@ -5248,12 +5260,14 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
5248
5260
|
* @param {string} id Promotion ID
|
|
5249
5261
|
* @param {number} [periodID] Period ID
|
|
5250
5262
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
5263
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5264
|
+
* @param {string} [search] search string
|
|
5251
5265
|
* @param {*} [options] Override http request option.
|
|
5252
5266
|
* @throws {RequiredError}
|
|
5253
5267
|
* @memberof PromotionApi
|
|
5254
5268
|
*/
|
|
5255
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, options) {
|
|
5256
|
-
return (0, exports.PromotionApiFp)(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, options).then((request) => request(this.axios, this.basePath));
|
|
5269
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options) {
|
|
5270
|
+
return (0, exports.PromotionApiFp)(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options).then((request) => request(this.axios, this.basePath));
|
|
5257
5271
|
}
|
|
5258
5272
|
/**
|
|
5259
5273
|
* List all promotions
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2030,6 +2030,12 @@ export interface PromotionClientBeneficiaries {
|
|
|
2030
2030
|
* @memberof PromotionClientBeneficiaries
|
|
2031
2031
|
*/
|
|
2032
2032
|
'beneficiaries': Array<Client>;
|
|
2033
|
+
/**
|
|
2034
|
+
* This is the pagination token
|
|
2035
|
+
* @type {string}
|
|
2036
|
+
* @memberof PromotionClientBeneficiaries
|
|
2037
|
+
*/
|
|
2038
|
+
'nextToken'?: string;
|
|
2033
2039
|
}
|
|
2034
2040
|
/**
|
|
2035
2041
|
*
|
|
@@ -2219,6 +2225,12 @@ export interface PromotionUserBeneficiaries {
|
|
|
2219
2225
|
* @memberof PromotionUserBeneficiaries
|
|
2220
2226
|
*/
|
|
2221
2227
|
'beneficiaries': Array<User>;
|
|
2228
|
+
/**
|
|
2229
|
+
* This is the pagination token
|
|
2230
|
+
* @type {string}
|
|
2231
|
+
* @memberof PromotionUserBeneficiaries
|
|
2232
|
+
*/
|
|
2233
|
+
'nextToken'?: string;
|
|
2222
2234
|
}
|
|
2223
2235
|
/**
|
|
2224
2236
|
*
|
|
@@ -5610,10 +5622,12 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
5610
5622
|
* @param {string} id Promotion ID
|
|
5611
5623
|
* @param {number} [periodID] Period ID
|
|
5612
5624
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
5625
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5626
|
+
* @param {string} [search] search string
|
|
5613
5627
|
* @param {*} [options] Override http request option.
|
|
5614
5628
|
* @throws {RequiredError}
|
|
5615
5629
|
*/
|
|
5616
|
-
listPromotionBeneficiaries: (id: string, periodID?: number, hasProgress?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5630
|
+
listPromotionBeneficiaries: (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5617
5631
|
/**
|
|
5618
5632
|
* List all promotions
|
|
5619
5633
|
* @summary List promotions
|
|
@@ -5747,10 +5761,12 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5747
5761
|
* @param {string} id Promotion ID
|
|
5748
5762
|
* @param {number} [periodID] Period ID
|
|
5749
5763
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
5764
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5765
|
+
* @param {string} [search] search string
|
|
5750
5766
|
* @param {*} [options] Override http request option.
|
|
5751
5767
|
* @throws {RequiredError}
|
|
5752
5768
|
*/
|
|
5753
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>>;
|
|
5769
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>>;
|
|
5754
5770
|
/**
|
|
5755
5771
|
* List all promotions
|
|
5756
5772
|
* @summary List promotions
|
|
@@ -5884,10 +5900,12 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5884
5900
|
* @param {string} id Promotion ID
|
|
5885
5901
|
* @param {number} [periodID] Period ID
|
|
5886
5902
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
5903
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5904
|
+
* @param {string} [search] search string
|
|
5887
5905
|
* @param {*} [options] Override http request option.
|
|
5888
5906
|
* @throws {RequiredError}
|
|
5889
5907
|
*/
|
|
5890
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, options?: any): AxiosPromise<PromotionBeneficiariesResponse>;
|
|
5908
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: any): AxiosPromise<PromotionBeneficiariesResponse>;
|
|
5891
5909
|
/**
|
|
5892
5910
|
* List all promotions
|
|
5893
5911
|
* @summary List promotions
|
|
@@ -6032,11 +6050,13 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
6032
6050
|
* @param {string} id Promotion ID
|
|
6033
6051
|
* @param {number} [periodID] Period ID
|
|
6034
6052
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
6053
|
+
* @param {string} [nextToken] This is the pagination token
|
|
6054
|
+
* @param {string} [search] search string
|
|
6035
6055
|
* @param {*} [options] Override http request option.
|
|
6036
6056
|
* @throws {RequiredError}
|
|
6037
6057
|
* @memberof PromotionApi
|
|
6038
6058
|
*/
|
|
6039
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionBeneficiariesResponse, any>>;
|
|
6059
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionBeneficiariesResponse, any>>;
|
|
6040
6060
|
/**
|
|
6041
6061
|
* List all promotions
|
|
6042
6062
|
* @summary List promotions
|
package/dist/esm/api.js
CHANGED
|
@@ -4466,10 +4466,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4466
4466
|
* @param {string} id Promotion ID
|
|
4467
4467
|
* @param {number} [periodID] Period ID
|
|
4468
4468
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
4469
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4470
|
+
* @param {string} [search] search string
|
|
4469
4471
|
* @param {*} [options] Override http request option.
|
|
4470
4472
|
* @throws {RequiredError}
|
|
4471
4473
|
*/
|
|
4472
|
-
listPromotionBeneficiaries: (id, periodID, hasProgress, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4474
|
+
listPromotionBeneficiaries: (id, periodID, hasProgress, nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4473
4475
|
// verify required parameter 'id' is not null or undefined
|
|
4474
4476
|
assertParamExists('listPromotionBeneficiaries', 'id', id);
|
|
4475
4477
|
const localVarPath = `/admins/promotions/{id}/beneficiaries`
|
|
@@ -4492,6 +4494,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4492
4494
|
if (hasProgress !== undefined) {
|
|
4493
4495
|
localVarQueryParameter['hasProgress'] = hasProgress;
|
|
4494
4496
|
}
|
|
4497
|
+
if (nextToken !== undefined) {
|
|
4498
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
4499
|
+
}
|
|
4500
|
+
if (search !== undefined) {
|
|
4501
|
+
localVarQueryParameter['search'] = search;
|
|
4502
|
+
}
|
|
4495
4503
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4496
4504
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4497
4505
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4839,12 +4847,14 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4839
4847
|
* @param {string} id Promotion ID
|
|
4840
4848
|
* @param {number} [periodID] Period ID
|
|
4841
4849
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
4850
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4851
|
+
* @param {string} [search] search string
|
|
4842
4852
|
* @param {*} [options] Override http request option.
|
|
4843
4853
|
* @throws {RequiredError}
|
|
4844
4854
|
*/
|
|
4845
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, options) {
|
|
4855
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options) {
|
|
4846
4856
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4847
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, options);
|
|
4857
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options);
|
|
4848
4858
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4849
4859
|
});
|
|
4850
4860
|
},
|
|
@@ -5017,11 +5027,13 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
5017
5027
|
* @param {string} id Promotion ID
|
|
5018
5028
|
* @param {number} [periodID] Period ID
|
|
5019
5029
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
5030
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5031
|
+
* @param {string} [search] search string
|
|
5020
5032
|
* @param {*} [options] Override http request option.
|
|
5021
5033
|
* @throws {RequiredError}
|
|
5022
5034
|
*/
|
|
5023
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, options) {
|
|
5024
|
-
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, options).then((request) => request(axios, basePath));
|
|
5035
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options) {
|
|
5036
|
+
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options).then((request) => request(axios, basePath));
|
|
5025
5037
|
},
|
|
5026
5038
|
/**
|
|
5027
5039
|
* List all promotions
|
|
@@ -5192,12 +5204,14 @@ export class PromotionApi extends BaseAPI {
|
|
|
5192
5204
|
* @param {string} id Promotion ID
|
|
5193
5205
|
* @param {number} [periodID] Period ID
|
|
5194
5206
|
* @param {boolean} [hasProgress] Beneficiary has progress
|
|
5207
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5208
|
+
* @param {string} [search] search string
|
|
5195
5209
|
* @param {*} [options] Override http request option.
|
|
5196
5210
|
* @throws {RequiredError}
|
|
5197
5211
|
* @memberof PromotionApi
|
|
5198
5212
|
*/
|
|
5199
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, options) {
|
|
5200
|
-
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, options).then((request) => request(this.axios, this.basePath));
|
|
5213
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options) {
|
|
5214
|
+
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, options).then((request) => request(this.axios, this.basePath));
|
|
5201
5215
|
}
|
|
5202
5216
|
/**
|
|
5203
5217
|
* List all promotions
|