flexinet-api 0.0.416-prerelease0 → 0.0.428-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 +139 -72
- package/dist/api.d.ts +85 -48
- package/dist/api.js +126 -74
- package/dist/esm/api.d.ts +85 -48
- package/dist/esm/api.js +123 -72
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -159,6 +159,16 @@ export const ProgressState = {
|
|
|
159
159
|
Active: 'active',
|
|
160
160
|
Total: 'total'
|
|
161
161
|
};
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @export
|
|
165
|
+
* @enum {string}
|
|
166
|
+
*/
|
|
167
|
+
export const PromotionSortByField = {
|
|
168
|
+
CreatedAt: 'createdAt',
|
|
169
|
+
StartsAt: 'startsAt',
|
|
170
|
+
EndsAt: 'endsAt'
|
|
171
|
+
};
|
|
162
172
|
/**
|
|
163
173
|
*
|
|
164
174
|
* @export
|
|
@@ -195,6 +205,15 @@ export const RuleGroupState = {
|
|
|
195
205
|
export const RuleKind = {
|
|
196
206
|
Tag: 'tag'
|
|
197
207
|
};
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @export
|
|
211
|
+
* @enum {string}
|
|
212
|
+
*/
|
|
213
|
+
export const SortDirection = {
|
|
214
|
+
Asc: 'asc',
|
|
215
|
+
Desc: 'desc'
|
|
216
|
+
};
|
|
198
217
|
/**
|
|
199
218
|
*
|
|
200
219
|
* @export
|
|
@@ -3411,22 +3430,21 @@ export class ProductApi extends BaseAPI {
|
|
|
3411
3430
|
export const ProgressApiAxiosParamCreator = function (configuration) {
|
|
3412
3431
|
return {
|
|
3413
3432
|
/**
|
|
3414
|
-
* List
|
|
3415
|
-
* @summary List
|
|
3416
|
-
* @param {string}
|
|
3433
|
+
* List progress
|
|
3434
|
+
* @summary List progress
|
|
3435
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3417
3436
|
* @param {number} [periodID] Period ID
|
|
3418
|
-
* @param {string} [
|
|
3419
|
-
* @param {string} [
|
|
3437
|
+
* @param {Array<string>} [userIDs] User ID to filter by
|
|
3438
|
+
* @param {Array<string>} [clientIDs] Client ID to filter by
|
|
3420
3439
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
3421
3440
|
* @param {string} [nextToken] This is the pagination token
|
|
3422
3441
|
* @param {*} [options] Override http request option.
|
|
3423
3442
|
* @throws {RequiredError}
|
|
3424
3443
|
*/
|
|
3425
|
-
listProgress: (
|
|
3426
|
-
// verify required parameter '
|
|
3427
|
-
assertParamExists('listProgress', '
|
|
3428
|
-
const localVarPath = `/admins/
|
|
3429
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3444
|
+
listProgress: (promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3445
|
+
// verify required parameter 'promotionIDs' is not null or undefined
|
|
3446
|
+
assertParamExists('listProgress', 'promotionIDs', promotionIDs);
|
|
3447
|
+
const localVarPath = `/admins/progress`;
|
|
3430
3448
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3431
3449
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3432
3450
|
let baseOptions;
|
|
@@ -3439,14 +3457,17 @@ export const ProgressApiAxiosParamCreator = function (configuration) {
|
|
|
3439
3457
|
// authentication jwt required
|
|
3440
3458
|
// http bearer authentication required
|
|
3441
3459
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3460
|
+
if (promotionIDs) {
|
|
3461
|
+
localVarQueryParameter['promotionIDs'] = promotionIDs;
|
|
3462
|
+
}
|
|
3442
3463
|
if (periodID !== undefined) {
|
|
3443
3464
|
localVarQueryParameter['periodID'] = periodID;
|
|
3444
3465
|
}
|
|
3445
|
-
if (
|
|
3446
|
-
localVarQueryParameter['
|
|
3466
|
+
if (userIDs) {
|
|
3467
|
+
localVarQueryParameter['userIDs'] = userIDs;
|
|
3447
3468
|
}
|
|
3448
|
-
if (
|
|
3449
|
-
localVarQueryParameter['
|
|
3469
|
+
if (clientIDs) {
|
|
3470
|
+
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
3450
3471
|
}
|
|
3451
3472
|
if (interval !== undefined) {
|
|
3452
3473
|
localVarQueryParameter['interval'] = interval;
|
|
@@ -3463,19 +3484,18 @@ export const ProgressApiAxiosParamCreator = function (configuration) {
|
|
|
3463
3484
|
};
|
|
3464
3485
|
}),
|
|
3465
3486
|
/**
|
|
3466
|
-
* List users progress
|
|
3467
|
-
* @summary List
|
|
3468
|
-
* @param {string}
|
|
3487
|
+
* List users progress
|
|
3488
|
+
* @summary List progress
|
|
3489
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3469
3490
|
* @param {number} [periodID] Period ID
|
|
3470
3491
|
* @param {string} [nextToken] This is the pagination token
|
|
3471
3492
|
* @param {*} [options] Override http request option.
|
|
3472
3493
|
* @throws {RequiredError}
|
|
3473
3494
|
*/
|
|
3474
|
-
listUserProgress: (
|
|
3475
|
-
// verify required parameter '
|
|
3476
|
-
assertParamExists('listUserProgress', '
|
|
3477
|
-
const localVarPath = `/users/
|
|
3478
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3495
|
+
listUserProgress: (promotionIDs, periodID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3496
|
+
// verify required parameter 'promotionIDs' is not null or undefined
|
|
3497
|
+
assertParamExists('listUserProgress', 'promotionIDs', promotionIDs);
|
|
3498
|
+
const localVarPath = `/users/progress`;
|
|
3479
3499
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3480
3500
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3481
3501
|
let baseOptions;
|
|
@@ -3488,6 +3508,9 @@ export const ProgressApiAxiosParamCreator = function (configuration) {
|
|
|
3488
3508
|
// authentication jwt required
|
|
3489
3509
|
// http bearer authentication required
|
|
3490
3510
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3511
|
+
if (promotionIDs) {
|
|
3512
|
+
localVarQueryParameter['promotionIDs'] = promotionIDs;
|
|
3513
|
+
}
|
|
3491
3514
|
if (periodID !== undefined) {
|
|
3492
3515
|
localVarQueryParameter['periodID'] = periodID;
|
|
3493
3516
|
}
|
|
@@ -3512,35 +3535,35 @@ export const ProgressApiFp = function (configuration) {
|
|
|
3512
3535
|
const localVarAxiosParamCreator = ProgressApiAxiosParamCreator(configuration);
|
|
3513
3536
|
return {
|
|
3514
3537
|
/**
|
|
3515
|
-
* List
|
|
3516
|
-
* @summary List
|
|
3517
|
-
* @param {string}
|
|
3538
|
+
* List progress
|
|
3539
|
+
* @summary List progress
|
|
3540
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3518
3541
|
* @param {number} [periodID] Period ID
|
|
3519
|
-
* @param {string} [
|
|
3520
|
-
* @param {string} [
|
|
3542
|
+
* @param {Array<string>} [userIDs] User ID to filter by
|
|
3543
|
+
* @param {Array<string>} [clientIDs] Client ID to filter by
|
|
3521
3544
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
3522
3545
|
* @param {string} [nextToken] This is the pagination token
|
|
3523
3546
|
* @param {*} [options] Override http request option.
|
|
3524
3547
|
* @throws {RequiredError}
|
|
3525
3548
|
*/
|
|
3526
|
-
listProgress(
|
|
3549
|
+
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options) {
|
|
3527
3550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3528
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProgress(
|
|
3551
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options);
|
|
3529
3552
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3530
3553
|
});
|
|
3531
3554
|
},
|
|
3532
3555
|
/**
|
|
3533
|
-
* List users progress
|
|
3534
|
-
* @summary List
|
|
3535
|
-
* @param {string}
|
|
3556
|
+
* List users progress
|
|
3557
|
+
* @summary List progress
|
|
3558
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3536
3559
|
* @param {number} [periodID] Period ID
|
|
3537
3560
|
* @param {string} [nextToken] This is the pagination token
|
|
3538
3561
|
* @param {*} [options] Override http request option.
|
|
3539
3562
|
* @throws {RequiredError}
|
|
3540
3563
|
*/
|
|
3541
|
-
listUserProgress(
|
|
3564
|
+
listUserProgress(promotionIDs, periodID, nextToken, options) {
|
|
3542
3565
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3543
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProgress(
|
|
3566
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProgress(promotionIDs, periodID, nextToken, options);
|
|
3544
3567
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3545
3568
|
});
|
|
3546
3569
|
},
|
|
@@ -3554,31 +3577,31 @@ export const ProgressApiFactory = function (configuration, basePath, axios) {
|
|
|
3554
3577
|
const localVarFp = ProgressApiFp(configuration);
|
|
3555
3578
|
return {
|
|
3556
3579
|
/**
|
|
3557
|
-
* List
|
|
3558
|
-
* @summary List
|
|
3559
|
-
* @param {string}
|
|
3580
|
+
* List progress
|
|
3581
|
+
* @summary List progress
|
|
3582
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3560
3583
|
* @param {number} [periodID] Period ID
|
|
3561
|
-
* @param {string} [
|
|
3562
|
-
* @param {string} [
|
|
3584
|
+
* @param {Array<string>} [userIDs] User ID to filter by
|
|
3585
|
+
* @param {Array<string>} [clientIDs] Client ID to filter by
|
|
3563
3586
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
3564
3587
|
* @param {string} [nextToken] This is the pagination token
|
|
3565
3588
|
* @param {*} [options] Override http request option.
|
|
3566
3589
|
* @throws {RequiredError}
|
|
3567
3590
|
*/
|
|
3568
|
-
listProgress(
|
|
3569
|
-
return localVarFp.listProgress(
|
|
3591
|
+
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options) {
|
|
3592
|
+
return localVarFp.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options).then((request) => request(axios, basePath));
|
|
3570
3593
|
},
|
|
3571
3594
|
/**
|
|
3572
|
-
* List users progress
|
|
3573
|
-
* @summary List
|
|
3574
|
-
* @param {string}
|
|
3595
|
+
* List users progress
|
|
3596
|
+
* @summary List progress
|
|
3597
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3575
3598
|
* @param {number} [periodID] Period ID
|
|
3576
3599
|
* @param {string} [nextToken] This is the pagination token
|
|
3577
3600
|
* @param {*} [options] Override http request option.
|
|
3578
3601
|
* @throws {RequiredError}
|
|
3579
3602
|
*/
|
|
3580
|
-
listUserProgress(
|
|
3581
|
-
return localVarFp.listUserProgress(
|
|
3603
|
+
listUserProgress(promotionIDs, periodID, nextToken, options) {
|
|
3604
|
+
return localVarFp.listUserProgress(promotionIDs, periodID, nextToken, options).then((request) => request(axios, basePath));
|
|
3582
3605
|
},
|
|
3583
3606
|
};
|
|
3584
3607
|
};
|
|
@@ -3590,33 +3613,33 @@ export const ProgressApiFactory = function (configuration, basePath, axios) {
|
|
|
3590
3613
|
*/
|
|
3591
3614
|
export class ProgressApi extends BaseAPI {
|
|
3592
3615
|
/**
|
|
3593
|
-
* List
|
|
3594
|
-
* @summary List
|
|
3595
|
-
* @param {string}
|
|
3616
|
+
* List progress
|
|
3617
|
+
* @summary List progress
|
|
3618
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3596
3619
|
* @param {number} [periodID] Period ID
|
|
3597
|
-
* @param {string} [
|
|
3598
|
-
* @param {string} [
|
|
3620
|
+
* @param {Array<string>} [userIDs] User ID to filter by
|
|
3621
|
+
* @param {Array<string>} [clientIDs] Client ID to filter by
|
|
3599
3622
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
3600
3623
|
* @param {string} [nextToken] This is the pagination token
|
|
3601
3624
|
* @param {*} [options] Override http request option.
|
|
3602
3625
|
* @throws {RequiredError}
|
|
3603
3626
|
* @memberof ProgressApi
|
|
3604
3627
|
*/
|
|
3605
|
-
listProgress(
|
|
3606
|
-
return ProgressApiFp(this.configuration).listProgress(
|
|
3628
|
+
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options) {
|
|
3629
|
+
return ProgressApiFp(this.configuration).listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
3607
3630
|
}
|
|
3608
3631
|
/**
|
|
3609
|
-
* List users progress
|
|
3610
|
-
* @summary List
|
|
3611
|
-
* @param {string}
|
|
3632
|
+
* List users progress
|
|
3633
|
+
* @summary List progress
|
|
3634
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3612
3635
|
* @param {number} [periodID] Period ID
|
|
3613
3636
|
* @param {string} [nextToken] This is the pagination token
|
|
3614
3637
|
* @param {*} [options] Override http request option.
|
|
3615
3638
|
* @throws {RequiredError}
|
|
3616
3639
|
* @memberof ProgressApi
|
|
3617
3640
|
*/
|
|
3618
|
-
listUserProgress(
|
|
3619
|
-
return ProgressApiFp(this.configuration).listUserProgress(
|
|
3641
|
+
listUserProgress(promotionIDs, periodID, nextToken, options) {
|
|
3642
|
+
return ProgressApiFp(this.configuration).listUserProgress(promotionIDs, periodID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
3620
3643
|
}
|
|
3621
3644
|
}
|
|
3622
3645
|
/**
|
|
@@ -3932,10 +3955,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3932
3955
|
* @param {string} [endingAfter] end time after time
|
|
3933
3956
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
3934
3957
|
* @param {string} [search] search by name or description
|
|
3958
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
3959
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
3935
3960
|
* @param {*} [options] Override http request option.
|
|
3936
3961
|
* @throws {RequiredError}
|
|
3937
3962
|
*/
|
|
3938
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3963
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3939
3964
|
const localVarPath = `/admins/promotions`;
|
|
3940
3965
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3941
3966
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3990,6 +4015,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3990
4015
|
if (search !== undefined) {
|
|
3991
4016
|
localVarQueryParameter['search'] = search;
|
|
3992
4017
|
}
|
|
4018
|
+
if (sortBy !== undefined) {
|
|
4019
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
4020
|
+
}
|
|
4021
|
+
if (sortDirection !== undefined) {
|
|
4022
|
+
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4023
|
+
}
|
|
3993
4024
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3994
4025
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3995
4026
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4008,10 +4039,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4008
4039
|
* @param {string} [startingBefore] start time before time
|
|
4009
4040
|
* @param {string} [endingAfter] end time after time
|
|
4010
4041
|
* @param {string} [search] search by name or description
|
|
4042
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4043
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4011
4044
|
* @param {*} [options] Override http request option.
|
|
4012
4045
|
* @throws {RequiredError}
|
|
4013
4046
|
*/
|
|
4014
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4047
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4015
4048
|
const localVarPath = `/users/promotions`;
|
|
4016
4049
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4017
4050
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4054,6 +4087,12 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4054
4087
|
if (search !== undefined) {
|
|
4055
4088
|
localVarQueryParameter['search'] = search;
|
|
4056
4089
|
}
|
|
4090
|
+
if (sortBy !== undefined) {
|
|
4091
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
4092
|
+
}
|
|
4093
|
+
if (sortDirection !== undefined) {
|
|
4094
|
+
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4095
|
+
}
|
|
4057
4096
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4058
4097
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4059
4098
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4241,12 +4280,14 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4241
4280
|
* @param {string} [endingAfter] end time after time
|
|
4242
4281
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4243
4282
|
* @param {string} [search] search by name or description
|
|
4283
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4284
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4244
4285
|
* @param {*} [options] Override http request option.
|
|
4245
4286
|
* @throws {RequiredError}
|
|
4246
4287
|
*/
|
|
4247
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4288
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4248
4289
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4249
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options);
|
|
4290
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options);
|
|
4250
4291
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4251
4292
|
});
|
|
4252
4293
|
},
|
|
@@ -4260,12 +4301,14 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4260
4301
|
* @param {string} [startingBefore] start time before time
|
|
4261
4302
|
* @param {string} [endingAfter] end time after time
|
|
4262
4303
|
* @param {string} [search] search by name or description
|
|
4304
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4305
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4263
4306
|
* @param {*} [options] Override http request option.
|
|
4264
4307
|
* @throws {RequiredError}
|
|
4265
4308
|
*/
|
|
4266
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4309
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4267
4310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4268
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options);
|
|
4311
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
|
|
4269
4312
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4270
4313
|
});
|
|
4271
4314
|
},
|
|
@@ -4398,11 +4441,13 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4398
4441
|
* @param {string} [endingAfter] end time after time
|
|
4399
4442
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4400
4443
|
* @param {string} [search] search by name or description
|
|
4444
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4445
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4401
4446
|
* @param {*} [options] Override http request option.
|
|
4402
4447
|
* @throws {RequiredError}
|
|
4403
4448
|
*/
|
|
4404
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4405
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(axios, basePath));
|
|
4449
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4450
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4406
4451
|
},
|
|
4407
4452
|
/**
|
|
4408
4453
|
* List users promotions
|
|
@@ -4414,11 +4459,13 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4414
4459
|
* @param {string} [startingBefore] start time before time
|
|
4415
4460
|
* @param {string} [endingAfter] end time after time
|
|
4416
4461
|
* @param {string} [search] search by name or description
|
|
4462
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4463
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4417
4464
|
* @param {*} [options] Override http request option.
|
|
4418
4465
|
* @throws {RequiredError}
|
|
4419
4466
|
*/
|
|
4420
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4421
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(axios, basePath));
|
|
4467
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4468
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4422
4469
|
},
|
|
4423
4470
|
/**
|
|
4424
4471
|
* Update promotion by id
|
|
@@ -4555,12 +4602,14 @@ export class PromotionApi extends BaseAPI {
|
|
|
4555
4602
|
* @param {string} [endingAfter] end time after time
|
|
4556
4603
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4557
4604
|
* @param {string} [search] search by name or description
|
|
4605
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4606
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4558
4607
|
* @param {*} [options] Override http request option.
|
|
4559
4608
|
* @throws {RequiredError}
|
|
4560
4609
|
* @memberof PromotionApi
|
|
4561
4610
|
*/
|
|
4562
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4563
|
-
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(this.axios, this.basePath));
|
|
4611
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4612
|
+
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));
|
|
4564
4613
|
}
|
|
4565
4614
|
/**
|
|
4566
4615
|
* List users promotions
|
|
@@ -4572,12 +4621,14 @@ export class PromotionApi extends BaseAPI {
|
|
|
4572
4621
|
* @param {string} [startingBefore] start time before time
|
|
4573
4622
|
* @param {string} [endingAfter] end time after time
|
|
4574
4623
|
* @param {string} [search] search by name or description
|
|
4624
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4625
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4575
4626
|
* @param {*} [options] Override http request option.
|
|
4576
4627
|
* @throws {RequiredError}
|
|
4577
4628
|
* @memberof PromotionApi
|
|
4578
4629
|
*/
|
|
4579
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4580
|
-
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(this.axios, this.basePath));
|
|
4630
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4631
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
4581
4632
|
}
|
|
4582
4633
|
/**
|
|
4583
4634
|
* Update promotion by id
|