flexinet-api 0.0.1874-prerelease0-dev → 0.0.1874
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 +174 -81
- package/dist/api.d.ts +110 -60
- package/dist/api.js +104 -38
- package/dist/esm/api.d.ts +110 -60
- package/dist/esm/api.js +101 -35
- package/package.json +1 -1
package/dist/api.js
CHANGED
@@ -22,9 +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.
|
27
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = void 0;
|
25
|
+
exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventPriority = exports.TransactionEventKind = exports.TransactionCurrencyKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.RequiredRestrictionKindEnum = exports.ReportTypesResponseTypesEnum = exports.Repetition = exports.PromotionType = exports.PromotionStatus = exports.PromotionSortByField = exports.ProgressStateAggregation = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderStatus = exports.OrderKind = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.MinTurnoverRestrictionKindEnum = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
26
|
+
exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = 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 = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = void 0;
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -173,8 +173,7 @@ exports.OrderKind = {
|
|
173
173
|
exports.OrderStatus = {
|
174
174
|
Pending: 'pending',
|
175
175
|
Completed: 'completed',
|
176
|
-
Cancelled: 'cancelled'
|
177
|
-
Unknown: 'unknown'
|
176
|
+
Cancelled: 'cancelled'
|
178
177
|
};
|
179
178
|
/**
|
180
179
|
*
|
@@ -298,6 +297,9 @@ exports.ReportTypesResponseTypesEnum = {
|
|
298
297
|
Promotion: 'promotion',
|
299
298
|
PromotionExpanded: 'promotion_expanded'
|
300
299
|
};
|
300
|
+
exports.RequiredRestrictionKindEnum = {
|
301
|
+
Required: 'required'
|
302
|
+
};
|
301
303
|
/**
|
302
304
|
*
|
303
305
|
* @export
|
@@ -2249,13 +2251,28 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
2249
2251
|
/**
|
2250
2252
|
* Get custom deal min target value
|
2251
2253
|
* @summary Get custom deal min target value
|
2252
|
-
* @param {
|
2253
|
-
* @param {
|
2254
|
-
* @
|
2255
|
-
|
2256
|
-
|
2257
|
-
|
2258
|
-
|
2254
|
+
* @param {string} startingAt start at
|
2255
|
+
* @param {string} endingAt end at
|
2256
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2257
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
2258
|
+
* @param {string} tagKey tag key
|
2259
|
+
* @param {string} tagValue tag value
|
2260
|
+
* @param {*} [options] Override http request option.
|
2261
|
+
* @throws {RequiredError}
|
2262
|
+
*/
|
2263
|
+
getCustomDealMinTargetValue: (startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2264
|
+
// verify required parameter 'startingAt' is not null or undefined
|
2265
|
+
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'startingAt', startingAt);
|
2266
|
+
// verify required parameter 'endingAt' is not null or undefined
|
2267
|
+
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'endingAt', endingAt);
|
2268
|
+
// verify required parameter 'beneficiaryKind' is not null or undefined
|
2269
|
+
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind);
|
2270
|
+
// verify required parameter 'beneficiaryValues' is not null or undefined
|
2271
|
+
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues);
|
2272
|
+
// verify required parameter 'tagKey' is not null or undefined
|
2273
|
+
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'tagKey', tagKey);
|
2274
|
+
// verify required parameter 'tagValue' is not null or undefined
|
2275
|
+
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'tagValue', tagValue);
|
2259
2276
|
const localVarPath = `/admins/custom-deals/min-target-value`;
|
2260
2277
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2261
2278
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -2263,17 +2280,37 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
2263
2280
|
if (configuration) {
|
2264
2281
|
baseOptions = configuration.baseOptions;
|
2265
2282
|
}
|
2266
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
2283
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2267
2284
|
const localVarHeaderParameter = {};
|
2268
2285
|
const localVarQueryParameter = {};
|
2269
2286
|
// authentication systemJWT required
|
2270
2287
|
// http bearer authentication required
|
2271
2288
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2272
|
-
|
2289
|
+
if (startingAt !== undefined) {
|
2290
|
+
localVarQueryParameter['startingAt'] = (startingAt instanceof Date) ?
|
2291
|
+
startingAt.toISOString() :
|
2292
|
+
startingAt;
|
2293
|
+
}
|
2294
|
+
if (endingAt !== undefined) {
|
2295
|
+
localVarQueryParameter['endingAt'] = (endingAt instanceof Date) ?
|
2296
|
+
endingAt.toISOString() :
|
2297
|
+
endingAt;
|
2298
|
+
}
|
2299
|
+
if (beneficiaryKind !== undefined) {
|
2300
|
+
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
2301
|
+
}
|
2302
|
+
if (beneficiaryValues) {
|
2303
|
+
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
2304
|
+
}
|
2305
|
+
if (tagKey !== undefined) {
|
2306
|
+
localVarQueryParameter['tagKey'] = tagKey;
|
2307
|
+
}
|
2308
|
+
if (tagValue !== undefined) {
|
2309
|
+
localVarQueryParameter['tagValue'] = tagValue;
|
2310
|
+
}
|
2273
2311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2274
2312
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2275
2313
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2276
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(minTargetValue, localVarRequestOptions, configuration);
|
2277
2314
|
return {
|
2278
2315
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
2279
2316
|
options: localVarRequestOptions,
|
@@ -2333,13 +2370,18 @@ const CustomDealsApiFp = function (configuration) {
|
|
2333
2370
|
/**
|
2334
2371
|
* Get custom deal min target value
|
2335
2372
|
* @summary Get custom deal min target value
|
2336
|
-
* @param {
|
2373
|
+
* @param {string} startingAt start at
|
2374
|
+
* @param {string} endingAt end at
|
2375
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2376
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
2377
|
+
* @param {string} tagKey tag key
|
2378
|
+
* @param {string} tagValue tag value
|
2337
2379
|
* @param {*} [options] Override http request option.
|
2338
2380
|
* @throws {RequiredError}
|
2339
2381
|
*/
|
2340
|
-
getCustomDealMinTargetValue(
|
2382
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2341
2383
|
return __awaiter(this, void 0, void 0, function* () {
|
2342
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(
|
2384
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
|
2343
2385
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2344
2386
|
});
|
2345
2387
|
},
|
@@ -2378,12 +2420,17 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
2378
2420
|
/**
|
2379
2421
|
* Get custom deal min target value
|
2380
2422
|
* @summary Get custom deal min target value
|
2381
|
-
* @param {
|
2423
|
+
* @param {string} startingAt start at
|
2424
|
+
* @param {string} endingAt end at
|
2425
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2426
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
2427
|
+
* @param {string} tagKey tag key
|
2428
|
+
* @param {string} tagValue tag value
|
2382
2429
|
* @param {*} [options] Override http request option.
|
2383
2430
|
* @throws {RequiredError}
|
2384
2431
|
*/
|
2385
|
-
getCustomDealMinTargetValue(
|
2386
|
-
return localVarFp.getCustomDealMinTargetValue(
|
2432
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2433
|
+
return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
|
2387
2434
|
},
|
2388
2435
|
/**
|
2389
2436
|
* List custom deal restrictions
|
@@ -2418,13 +2465,18 @@ class CustomDealsApi extends base_1.BaseAPI {
|
|
2418
2465
|
/**
|
2419
2466
|
* Get custom deal min target value
|
2420
2467
|
* @summary Get custom deal min target value
|
2421
|
-
* @param {
|
2468
|
+
* @param {string} startingAt start at
|
2469
|
+
* @param {string} endingAt end at
|
2470
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2471
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
2472
|
+
* @param {string} tagKey tag key
|
2473
|
+
* @param {string} tagValue tag value
|
2422
2474
|
* @param {*} [options] Override http request option.
|
2423
2475
|
* @throws {RequiredError}
|
2424
2476
|
* @memberof CustomDealsApi
|
2425
2477
|
*/
|
2426
|
-
getCustomDealMinTargetValue(
|
2427
|
-
return (0, exports.CustomDealsApiFp)(this.configuration).getCustomDealMinTargetValue(
|
2478
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2479
|
+
return (0, exports.CustomDealsApiFp)(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
|
2428
2480
|
}
|
2429
2481
|
/**
|
2430
2482
|
* List custom deal restrictions
|
@@ -5421,10 +5473,11 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5421
5473
|
* @param {PromotionSortByField} [sortBy] sort by field
|
5422
5474
|
* @param {SortDirection} [sortDirection] sort direction
|
5423
5475
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5476
|
+
* @param {Array<string>} [iDs] IDs to filter by
|
5424
5477
|
* @param {*} [options] Override http request option.
|
5425
5478
|
* @throws {RequiredError}
|
5426
5479
|
*/
|
5427
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5480
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5428
5481
|
const localVarPath = `/admins/promotions`;
|
5429
5482
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5430
5483
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -5488,6 +5541,9 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5488
5541
|
if (onlyClaimable !== undefined) {
|
5489
5542
|
localVarQueryParameter['onlyClaimable'] = onlyClaimable;
|
5490
5543
|
}
|
5544
|
+
if (iDs) {
|
5545
|
+
localVarQueryParameter['IDs'] = iDs;
|
5546
|
+
}
|
5491
5547
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
5492
5548
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5493
5549
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -5510,10 +5566,11 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5510
5566
|
* @param {SortDirection} [sortDirection] sort direction
|
5511
5567
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5512
5568
|
* @param {PromotionType} [type] promotion type
|
5569
|
+
* @param {Array<string>} [iDs] IDs to filter by
|
5513
5570
|
* @param {*} [options] Override http request option.
|
5514
5571
|
* @throws {RequiredError}
|
5515
5572
|
*/
|
5516
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5573
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5517
5574
|
const localVarPath = `/users/promotions`;
|
5518
5575
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5519
5576
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -5568,6 +5625,9 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5568
5625
|
if (type !== undefined) {
|
5569
5626
|
localVarQueryParameter['type'] = type;
|
5570
5627
|
}
|
5628
|
+
if (iDs) {
|
5629
|
+
localVarQueryParameter['IDs'] = iDs;
|
5630
|
+
}
|
5571
5631
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
5572
5632
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5573
5633
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -5778,12 +5838,13 @@ const PromotionApiFp = function (configuration) {
|
|
5778
5838
|
* @param {PromotionSortByField} [sortBy] sort by field
|
5779
5839
|
* @param {SortDirection} [sortDirection] sort direction
|
5780
5840
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5841
|
+
* @param {Array<string>} [iDs] IDs to filter by
|
5781
5842
|
* @param {*} [options] Override http request option.
|
5782
5843
|
* @throws {RequiredError}
|
5783
5844
|
*/
|
5784
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
5845
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
|
5785
5846
|
return __awaiter(this, void 0, void 0, function* () {
|
5786
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
|
5847
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options);
|
5787
5848
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
5788
5849
|
});
|
5789
5850
|
},
|
@@ -5801,12 +5862,13 @@ const PromotionApiFp = function (configuration) {
|
|
5801
5862
|
* @param {SortDirection} [sortDirection] sort direction
|
5802
5863
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5803
5864
|
* @param {PromotionType} [type] promotion type
|
5865
|
+
* @param {Array<string>} [iDs] IDs to filter by
|
5804
5866
|
* @param {*} [options] Override http request option.
|
5805
5867
|
* @throws {RequiredError}
|
5806
5868
|
*/
|
5807
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
|
5869
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
|
5808
5870
|
return __awaiter(this, void 0, void 0, function* () {
|
5809
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options);
|
5871
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options);
|
5810
5872
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
5811
5873
|
});
|
5812
5874
|
},
|
@@ -5959,11 +6021,12 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
5959
6021
|
* @param {PromotionSortByField} [sortBy] sort by field
|
5960
6022
|
* @param {SortDirection} [sortDirection] sort direction
|
5961
6023
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
6024
|
+
* @param {Array<string>} [iDs] IDs to filter by
|
5962
6025
|
* @param {*} [options] Override http request option.
|
5963
6026
|
* @throws {RequiredError}
|
5964
6027
|
*/
|
5965
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
5966
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
|
6028
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
|
6029
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options).then((request) => request(axios, basePath));
|
5967
6030
|
},
|
5968
6031
|
/**
|
5969
6032
|
* List users promotions
|
@@ -5979,11 +6042,12 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
5979
6042
|
* @param {SortDirection} [sortDirection] sort direction
|
5980
6043
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5981
6044
|
* @param {PromotionType} [type] promotion type
|
6045
|
+
* @param {Array<string>} [iDs] IDs to filter by
|
5982
6046
|
* @param {*} [options] Override http request option.
|
5983
6047
|
* @throws {RequiredError}
|
5984
6048
|
*/
|
5985
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
|
5986
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(axios, basePath));
|
6049
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
|
6050
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(axios, basePath));
|
5987
6051
|
},
|
5988
6052
|
/**
|
5989
6053
|
* Update promotion by id
|
@@ -6141,12 +6205,13 @@ class PromotionApi extends base_1.BaseAPI {
|
|
6141
6205
|
* @param {PromotionSortByField} [sortBy] sort by field
|
6142
6206
|
* @param {SortDirection} [sortDirection] sort direction
|
6143
6207
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
6208
|
+
* @param {Array<string>} [iDs] IDs to filter by
|
6144
6209
|
* @param {*} [options] Override http request option.
|
6145
6210
|
* @throws {RequiredError}
|
6146
6211
|
* @memberof PromotionApi
|
6147
6212
|
*/
|
6148
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options) {
|
6149
|
-
return (0, exports.PromotionApiFp)(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
|
6213
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
|
6214
|
+
return (0, exports.PromotionApiFp)(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options).then((request) => request(this.axios, this.basePath));
|
6150
6215
|
}
|
6151
6216
|
/**
|
6152
6217
|
* List users promotions
|
@@ -6162,12 +6227,13 @@ class PromotionApi extends base_1.BaseAPI {
|
|
6162
6227
|
* @param {SortDirection} [sortDirection] sort direction
|
6163
6228
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
6164
6229
|
* @param {PromotionType} [type] promotion type
|
6230
|
+
* @param {Array<string>} [iDs] IDs to filter by
|
6165
6231
|
* @param {*} [options] Override http request option.
|
6166
6232
|
* @throws {RequiredError}
|
6167
6233
|
* @memberof PromotionApi
|
6168
6234
|
*/
|
6169
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options) {
|
6170
|
-
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(this.axios, this.basePath));
|
6235
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
|
6236
|
+
return (0, exports.PromotionApiFp)(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(this.axios, this.basePath));
|
6171
6237
|
}
|
6172
6238
|
/**
|
6173
6239
|
* Update promotion by id
|