flexinet-api 0.0.430-prerelease0 → 0.0.444-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 +30 -14
- package/dist/api.d.ts +16 -8
- package/dist/api.js +28 -14
- package/dist/esm/api.d.ts +16 -8
- package/dist/esm/api.js +28 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.444-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.444-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -7217,10 +7217,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7217
7217
|
* @param {string} [search] search by name or description
|
|
7218
7218
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7219
7219
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7220
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7220
7221
|
* @param {*} [options] Override http request option.
|
|
7221
7222
|
* @throws {RequiredError}
|
|
7222
7223
|
*/
|
|
7223
|
-
listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7224
|
+
listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7224
7225
|
const localVarPath = `/admins/promotions`;
|
|
7225
7226
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7226
7227
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7297,6 +7298,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7297
7298
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
7298
7299
|
}
|
|
7299
7300
|
|
|
7301
|
+
if (onlyClaimable !== undefined) {
|
|
7302
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
7303
|
+
}
|
|
7304
|
+
|
|
7300
7305
|
|
|
7301
7306
|
|
|
7302
7307
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -7320,10 +7325,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7320
7325
|
* @param {string} [search] search by name or description
|
|
7321
7326
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7322
7327
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7328
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7323
7329
|
* @param {*} [options] Override http request option.
|
|
7324
7330
|
* @throws {RequiredError}
|
|
7325
7331
|
*/
|
|
7326
|
-
listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7332
|
+
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> => {
|
|
7327
7333
|
const localVarPath = `/users/promotions`;
|
|
7328
7334
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7329
7335
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7384,6 +7390,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7384
7390
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
7385
7391
|
}
|
|
7386
7392
|
|
|
7393
|
+
if (onlyClaimable !== undefined) {
|
|
7394
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
7395
|
+
}
|
|
7396
|
+
|
|
7387
7397
|
|
|
7388
7398
|
|
|
7389
7399
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -7566,11 +7576,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
7566
7576
|
* @param {string} [search] search by name or description
|
|
7567
7577
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7568
7578
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7579
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7569
7580
|
* @param {*} [options] Override http request option.
|
|
7570
7581
|
* @throws {RequiredError}
|
|
7571
7582
|
*/
|
|
7572
|
-
async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
|
|
7573
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options);
|
|
7583
|
+
async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
|
|
7584
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
|
|
7574
7585
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7575
7586
|
},
|
|
7576
7587
|
/**
|
|
@@ -7585,11 +7596,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
7585
7596
|
* @param {string} [search] search by name or description
|
|
7586
7597
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7587
7598
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7599
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7588
7600
|
* @param {*} [options] Override http request option.
|
|
7589
7601
|
* @throws {RequiredError}
|
|
7590
7602
|
*/
|
|
7591
|
-
async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
|
|
7592
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
|
|
7603
|
+
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<PromotionsResponse>> {
|
|
7604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options);
|
|
7593
7605
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7594
7606
|
},
|
|
7595
7607
|
/**
|
|
@@ -7722,11 +7734,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
7722
7734
|
* @param {string} [search] search by name or description
|
|
7723
7735
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7724
7736
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7737
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7725
7738
|
* @param {*} [options] Override http request option.
|
|
7726
7739
|
* @throws {RequiredError}
|
|
7727
7740
|
*/
|
|
7728
|
-
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> {
|
|
7729
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
7741
|
+
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, onlyClaimable?: boolean, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7742
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
7730
7743
|
},
|
|
7731
7744
|
/**
|
|
7732
7745
|
* List users promotions
|
|
@@ -7740,11 +7753,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
7740
7753
|
* @param {string} [search] search by name or description
|
|
7741
7754
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7742
7755
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7756
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7743
7757
|
* @param {*} [options] Override http request option.
|
|
7744
7758
|
* @throws {RequiredError}
|
|
7745
7759
|
*/
|
|
7746
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7747
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
7760
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7761
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
7748
7762
|
},
|
|
7749
7763
|
/**
|
|
7750
7764
|
* Update promotion by id
|
|
@@ -7893,12 +7907,13 @@ export class PromotionApi extends BaseAPI {
|
|
|
7893
7907
|
* @param {string} [search] search by name or description
|
|
7894
7908
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7895
7909
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7910
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7896
7911
|
* @param {*} [options] Override http request option.
|
|
7897
7912
|
* @throws {RequiredError}
|
|
7898
7913
|
* @memberof PromotionApi
|
|
7899
7914
|
*/
|
|
7900
|
-
public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) {
|
|
7901
|
-
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
7915
|
+
public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig) {
|
|
7916
|
+
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
|
7902
7917
|
}
|
|
7903
7918
|
|
|
7904
7919
|
/**
|
|
@@ -7913,12 +7928,13 @@ export class PromotionApi extends BaseAPI {
|
|
|
7913
7928
|
* @param {string} [search] search by name or description
|
|
7914
7929
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7915
7930
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7931
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7916
7932
|
* @param {*} [options] Override http request option.
|
|
7917
7933
|
* @throws {RequiredError}
|
|
7918
7934
|
* @memberof PromotionApi
|
|
7919
7935
|
*/
|
|
7920
|
-
public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) {
|
|
7921
|
-
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
7936
|
+
public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig) {
|
|
7937
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
|
7922
7938
|
}
|
|
7923
7939
|
|
|
7924
7940
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -4937,10 +4937,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4937
4937
|
* @param {string} [search] search by name or description
|
|
4938
4938
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4939
4939
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4940
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4940
4941
|
* @param {*} [options] Override http request option.
|
|
4941
4942
|
* @throws {RequiredError}
|
|
4942
4943
|
*/
|
|
4943
|
-
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>;
|
|
4944
|
+
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, onlyClaimable?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4944
4945
|
/**
|
|
4945
4946
|
* List users promotions
|
|
4946
4947
|
* @summary List promotions
|
|
@@ -4953,10 +4954,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4953
4954
|
* @param {string} [search] search by name or description
|
|
4954
4955
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4955
4956
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4957
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4956
4958
|
* @param {*} [options] Override http request option.
|
|
4957
4959
|
* @throws {RequiredError}
|
|
4958
4960
|
*/
|
|
4959
|
-
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4961
|
+
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>;
|
|
4960
4962
|
/**
|
|
4961
4963
|
* Update promotion by id
|
|
4962
4964
|
* @summary Update promotion
|
|
@@ -5062,10 +5064,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5062
5064
|
* @param {string} [search] search by name or description
|
|
5063
5065
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5064
5066
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5067
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5065
5068
|
* @param {*} [options] Override http request option.
|
|
5066
5069
|
* @throws {RequiredError}
|
|
5067
5070
|
*/
|
|
5068
|
-
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>>;
|
|
5071
|
+
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, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
5069
5072
|
/**
|
|
5070
5073
|
* List users promotions
|
|
5071
5074
|
* @summary List promotions
|
|
@@ -5078,10 +5081,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5078
5081
|
* @param {string} [search] search by name or description
|
|
5079
5082
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5080
5083
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5084
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5081
5085
|
* @param {*} [options] Override http request option.
|
|
5082
5086
|
* @throws {RequiredError}
|
|
5083
5087
|
*/
|
|
5084
|
-
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>>;
|
|
5088
|
+
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<PromotionsResponse>>;
|
|
5085
5089
|
/**
|
|
5086
5090
|
* Update promotion by id
|
|
5087
5091
|
* @summary Update promotion
|
|
@@ -5187,10 +5191,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5187
5191
|
* @param {string} [search] search by name or description
|
|
5188
5192
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5189
5193
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5194
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5190
5195
|
* @param {*} [options] Override http request option.
|
|
5191
5196
|
* @throws {RequiredError}
|
|
5192
5197
|
*/
|
|
5193
|
-
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>;
|
|
5198
|
+
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, onlyClaimable?: boolean, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5194
5199
|
/**
|
|
5195
5200
|
* List users promotions
|
|
5196
5201
|
* @summary List promotions
|
|
@@ -5203,10 +5208,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5203
5208
|
* @param {string} [search] search by name or description
|
|
5204
5209
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5205
5210
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5211
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5206
5212
|
* @param {*} [options] Override http request option.
|
|
5207
5213
|
* @throws {RequiredError}
|
|
5208
5214
|
*/
|
|
5209
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5215
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5210
5216
|
/**
|
|
5211
5217
|
* Update promotion by id
|
|
5212
5218
|
* @summary Update promotion
|
|
@@ -5323,11 +5329,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5323
5329
|
* @param {string} [search] search by name or description
|
|
5324
5330
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5325
5331
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5332
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5326
5333
|
* @param {*} [options] Override http request option.
|
|
5327
5334
|
* @throws {RequiredError}
|
|
5328
5335
|
* @memberof PromotionApi
|
|
5329
5336
|
*/
|
|
5330
|
-
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>>;
|
|
5337
|
+
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, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5331
5338
|
/**
|
|
5332
5339
|
* List users promotions
|
|
5333
5340
|
* @summary List promotions
|
|
@@ -5340,11 +5347,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5340
5347
|
* @param {string} [search] search by name or description
|
|
5341
5348
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5342
5349
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5350
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5343
5351
|
* @param {*} [options] Override http request option.
|
|
5344
5352
|
* @throws {RequiredError}
|
|
5345
5353
|
* @memberof PromotionApi
|
|
5346
5354
|
*/
|
|
5347
|
-
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>>;
|
|
5355
|
+
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<PromotionsResponse, any>>;
|
|
5348
5356
|
/**
|
|
5349
5357
|
* Update promotion by id
|
|
5350
5358
|
* @summary Update promotion
|
package/dist/api.js
CHANGED
|
@@ -4013,10 +4013,11 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4013
4013
|
* @param {string} [search] search by name or description
|
|
4014
4014
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4015
4015
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4016
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4016
4017
|
* @param {*} [options] Override http request option.
|
|
4017
4018
|
* @throws {RequiredError}
|
|
4018
4019
|
*/
|
|
4019
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4020
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4020
4021
|
const localVarPath = `/admins/promotions`;
|
|
4021
4022
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4022
4023
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4077,6 +4078,9 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4077
4078
|
if (sortDirection !== undefined) {
|
|
4078
4079
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4079
4080
|
}
|
|
4081
|
+
if (onlyClaimable !== undefined) {
|
|
4082
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
4083
|
+
}
|
|
4080
4084
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4081
4085
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4082
4086
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4097,10 +4101,11 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4097
4101
|
* @param {string} [search] search by name or description
|
|
4098
4102
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4099
4103
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4104
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4100
4105
|
* @param {*} [options] Override http request option.
|
|
4101
4106
|
* @throws {RequiredError}
|
|
4102
4107
|
*/
|
|
4103
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4108
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4104
4109
|
const localVarPath = `/users/promotions`;
|
|
4105
4110
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4106
4111
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4149,6 +4154,9 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4149
4154
|
if (sortDirection !== undefined) {
|
|
4150
4155
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4151
4156
|
}
|
|
4157
|
+
if (onlyClaimable !== undefined) {
|
|
4158
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
4159
|
+
}
|
|
4152
4160
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4153
4161
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4154
4162
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4339,12 +4347,13 @@ const PromotionApiFp = function (configuration) {
|
|
|
4339
4347
|
* @param {string} [search] search by name or description
|
|
4340
4348
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4341
4349
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4350
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4342
4351
|
* @param {*} [options] Override http request option.
|
|
4343
4352
|
* @throws {RequiredError}
|
|
4344
4353
|
*/
|
|
4345
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4354
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4346
4355
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4347
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options);
|
|
4356
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
|
|
4348
4357
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4349
4358
|
});
|
|
4350
4359
|
},
|
|
@@ -4360,12 +4369,13 @@ const PromotionApiFp = function (configuration) {
|
|
|
4360
4369
|
* @param {string} [search] search by name or description
|
|
4361
4370
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4362
4371
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4372
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4363
4373
|
* @param {*} [options] Override http request option.
|
|
4364
4374
|
* @throws {RequiredError}
|
|
4365
4375
|
*/
|
|
4366
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4376
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4367
4377
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4368
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
|
|
4378
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options);
|
|
4369
4379
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4370
4380
|
});
|
|
4371
4381
|
},
|
|
@@ -4501,11 +4511,12 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4501
4511
|
* @param {string} [search] search by name or description
|
|
4502
4512
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4503
4513
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4514
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4504
4515
|
* @param {*} [options] Override http request option.
|
|
4505
4516
|
* @throws {RequiredError}
|
|
4506
4517
|
*/
|
|
4507
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4508
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4518
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4519
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
4509
4520
|
},
|
|
4510
4521
|
/**
|
|
4511
4522
|
* List users promotions
|
|
@@ -4519,11 +4530,12 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4519
4530
|
* @param {string} [search] search by name or description
|
|
4520
4531
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4521
4532
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4533
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4522
4534
|
* @param {*} [options] Override http request option.
|
|
4523
4535
|
* @throws {RequiredError}
|
|
4524
4536
|
*/
|
|
4525
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4526
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4537
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4538
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
4527
4539
|
},
|
|
4528
4540
|
/**
|
|
4529
4541
|
* Update promotion by id
|
|
@@ -4663,12 +4675,13 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4663
4675
|
* @param {string} [search] search by name or description
|
|
4664
4676
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4665
4677
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4678
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4666
4679
|
* @param {*} [options] Override http request option.
|
|
4667
4680
|
* @throws {RequiredError}
|
|
4668
4681
|
* @memberof PromotionApi
|
|
4669
4682
|
*/
|
|
4670
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4671
|
-
return (0, exports.PromotionApiFp)(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
4683
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4684
|
+
return (0, exports.PromotionApiFp)(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
|
4672
4685
|
}
|
|
4673
4686
|
/**
|
|
4674
4687
|
* List users promotions
|
|
@@ -4682,12 +4695,13 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4682
4695
|
* @param {string} [search] search by name or description
|
|
4683
4696
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4684
4697
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4698
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4685
4699
|
* @param {*} [options] Override http request option.
|
|
4686
4700
|
* @throws {RequiredError}
|
|
4687
4701
|
* @memberof PromotionApi
|
|
4688
4702
|
*/
|
|
4689
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4690
|
-
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
4703
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4704
|
+
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));
|
|
4691
4705
|
}
|
|
4692
4706
|
/**
|
|
4693
4707
|
* Update promotion by id
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -4937,10 +4937,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4937
4937
|
* @param {string} [search] search by name or description
|
|
4938
4938
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4939
4939
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4940
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4940
4941
|
* @param {*} [options] Override http request option.
|
|
4941
4942
|
* @throws {RequiredError}
|
|
4942
4943
|
*/
|
|
4943
|
-
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>;
|
|
4944
|
+
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, onlyClaimable?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4944
4945
|
/**
|
|
4945
4946
|
* List users promotions
|
|
4946
4947
|
* @summary List promotions
|
|
@@ -4953,10 +4954,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4953
4954
|
* @param {string} [search] search by name or description
|
|
4954
4955
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4955
4956
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4957
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4956
4958
|
* @param {*} [options] Override http request option.
|
|
4957
4959
|
* @throws {RequiredError}
|
|
4958
4960
|
*/
|
|
4959
|
-
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4961
|
+
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>;
|
|
4960
4962
|
/**
|
|
4961
4963
|
* Update promotion by id
|
|
4962
4964
|
* @summary Update promotion
|
|
@@ -5062,10 +5064,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5062
5064
|
* @param {string} [search] search by name or description
|
|
5063
5065
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5064
5066
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5067
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5065
5068
|
* @param {*} [options] Override http request option.
|
|
5066
5069
|
* @throws {RequiredError}
|
|
5067
5070
|
*/
|
|
5068
|
-
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>>;
|
|
5071
|
+
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, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
5069
5072
|
/**
|
|
5070
5073
|
* List users promotions
|
|
5071
5074
|
* @summary List promotions
|
|
@@ -5078,10 +5081,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5078
5081
|
* @param {string} [search] search by name or description
|
|
5079
5082
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5080
5083
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5084
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5081
5085
|
* @param {*} [options] Override http request option.
|
|
5082
5086
|
* @throws {RequiredError}
|
|
5083
5087
|
*/
|
|
5084
|
-
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>>;
|
|
5088
|
+
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<PromotionsResponse>>;
|
|
5085
5089
|
/**
|
|
5086
5090
|
* Update promotion by id
|
|
5087
5091
|
* @summary Update promotion
|
|
@@ -5187,10 +5191,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5187
5191
|
* @param {string} [search] search by name or description
|
|
5188
5192
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5189
5193
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5194
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5190
5195
|
* @param {*} [options] Override http request option.
|
|
5191
5196
|
* @throws {RequiredError}
|
|
5192
5197
|
*/
|
|
5193
|
-
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>;
|
|
5198
|
+
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, onlyClaimable?: boolean, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5194
5199
|
/**
|
|
5195
5200
|
* List users promotions
|
|
5196
5201
|
* @summary List promotions
|
|
@@ -5203,10 +5208,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5203
5208
|
* @param {string} [search] search by name or description
|
|
5204
5209
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5205
5210
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5211
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5206
5212
|
* @param {*} [options] Override http request option.
|
|
5207
5213
|
* @throws {RequiredError}
|
|
5208
5214
|
*/
|
|
5209
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5215
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5210
5216
|
/**
|
|
5211
5217
|
* Update promotion by id
|
|
5212
5218
|
* @summary Update promotion
|
|
@@ -5323,11 +5329,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5323
5329
|
* @param {string} [search] search by name or description
|
|
5324
5330
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5325
5331
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5332
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5326
5333
|
* @param {*} [options] Override http request option.
|
|
5327
5334
|
* @throws {RequiredError}
|
|
5328
5335
|
* @memberof PromotionApi
|
|
5329
5336
|
*/
|
|
5330
|
-
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>>;
|
|
5337
|
+
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, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5331
5338
|
/**
|
|
5332
5339
|
* List users promotions
|
|
5333
5340
|
* @summary List promotions
|
|
@@ -5340,11 +5347,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5340
5347
|
* @param {string} [search] search by name or description
|
|
5341
5348
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5342
5349
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5350
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5343
5351
|
* @param {*} [options] Override http request option.
|
|
5344
5352
|
* @throws {RequiredError}
|
|
5345
5353
|
* @memberof PromotionApi
|
|
5346
5354
|
*/
|
|
5347
|
-
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>>;
|
|
5355
|
+
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<PromotionsResponse, any>>;
|
|
5348
5356
|
/**
|
|
5349
5357
|
* Update promotion by id
|
|
5350
5358
|
* @summary Update promotion
|
package/dist/esm/api.js
CHANGED
|
@@ -3960,10 +3960,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3960
3960
|
* @param {string} [search] search by name or description
|
|
3961
3961
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
3962
3962
|
* @param {SortDirection} [sortDirection] sort direction
|
|
3963
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
3963
3964
|
* @param {*} [options] Override http request option.
|
|
3964
3965
|
* @throws {RequiredError}
|
|
3965
3966
|
*/
|
|
3966
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3967
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3967
3968
|
const localVarPath = `/admins/promotions`;
|
|
3968
3969
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3969
3970
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4024,6 +4025,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4024
4025
|
if (sortDirection !== undefined) {
|
|
4025
4026
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4026
4027
|
}
|
|
4028
|
+
if (onlyClaimable !== undefined) {
|
|
4029
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
4030
|
+
}
|
|
4027
4031
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4028
4032
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4029
4033
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4044,10 +4048,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4044
4048
|
* @param {string} [search] search by name or description
|
|
4045
4049
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4046
4050
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4051
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4047
4052
|
* @param {*} [options] Override http request option.
|
|
4048
4053
|
* @throws {RequiredError}
|
|
4049
4054
|
*/
|
|
4050
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4055
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4051
4056
|
const localVarPath = `/users/promotions`;
|
|
4052
4057
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4053
4058
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4096,6 +4101,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4096
4101
|
if (sortDirection !== undefined) {
|
|
4097
4102
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4098
4103
|
}
|
|
4104
|
+
if (onlyClaimable !== undefined) {
|
|
4105
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
4106
|
+
}
|
|
4099
4107
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4100
4108
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4101
4109
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4285,12 +4293,13 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4285
4293
|
* @param {string} [search] search by name or description
|
|
4286
4294
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4287
4295
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4296
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4288
4297
|
* @param {*} [options] Override http request option.
|
|
4289
4298
|
* @throws {RequiredError}
|
|
4290
4299
|
*/
|
|
4291
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4300
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4292
4301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4293
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options);
|
|
4302
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
|
|
4294
4303
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4295
4304
|
});
|
|
4296
4305
|
},
|
|
@@ -4306,12 +4315,13 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4306
4315
|
* @param {string} [search] search by name or description
|
|
4307
4316
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4308
4317
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4318
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4309
4319
|
* @param {*} [options] Override http request option.
|
|
4310
4320
|
* @throws {RequiredError}
|
|
4311
4321
|
*/
|
|
4312
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4322
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4313
4323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4314
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
|
|
4324
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options);
|
|
4315
4325
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4316
4326
|
});
|
|
4317
4327
|
},
|
|
@@ -4446,11 +4456,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4446
4456
|
* @param {string} [search] search by name or description
|
|
4447
4457
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4448
4458
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4459
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4449
4460
|
* @param {*} [options] Override http request option.
|
|
4450
4461
|
* @throws {RequiredError}
|
|
4451
4462
|
*/
|
|
4452
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4453
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4463
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4464
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
4454
4465
|
},
|
|
4455
4466
|
/**
|
|
4456
4467
|
* List users promotions
|
|
@@ -4464,11 +4475,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4464
4475
|
* @param {string} [search] search by name or description
|
|
4465
4476
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4466
4477
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4478
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4467
4479
|
* @param {*} [options] Override http request option.
|
|
4468
4480
|
* @throws {RequiredError}
|
|
4469
4481
|
*/
|
|
4470
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4471
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4482
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4483
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
4472
4484
|
},
|
|
4473
4485
|
/**
|
|
4474
4486
|
* Update promotion by id
|
|
@@ -4607,12 +4619,13 @@ export class PromotionApi extends BaseAPI {
|
|
|
4607
4619
|
* @param {string} [search] search by name or description
|
|
4608
4620
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4609
4621
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4622
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4610
4623
|
* @param {*} [options] Override http request option.
|
|
4611
4624
|
* @throws {RequiredError}
|
|
4612
4625
|
* @memberof PromotionApi
|
|
4613
4626
|
*/
|
|
4614
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4615
|
-
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
4627
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4628
|
+
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
|
4616
4629
|
}
|
|
4617
4630
|
/**
|
|
4618
4631
|
* List users promotions
|
|
@@ -4626,12 +4639,13 @@ export class PromotionApi extends BaseAPI {
|
|
|
4626
4639
|
* @param {string} [search] search by name or description
|
|
4627
4640
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4628
4641
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4642
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4629
4643
|
* @param {*} [options] Override http request option.
|
|
4630
4644
|
* @throws {RequiredError}
|
|
4631
4645
|
* @memberof PromotionApi
|
|
4632
4646
|
*/
|
|
4633
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4634
|
-
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
4647
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4648
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
|
4635
4649
|
}
|
|
4636
4650
|
/**
|
|
4637
4651
|
* Update promotion by id
|