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/api.js
CHANGED
|
@@ -22,8 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
25
|
+
exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
|
|
26
|
+
exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = void 0;
|
|
27
|
+
exports.UserApi = void 0;
|
|
27
28
|
const axios_1 = require("axios");
|
|
28
29
|
// Some imports not used depending on template conditions
|
|
29
30
|
// @ts-ignore
|
|
@@ -163,6 +164,16 @@ exports.ProgressState = {
|
|
|
163
164
|
Active: 'active',
|
|
164
165
|
Total: 'total'
|
|
165
166
|
};
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @export
|
|
170
|
+
* @enum {string}
|
|
171
|
+
*/
|
|
172
|
+
exports.PromotionSortByField = {
|
|
173
|
+
CreatedAt: 'createdAt',
|
|
174
|
+
StartsAt: 'startsAt',
|
|
175
|
+
EndsAt: 'endsAt'
|
|
176
|
+
};
|
|
166
177
|
/**
|
|
167
178
|
*
|
|
168
179
|
* @export
|
|
@@ -199,6 +210,15 @@ exports.RuleGroupState = {
|
|
|
199
210
|
exports.RuleKind = {
|
|
200
211
|
Tag: 'tag'
|
|
201
212
|
};
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @export
|
|
216
|
+
* @enum {string}
|
|
217
|
+
*/
|
|
218
|
+
exports.SortDirection = {
|
|
219
|
+
Asc: 'asc',
|
|
220
|
+
Desc: 'desc'
|
|
221
|
+
};
|
|
202
222
|
/**
|
|
203
223
|
*
|
|
204
224
|
* @export
|
|
@@ -3459,22 +3479,21 @@ exports.ProductApi = ProductApi;
|
|
|
3459
3479
|
const ProgressApiAxiosParamCreator = function (configuration) {
|
|
3460
3480
|
return {
|
|
3461
3481
|
/**
|
|
3462
|
-
* List
|
|
3463
|
-
* @summary List
|
|
3464
|
-
* @param {string}
|
|
3482
|
+
* List progress
|
|
3483
|
+
* @summary List progress
|
|
3484
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3465
3485
|
* @param {number} [periodID] Period ID
|
|
3466
|
-
* @param {string} [
|
|
3467
|
-
* @param {string} [
|
|
3486
|
+
* @param {Array<string>} [userIDs] User ID to filter by
|
|
3487
|
+
* @param {Array<string>} [clientIDs] Client ID to filter by
|
|
3468
3488
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
3469
3489
|
* @param {string} [nextToken] This is the pagination token
|
|
3470
3490
|
* @param {*} [options] Override http request option.
|
|
3471
3491
|
* @throws {RequiredError}
|
|
3472
3492
|
*/
|
|
3473
|
-
listProgress: (
|
|
3474
|
-
// verify required parameter '
|
|
3475
|
-
(0, common_1.assertParamExists)('listProgress', '
|
|
3476
|
-
const localVarPath = `/admins/
|
|
3477
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3493
|
+
listProgress: (promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3494
|
+
// verify required parameter 'promotionIDs' is not null or undefined
|
|
3495
|
+
(0, common_1.assertParamExists)('listProgress', 'promotionIDs', promotionIDs);
|
|
3496
|
+
const localVarPath = `/admins/progress`;
|
|
3478
3497
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3479
3498
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3480
3499
|
let baseOptions;
|
|
@@ -3487,14 +3506,17 @@ const ProgressApiAxiosParamCreator = function (configuration) {
|
|
|
3487
3506
|
// authentication jwt required
|
|
3488
3507
|
// http bearer authentication required
|
|
3489
3508
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3509
|
+
if (promotionIDs) {
|
|
3510
|
+
localVarQueryParameter['promotionIDs'] = promotionIDs;
|
|
3511
|
+
}
|
|
3490
3512
|
if (periodID !== undefined) {
|
|
3491
3513
|
localVarQueryParameter['periodID'] = periodID;
|
|
3492
3514
|
}
|
|
3493
|
-
if (
|
|
3494
|
-
localVarQueryParameter['
|
|
3515
|
+
if (userIDs) {
|
|
3516
|
+
localVarQueryParameter['userIDs'] = userIDs;
|
|
3495
3517
|
}
|
|
3496
|
-
if (
|
|
3497
|
-
localVarQueryParameter['
|
|
3518
|
+
if (clientIDs) {
|
|
3519
|
+
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
3498
3520
|
}
|
|
3499
3521
|
if (interval !== undefined) {
|
|
3500
3522
|
localVarQueryParameter['interval'] = interval;
|
|
@@ -3511,19 +3533,18 @@ const ProgressApiAxiosParamCreator = function (configuration) {
|
|
|
3511
3533
|
};
|
|
3512
3534
|
}),
|
|
3513
3535
|
/**
|
|
3514
|
-
* List users progress
|
|
3515
|
-
* @summary List
|
|
3516
|
-
* @param {string}
|
|
3536
|
+
* List users progress
|
|
3537
|
+
* @summary List progress
|
|
3538
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3517
3539
|
* @param {number} [periodID] Period ID
|
|
3518
3540
|
* @param {string} [nextToken] This is the pagination token
|
|
3519
3541
|
* @param {*} [options] Override http request option.
|
|
3520
3542
|
* @throws {RequiredError}
|
|
3521
3543
|
*/
|
|
3522
|
-
listUserProgress: (
|
|
3523
|
-
// verify required parameter '
|
|
3524
|
-
(0, common_1.assertParamExists)('listUserProgress', '
|
|
3525
|
-
const localVarPath = `/users/
|
|
3526
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3544
|
+
listUserProgress: (promotionIDs, periodID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3545
|
+
// verify required parameter 'promotionIDs' is not null or undefined
|
|
3546
|
+
(0, common_1.assertParamExists)('listUserProgress', 'promotionIDs', promotionIDs);
|
|
3547
|
+
const localVarPath = `/users/progress`;
|
|
3527
3548
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3528
3549
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3529
3550
|
let baseOptions;
|
|
@@ -3536,6 +3557,9 @@ const ProgressApiAxiosParamCreator = function (configuration) {
|
|
|
3536
3557
|
// authentication jwt required
|
|
3537
3558
|
// http bearer authentication required
|
|
3538
3559
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3560
|
+
if (promotionIDs) {
|
|
3561
|
+
localVarQueryParameter['promotionIDs'] = promotionIDs;
|
|
3562
|
+
}
|
|
3539
3563
|
if (periodID !== undefined) {
|
|
3540
3564
|
localVarQueryParameter['periodID'] = periodID;
|
|
3541
3565
|
}
|
|
@@ -3561,35 +3585,35 @@ const ProgressApiFp = function (configuration) {
|
|
|
3561
3585
|
const localVarAxiosParamCreator = (0, exports.ProgressApiAxiosParamCreator)(configuration);
|
|
3562
3586
|
return {
|
|
3563
3587
|
/**
|
|
3564
|
-
* List
|
|
3565
|
-
* @summary List
|
|
3566
|
-
* @param {string}
|
|
3588
|
+
* List progress
|
|
3589
|
+
* @summary List progress
|
|
3590
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3567
3591
|
* @param {number} [periodID] Period ID
|
|
3568
|
-
* @param {string} [
|
|
3569
|
-
* @param {string} [
|
|
3592
|
+
* @param {Array<string>} [userIDs] User ID to filter by
|
|
3593
|
+
* @param {Array<string>} [clientIDs] Client ID to filter by
|
|
3570
3594
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
3571
3595
|
* @param {string} [nextToken] This is the pagination token
|
|
3572
3596
|
* @param {*} [options] Override http request option.
|
|
3573
3597
|
* @throws {RequiredError}
|
|
3574
3598
|
*/
|
|
3575
|
-
listProgress(
|
|
3599
|
+
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options) {
|
|
3576
3600
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3577
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProgress(
|
|
3601
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options);
|
|
3578
3602
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3579
3603
|
});
|
|
3580
3604
|
},
|
|
3581
3605
|
/**
|
|
3582
|
-
* List users progress
|
|
3583
|
-
* @summary List
|
|
3584
|
-
* @param {string}
|
|
3606
|
+
* List users progress
|
|
3607
|
+
* @summary List progress
|
|
3608
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3585
3609
|
* @param {number} [periodID] Period ID
|
|
3586
3610
|
* @param {string} [nextToken] This is the pagination token
|
|
3587
3611
|
* @param {*} [options] Override http request option.
|
|
3588
3612
|
* @throws {RequiredError}
|
|
3589
3613
|
*/
|
|
3590
|
-
listUserProgress(
|
|
3614
|
+
listUserProgress(promotionIDs, periodID, nextToken, options) {
|
|
3591
3615
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3592
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProgress(
|
|
3616
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProgress(promotionIDs, periodID, nextToken, options);
|
|
3593
3617
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3594
3618
|
});
|
|
3595
3619
|
},
|
|
@@ -3604,31 +3628,31 @@ const ProgressApiFactory = function (configuration, basePath, axios) {
|
|
|
3604
3628
|
const localVarFp = (0, exports.ProgressApiFp)(configuration);
|
|
3605
3629
|
return {
|
|
3606
3630
|
/**
|
|
3607
|
-
* List
|
|
3608
|
-
* @summary List
|
|
3609
|
-
* @param {string}
|
|
3631
|
+
* List progress
|
|
3632
|
+
* @summary List progress
|
|
3633
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3610
3634
|
* @param {number} [periodID] Period ID
|
|
3611
|
-
* @param {string} [
|
|
3612
|
-
* @param {string} [
|
|
3635
|
+
* @param {Array<string>} [userIDs] User ID to filter by
|
|
3636
|
+
* @param {Array<string>} [clientIDs] Client ID to filter by
|
|
3613
3637
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
3614
3638
|
* @param {string} [nextToken] This is the pagination token
|
|
3615
3639
|
* @param {*} [options] Override http request option.
|
|
3616
3640
|
* @throws {RequiredError}
|
|
3617
3641
|
*/
|
|
3618
|
-
listProgress(
|
|
3619
|
-
return localVarFp.listProgress(
|
|
3642
|
+
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options) {
|
|
3643
|
+
return localVarFp.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options).then((request) => request(axios, basePath));
|
|
3620
3644
|
},
|
|
3621
3645
|
/**
|
|
3622
|
-
* List users progress
|
|
3623
|
-
* @summary List
|
|
3624
|
-
* @param {string}
|
|
3646
|
+
* List users progress
|
|
3647
|
+
* @summary List progress
|
|
3648
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3625
3649
|
* @param {number} [periodID] Period ID
|
|
3626
3650
|
* @param {string} [nextToken] This is the pagination token
|
|
3627
3651
|
* @param {*} [options] Override http request option.
|
|
3628
3652
|
* @throws {RequiredError}
|
|
3629
3653
|
*/
|
|
3630
|
-
listUserProgress(
|
|
3631
|
-
return localVarFp.listUserProgress(
|
|
3654
|
+
listUserProgress(promotionIDs, periodID, nextToken, options) {
|
|
3655
|
+
return localVarFp.listUserProgress(promotionIDs, periodID, nextToken, options).then((request) => request(axios, basePath));
|
|
3632
3656
|
},
|
|
3633
3657
|
};
|
|
3634
3658
|
};
|
|
@@ -3641,33 +3665,33 @@ exports.ProgressApiFactory = ProgressApiFactory;
|
|
|
3641
3665
|
*/
|
|
3642
3666
|
class ProgressApi extends base_1.BaseAPI {
|
|
3643
3667
|
/**
|
|
3644
|
-
* List
|
|
3645
|
-
* @summary List
|
|
3646
|
-
* @param {string}
|
|
3668
|
+
* List progress
|
|
3669
|
+
* @summary List progress
|
|
3670
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3647
3671
|
* @param {number} [periodID] Period ID
|
|
3648
|
-
* @param {string} [
|
|
3649
|
-
* @param {string} [
|
|
3672
|
+
* @param {Array<string>} [userIDs] User ID to filter by
|
|
3673
|
+
* @param {Array<string>} [clientIDs] Client ID to filter by
|
|
3650
3674
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
3651
3675
|
* @param {string} [nextToken] This is the pagination token
|
|
3652
3676
|
* @param {*} [options] Override http request option.
|
|
3653
3677
|
* @throws {RequiredError}
|
|
3654
3678
|
* @memberof ProgressApi
|
|
3655
3679
|
*/
|
|
3656
|
-
listProgress(
|
|
3657
|
-
return (0, exports.ProgressApiFp)(this.configuration).listProgress(
|
|
3680
|
+
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options) {
|
|
3681
|
+
return (0, exports.ProgressApiFp)(this.configuration).listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
3658
3682
|
}
|
|
3659
3683
|
/**
|
|
3660
|
-
* List users progress
|
|
3661
|
-
* @summary List
|
|
3662
|
-
* @param {string}
|
|
3684
|
+
* List users progress
|
|
3685
|
+
* @summary List progress
|
|
3686
|
+
* @param {Array<string>} promotionIDs Promotion ID to filter by
|
|
3663
3687
|
* @param {number} [periodID] Period ID
|
|
3664
3688
|
* @param {string} [nextToken] This is the pagination token
|
|
3665
3689
|
* @param {*} [options] Override http request option.
|
|
3666
3690
|
* @throws {RequiredError}
|
|
3667
3691
|
* @memberof ProgressApi
|
|
3668
3692
|
*/
|
|
3669
|
-
listUserProgress(
|
|
3670
|
-
return (0, exports.ProgressApiFp)(this.configuration).listUserProgress(
|
|
3693
|
+
listUserProgress(promotionIDs, periodID, nextToken, options) {
|
|
3694
|
+
return (0, exports.ProgressApiFp)(this.configuration).listUserProgress(promotionIDs, periodID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
3671
3695
|
}
|
|
3672
3696
|
}
|
|
3673
3697
|
exports.ProgressApi = ProgressApi;
|
|
@@ -3984,10 +4008,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3984
4008
|
* @param {string} [endingAfter] end time after time
|
|
3985
4009
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
3986
4010
|
* @param {string} [search] search by name or description
|
|
4011
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4012
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
3987
4013
|
* @param {*} [options] Override http request option.
|
|
3988
4014
|
* @throws {RequiredError}
|
|
3989
4015
|
*/
|
|
3990
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4016
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3991
4017
|
const localVarPath = `/admins/promotions`;
|
|
3992
4018
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3993
4019
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4042,6 +4068,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4042
4068
|
if (search !== undefined) {
|
|
4043
4069
|
localVarQueryParameter['search'] = search;
|
|
4044
4070
|
}
|
|
4071
|
+
if (sortBy !== undefined) {
|
|
4072
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
4073
|
+
}
|
|
4074
|
+
if (sortDirection !== undefined) {
|
|
4075
|
+
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4076
|
+
}
|
|
4045
4077
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4046
4078
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4047
4079
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4060,10 +4092,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4060
4092
|
* @param {string} [startingBefore] start time before time
|
|
4061
4093
|
* @param {string} [endingAfter] end time after time
|
|
4062
4094
|
* @param {string} [search] search by name or description
|
|
4095
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4096
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4063
4097
|
* @param {*} [options] Override http request option.
|
|
4064
4098
|
* @throws {RequiredError}
|
|
4065
4099
|
*/
|
|
4066
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4100
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4067
4101
|
const localVarPath = `/users/promotions`;
|
|
4068
4102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4069
4103
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4106,6 +4140,12 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4106
4140
|
if (search !== undefined) {
|
|
4107
4141
|
localVarQueryParameter['search'] = search;
|
|
4108
4142
|
}
|
|
4143
|
+
if (sortBy !== undefined) {
|
|
4144
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
4145
|
+
}
|
|
4146
|
+
if (sortDirection !== undefined) {
|
|
4147
|
+
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
4148
|
+
}
|
|
4109
4149
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4110
4150
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4111
4151
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4294,12 +4334,14 @@ const PromotionApiFp = function (configuration) {
|
|
|
4294
4334
|
* @param {string} [endingAfter] end time after time
|
|
4295
4335
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4296
4336
|
* @param {string} [search] search by name or description
|
|
4337
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4338
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4297
4339
|
* @param {*} [options] Override http request option.
|
|
4298
4340
|
* @throws {RequiredError}
|
|
4299
4341
|
*/
|
|
4300
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4342
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4301
4343
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4302
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options);
|
|
4344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options);
|
|
4303
4345
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4304
4346
|
});
|
|
4305
4347
|
},
|
|
@@ -4313,12 +4355,14 @@ const PromotionApiFp = function (configuration) {
|
|
|
4313
4355
|
* @param {string} [startingBefore] start time before time
|
|
4314
4356
|
* @param {string} [endingAfter] end time after time
|
|
4315
4357
|
* @param {string} [search] search by name or description
|
|
4358
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4359
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4316
4360
|
* @param {*} [options] Override http request option.
|
|
4317
4361
|
* @throws {RequiredError}
|
|
4318
4362
|
*/
|
|
4319
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4363
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4320
4364
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4321
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options);
|
|
4365
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options);
|
|
4322
4366
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4323
4367
|
});
|
|
4324
4368
|
},
|
|
@@ -4452,11 +4496,13 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4452
4496
|
* @param {string} [endingAfter] end time after time
|
|
4453
4497
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4454
4498
|
* @param {string} [search] search by name or description
|
|
4499
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4500
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4455
4501
|
* @param {*} [options] Override http request option.
|
|
4456
4502
|
* @throws {RequiredError}
|
|
4457
4503
|
*/
|
|
4458
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4459
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options).then((request) => request(axios, basePath));
|
|
4504
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4505
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4460
4506
|
},
|
|
4461
4507
|
/**
|
|
4462
4508
|
* List users promotions
|
|
@@ -4468,11 +4514,13 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
4468
4514
|
* @param {string} [startingBefore] start time before time
|
|
4469
4515
|
* @param {string} [endingAfter] end time after time
|
|
4470
4516
|
* @param {string} [search] search by name or description
|
|
4517
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4518
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4471
4519
|
* @param {*} [options] Override http request option.
|
|
4472
4520
|
* @throws {RequiredError}
|
|
4473
4521
|
*/
|
|
4474
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4475
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(axios, basePath));
|
|
4522
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4523
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(axios, basePath));
|
|
4476
4524
|
},
|
|
4477
4525
|
/**
|
|
4478
4526
|
* Update promotion by id
|
|
@@ -4610,12 +4658,14 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4610
4658
|
* @param {string} [endingAfter] end time after time
|
|
4611
4659
|
* @param {Array<string>} [clientIDs] client ID to filter by
|
|
4612
4660
|
* @param {string} [search] search by name or description
|
|
4661
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4662
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4613
4663
|
* @param {*} [options] Override http request option.
|
|
4614
4664
|
* @throws {RequiredError}
|
|
4615
4665
|
* @memberof PromotionApi
|
|
4616
4666
|
*/
|
|
4617
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, options) {
|
|
4618
|
-
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));
|
|
4667
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, options) {
|
|
4668
|
+
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));
|
|
4619
4669
|
}
|
|
4620
4670
|
/**
|
|
4621
4671
|
* List users promotions
|
|
@@ -4627,12 +4677,14 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
4627
4677
|
* @param {string} [startingBefore] start time before time
|
|
4628
4678
|
* @param {string} [endingAfter] end time after time
|
|
4629
4679
|
* @param {string} [search] search by name or description
|
|
4680
|
+
* @param {PromotionSortByField} [sortBy] sort by field
|
|
4681
|
+
* @param {SortDirection} [sortDirection] sort direction
|
|
4630
4682
|
* @param {*} [options] Override http request option.
|
|
4631
4683
|
* @throws {RequiredError}
|
|
4632
4684
|
* @memberof PromotionApi
|
|
4633
4685
|
*/
|
|
4634
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options) {
|
|
4635
|
-
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, options).then((request) => request(this.axios, this.basePath));
|
|
4686
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options) {
|
|
4687
|
+
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, options).then((request) => request(this.axios, this.basePath));
|
|
4636
4688
|
}
|
|
4637
4689
|
/**
|
|
4638
4690
|
* Update promotion by id
|