flexinet-api 0.0.378-prerelease0 → 0.0.386-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 +36 -41
- package/dist/api.d.ts +24 -33
- package/dist/api.js +27 -20
- package/dist/esm/api.d.ts +24 -33
- package/dist/esm/api.js +27 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.386-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.386-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -2495,6 +2495,12 @@ export interface Target {
|
|
|
2495
2495
|
* @memberof Target
|
|
2496
2496
|
*/
|
|
2497
2497
|
'targetMu': TargetMu;
|
|
2498
|
+
/**
|
|
2499
|
+
*
|
|
2500
|
+
* @type {string}
|
|
2501
|
+
* @memberof Target
|
|
2502
|
+
*/
|
|
2503
|
+
'currency'?: string;
|
|
2498
2504
|
/**
|
|
2499
2505
|
*
|
|
2500
2506
|
* @type {Array<TargetLevel>}
|
|
@@ -2512,10 +2518,10 @@ export interface Target {
|
|
|
2512
2518
|
export interface TargetLevel {
|
|
2513
2519
|
/**
|
|
2514
2520
|
*
|
|
2515
|
-
* @type {
|
|
2521
|
+
* @type {number}
|
|
2516
2522
|
* @memberof TargetLevel
|
|
2517
2523
|
*/
|
|
2518
|
-
'
|
|
2524
|
+
'value': number;
|
|
2519
2525
|
/**
|
|
2520
2526
|
*
|
|
2521
2527
|
* @type {BonusValue}
|
|
@@ -2538,25 +2544,6 @@ export const TargetMu = {
|
|
|
2538
2544
|
export type TargetMu = typeof TargetMu[keyof typeof TargetMu];
|
|
2539
2545
|
|
|
2540
2546
|
|
|
2541
|
-
/**
|
|
2542
|
-
*
|
|
2543
|
-
* @export
|
|
2544
|
-
* @interface TargetValue
|
|
2545
|
-
*/
|
|
2546
|
-
export interface TargetValue {
|
|
2547
|
-
/**
|
|
2548
|
-
*
|
|
2549
|
-
* @type {number}
|
|
2550
|
-
* @memberof TargetValue
|
|
2551
|
-
*/
|
|
2552
|
-
'value': number;
|
|
2553
|
-
/**
|
|
2554
|
-
*
|
|
2555
|
-
* @type {string}
|
|
2556
|
-
* @memberof TargetValue
|
|
2557
|
-
*/
|
|
2558
|
-
'currency'?: string;
|
|
2559
|
-
}
|
|
2560
2547
|
/**
|
|
2561
2548
|
*
|
|
2562
2549
|
* @export
|
|
@@ -3843,10 +3830,11 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3843
3830
|
* @param {string} [nextToken] This is the pagination token
|
|
3844
3831
|
* @param {string} [search] search string
|
|
3845
3832
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3833
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3846
3834
|
* @param {*} [options] Override http request option.
|
|
3847
3835
|
* @throws {RequiredError}
|
|
3848
3836
|
*/
|
|
3849
|
-
listClients: async (nextToken?: string, search?: string, referenceIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3837
|
+
listClients: async (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3850
3838
|
const localVarPath = `/admins/clients`;
|
|
3851
3839
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3852
3840
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3875,6 +3863,10 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3875
3863
|
localVarQueryParameter['referenceIDs'] = referenceIDs;
|
|
3876
3864
|
}
|
|
3877
3865
|
|
|
3866
|
+
if (clientIDs) {
|
|
3867
|
+
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
3868
|
+
}
|
|
3869
|
+
|
|
3878
3870
|
|
|
3879
3871
|
|
|
3880
3872
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3924,11 +3916,12 @@ export const ClientApiFp = function(configuration?: Configuration) {
|
|
|
3924
3916
|
* @param {string} [nextToken] This is the pagination token
|
|
3925
3917
|
* @param {string} [search] search string
|
|
3926
3918
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3919
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3927
3920
|
* @param {*} [options] Override http request option.
|
|
3928
3921
|
* @throws {RequiredError}
|
|
3929
3922
|
*/
|
|
3930
|
-
async listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>> {
|
|
3931
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, options);
|
|
3923
|
+
async listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>> {
|
|
3924
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, options);
|
|
3932
3925
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3933
3926
|
},
|
|
3934
3927
|
}
|
|
@@ -3967,11 +3960,12 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
|
|
|
3967
3960
|
* @param {string} [nextToken] This is the pagination token
|
|
3968
3961
|
* @param {string} [search] search string
|
|
3969
3962
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3963
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3970
3964
|
* @param {*} [options] Override http request option.
|
|
3971
3965
|
* @throws {RequiredError}
|
|
3972
3966
|
*/
|
|
3973
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: any): AxiosPromise<ClientListResponse> {
|
|
3974
|
-
return localVarFp.listClients(nextToken, search, referenceIDs, options).then((request) => request(axios, basePath));
|
|
3967
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<ClientListResponse> {
|
|
3968
|
+
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(axios, basePath));
|
|
3975
3969
|
},
|
|
3976
3970
|
};
|
|
3977
3971
|
};
|
|
@@ -4013,12 +4007,13 @@ export class ClientApi extends BaseAPI {
|
|
|
4013
4007
|
* @param {string} [nextToken] This is the pagination token
|
|
4014
4008
|
* @param {string} [search] search string
|
|
4015
4009
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
4010
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
4016
4011
|
* @param {*} [options] Override http request option.
|
|
4017
4012
|
* @throws {RequiredError}
|
|
4018
4013
|
* @memberof ClientApi
|
|
4019
4014
|
*/
|
|
4020
|
-
public listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: AxiosRequestConfig) {
|
|
4021
|
-
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, options).then((request) => request(this.axios, this.basePath));
|
|
4015
|
+
public listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) {
|
|
4016
|
+
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
|
4022
4017
|
}
|
|
4023
4018
|
}
|
|
4024
4019
|
|
|
@@ -6903,12 +6898,12 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6903
6898
|
* @param {string} [endingBefore] end time before time
|
|
6904
6899
|
* @param {string} [startingBefore] start time before time
|
|
6905
6900
|
* @param {string} [endingAfter] end time after time
|
|
6906
|
-
* @param {string} [
|
|
6901
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
6907
6902
|
* @param {string} [search] search by name or description
|
|
6908
6903
|
* @param {*} [options] Override http request option.
|
|
6909
6904
|
* @throws {RequiredError}
|
|
6910
6905
|
*/
|
|
6911
|
-
listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
6906
|
+
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, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6912
6907
|
const localVarPath = `/admins/promotions`;
|
|
6913
6908
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6914
6909
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6969,8 +6964,8 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6969
6964
|
endingAfter;
|
|
6970
6965
|
}
|
|
6971
6966
|
|
|
6972
|
-
if (
|
|
6973
|
-
localVarQueryParameter['
|
|
6967
|
+
if (clientIDs) {
|
|
6968
|
+
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
6974
6969
|
}
|
|
6975
6970
|
|
|
6976
6971
|
if (search !== undefined) {
|
|
@@ -7232,13 +7227,13 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
7232
7227
|
* @param {string} [endingBefore] end time before time
|
|
7233
7228
|
* @param {string} [startingBefore] start time before time
|
|
7234
7229
|
* @param {string} [endingAfter] end time after time
|
|
7235
|
-
* @param {string} [
|
|
7230
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
7236
7231
|
* @param {string} [search] search by name or description
|
|
7237
7232
|
* @param {*} [options] Override http request option.
|
|
7238
7233
|
* @throws {RequiredError}
|
|
7239
7234
|
*/
|
|
7240
|
-
async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
7241
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
7235
|
+
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, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
|
|
7236
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options);
|
|
7242
7237
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7243
7238
|
},
|
|
7244
7239
|
/**
|
|
@@ -7384,13 +7379,13 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
7384
7379
|
* @param {string} [endingBefore] end time before time
|
|
7385
7380
|
* @param {string} [startingBefore] start time before time
|
|
7386
7381
|
* @param {string} [endingAfter] end time after time
|
|
7387
|
-
* @param {string} [
|
|
7382
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
7388
7383
|
* @param {string} [search] search by name or description
|
|
7389
7384
|
* @param {*} [options] Override http request option.
|
|
7390
7385
|
* @throws {RequiredError}
|
|
7391
7386
|
*/
|
|
7392
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
7393
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
7387
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: any): AxiosPromise<PromotionsResponse> {
|
|
7388
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(axios, basePath));
|
|
7394
7389
|
},
|
|
7395
7390
|
/**
|
|
7396
7391
|
* List users promotions
|
|
@@ -7551,14 +7546,14 @@ export class PromotionApi extends BaseAPI {
|
|
|
7551
7546
|
* @param {string} [endingBefore] end time before time
|
|
7552
7547
|
* @param {string} [startingBefore] start time before time
|
|
7553
7548
|
* @param {string} [endingAfter] end time after time
|
|
7554
|
-
* @param {string} [
|
|
7549
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
7555
7550
|
* @param {string} [search] search by name or description
|
|
7556
7551
|
* @param {*} [options] Override http request option.
|
|
7557
7552
|
* @throws {RequiredError}
|
|
7558
7553
|
* @memberof PromotionApi
|
|
7559
7554
|
*/
|
|
7560
|
-
public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
7561
|
-
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
7555
|
+
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, options?: AxiosRequestConfig) {
|
|
7556
|
+
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(this.axios, this.basePath));
|
|
7562
7557
|
}
|
|
7563
7558
|
|
|
7564
7559
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -2367,6 +2367,12 @@ export interface Target {
|
|
|
2367
2367
|
* @memberof Target
|
|
2368
2368
|
*/
|
|
2369
2369
|
'targetMu': TargetMu;
|
|
2370
|
+
/**
|
|
2371
|
+
*
|
|
2372
|
+
* @type {string}
|
|
2373
|
+
* @memberof Target
|
|
2374
|
+
*/
|
|
2375
|
+
'currency'?: string;
|
|
2370
2376
|
/**
|
|
2371
2377
|
*
|
|
2372
2378
|
* @type {Array<TargetLevel>}
|
|
@@ -2382,10 +2388,10 @@ export interface Target {
|
|
|
2382
2388
|
export interface TargetLevel {
|
|
2383
2389
|
/**
|
|
2384
2390
|
*
|
|
2385
|
-
* @type {
|
|
2391
|
+
* @type {number}
|
|
2386
2392
|
* @memberof TargetLevel
|
|
2387
2393
|
*/
|
|
2388
|
-
'
|
|
2394
|
+
'value': number;
|
|
2389
2395
|
/**
|
|
2390
2396
|
*
|
|
2391
2397
|
* @type {BonusValue}
|
|
@@ -2404,25 +2410,6 @@ export declare const TargetMu: {
|
|
|
2404
2410
|
readonly Liter: "liter";
|
|
2405
2411
|
};
|
|
2406
2412
|
export type TargetMu = typeof TargetMu[keyof typeof TargetMu];
|
|
2407
|
-
/**
|
|
2408
|
-
*
|
|
2409
|
-
* @export
|
|
2410
|
-
* @interface TargetValue
|
|
2411
|
-
*/
|
|
2412
|
-
export interface TargetValue {
|
|
2413
|
-
/**
|
|
2414
|
-
*
|
|
2415
|
-
* @type {number}
|
|
2416
|
-
* @memberof TargetValue
|
|
2417
|
-
*/
|
|
2418
|
-
'value': number;
|
|
2419
|
-
/**
|
|
2420
|
-
*
|
|
2421
|
-
* @type {string}
|
|
2422
|
-
* @memberof TargetValue
|
|
2423
|
-
*/
|
|
2424
|
-
'currency'?: string;
|
|
2425
|
-
}
|
|
2426
2413
|
/**
|
|
2427
2414
|
*
|
|
2428
2415
|
* @export
|
|
@@ -3309,10 +3296,11 @@ export declare const ClientApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3309
3296
|
* @param {string} [nextToken] This is the pagination token
|
|
3310
3297
|
* @param {string} [search] search string
|
|
3311
3298
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3299
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3312
3300
|
* @param {*} [options] Override http request option.
|
|
3313
3301
|
* @throws {RequiredError}
|
|
3314
3302
|
*/
|
|
3315
|
-
listClients: (nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3303
|
+
listClients: (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3316
3304
|
};
|
|
3317
3305
|
/**
|
|
3318
3306
|
* ClientApi - functional programming interface
|
|
@@ -3341,10 +3329,11 @@ export declare const ClientApiFp: (configuration?: Configuration) => {
|
|
|
3341
3329
|
* @param {string} [nextToken] This is the pagination token
|
|
3342
3330
|
* @param {string} [search] search string
|
|
3343
3331
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3332
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3344
3333
|
* @param {*} [options] Override http request option.
|
|
3345
3334
|
* @throws {RequiredError}
|
|
3346
3335
|
*/
|
|
3347
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>>;
|
|
3336
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>>;
|
|
3348
3337
|
};
|
|
3349
3338
|
/**
|
|
3350
3339
|
* ClientApi - factory interface
|
|
@@ -3373,10 +3362,11 @@ export declare const ClientApiFactory: (configuration?: Configuration, basePath?
|
|
|
3373
3362
|
* @param {string} [nextToken] This is the pagination token
|
|
3374
3363
|
* @param {string} [search] search string
|
|
3375
3364
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3365
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3376
3366
|
* @param {*} [options] Override http request option.
|
|
3377
3367
|
* @throws {RequiredError}
|
|
3378
3368
|
*/
|
|
3379
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: any): AxiosPromise<ClientListResponse>;
|
|
3369
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<ClientListResponse>;
|
|
3380
3370
|
};
|
|
3381
3371
|
/**
|
|
3382
3372
|
* ClientApi - object-oriented interface
|
|
@@ -3409,11 +3399,12 @@ export declare class ClientApi extends BaseAPI {
|
|
|
3409
3399
|
* @param {string} [nextToken] This is the pagination token
|
|
3410
3400
|
* @param {string} [search] search string
|
|
3411
3401
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3402
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3412
3403
|
* @param {*} [options] Override http request option.
|
|
3413
3404
|
* @throws {RequiredError}
|
|
3414
3405
|
* @memberof ClientApi
|
|
3415
3406
|
*/
|
|
3416
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientListResponse, any>>;
|
|
3407
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientListResponse, any>>;
|
|
3417
3408
|
}
|
|
3418
3409
|
/**
|
|
3419
3410
|
* ConfigurationApi - axios parameter creator
|
|
@@ -4761,12 +4752,12 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4761
4752
|
* @param {string} [endingBefore] end time before time
|
|
4762
4753
|
* @param {string} [startingBefore] start time before time
|
|
4763
4754
|
* @param {string} [endingAfter] end time after time
|
|
4764
|
-
* @param {string} [
|
|
4755
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4765
4756
|
* @param {string} [search] search by name or description
|
|
4766
4757
|
* @param {*} [options] Override http request option.
|
|
4767
4758
|
* @throws {RequiredError}
|
|
4768
4759
|
*/
|
|
4769
|
-
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
4760
|
+
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4770
4761
|
/**
|
|
4771
4762
|
* List users promotions
|
|
4772
4763
|
* @summary List promotions
|
|
@@ -4882,12 +4873,12 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
4882
4873
|
* @param {string} [endingBefore] end time before time
|
|
4883
4874
|
* @param {string} [startingBefore] start time before time
|
|
4884
4875
|
* @param {string} [endingAfter] end time after time
|
|
4885
|
-
* @param {string} [
|
|
4876
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4886
4877
|
* @param {string} [search] search by name or description
|
|
4887
4878
|
* @param {*} [options] Override http request option.
|
|
4888
4879
|
* @throws {RequiredError}
|
|
4889
4880
|
*/
|
|
4890
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
4881
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
4891
4882
|
/**
|
|
4892
4883
|
* List users promotions
|
|
4893
4884
|
* @summary List promotions
|
|
@@ -5003,12 +4994,12 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5003
4994
|
* @param {string} [endingBefore] end time before time
|
|
5004
4995
|
* @param {string} [startingBefore] start time before time
|
|
5005
4996
|
* @param {string} [endingAfter] end time after time
|
|
5006
|
-
* @param {string} [
|
|
4997
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
5007
4998
|
* @param {string} [search] search by name or description
|
|
5008
4999
|
* @param {*} [options] Override http request option.
|
|
5009
5000
|
* @throws {RequiredError}
|
|
5010
5001
|
*/
|
|
5011
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
5002
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5012
5003
|
/**
|
|
5013
5004
|
* List users promotions
|
|
5014
5005
|
* @summary List promotions
|
|
@@ -5135,13 +5126,13 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5135
5126
|
* @param {string} [endingBefore] end time before time
|
|
5136
5127
|
* @param {string} [startingBefore] start time before time
|
|
5137
5128
|
* @param {string} [endingAfter] end time after time
|
|
5138
|
-
* @param {string} [
|
|
5129
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
5139
5130
|
* @param {string} [search] search by name or description
|
|
5140
5131
|
* @param {*} [options] Override http request option.
|
|
5141
5132
|
* @throws {RequiredError}
|
|
5142
5133
|
* @memberof PromotionApi
|
|
5143
5134
|
*/
|
|
5144
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
5135
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5145
5136
|
/**
|
|
5146
5137
|
* List users promotions
|
|
5147
5138
|
* @summary List promotions
|
package/dist/api.js
CHANGED
|
@@ -960,10 +960,11 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
960
960
|
* @param {string} [nextToken] This is the pagination token
|
|
961
961
|
* @param {string} [search] search string
|
|
962
962
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
963
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
963
964
|
* @param {*} [options] Override http request option.
|
|
964
965
|
* @throws {RequiredError}
|
|
965
966
|
*/
|
|
966
|
-
listClients: (nextToken, search, referenceIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
967
|
+
listClients: (nextToken, search, referenceIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
967
968
|
const localVarPath = `/admins/clients`;
|
|
968
969
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
969
970
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -986,6 +987,9 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
986
987
|
if (referenceIDs) {
|
|
987
988
|
localVarQueryParameter['referenceIDs'] = referenceIDs;
|
|
988
989
|
}
|
|
990
|
+
if (clientIDs) {
|
|
991
|
+
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
992
|
+
}
|
|
989
993
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
990
994
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
991
995
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1036,12 +1040,13 @@ const ClientApiFp = function (configuration) {
|
|
|
1036
1040
|
* @param {string} [nextToken] This is the pagination token
|
|
1037
1041
|
* @param {string} [search] search string
|
|
1038
1042
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1043
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
1039
1044
|
* @param {*} [options] Override http request option.
|
|
1040
1045
|
* @throws {RequiredError}
|
|
1041
1046
|
*/
|
|
1042
|
-
listClients(nextToken, search, referenceIDs, options) {
|
|
1047
|
+
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1043
1048
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1044
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, options);
|
|
1049
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, options);
|
|
1045
1050
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1046
1051
|
});
|
|
1047
1052
|
},
|
|
@@ -1081,11 +1086,12 @@ const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1081
1086
|
* @param {string} [nextToken] This is the pagination token
|
|
1082
1087
|
* @param {string} [search] search string
|
|
1083
1088
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1089
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
1084
1090
|
* @param {*} [options] Override http request option.
|
|
1085
1091
|
* @throws {RequiredError}
|
|
1086
1092
|
*/
|
|
1087
|
-
listClients(nextToken, search, referenceIDs, options) {
|
|
1088
|
-
return localVarFp.listClients(nextToken, search, referenceIDs, options).then((request) => request(axios, basePath));
|
|
1093
|
+
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1094
|
+
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(axios, basePath));
|
|
1089
1095
|
},
|
|
1090
1096
|
};
|
|
1091
1097
|
};
|
|
@@ -1125,12 +1131,13 @@ class ClientApi extends base_1.BaseAPI {
|
|
|
1125
1131
|
* @param {string} [nextToken] This is the pagination token
|
|
1126
1132
|
* @param {string} [search] search string
|
|
1127
1133
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1134
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
1128
1135
|
* @param {*} [options] Override http request option.
|
|
1129
1136
|
* @throws {RequiredError}
|
|
1130
1137
|
* @memberof ClientApi
|
|
1131
1138
|
*/
|
|
1132
|
-
listClients(nextToken, search, referenceIDs, options) {
|
|
1133
|
-
return (0, exports.ClientApiFp)(this.configuration).listClients(nextToken, search, referenceIDs, options).then((request) => request(this.axios, this.basePath));
|
|
1139
|
+
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1140
|
+
return (0, exports.ClientApiFp)(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
|
1134
1141
|
}
|
|
1135
1142
|
}
|
|
1136
1143
|
exports.ClientApi = ClientApi;
|
|
@@ -3777,12 +3784,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3777
3784
|
* @param {string} [endingBefore] end time before time
|
|
3778
3785
|
* @param {string} [startingBefore] start time before time
|
|
3779
3786
|
* @param {string} [endingAfter] end time after time
|
|
3780
|
-
* @param {string} [
|
|
3787
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
3781
3788
|
* @param {string} [search] search by name or description
|
|
3782
3789
|
* @param {*} [options] Override http request option.
|
|
3783
3790
|
* @throws {RequiredError}
|
|
3784
3791
|
*/
|
|
3785
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
3792
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3786
3793
|
const localVarPath = `/admins/promotions`;
|
|
3787
3794
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3788
3795
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3831,8 +3838,8 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3831
3838
|
endingAfter.toISOString() :
|
|
3832
3839
|
endingAfter;
|
|
3833
3840
|
}
|
|
3834
|
-
if (
|
|
3835
|
-
localVarQueryParameter['
|
|
3841
|
+
if (clientIDs) {
|
|
3842
|
+
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
3836
3843
|
}
|
|
3837
3844
|
if (search !== undefined) {
|
|
3838
3845
|
localVarQueryParameter['search'] = search;
|
|
@@ -4087,14 +4094,14 @@ const PromotionApiFp = function (configuration) {
|
|
|
4087
4094
|
* @param {string} [endingBefore] end time before time
|
|
4088
4095
|
* @param {string} [startingBefore] start time before time
|
|
4089
4096
|
* @param {string} [endingAfter] end time after time
|
|
4090
|
-
* @param {string} [
|
|
4097
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4091
4098
|
* @param {string} [search] search by name or description
|
|
4092
4099
|
* @param {*} [options] Override http request option.
|
|
4093
4100
|
* @throws {RequiredError}
|
|
4094
4101
|
*/
|
|
4095
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4102
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4096
4103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4097
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4104
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options);
|
|
4098
4105
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4099
4106
|
});
|
|
4100
4107
|
},
|
|
@@ -4245,13 +4252,13 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4245
4252
|
* @param {string} [endingBefore] end time before time
|
|
4246
4253
|
* @param {string} [startingBefore] start time before time
|
|
4247
4254
|
* @param {string} [endingAfter] end time after time
|
|
4248
|
-
* @param {string} [
|
|
4255
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4249
4256
|
* @param {string} [search] search by name or description
|
|
4250
4257
|
* @param {*} [options] Override http request option.
|
|
4251
4258
|
* @throws {RequiredError}
|
|
4252
4259
|
*/
|
|
4253
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4254
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4260
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4261
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(axios, basePath));
|
|
4255
4262
|
},
|
|
4256
4263
|
/**
|
|
4257
4264
|
* List users promotions
|
|
@@ -4403,14 +4410,14 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4403
4410
|
* @param {string} [endingBefore] end time before time
|
|
4404
4411
|
* @param {string} [startingBefore] start time before time
|
|
4405
4412
|
* @param {string} [endingAfter] end time after time
|
|
4406
|
-
* @param {string} [
|
|
4413
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4407
4414
|
* @param {string} [search] search by name or description
|
|
4408
4415
|
* @param {*} [options] Override http request option.
|
|
4409
4416
|
* @throws {RequiredError}
|
|
4410
4417
|
* @memberof PromotionApi
|
|
4411
4418
|
*/
|
|
4412
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4413
|
-
return (0, exports.PromotionApiFp)(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4419
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4420
|
+
return (0, exports.PromotionApiFp)(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(this.axios, this.basePath));
|
|
4414
4421
|
}
|
|
4415
4422
|
/**
|
|
4416
4423
|
* List users promotions
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2367,6 +2367,12 @@ export interface Target {
|
|
|
2367
2367
|
* @memberof Target
|
|
2368
2368
|
*/
|
|
2369
2369
|
'targetMu': TargetMu;
|
|
2370
|
+
/**
|
|
2371
|
+
*
|
|
2372
|
+
* @type {string}
|
|
2373
|
+
* @memberof Target
|
|
2374
|
+
*/
|
|
2375
|
+
'currency'?: string;
|
|
2370
2376
|
/**
|
|
2371
2377
|
*
|
|
2372
2378
|
* @type {Array<TargetLevel>}
|
|
@@ -2382,10 +2388,10 @@ export interface Target {
|
|
|
2382
2388
|
export interface TargetLevel {
|
|
2383
2389
|
/**
|
|
2384
2390
|
*
|
|
2385
|
-
* @type {
|
|
2391
|
+
* @type {number}
|
|
2386
2392
|
* @memberof TargetLevel
|
|
2387
2393
|
*/
|
|
2388
|
-
'
|
|
2394
|
+
'value': number;
|
|
2389
2395
|
/**
|
|
2390
2396
|
*
|
|
2391
2397
|
* @type {BonusValue}
|
|
@@ -2404,25 +2410,6 @@ export declare const TargetMu: {
|
|
|
2404
2410
|
readonly Liter: "liter";
|
|
2405
2411
|
};
|
|
2406
2412
|
export type TargetMu = typeof TargetMu[keyof typeof TargetMu];
|
|
2407
|
-
/**
|
|
2408
|
-
*
|
|
2409
|
-
* @export
|
|
2410
|
-
* @interface TargetValue
|
|
2411
|
-
*/
|
|
2412
|
-
export interface TargetValue {
|
|
2413
|
-
/**
|
|
2414
|
-
*
|
|
2415
|
-
* @type {number}
|
|
2416
|
-
* @memberof TargetValue
|
|
2417
|
-
*/
|
|
2418
|
-
'value': number;
|
|
2419
|
-
/**
|
|
2420
|
-
*
|
|
2421
|
-
* @type {string}
|
|
2422
|
-
* @memberof TargetValue
|
|
2423
|
-
*/
|
|
2424
|
-
'currency'?: string;
|
|
2425
|
-
}
|
|
2426
2413
|
/**
|
|
2427
2414
|
*
|
|
2428
2415
|
* @export
|
|
@@ -3309,10 +3296,11 @@ export declare const ClientApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3309
3296
|
* @param {string} [nextToken] This is the pagination token
|
|
3310
3297
|
* @param {string} [search] search string
|
|
3311
3298
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3299
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3312
3300
|
* @param {*} [options] Override http request option.
|
|
3313
3301
|
* @throws {RequiredError}
|
|
3314
3302
|
*/
|
|
3315
|
-
listClients: (nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3303
|
+
listClients: (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3316
3304
|
};
|
|
3317
3305
|
/**
|
|
3318
3306
|
* ClientApi - functional programming interface
|
|
@@ -3341,10 +3329,11 @@ export declare const ClientApiFp: (configuration?: Configuration) => {
|
|
|
3341
3329
|
* @param {string} [nextToken] This is the pagination token
|
|
3342
3330
|
* @param {string} [search] search string
|
|
3343
3331
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3332
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3344
3333
|
* @param {*} [options] Override http request option.
|
|
3345
3334
|
* @throws {RequiredError}
|
|
3346
3335
|
*/
|
|
3347
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>>;
|
|
3336
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>>;
|
|
3348
3337
|
};
|
|
3349
3338
|
/**
|
|
3350
3339
|
* ClientApi - factory interface
|
|
@@ -3373,10 +3362,11 @@ export declare const ClientApiFactory: (configuration?: Configuration, basePath?
|
|
|
3373
3362
|
* @param {string} [nextToken] This is the pagination token
|
|
3374
3363
|
* @param {string} [search] search string
|
|
3375
3364
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3365
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3376
3366
|
* @param {*} [options] Override http request option.
|
|
3377
3367
|
* @throws {RequiredError}
|
|
3378
3368
|
*/
|
|
3379
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: any): AxiosPromise<ClientListResponse>;
|
|
3369
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<ClientListResponse>;
|
|
3380
3370
|
};
|
|
3381
3371
|
/**
|
|
3382
3372
|
* ClientApi - object-oriented interface
|
|
@@ -3409,11 +3399,12 @@ export declare class ClientApi extends BaseAPI {
|
|
|
3409
3399
|
* @param {string} [nextToken] This is the pagination token
|
|
3410
3400
|
* @param {string} [search] search string
|
|
3411
3401
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
3402
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
3412
3403
|
* @param {*} [options] Override http request option.
|
|
3413
3404
|
* @throws {RequiredError}
|
|
3414
3405
|
* @memberof ClientApi
|
|
3415
3406
|
*/
|
|
3416
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientListResponse, any>>;
|
|
3407
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientListResponse, any>>;
|
|
3417
3408
|
}
|
|
3418
3409
|
/**
|
|
3419
3410
|
* ConfigurationApi - axios parameter creator
|
|
@@ -4761,12 +4752,12 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4761
4752
|
* @param {string} [endingBefore] end time before time
|
|
4762
4753
|
* @param {string} [startingBefore] start time before time
|
|
4763
4754
|
* @param {string} [endingAfter] end time after time
|
|
4764
|
-
* @param {string} [
|
|
4755
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4765
4756
|
* @param {string} [search] search by name or description
|
|
4766
4757
|
* @param {*} [options] Override http request option.
|
|
4767
4758
|
* @throws {RequiredError}
|
|
4768
4759
|
*/
|
|
4769
|
-
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
4760
|
+
listPromotions: (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4770
4761
|
/**
|
|
4771
4762
|
* List users promotions
|
|
4772
4763
|
* @summary List promotions
|
|
@@ -4882,12 +4873,12 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
4882
4873
|
* @param {string} [endingBefore] end time before time
|
|
4883
4874
|
* @param {string} [startingBefore] start time before time
|
|
4884
4875
|
* @param {string} [endingAfter] end time after time
|
|
4885
|
-
* @param {string} [
|
|
4876
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4886
4877
|
* @param {string} [search] search by name or description
|
|
4887
4878
|
* @param {*} [options] Override http request option.
|
|
4888
4879
|
* @throws {RequiredError}
|
|
4889
4880
|
*/
|
|
4890
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
4881
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>>;
|
|
4891
4882
|
/**
|
|
4892
4883
|
* List users promotions
|
|
4893
4884
|
* @summary List promotions
|
|
@@ -5003,12 +4994,12 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5003
4994
|
* @param {string} [endingBefore] end time before time
|
|
5004
4995
|
* @param {string} [startingBefore] start time before time
|
|
5005
4996
|
* @param {string} [endingAfter] end time after time
|
|
5006
|
-
* @param {string} [
|
|
4997
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
5007
4998
|
* @param {string} [search] search by name or description
|
|
5008
4999
|
* @param {*} [options] Override http request option.
|
|
5009
5000
|
* @throws {RequiredError}
|
|
5010
5001
|
*/
|
|
5011
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
5002
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: any): AxiosPromise<PromotionsResponse>;
|
|
5012
5003
|
/**
|
|
5013
5004
|
* List users promotions
|
|
5014
5005
|
* @summary List promotions
|
|
@@ -5135,13 +5126,13 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
5135
5126
|
* @param {string} [endingBefore] end time before time
|
|
5136
5127
|
* @param {string} [startingBefore] start time before time
|
|
5137
5128
|
* @param {string} [endingAfter] end time after time
|
|
5138
|
-
* @param {string} [
|
|
5129
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
5139
5130
|
* @param {string} [search] search by name or description
|
|
5140
5131
|
* @param {*} [options] Override http request option.
|
|
5141
5132
|
* @throws {RequiredError}
|
|
5142
5133
|
* @memberof PromotionApi
|
|
5143
5134
|
*/
|
|
5144
|
-
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string,
|
|
5135
|
+
listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionsResponse, any>>;
|
|
5145
5136
|
/**
|
|
5146
5137
|
* List users promotions
|
|
5147
5138
|
* @summary List promotions
|
package/dist/esm/api.js
CHANGED
|
@@ -943,10 +943,11 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
943
943
|
* @param {string} [nextToken] This is the pagination token
|
|
944
944
|
* @param {string} [search] search string
|
|
945
945
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
946
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
946
947
|
* @param {*} [options] Override http request option.
|
|
947
948
|
* @throws {RequiredError}
|
|
948
949
|
*/
|
|
949
|
-
listClients: (nextToken, search, referenceIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
950
|
+
listClients: (nextToken, search, referenceIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
950
951
|
const localVarPath = `/admins/clients`;
|
|
951
952
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
952
953
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -969,6 +970,9 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
969
970
|
if (referenceIDs) {
|
|
970
971
|
localVarQueryParameter['referenceIDs'] = referenceIDs;
|
|
971
972
|
}
|
|
973
|
+
if (clientIDs) {
|
|
974
|
+
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
975
|
+
}
|
|
972
976
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
973
977
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
974
978
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1018,12 +1022,13 @@ export const ClientApiFp = function (configuration) {
|
|
|
1018
1022
|
* @param {string} [nextToken] This is the pagination token
|
|
1019
1023
|
* @param {string} [search] search string
|
|
1020
1024
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1025
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
1021
1026
|
* @param {*} [options] Override http request option.
|
|
1022
1027
|
* @throws {RequiredError}
|
|
1023
1028
|
*/
|
|
1024
|
-
listClients(nextToken, search, referenceIDs, options) {
|
|
1029
|
+
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1025
1030
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1026
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, options);
|
|
1031
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, options);
|
|
1027
1032
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1028
1033
|
});
|
|
1029
1034
|
},
|
|
@@ -1062,11 +1067,12 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1062
1067
|
* @param {string} [nextToken] This is the pagination token
|
|
1063
1068
|
* @param {string} [search] search string
|
|
1064
1069
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1070
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
1065
1071
|
* @param {*} [options] Override http request option.
|
|
1066
1072
|
* @throws {RequiredError}
|
|
1067
1073
|
*/
|
|
1068
|
-
listClients(nextToken, search, referenceIDs, options) {
|
|
1069
|
-
return localVarFp.listClients(nextToken, search, referenceIDs, options).then((request) => request(axios, basePath));
|
|
1074
|
+
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1075
|
+
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(axios, basePath));
|
|
1070
1076
|
},
|
|
1071
1077
|
};
|
|
1072
1078
|
};
|
|
@@ -1105,12 +1111,13 @@ export class ClientApi extends BaseAPI {
|
|
|
1105
1111
|
* @param {string} [nextToken] This is the pagination token
|
|
1106
1112
|
* @param {string} [search] search string
|
|
1107
1113
|
* @param {Array<string>} [referenceIDs] reference ID
|
|
1114
|
+
* @param {Array<string>} [clientIDs] client IDs
|
|
1108
1115
|
* @param {*} [options] Override http request option.
|
|
1109
1116
|
* @throws {RequiredError}
|
|
1110
1117
|
* @memberof ClientApi
|
|
1111
1118
|
*/
|
|
1112
|
-
listClients(nextToken, search, referenceIDs, options) {
|
|
1113
|
-
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, options).then((request) => request(this.axios, this.basePath));
|
|
1119
|
+
listClients(nextToken, search, referenceIDs, clientIDs, options) {
|
|
1120
|
+
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
|
1114
1121
|
}
|
|
1115
1122
|
}
|
|
1116
1123
|
/**
|
|
@@ -3724,12 +3731,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3724
3731
|
* @param {string} [endingBefore] end time before time
|
|
3725
3732
|
* @param {string} [startingBefore] start time before time
|
|
3726
3733
|
* @param {string} [endingAfter] end time after time
|
|
3727
|
-
* @param {string} [
|
|
3734
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
3728
3735
|
* @param {string} [search] search by name or description
|
|
3729
3736
|
* @param {*} [options] Override http request option.
|
|
3730
3737
|
* @throws {RequiredError}
|
|
3731
3738
|
*/
|
|
3732
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
3739
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3733
3740
|
const localVarPath = `/admins/promotions`;
|
|
3734
3741
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3735
3742
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3778,8 +3785,8 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3778
3785
|
endingAfter.toISOString() :
|
|
3779
3786
|
endingAfter;
|
|
3780
3787
|
}
|
|
3781
|
-
if (
|
|
3782
|
-
localVarQueryParameter['
|
|
3788
|
+
if (clientIDs) {
|
|
3789
|
+
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
3783
3790
|
}
|
|
3784
3791
|
if (search !== undefined) {
|
|
3785
3792
|
localVarQueryParameter['search'] = search;
|
|
@@ -4033,14 +4040,14 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4033
4040
|
* @param {string} [endingBefore] end time before time
|
|
4034
4041
|
* @param {string} [startingBefore] start time before time
|
|
4035
4042
|
* @param {string} [endingAfter] end time after time
|
|
4036
|
-
* @param {string} [
|
|
4043
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4037
4044
|
* @param {string} [search] search by name or description
|
|
4038
4045
|
* @param {*} [options] Override http request option.
|
|
4039
4046
|
* @throws {RequiredError}
|
|
4040
4047
|
*/
|
|
4041
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4048
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4042
4049
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4043
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4050
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options);
|
|
4044
4051
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4045
4052
|
});
|
|
4046
4053
|
},
|
|
@@ -4190,13 +4197,13 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4190
4197
|
* @param {string} [endingBefore] end time before time
|
|
4191
4198
|
* @param {string} [startingBefore] start time before time
|
|
4192
4199
|
* @param {string} [endingAfter] end time after time
|
|
4193
|
-
* @param {string} [
|
|
4200
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4194
4201
|
* @param {string} [search] search by name or description
|
|
4195
4202
|
* @param {*} [options] Override http request option.
|
|
4196
4203
|
* @throws {RequiredError}
|
|
4197
4204
|
*/
|
|
4198
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4199
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4205
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4206
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(axios, basePath));
|
|
4200
4207
|
},
|
|
4201
4208
|
/**
|
|
4202
4209
|
* List users promotions
|
|
@@ -4347,14 +4354,14 @@ export class PromotionApi extends BaseAPI {
|
|
|
4347
4354
|
* @param {string} [endingBefore] end time before time
|
|
4348
4355
|
* @param {string} [startingBefore] start time before time
|
|
4349
4356
|
* @param {string} [endingAfter] end time after time
|
|
4350
|
-
* @param {string} [
|
|
4357
|
+
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4351
4358
|
* @param {string} [search] search by name or description
|
|
4352
4359
|
* @param {*} [options] Override http request option.
|
|
4353
4360
|
* @throws {RequiredError}
|
|
4354
4361
|
* @memberof PromotionApi
|
|
4355
4362
|
*/
|
|
4356
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4357
|
-
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter,
|
|
4363
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4364
|
+
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(this.axios, this.basePath));
|
|
4358
4365
|
}
|
|
4359
4366
|
/**
|
|
4360
4367
|
* List users promotions
|