flexinet-api 0.0.1551-prerelease0-dev → 0.0.1553-prerelease0-dev
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.1553-prerelease0-dev
|
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.1553-prerelease0-dev --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -9884,10 +9884,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
9884
9884
|
* @param {PromotionSortByField} [sortBy] sort by field
|
9885
9885
|
* @param {SortDirection} [sortDirection] sort direction
|
9886
9886
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
9887
|
+
* @param {PromotionType} [type] promotion type
|
9887
9888
|
* @param {*} [options] Override http request option.
|
9888
9889
|
* @throws {RequiredError}
|
9889
9890
|
*/
|
9890
|
-
listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
9891
|
+
listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
9891
9892
|
const localVarPath = `/users/promotions`;
|
9892
9893
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
9893
9894
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -9952,6 +9953,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
9952
9953
|
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
9953
9954
|
}
|
9954
9955
|
|
9956
|
+
if (type !== undefined) {
|
9957
|
+
localVarQueryParameter['type'] = type;
|
9958
|
+
}
|
9959
|
+
|
9955
9960
|
|
9956
9961
|
|
9957
9962
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -10172,11 +10177,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
10172
10177
|
* @param {PromotionSortByField} [sortBy] sort by field
|
10173
10178
|
* @param {SortDirection} [sortDirection] sort direction
|
10174
10179
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
10180
|
+
* @param {PromotionType} [type] promotion type
|
10175
10181
|
* @param {*} [options] Override http request option.
|
10176
10182
|
* @throws {RequiredError}
|
10177
10183
|
*/
|
10178
|
-
async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>> {
|
10179
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options);
|
10184
|
+
async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>> {
|
10185
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options);
|
10180
10186
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
10181
10187
|
},
|
10182
10188
|
/**
|
@@ -10345,11 +10351,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
10345
10351
|
* @param {PromotionSortByField} [sortBy] sort by field
|
10346
10352
|
* @param {SortDirection} [sortDirection] sort direction
|
10347
10353
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
10354
|
+
* @param {PromotionType} [type] promotion type
|
10348
10355
|
* @param {*} [options] Override http request option.
|
10349
10356
|
* @throws {RequiredError}
|
10350
10357
|
*/
|
10351
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: any): AxiosPromise<UserPromotionsResponse> {
|
10352
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
10358
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: any): AxiosPromise<UserPromotionsResponse> {
|
10359
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(axios, basePath));
|
10353
10360
|
},
|
10354
10361
|
/**
|
10355
10362
|
* Update promotion by id
|
@@ -10538,12 +10545,13 @@ export class PromotionApi extends BaseAPI {
|
|
10538
10545
|
* @param {PromotionSortByField} [sortBy] sort by field
|
10539
10546
|
* @param {SortDirection} [sortDirection] sort direction
|
10540
10547
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
10548
|
+
* @param {PromotionType} [type] promotion type
|
10541
10549
|
* @param {*} [options] Override http request option.
|
10542
10550
|
* @throws {RequiredError}
|
10543
10551
|
* @memberof PromotionApi
|
10544
10552
|
*/
|
10545
|
-
public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig) {
|
10546
|
-
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
10553
|
+
public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig) {
|
10554
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(this.axios, this.basePath));
|
10547
10555
|
}
|
10548
10556
|
|
10549
10557
|
/**
|
package/dist/api.d.ts
CHANGED
@@ -6736,10 +6736,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
6736
6736
|
* @param {PromotionSortByField} [sortBy] sort by field
|
6737
6737
|
* @param {SortDirection} [sortDirection] sort direction
|
6738
6738
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
6739
|
+
* @param {PromotionType} [type] promotion type
|
6739
6740
|
* @param {*} [options] Override http request option.
|
6740
6741
|
* @throws {RequiredError}
|
6741
6742
|
*/
|
6742
|
-
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
6743
|
+
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
6743
6744
|
/**
|
6744
6745
|
* Update promotion by id
|
6745
6746
|
* @summary Update promotion
|
@@ -6877,10 +6878,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
6877
6878
|
* @param {PromotionSortByField} [sortBy] sort by field
|
6878
6879
|
* @param {SortDirection} [sortDirection] sort direction
|
6879
6880
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
6881
|
+
* @param {PromotionType} [type] promotion type
|
6880
6882
|
* @param {*} [options] Override http request option.
|
6881
6883
|
* @throws {RequiredError}
|
6882
6884
|
*/
|
6883
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>>;
|
6885
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>>;
|
6884
6886
|
/**
|
6885
6887
|
* Update promotion by id
|
6886
6888
|
* @summary Update promotion
|
@@ -7018,10 +7020,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
7018
7020
|
* @param {PromotionSortByField} [sortBy] sort by field
|
7019
7021
|
* @param {SortDirection} [sortDirection] sort direction
|
7020
7022
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
7023
|
+
* @param {PromotionType} [type] promotion type
|
7021
7024
|
* @param {*} [options] Override http request option.
|
7022
7025
|
* @throws {RequiredError}
|
7023
7026
|
*/
|
7024
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: any): AxiosPromise<UserPromotionsResponse>;
|
7027
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: any): AxiosPromise<UserPromotionsResponse>;
|
7025
7028
|
/**
|
7026
7029
|
* Update promotion by id
|
7027
7030
|
* @summary Update promotion
|
@@ -7172,11 +7175,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
7172
7175
|
* @param {PromotionSortByField} [sortBy] sort by field
|
7173
7176
|
* @param {SortDirection} [sortDirection] sort direction
|
7174
7177
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
7178
|
+
* @param {PromotionType} [type] promotion type
|
7175
7179
|
* @param {*} [options] Override http request option.
|
7176
7180
|
* @throws {RequiredError}
|
7177
7181
|
* @memberof PromotionApi
|
7178
7182
|
*/
|
7179
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPromotionsResponse, any>>;
|
7183
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPromotionsResponse, any>>;
|
7180
7184
|
/**
|
7181
7185
|
* Update promotion by id
|
7182
7186
|
* @summary Update promotion
|
package/dist/api.js
CHANGED
@@ -5356,10 +5356,11 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5356
5356
|
* @param {PromotionSortByField} [sortBy] sort by field
|
5357
5357
|
* @param {SortDirection} [sortDirection] sort direction
|
5358
5358
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5359
|
+
* @param {PromotionType} [type] promotion type
|
5359
5360
|
* @param {*} [options] Override http request option.
|
5360
5361
|
* @throws {RequiredError}
|
5361
5362
|
*/
|
5362
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5363
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5363
5364
|
const localVarPath = `/users/promotions`;
|
5364
5365
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5365
5366
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -5411,6 +5412,9 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5411
5412
|
if (onlyClaimable !== undefined) {
|
5412
5413
|
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
5413
5414
|
}
|
5415
|
+
if (type !== undefined) {
|
5416
|
+
localVarQueryParameter['type'] = type;
|
5417
|
+
}
|
5414
5418
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
5415
5419
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5416
5420
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -5643,12 +5647,13 @@ const PromotionApiFp = function (configuration) {
|
|
5643
5647
|
* @param {PromotionSortByField} [sortBy] sort by field
|
5644
5648
|
* @param {SortDirection} [sortDirection] sort direction
|
5645
5649
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5650
|
+
* @param {PromotionType} [type] promotion type
|
5646
5651
|
* @param {*} [options] Override http request option.
|
5647
5652
|
* @throws {RequiredError}
|
5648
5653
|
*/
|
5649
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
5654
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
|
5650
5655
|
return __awaiter(this, void 0, void 0, function* () {
|
5651
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options);
|
5656
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options);
|
5652
5657
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
5653
5658
|
});
|
5654
5659
|
},
|
@@ -5820,11 +5825,12 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
5820
5825
|
* @param {PromotionSortByField} [sortBy] sort by field
|
5821
5826
|
* @param {SortDirection} [sortDirection] sort direction
|
5822
5827
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5828
|
+
* @param {PromotionType} [type] promotion type
|
5823
5829
|
* @param {*} [options] Override http request option.
|
5824
5830
|
* @throws {RequiredError}
|
5825
5831
|
*/
|
5826
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
5827
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
5832
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
|
5833
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(axios, basePath));
|
5828
5834
|
},
|
5829
5835
|
/**
|
5830
5836
|
* Update promotion by id
|
@@ -6002,12 +6008,13 @@ class PromotionApi extends base_1.BaseAPI {
|
|
6002
6008
|
* @param {PromotionSortByField} [sortBy] sort by field
|
6003
6009
|
* @param {SortDirection} [sortDirection] sort direction
|
6004
6010
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
6011
|
+
* @param {PromotionType} [type] promotion type
|
6005
6012
|
* @param {*} [options] Override http request option.
|
6006
6013
|
* @throws {RequiredError}
|
6007
6014
|
* @memberof PromotionApi
|
6008
6015
|
*/
|
6009
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
6010
|
-
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
6016
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
|
6017
|
+
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(this.axios, this.basePath));
|
6011
6018
|
}
|
6012
6019
|
/**
|
6013
6020
|
* Update promotion by id
|
package/dist/esm/api.d.ts
CHANGED
@@ -6736,10 +6736,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
6736
6736
|
* @param {PromotionSortByField} [sortBy] sort by field
|
6737
6737
|
* @param {SortDirection} [sortDirection] sort direction
|
6738
6738
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
6739
|
+
* @param {PromotionType} [type] promotion type
|
6739
6740
|
* @param {*} [options] Override http request option.
|
6740
6741
|
* @throws {RequiredError}
|
6741
6742
|
*/
|
6742
|
-
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
6743
|
+
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
6743
6744
|
/**
|
6744
6745
|
* Update promotion by id
|
6745
6746
|
* @summary Update promotion
|
@@ -6877,10 +6878,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
6877
6878
|
* @param {PromotionSortByField} [sortBy] sort by field
|
6878
6879
|
* @param {SortDirection} [sortDirection] sort direction
|
6879
6880
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
6881
|
+
* @param {PromotionType} [type] promotion type
|
6880
6882
|
* @param {*} [options] Override http request option.
|
6881
6883
|
* @throws {RequiredError}
|
6882
6884
|
*/
|
6883
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>>;
|
6885
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>>;
|
6884
6886
|
/**
|
6885
6887
|
* Update promotion by id
|
6886
6888
|
* @summary Update promotion
|
@@ -7018,10 +7020,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
7018
7020
|
* @param {PromotionSortByField} [sortBy] sort by field
|
7019
7021
|
* @param {SortDirection} [sortDirection] sort direction
|
7020
7022
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
7023
|
+
* @param {PromotionType} [type] promotion type
|
7021
7024
|
* @param {*} [options] Override http request option.
|
7022
7025
|
* @throws {RequiredError}
|
7023
7026
|
*/
|
7024
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: any): AxiosPromise<UserPromotionsResponse>;
|
7027
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: any): AxiosPromise<UserPromotionsResponse>;
|
7025
7028
|
/**
|
7026
7029
|
* Update promotion by id
|
7027
7030
|
* @summary Update promotion
|
@@ -7172,11 +7175,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
7172
7175
|
* @param {PromotionSortByField} [sortBy] sort by field
|
7173
7176
|
* @param {SortDirection} [sortDirection] sort direction
|
7174
7177
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
7178
|
+
* @param {PromotionType} [type] promotion type
|
7175
7179
|
* @param {*} [options] Override http request option.
|
7176
7180
|
* @throws {RequiredError}
|
7177
7181
|
* @memberof PromotionApi
|
7178
7182
|
*/
|
7179
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPromotionsResponse, any>>;
|
7183
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPromotionsResponse, any>>;
|
7180
7184
|
/**
|
7181
7185
|
* Update promotion by id
|
7182
7186
|
* @summary Update promotion
|
package/dist/esm/api.js
CHANGED
@@ -5299,10 +5299,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5299
5299
|
* @param {PromotionSortByField} [sortBy] sort by field
|
5300
5300
|
* @param {SortDirection} [sortDirection] sort direction
|
5301
5301
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5302
|
+
* @param {PromotionType} [type] promotion type
|
5302
5303
|
* @param {*} [options] Override http request option.
|
5303
5304
|
* @throws {RequiredError}
|
5304
5305
|
*/
|
5305
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5306
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5306
5307
|
const localVarPath = `/users/promotions`;
|
5307
5308
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5308
5309
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -5354,6 +5355,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5354
5355
|
if (onlyClaimable !== undefined) {
|
5355
5356
|
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
5356
5357
|
}
|
5358
|
+
if (type !== undefined) {
|
5359
|
+
localVarQueryParameter['type'] = type;
|
5360
|
+
}
|
5357
5361
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5358
5362
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5359
5363
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -5585,12 +5589,13 @@ export const PromotionApiFp = function (configuration) {
|
|
5585
5589
|
* @param {PromotionSortByField} [sortBy] sort by field
|
5586
5590
|
* @param {SortDirection} [sortDirection] sort direction
|
5587
5591
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5592
|
+
* @param {PromotionType} [type] promotion type
|
5588
5593
|
* @param {*} [options] Override http request option.
|
5589
5594
|
* @throws {RequiredError}
|
5590
5595
|
*/
|
5591
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
5596
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
|
5592
5597
|
return __awaiter(this, void 0, void 0, function* () {
|
5593
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options);
|
5598
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options);
|
5594
5599
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5595
5600
|
});
|
5596
5601
|
},
|
@@ -5761,11 +5766,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
5761
5766
|
* @param {PromotionSortByField} [sortBy] sort by field
|
5762
5767
|
* @param {SortDirection} [sortDirection] sort direction
|
5763
5768
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5769
|
+
* @param {PromotionType} [type] promotion type
|
5764
5770
|
* @param {*} [options] Override http request option.
|
5765
5771
|
* @throws {RequiredError}
|
5766
5772
|
*/
|
5767
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
5768
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
5773
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
|
5774
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(axios, basePath));
|
5769
5775
|
},
|
5770
5776
|
/**
|
5771
5777
|
* Update promotion by id
|
@@ -5942,12 +5948,13 @@ export class PromotionApi extends BaseAPI {
|
|
5942
5948
|
* @param {PromotionSortByField} [sortBy] sort by field
|
5943
5949
|
* @param {SortDirection} [sortDirection] sort direction
|
5944
5950
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5951
|
+
* @param {PromotionType} [type] promotion type
|
5945
5952
|
* @param {*} [options] Override http request option.
|
5946
5953
|
* @throws {RequiredError}
|
5947
5954
|
* @memberof PromotionApi
|
5948
5955
|
*/
|
5949
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
5950
|
-
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
5956
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
|
5957
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(this.axios, this.basePath));
|
5951
5958
|
}
|
5952
5959
|
/**
|
5953
5960
|
* Update promotion by id
|