flexinet-api 0.0.430-prerelease0 → 0.0.448-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 +45 -21
- package/dist/api.d.ts +24 -12
- package/dist/api.js +42 -21
- package/dist/esm/api.d.ts +24 -12
- package/dist/esm/api.js +42 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.448-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.448-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -3920,10 +3920,11 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3920
3920
|
* @param {string} [search] search string
|
|
3921
3921
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3922
3922
|
* @param {Array<string>} [clientIDs] client IDs
|
|
3923
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
3923
3924
|
* @param {*} [options] Override http request option.
|
|
3924
3925
|
* @throws {RequiredError}
|
|
3925
3926
|
*/
|
|
3926
|
-
listClients: async (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3927
|
+
listClients: async (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3927
3928
|
const localVarPath = `/admins/clients`;
|
|
3928
3929
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3929
3930
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3956,6 +3957,10 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3956
3957
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
3957
3958
|
}
|
|
3958
3959
|
|
|
3960
|
+
if (managerID !== undefined) {
|
|
3961
|
+
localVarQueryParameter['managerID'] = managerID;
|
|
3962
|
+
}
|
|
3963
|
+
|
|
3959
3964
|
|
|
3960
3965
|
|
|
3961
3966
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4006,11 +4011,12 @@ export const ClientApiFp = function(configuration?: Configuration) {
|
|
|
4006
4011
|
* @param {string} [search] search string
|
|
4007
4012
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
4008
4013
|
* @param {Array<string>} [clientIDs] client IDs
|
|
4014
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
4009
4015
|
* @param {*} [options] Override http request option.
|
|
4010
4016
|
* @throws {RequiredError}
|
|
4011
4017
|
*/
|
|
4012
|
-
async listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>> {
|
|
4013
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, options);
|
|
4018
|
+
async listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>> {
|
|
4019
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, managerID, options);
|
|
4014
4020
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4015
4021
|
},
|
|
4016
4022
|
}
|
|
@@ -4050,11 +4056,12 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
|
|
|
4050
4056
|
* @param {string} [search] search string
|
|
4051
4057
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
4052
4058
|
* @param {Array<string>} [clientIDs] client IDs
|
|
4059
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
4053
4060
|
* @param {*} [options] Override http request option.
|
|
4054
4061
|
* @throws {RequiredError}
|
|
4055
4062
|
*/
|
|
4056
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<ClientListResponse> {
|
|
4057
|
-
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(axios, basePath));
|
|
4063
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: any): AxiosPromise<ClientListResponse> {
|
|
4064
|
+
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, managerID, options).then((request) => request(axios, basePath));
|
|
4058
4065
|
},
|
|
4059
4066
|
};
|
|
4060
4067
|
};
|
|
@@ -4097,12 +4104,13 @@ export class ClientApi extends BaseAPI {
|
|
|
4097
4104
|
* @param {string} [search] search string
|
|
4098
4105
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
4099
4106
|
* @param {Array<string>} [clientIDs] client IDs
|
|
4107
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
4100
4108
|
* @param {*} [options] Override http request option.
|
|
4101
4109
|
* @throws {RequiredError}
|
|
4102
4110
|
* @memberof ClientApi
|
|
4103
4111
|
*/
|
|
4104
|
-
public listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) {
|
|
4105
|
-
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
|
4112
|
+
public listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: AxiosRequestConfig) {
|
|
4113
|
+
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, managerID, options).then((request) => request(this.axios, this.basePath));
|
|
4106
4114
|
}
|
|
4107
4115
|
}
|
|
4108
4116
|
|
|
@@ -7217,10 +7225,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7217
7225
|
* @param {string} [search] search by name or description
|
|
7218
7226
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7219
7227
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7228
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7220
7229
|
* @param {*} [options] Override http request option.
|
|
7221
7230
|
* @throws {RequiredError}
|
|
7222
7231
|
*/
|
|
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> => {
|
|
7232
|
+
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
7233
|
const localVarPath = `/admins/promotions`;
|
|
7225
7234
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7226
7235
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7297,6 +7306,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7297
7306
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
7298
7307
|
}
|
|
7299
7308
|
|
|
7309
|
+
if (onlyClaimable !== undefined) {
|
|
7310
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
7311
|
+
}
|
|
7312
|
+
|
|
7300
7313
|
|
|
7301
7314
|
|
|
7302
7315
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -7320,10 +7333,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7320
7333
|
* @param {string} [search] search by name or description
|
|
7321
7334
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7322
7335
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7336
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7323
7337
|
* @param {*} [options] Override http request option.
|
|
7324
7338
|
* @throws {RequiredError}
|
|
7325
7339
|
*/
|
|
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> => {
|
|
7340
|
+
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
7341
|
const localVarPath = `/users/promotions`;
|
|
7328
7342
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7329
7343
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7384,6 +7398,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7384
7398
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
7385
7399
|
}
|
|
7386
7400
|
|
|
7401
|
+
if (onlyClaimable !== undefined) {
|
|
7402
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
7403
|
+
}
|
|
7404
|
+
|
|
7387
7405
|
|
|
7388
7406
|
|
|
7389
7407
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -7566,11 +7584,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
7566
7584
|
* @param {string} [search] search by name or description
|
|
7567
7585
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7568
7586
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7587
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7569
7588
|
* @param {*} [options] Override http request option.
|
|
7570
7589
|
* @throws {RequiredError}
|
|
7571
7590
|
*/
|
|
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);
|
|
7591
|
+
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>> {
|
|
7592
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
|
|
7574
7593
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7575
7594
|
},
|
|
7576
7595
|
/**
|
|
@@ -7585,11 +7604,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
7585
7604
|
* @param {string} [search] search by name or description
|
|
7586
7605
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7587
7606
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7607
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7588
7608
|
* @param {*} [options] Override http request option.
|
|
7589
7609
|
* @throws {RequiredError}
|
|
7590
7610
|
*/
|
|
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);
|
|
7611
|
+
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>> {
|
|
7612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options);
|
|
7593
7613
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7594
7614
|
},
|
|
7595
7615
|
/**
|
|
@@ -7722,11 +7742,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
7722
7742
|
* @param {string} [search] search by name or description
|
|
7723
7743
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7724
7744
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7745
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7725
7746
|
* @param {*} [options] Override http request option.
|
|
7726
7747
|
* @throws {RequiredError}
|
|
7727
7748
|
*/
|
|
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));
|
|
7749
|
+
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> {
|
|
7750
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
7730
7751
|
},
|
|
7731
7752
|
/**
|
|
7732
7753
|
* List users promotions
|
|
@@ -7740,11 +7761,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
7740
7761
|
* @param {string} [search] search by name or description
|
|
7741
7762
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7742
7763
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7764
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7743
7765
|
* @param {*} [options] Override http request option.
|
|
7744
7766
|
* @throws {RequiredError}
|
|
7745
7767
|
*/
|
|
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));
|
|
7768
|
+
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> {
|
|
7769
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
7748
7770
|
},
|
|
7749
7771
|
/**
|
|
7750
7772
|
* Update promotion by id
|
|
@@ -7893,12 +7915,13 @@ export class PromotionApi extends BaseAPI {
|
|
|
7893
7915
|
* @param {string} [search] search by name or description
|
|
7894
7916
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7895
7917
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7918
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7896
7919
|
* @param {*} [options] Override http request option.
|
|
7897
7920
|
* @throws {RequiredError}
|
|
7898
7921
|
* @memberof PromotionApi
|
|
7899
7922
|
*/
|
|
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));
|
|
7923
|
+
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) {
|
|
7924
|
+
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
7925
|
}
|
|
7903
7926
|
|
|
7904
7927
|
/**
|
|
@@ -7913,12 +7936,13 @@ export class PromotionApi extends BaseAPI {
|
|
|
7913
7936
|
* @param {string} [search] search by name or description
|
|
7914
7937
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7915
7938
|
* @param {SortDirection} [sortDirection] sort direction
|
|
7939
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
7916
7940
|
* @param {*} [options] Override http request option.
|
|
7917
7941
|
* @throws {RequiredError}
|
|
7918
7942
|
* @memberof PromotionApi
|
|
7919
7943
|
*/
|
|
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));
|
|
7944
|
+
public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig) {
|
|
7945
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
|
7922
7946
|
}
|
|
7923
7947
|
|
|
7924
7948
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -3376,10 +3376,11 @@ export declare const ClientApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3376
3376
|
* @param {string} [search] search string
|
|
3377
3377
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3378
3378
|
* @param {Array<string>} [clientIDs] client IDs
|
|
3379
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
3379
3380
|
* @param {*} [options] Override http request option.
|
|
3380
3381
|
* @throws {RequiredError}
|
|
3381
3382
|
*/
|
|
3382
|
-
listClients: (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3383
|
+
listClients: (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3383
3384
|
};
|
|
3384
3385
|
/**
|
|
3385
3386
|
* ClientApi - functional programming interface
|
|
@@ -3409,10 +3410,11 @@ export declare const ClientApiFp: (configuration?: Configuration) => {
|
|
|
3409
3410
|
* @param {string} [search] search string
|
|
3410
3411
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3411
3412
|
* @param {Array<string>} [clientIDs] client IDs
|
|
3413
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
3412
3414
|
* @param {*} [options] Override http request option.
|
|
3413
3415
|
* @throws {RequiredError}
|
|
3414
3416
|
*/
|
|
3415
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>>;
|
|
3417
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>>;
|
|
3416
3418
|
};
|
|
3417
3419
|
/**
|
|
3418
3420
|
* ClientApi - factory interface
|
|
@@ -3442,10 +3444,11 @@ export declare const ClientApiFactory: (configuration?: Configuration, basePath?
|
|
|
3442
3444
|
* @param {string} [search] search string
|
|
3443
3445
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3444
3446
|
* @param {Array<string>} [clientIDs] client IDs
|
|
3447
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
3445
3448
|
* @param {*} [options] Override http request option.
|
|
3446
3449
|
* @throws {RequiredError}
|
|
3447
3450
|
*/
|
|
3448
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<ClientListResponse>;
|
|
3451
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: any): AxiosPromise<ClientListResponse>;
|
|
3449
3452
|
};
|
|
3450
3453
|
/**
|
|
3451
3454
|
* ClientApi - object-oriented interface
|
|
@@ -3479,11 +3482,12 @@ export declare class ClientApi extends BaseAPI {
|
|
|
3479
3482
|
* @param {string} [search] search string
|
|
3480
3483
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3481
3484
|
* @param {Array<string>} [clientIDs] client IDs
|
|
3485
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
3482
3486
|
* @param {*} [options] Override http request option.
|
|
3483
3487
|
* @throws {RequiredError}
|
|
3484
3488
|
* @memberof ClientApi
|
|
3485
3489
|
*/
|
|
3486
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientListResponse, any>>;
|
|
3490
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientListResponse, any>>;
|
|
3487
3491
|
}
|
|
3488
3492
|
/**
|
|
3489
3493
|
* ConfigurationApi - axios parameter creator
|
|
@@ -4937,10 +4941,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4937
4941
|
* @param {string} [search] search by name or description
|
|
4938
4942
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4939
4943
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4944
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4940
4945
|
* @param {*} [options] Override http request option.
|
|
4941
4946
|
* @throws {RequiredError}
|
|
4942
4947
|
*/
|
|
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>;
|
|
4948
|
+
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
4949
|
/**
|
|
4945
4950
|
* List users promotions
|
|
4946
4951
|
* @summary List promotions
|
|
@@ -4953,10 +4958,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4953
4958
|
* @param {string} [search] search by name or description
|
|
4954
4959
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4955
4960
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4961
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4956
4962
|
* @param {*} [options] Override http request option.
|
|
4957
4963
|
* @throws {RequiredError}
|
|
4958
4964
|
*/
|
|
4959
|
-
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4965
|
+
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
4966
|
/**
|
|
4961
4967
|
* Update promotion by id
|
|
4962
4968
|
* @summary Update promotion
|
|
@@ -5062,10 +5068,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5062
5068
|
* @param {string} [search] search by name or description
|
|
5063
5069
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5064
5070
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5071
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5065
5072
|
* @param {*} [options] Override http request option.
|
|
5066
5073
|
* @throws {RequiredError}
|
|
5067
5074
|
*/
|
|
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>>;
|
|
5075
|
+
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
5076
|
/**
|
|
5070
5077
|
* List users promotions
|
|
5071
5078
|
* @summary List promotions
|
|
@@ -5078,10 +5085,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5078
5085
|
* @param {string} [search] search by name or description
|
|
5079
5086
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5080
5087
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5088
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5081
5089
|
* @param {*} [options] Override http request option.
|
|
5082
5090
|
* @throws {RequiredError}
|
|
5083
5091
|
*/
|
|
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>>;
|
|
5092
|
+
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
5093
|
/**
|
|
5086
5094
|
* Update promotion by id
|
|
5087
5095
|
* @summary Update promotion
|
|
@@ -5187,10 +5195,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5187
5195
|
* @param {string} [search] search by name or description
|
|
5188
5196
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5189
5197
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5198
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5190
5199
|
* @param {*} [options] Override http request option.
|
|
5191
5200
|
* @throws {RequiredError}
|
|
5192
5201
|
*/
|
|
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>;
|
|
5202
|
+
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
5203
|
/**
|
|
5195
5204
|
* List users promotions
|
|
5196
5205
|
* @summary List promotions
|
|
@@ -5203,10 +5212,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5203
5212
|
* @param {string} [search] search by name or description
|
|
5204
5213
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5205
5214
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5215
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5206
5216
|
* @param {*} [options] Override http request option.
|
|
5207
5217
|
* @throws {RequiredError}
|
|
5208
5218
|
*/
|
|
5209
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5219
|
+
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
5220
|
/**
|
|
5211
5221
|
* Update promotion by id
|
|
5212
5222
|
* @summary Update promotion
|
|
@@ -5323,11 +5333,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5323
5333
|
* @param {string} [search] search by name or description
|
|
5324
5334
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5325
5335
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5336
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5326
5337
|
* @param {*} [options] Override http request option.
|
|
5327
5338
|
* @throws {RequiredError}
|
|
5328
5339
|
* @memberof PromotionApi
|
|
5329
5340
|
*/
|
|
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>>;
|
|
5341
|
+
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
5342
|
/**
|
|
5332
5343
|
* List users promotions
|
|
5333
5344
|
* @summary List promotions
|
|
@@ -5340,11 +5351,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5340
5351
|
* @param {string} [search] search by name or description
|
|
5341
5352
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5342
5353
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5354
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5343
5355
|
* @param {*} [options] Override http request option.
|
|
5344
5356
|
* @throws {RequiredError}
|
|
5345
5357
|
* @memberof PromotionApi
|
|
5346
5358
|
*/
|
|
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>>;
|
|
5359
|
+
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
5360
|
/**
|
|
5349
5361
|
* Update promotion by id
|
|
5350
5362
|
* @summary Update promotion
|
package/dist/api.js
CHANGED
|
@@ -983,10 +983,11 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
983
983
|
* @param {string} [search] search string
|
|
984
984
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
985
985
|
* @param {Array<string>} [clientIDs] client IDs
|
|
986
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
986
987
|
* @param {*} [options] Override http request option.
|
|
987
988
|
* @throws {RequiredError}
|
|
988
989
|
*/
|
|
989
|
-
listClients: (nextToken, search, referenceIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
990
|
+
listClients: (nextToken, search, referenceIDs, clientIDs, managerID, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
990
991
|
const localVarPath = `/admins/clients`;
|
|
991
992
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
992
993
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1012,6 +1013,9 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1012
1013
|
if (clientIDs) {
|
|
1013
1014
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
1014
1015
|
}
|
|
1016
|
+
if (managerID !== undefined) {
|
|
1017
|
+
localVarQueryParameter['managerID'] = managerID;
|
|
1018
|
+
}
|
|
1015
1019
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1016
1020
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1017
1021
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1063,12 +1067,13 @@ const ClientApiFp = function (configuration) {
|
|
|
1063
1067
|
* @param {string} [search] search string
|
|
1064
1068
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1065
1069
|
* @param {Array<string>} [clientIDs] client IDs
|
|
1070
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
1066
1071
|
* @param {*} [options] Override http request option.
|
|
1067
1072
|
* @throws {RequiredError}
|
|
1068
1073
|
*/
|
|
1069
|
-
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1074
|
+
listClients(nextToken, search, referenceIDs, clientIDs, managerID, options) {
|
|
1070
1075
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1071
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, options);
|
|
1076
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, managerID, options);
|
|
1072
1077
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1073
1078
|
});
|
|
1074
1079
|
},
|
|
@@ -1109,11 +1114,12 @@ const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1109
1114
|
* @param {string} [search] search string
|
|
1110
1115
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1111
1116
|
* @param {Array<string>} [clientIDs] client IDs
|
|
1117
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
1112
1118
|
* @param {*} [options] Override http request option.
|
|
1113
1119
|
* @throws {RequiredError}
|
|
1114
1120
|
*/
|
|
1115
|
-
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1116
|
-
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(axios, basePath));
|
|
1121
|
+
listClients(nextToken, search, referenceIDs, clientIDs, managerID, options) {
|
|
1122
|
+
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, managerID, options).then((request) => request(axios, basePath));
|
|
1117
1123
|
},
|
|
1118
1124
|
};
|
|
1119
1125
|
};
|
|
@@ -1154,12 +1160,13 @@ class ClientApi extends base_1.BaseAPI {
|
|
|
1154
1160
|
* @param {string} [search] search string
|
|
1155
1161
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1156
1162
|
* @param {Array<string>} [clientIDs] client IDs
|
|
1163
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
1157
1164
|
* @param {*} [options] Override http request option.
|
|
1158
1165
|
* @throws {RequiredError}
|
|
1159
1166
|
* @memberof ClientApi
|
|
1160
1167
|
*/
|
|
1161
|
-
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1162
|
-
return (0, exports.ClientApiFp)(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
|
1168
|
+
listClients(nextToken, search, referenceIDs, clientIDs, managerID, options) {
|
|
1169
|
+
return (0, exports.ClientApiFp)(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, managerID, options).then((request) => request(this.axios, this.basePath));
|
|
1163
1170
|
}
|
|
1164
1171
|
}
|
|
1165
1172
|
exports.ClientApi = ClientApi;
|
|
@@ -4013,10 +4020,11 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4013
4020
|
* @param {string} [search] search by name or description
|
|
4014
4021
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4015
4022
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4023
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4016
4024
|
* @param {*} [options] Override http request option.
|
|
4017
4025
|
* @throws {RequiredError}
|
|
4018
4026
|
*/
|
|
4019
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4027
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4020
4028
|
const localVarPath = `/admins/promotions`;
|
|
4021
4029
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4022
4030
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4077,6 +4085,9 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4077
4085
|
if (sortDirection !== undefined) {
|
|
4078
4086
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4079
4087
|
}
|
|
4088
|
+
if (onlyClaimable !== undefined) {
|
|
4089
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
4090
|
+
}
|
|
4080
4091
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4081
4092
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4082
4093
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4097,10 +4108,11 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4097
4108
|
* @param {string} [search] search by name or description
|
|
4098
4109
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4099
4110
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4111
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4100
4112
|
* @param {*} [options] Override http request option.
|
|
4101
4113
|
* @throws {RequiredError}
|
|
4102
4114
|
*/
|
|
4103
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4115
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4104
4116
|
const localVarPath = `/users/promotions`;
|
|
4105
4117
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4106
4118
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4149,6 +4161,9 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4149
4161
|
if (sortDirection !== undefined) {
|
|
4150
4162
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4151
4163
|
}
|
|
4164
|
+
if (onlyClaimable !== undefined) {
|
|
4165
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
4166
|
+
}
|
|
4152
4167
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4153
4168
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4154
4169
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4339,12 +4354,13 @@ const PromotionApiFp = function (configuration) {
|
|
|
4339
4354
|
* @param {string} [search] search by name or description
|
|
4340
4355
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4341
4356
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4357
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4342
4358
|
* @param {*} [options] Override http request option.
|
|
4343
4359
|
* @throws {RequiredError}
|
|
4344
4360
|
*/
|
|
4345
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4361
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4346
4362
|
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);
|
|
4363
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
|
|
4348
4364
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4349
4365
|
});
|
|
4350
4366
|
},
|
|
@@ -4360,12 +4376,13 @@ const PromotionApiFp = function (configuration) {
|
|
|
4360
4376
|
* @param {string} [search] search by name or description
|
|
4361
4377
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4362
4378
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4379
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4363
4380
|
* @param {*} [options] Override http request option.
|
|
4364
4381
|
* @throws {RequiredError}
|
|
4365
4382
|
*/
|
|
4366
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4383
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4367
4384
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4368
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
|
|
4385
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options);
|
|
4369
4386
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4370
4387
|
});
|
|
4371
4388
|
},
|
|
@@ -4501,11 +4518,12 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4501
4518
|
* @param {string} [search] search by name or description
|
|
4502
4519
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4503
4520
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4521
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4504
4522
|
* @param {*} [options] Override http request option.
|
|
4505
4523
|
* @throws {RequiredError}
|
|
4506
4524
|
*/
|
|
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));
|
|
4525
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4526
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
4509
4527
|
},
|
|
4510
4528
|
/**
|
|
4511
4529
|
* List users promotions
|
|
@@ -4519,11 +4537,12 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4519
4537
|
* @param {string} [search] search by name or description
|
|
4520
4538
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4521
4539
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4540
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4522
4541
|
* @param {*} [options] Override http request option.
|
|
4523
4542
|
* @throws {RequiredError}
|
|
4524
4543
|
*/
|
|
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));
|
|
4544
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4545
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
4527
4546
|
},
|
|
4528
4547
|
/**
|
|
4529
4548
|
* Update promotion by id
|
|
@@ -4663,12 +4682,13 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4663
4682
|
* @param {string} [search] search by name or description
|
|
4664
4683
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4665
4684
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4685
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4666
4686
|
* @param {*} [options] Override http request option.
|
|
4667
4687
|
* @throws {RequiredError}
|
|
4668
4688
|
* @memberof PromotionApi
|
|
4669
4689
|
*/
|
|
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));
|
|
4690
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4691
|
+
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
4692
|
}
|
|
4673
4693
|
/**
|
|
4674
4694
|
* List users promotions
|
|
@@ -4682,12 +4702,13 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4682
4702
|
* @param {string} [search] search by name or description
|
|
4683
4703
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4684
4704
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4705
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4685
4706
|
* @param {*} [options] Override http request option.
|
|
4686
4707
|
* @throws {RequiredError}
|
|
4687
4708
|
* @memberof PromotionApi
|
|
4688
4709
|
*/
|
|
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));
|
|
4710
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4711
|
+
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
4712
|
}
|
|
4692
4713
|
/**
|
|
4693
4714
|
* Update promotion by id
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -3376,10 +3376,11 @@ export declare const ClientApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3376
3376
|
* @param {string} [search] search string
|
|
3377
3377
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3378
3378
|
* @param {Array<string>} [clientIDs] client IDs
|
|
3379
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
3379
3380
|
* @param {*} [options] Override http request option.
|
|
3380
3381
|
* @throws {RequiredError}
|
|
3381
3382
|
*/
|
|
3382
|
-
listClients: (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3383
|
+
listClients: (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3383
3384
|
};
|
|
3384
3385
|
/**
|
|
3385
3386
|
* ClientApi - functional programming interface
|
|
@@ -3409,10 +3410,11 @@ export declare const ClientApiFp: (configuration?: Configuration) => {
|
|
|
3409
3410
|
* @param {string} [search] search string
|
|
3410
3411
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3411
3412
|
* @param {Array<string>} [clientIDs] client IDs
|
|
3413
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
3412
3414
|
* @param {*} [options] Override http request option.
|
|
3413
3415
|
* @throws {RequiredError}
|
|
3414
3416
|
*/
|
|
3415
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>>;
|
|
3417
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>>;
|
|
3416
3418
|
};
|
|
3417
3419
|
/**
|
|
3418
3420
|
* ClientApi - factory interface
|
|
@@ -3442,10 +3444,11 @@ export declare const ClientApiFactory: (configuration?: Configuration, basePath?
|
|
|
3442
3444
|
* @param {string} [search] search string
|
|
3443
3445
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3444
3446
|
* @param {Array<string>} [clientIDs] client IDs
|
|
3447
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
3445
3448
|
* @param {*} [options] Override http request option.
|
|
3446
3449
|
* @throws {RequiredError}
|
|
3447
3450
|
*/
|
|
3448
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<ClientListResponse>;
|
|
3451
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: any): AxiosPromise<ClientListResponse>;
|
|
3449
3452
|
};
|
|
3450
3453
|
/**
|
|
3451
3454
|
* ClientApi - object-oriented interface
|
|
@@ -3479,11 +3482,12 @@ export declare class ClientApi extends BaseAPI {
|
|
|
3479
3482
|
* @param {string} [search] search string
|
|
3480
3483
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3481
3484
|
* @param {Array<string>} [clientIDs] client IDs
|
|
3485
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
3482
3486
|
* @param {*} [options] Override http request option.
|
|
3483
3487
|
* @throws {RequiredError}
|
|
3484
3488
|
* @memberof ClientApi
|
|
3485
3489
|
*/
|
|
3486
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientListResponse, any>>;
|
|
3490
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientListResponse, any>>;
|
|
3487
3491
|
}
|
|
3488
3492
|
/**
|
|
3489
3493
|
* ConfigurationApi - axios parameter creator
|
|
@@ -4937,10 +4941,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4937
4941
|
* @param {string} [search] search by name or description
|
|
4938
4942
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4939
4943
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4944
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4940
4945
|
* @param {*} [options] Override http request option.
|
|
4941
4946
|
* @throws {RequiredError}
|
|
4942
4947
|
*/
|
|
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>;
|
|
4948
|
+
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
4949
|
/**
|
|
4945
4950
|
* List users promotions
|
|
4946
4951
|
* @summary List promotions
|
|
@@ -4953,10 +4958,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4953
4958
|
* @param {string} [search] search by name or description
|
|
4954
4959
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4955
4960
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4961
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4956
4962
|
* @param {*} [options] Override http request option.
|
|
4957
4963
|
* @throws {RequiredError}
|
|
4958
4964
|
*/
|
|
4959
|
-
listUserPromotions: (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4965
|
+
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
4966
|
/**
|
|
4961
4967
|
* Update promotion by id
|
|
4962
4968
|
* @summary Update promotion
|
|
@@ -5062,10 +5068,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5062
5068
|
* @param {string} [search] search by name or description
|
|
5063
5069
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5064
5070
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5071
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5065
5072
|
* @param {*} [options] Override http request option.
|
|
5066
5073
|
* @throws {RequiredError}
|
|
5067
5074
|
*/
|
|
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>>;
|
|
5075
|
+
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
5076
|
/**
|
|
5070
5077
|
* List users promotions
|
|
5071
5078
|
* @summary List promotions
|
|
@@ -5078,10 +5085,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5078
5085
|
* @param {string} [search] search by name or description
|
|
5079
5086
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5080
5087
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5088
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5081
5089
|
* @param {*} [options] Override http request option.
|
|
5082
5090
|
* @throws {RequiredError}
|
|
5083
5091
|
*/
|
|
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>>;
|
|
5092
|
+
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
5093
|
/**
|
|
5086
5094
|
* Update promotion by id
|
|
5087
5095
|
* @summary Update promotion
|
|
@@ -5187,10 +5195,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5187
5195
|
* @param {string} [search] search by name or description
|
|
5188
5196
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5189
5197
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5198
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5190
5199
|
* @param {*} [options] Override http request option.
|
|
5191
5200
|
* @throws {RequiredError}
|
|
5192
5201
|
*/
|
|
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>;
|
|
5202
|
+
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
5203
|
/**
|
|
5195
5204
|
* List users promotions
|
|
5196
5205
|
* @summary List promotions
|
|
@@ -5203,10 +5212,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5203
5212
|
* @param {string} [search] search by name or description
|
|
5204
5213
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5205
5214
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5215
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5206
5216
|
* @param {*} [options] Override http request option.
|
|
5207
5217
|
* @throws {RequiredError}
|
|
5208
5218
|
*/
|
|
5209
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5219
|
+
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
5220
|
/**
|
|
5211
5221
|
* Update promotion by id
|
|
5212
5222
|
* @summary Update promotion
|
|
@@ -5323,11 +5333,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5323
5333
|
* @param {string} [search] search by name or description
|
|
5324
5334
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5325
5335
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5336
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5326
5337
|
* @param {*} [options] Override http request option.
|
|
5327
5338
|
* @throws {RequiredError}
|
|
5328
5339
|
* @memberof PromotionApi
|
|
5329
5340
|
*/
|
|
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>>;
|
|
5341
|
+
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
5342
|
/**
|
|
5332
5343
|
* List users promotions
|
|
5333
5344
|
* @summary List promotions
|
|
@@ -5340,11 +5351,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5340
5351
|
* @param {string} [search] search by name or description
|
|
5341
5352
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
5342
5353
|
* @param {SortDirection} [sortDirection] sort direction
|
|
5354
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
5343
5355
|
* @param {*} [options] Override http request option.
|
|
5344
5356
|
* @throws {RequiredError}
|
|
5345
5357
|
* @memberof PromotionApi
|
|
5346
5358
|
*/
|
|
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>>;
|
|
5359
|
+
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
5360
|
/**
|
|
5349
5361
|
* Update promotion by id
|
|
5350
5362
|
* @summary Update promotion
|
package/dist/esm/api.js
CHANGED
|
@@ -966,10 +966,11 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
966
966
|
* @param {string} [search] search string
|
|
967
967
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
968
968
|
* @param {Array<string>} [clientIDs] client IDs
|
|
969
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
969
970
|
* @param {*} [options] Override http request option.
|
|
970
971
|
* @throws {RequiredError}
|
|
971
972
|
*/
|
|
972
|
-
listClients: (nextToken, search, referenceIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
973
|
+
listClients: (nextToken, search, referenceIDs, clientIDs, managerID, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
973
974
|
const localVarPath = `/admins/clients`;
|
|
974
975
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
975
976
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -995,6 +996,9 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
995
996
|
if (clientIDs) {
|
|
996
997
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
997
998
|
}
|
|
999
|
+
if (managerID !== undefined) {
|
|
1000
|
+
localVarQueryParameter['managerID'] = managerID;
|
|
1001
|
+
}
|
|
998
1002
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
999
1003
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1000
1004
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1045,12 +1049,13 @@ export const ClientApiFp = function (configuration) {
|
|
|
1045
1049
|
* @param {string} [search] search string
|
|
1046
1050
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1047
1051
|
* @param {Array<string>} [clientIDs] client IDs
|
|
1052
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
1048
1053
|
* @param {*} [options] Override http request option.
|
|
1049
1054
|
* @throws {RequiredError}
|
|
1050
1055
|
*/
|
|
1051
|
-
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1056
|
+
listClients(nextToken, search, referenceIDs, clientIDs, managerID, options) {
|
|
1052
1057
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1053
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, options);
|
|
1058
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, managerID, options);
|
|
1054
1059
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1055
1060
|
});
|
|
1056
1061
|
},
|
|
@@ -1090,11 +1095,12 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1090
1095
|
* @param {string} [search] search string
|
|
1091
1096
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1092
1097
|
* @param {Array<string>} [clientIDs] client IDs
|
|
1098
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
1093
1099
|
* @param {*} [options] Override http request option.
|
|
1094
1100
|
* @throws {RequiredError}
|
|
1095
1101
|
*/
|
|
1096
|
-
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1097
|
-
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(axios, basePath));
|
|
1102
|
+
listClients(nextToken, search, referenceIDs, clientIDs, managerID, options) {
|
|
1103
|
+
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, managerID, options).then((request) => request(axios, basePath));
|
|
1098
1104
|
},
|
|
1099
1105
|
};
|
|
1100
1106
|
};
|
|
@@ -1134,12 +1140,13 @@ export class ClientApi extends BaseAPI {
|
|
|
1134
1140
|
* @param {string} [search] search string
|
|
1135
1141
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1136
1142
|
* @param {Array<string>} [clientIDs] client IDs
|
|
1143
|
+
* @param {string} [managerID] manager ID for whose clients we want to list
|
|
1137
1144
|
* @param {*} [options] Override http request option.
|
|
1138
1145
|
* @throws {RequiredError}
|
|
1139
1146
|
* @memberof ClientApi
|
|
1140
1147
|
*/
|
|
1141
|
-
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1142
|
-
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
|
1148
|
+
listClients(nextToken, search, referenceIDs, clientIDs, managerID, options) {
|
|
1149
|
+
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, managerID, options).then((request) => request(this.axios, this.basePath));
|
|
1143
1150
|
}
|
|
1144
1151
|
}
|
|
1145
1152
|
/**
|
|
@@ -3960,10 +3967,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3960
3967
|
* @param {string} [search] search by name or description
|
|
3961
3968
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
3962
3969
|
* @param {SortDirection} [sortDirection] sort direction
|
|
3970
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
3963
3971
|
* @param {*} [options] Override http request option.
|
|
3964
3972
|
* @throws {RequiredError}
|
|
3965
3973
|
*/
|
|
3966
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3974
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3967
3975
|
const localVarPath = `/admins/promotions`;
|
|
3968
3976
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3969
3977
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4024,6 +4032,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4024
4032
|
if (sortDirection !== undefined) {
|
|
4025
4033
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4026
4034
|
}
|
|
4035
|
+
if (onlyClaimable !== undefined) {
|
|
4036
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
4037
|
+
}
|
|
4027
4038
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4028
4039
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4029
4040
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4044,10 +4055,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4044
4055
|
* @param {string} [search] search by name or description
|
|
4045
4056
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4046
4057
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4058
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4047
4059
|
* @param {*} [options] Override http request option.
|
|
4048
4060
|
* @throws {RequiredError}
|
|
4049
4061
|
*/
|
|
4050
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4062
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4051
4063
|
const localVarPath = `/users/promotions`;
|
|
4052
4064
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4053
4065
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4096,6 +4108,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4096
4108
|
if (sortDirection !== undefined) {
|
|
4097
4109
|
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4098
4110
|
}
|
|
4111
|
+
if (onlyClaimable !== undefined) {
|
|
4112
|
+
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
|
4113
|
+
}
|
|
4099
4114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4100
4115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4101
4116
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4285,12 +4300,13 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4285
4300
|
* @param {string} [search] search by name or description
|
|
4286
4301
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4287
4302
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4303
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4288
4304
|
* @param {*} [options] Override http request option.
|
|
4289
4305
|
* @throws {RequiredError}
|
|
4290
4306
|
*/
|
|
4291
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4307
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4292
4308
|
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);
|
|
4309
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
|
|
4294
4310
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4295
4311
|
});
|
|
4296
4312
|
},
|
|
@@ -4306,12 +4322,13 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4306
4322
|
* @param {string} [search] search by name or description
|
|
4307
4323
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4308
4324
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4325
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4309
4326
|
* @param {*} [options] Override http request option.
|
|
4310
4327
|
* @throws {RequiredError}
|
|
4311
4328
|
*/
|
|
4312
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4329
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4313
4330
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4314
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
|
|
4331
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options);
|
|
4315
4332
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4316
4333
|
});
|
|
4317
4334
|
},
|
|
@@ -4446,11 +4463,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4446
4463
|
* @param {string} [search] search by name or description
|
|
4447
4464
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4448
4465
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4466
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4449
4467
|
* @param {*} [options] Override http request option.
|
|
4450
4468
|
* @throws {RequiredError}
|
|
4451
4469
|
*/
|
|
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));
|
|
4470
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4471
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
4454
4472
|
},
|
|
4455
4473
|
/**
|
|
4456
4474
|
* List users promotions
|
|
@@ -4464,11 +4482,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4464
4482
|
* @param {string} [search] search by name or description
|
|
4465
4483
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4466
4484
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4485
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4467
4486
|
* @param {*} [options] Override http request option.
|
|
4468
4487
|
* @throws {RequiredError}
|
|
4469
4488
|
*/
|
|
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));
|
|
4489
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4490
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
|
4472
4491
|
},
|
|
4473
4492
|
/**
|
|
4474
4493
|
* Update promotion by id
|
|
@@ -4607,12 +4626,13 @@ export class PromotionApi extends BaseAPI {
|
|
|
4607
4626
|
* @param {string} [search] search by name or description
|
|
4608
4627
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4609
4628
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4629
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4610
4630
|
* @param {*} [options] Override http request option.
|
|
4611
4631
|
* @throws {RequiredError}
|
|
4612
4632
|
* @memberof PromotionApi
|
|
4613
4633
|
*/
|
|
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));
|
|
4634
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4635
|
+
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
4636
|
}
|
|
4617
4637
|
/**
|
|
4618
4638
|
* List users promotions
|
|
@@ -4626,12 +4646,13 @@ export class PromotionApi extends BaseAPI {
|
|
|
4626
4646
|
* @param {string} [search] search by name or description
|
|
4627
4647
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4628
4648
|
* @param {SortDirection} [sortDirection] sort direction
|
|
4649
|
+
* @param {boolean} [onlyClaimable] only claimable promotions
|
|
4629
4650
|
* @param {*} [options] Override http request option.
|
|
4630
4651
|
* @throws {RequiredError}
|
|
4631
4652
|
* @memberof PromotionApi
|
|
4632
4653
|
*/
|
|
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));
|
|
4654
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options) {
|
|
4655
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
|
4635
4656
|
}
|
|
4636
4657
|
/**
|
|
4637
4658
|
* Update promotion by id
|