flexinet-api 0.0.318-prerelease0 → 0.0.320-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 +269 -119
- package/dist/api.d.ts +186 -52
- package/dist/api.js +160 -120
- package/dist/esm/api.d.ts +186 -52
- package/dist/esm/api.js +150 -115
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -23,7 +23,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
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.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = 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.
|
|
26
|
+
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.RewardApi = exports.RewardApiFactory = exports.RewardApiFp = exports.RewardApiAxiosParamCreator = 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 = void 0;
|
|
27
|
+
exports.UserApi = exports.UserApiFactory = void 0;
|
|
27
28
|
const axios_1 = require("axios");
|
|
28
29
|
// Some imports not used depending on template conditions
|
|
29
30
|
// @ts-ignore
|
|
@@ -277,7 +278,8 @@ exports.UserSource = {
|
|
|
277
278
|
* @enum {string}
|
|
278
279
|
*/
|
|
279
280
|
exports.WebhookKind = {
|
|
280
|
-
Order: 'order'
|
|
281
|
+
Order: 'order',
|
|
282
|
+
Prod: 'prod'
|
|
281
283
|
};
|
|
282
284
|
/**
|
|
283
285
|
* AuditApi - axios parameter creator
|
|
@@ -298,7 +300,7 @@ const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
298
300
|
(0, common_1.assertParamExists)('listAuditLogs', 'objectType', objectType);
|
|
299
301
|
// verify required parameter 'objectID' is not null or undefined
|
|
300
302
|
(0, common_1.assertParamExists)('listAuditLogs', 'objectID', objectID);
|
|
301
|
-
const localVarPath = `/audit/{objectType}/{objectID}`
|
|
303
|
+
const localVarPath = `/admins/audit/{objectType}/{objectID}`
|
|
302
304
|
.replace(`{${"objectType"}}`, encodeURIComponent(String(objectType)))
|
|
303
305
|
.replace(`{${"objectID"}}`, encodeURIComponent(String(objectID)));
|
|
304
306
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -332,7 +334,7 @@ const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
332
334
|
listUserAuditLogs: (userID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
333
335
|
// verify required parameter 'userID' is not null or undefined
|
|
334
336
|
(0, common_1.assertParamExists)('listUserAuditLogs', 'userID', userID);
|
|
335
|
-
const localVarPath = `/audit/user/{userID}`
|
|
337
|
+
const localVarPath = `/admins/audit/user/{userID}`
|
|
336
338
|
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
|
337
339
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
338
340
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -482,7 +484,7 @@ const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
482
484
|
(0, common_1.assertParamExists)('getBalance', 'beneficiaryValue', beneficiaryValue);
|
|
483
485
|
// verify required parameter 'kind' is not null or undefined
|
|
484
486
|
(0, common_1.assertParamExists)('getBalance', 'kind', kind);
|
|
485
|
-
const localVarPath = `/balances`;
|
|
487
|
+
const localVarPath = `/admins/balances`;
|
|
486
488
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
487
489
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
488
490
|
let baseOptions;
|
|
@@ -548,7 +550,7 @@ const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
548
550
|
transferBalance: (beneficiaryValue, balanceUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
549
551
|
// verify required parameter 'beneficiaryValue' is not null or undefined
|
|
550
552
|
(0, common_1.assertParamExists)('transferBalance', 'beneficiaryValue', beneficiaryValue);
|
|
551
|
-
const localVarPath = `/balances/{beneficiaryValue}/transfer`
|
|
553
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}/transfer`
|
|
552
554
|
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
|
553
555
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
554
556
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -580,7 +582,7 @@ const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
580
582
|
updateBalance: (beneficiaryValue, balanceUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
581
583
|
// verify required parameter 'beneficiaryValue' is not null or undefined
|
|
582
584
|
(0, common_1.assertParamExists)('updateBalance', 'beneficiaryValue', beneficiaryValue);
|
|
583
|
-
const localVarPath = `/balances/{beneficiaryValue}`
|
|
585
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}`
|
|
584
586
|
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
|
585
587
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
586
588
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -888,7 +890,7 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
888
890
|
createClient: (clientCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
889
891
|
// verify required parameter 'clientCreationRequest' is not null or undefined
|
|
890
892
|
(0, common_1.assertParamExists)('createClient', 'clientCreationRequest', clientCreationRequest);
|
|
891
|
-
const localVarPath = `/clients`;
|
|
893
|
+
const localVarPath = `/admins/clients`;
|
|
892
894
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
893
895
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
894
896
|
let baseOptions;
|
|
@@ -921,7 +923,7 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
921
923
|
getClient: (clientID, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
922
924
|
// verify required parameter 'clientID' is not null or undefined
|
|
923
925
|
(0, common_1.assertParamExists)('getClient', 'clientID', clientID);
|
|
924
|
-
const localVarPath = `/clients/{clientID}`
|
|
926
|
+
const localVarPath = `/admins/clients/{clientID}`
|
|
925
927
|
.replace(`{${"clientID"}}`, encodeURIComponent(String(clientID)));
|
|
926
928
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
927
929
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -952,7 +954,7 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
952
954
|
* @throws {RequiredError}
|
|
953
955
|
*/
|
|
954
956
|
listClients: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
955
|
-
const localVarPath = `/clients`;
|
|
957
|
+
const localVarPath = `/admins/clients`;
|
|
956
958
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
957
959
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
958
960
|
let baseOptions;
|
|
@@ -1132,7 +1134,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
1132
1134
|
createConfiguration: (backofficeConfig, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1133
1135
|
// verify required parameter 'backofficeConfig' is not null or undefined
|
|
1134
1136
|
(0, common_1.assertParamExists)('createConfiguration', 'backofficeConfig', backofficeConfig);
|
|
1135
|
-
const localVarPath = `/configurations`;
|
|
1137
|
+
const localVarPath = `/admins/configurations`;
|
|
1136
1138
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1137
1139
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1138
1140
|
let baseOptions;
|
|
@@ -1164,7 +1166,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
1164
1166
|
* @throws {RequiredError}
|
|
1165
1167
|
*/
|
|
1166
1168
|
listConfigurations: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1167
|
-
const localVarPath = `/configurations`;
|
|
1169
|
+
const localVarPath = `/admins/configurations`;
|
|
1168
1170
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1169
1171
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1170
1172
|
let baseOptions;
|
|
@@ -1310,7 +1312,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
|
1310
1312
|
createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1311
1313
|
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
|
1312
1314
|
(0, common_1.assertParamExists)('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
|
|
1313
|
-
const localVarPath = `/custom-deals/restrictions`;
|
|
1315
|
+
const localVarPath = `/admins/custom-deals/restrictions`;
|
|
1314
1316
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1315
1317
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1316
1318
|
let baseOptions;
|
|
@@ -1337,7 +1339,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
|
1337
1339
|
* @throws {RequiredError}
|
|
1338
1340
|
*/
|
|
1339
1341
|
listCustomDealRestrictions: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1340
|
-
const localVarPath = `/custom-deals/restrictions`;
|
|
1342
|
+
const localVarPath = `/admins/custom-deals/restrictions`;
|
|
1341
1343
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1342
1344
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1343
1345
|
let baseOptions;
|
|
@@ -1459,13 +1461,16 @@ exports.CustomDealsApi = CustomDealsApi;
|
|
|
1459
1461
|
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1460
1462
|
return {
|
|
1461
1463
|
/**
|
|
1462
|
-
*
|
|
1463
|
-
* @summary
|
|
1464
|
+
* Import events to the system to be processed
|
|
1465
|
+
* @summary Add event
|
|
1466
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1464
1467
|
* @param {*} [options] Override http request option.
|
|
1465
1468
|
* @throws {RequiredError}
|
|
1466
1469
|
*/
|
|
1467
|
-
|
|
1468
|
-
|
|
1470
|
+
importEvent: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1471
|
+
// verify required parameter 'eventCreationRequest' is not null or undefined
|
|
1472
|
+
(0, common_1.assertParamExists)('importEvent', 'eventCreationRequest', eventCreationRequest);
|
|
1473
|
+
const localVarPath = `/admins/events`;
|
|
1469
1474
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1470
1475
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1471
1476
|
let baseOptions;
|
|
@@ -1478,14 +1483,26 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1478
1483
|
// authentication jwt required
|
|
1479
1484
|
// http bearer authentication required
|
|
1480
1485
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1486
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1481
1487
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1482
1488
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1483
1489
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1490
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(eventCreationRequest, localVarRequestOptions, configuration);
|
|
1484
1491
|
return {
|
|
1485
1492
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1486
1493
|
options: localVarRequestOptions,
|
|
1487
1494
|
};
|
|
1488
1495
|
}),
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1498
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
1499
|
+
/**
|
|
1500
|
+
* DefaultApi - functional programming interface
|
|
1501
|
+
* @export
|
|
1502
|
+
*/
|
|
1503
|
+
const DefaultApiFp = function (configuration) {
|
|
1504
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
1505
|
+
return {
|
|
1489
1506
|
/**
|
|
1490
1507
|
* Import events to the system to be processed
|
|
1491
1508
|
* @summary Add event
|
|
@@ -1493,10 +1510,69 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1493
1510
|
* @param {*} [options] Override http request option.
|
|
1494
1511
|
* @throws {RequiredError}
|
|
1495
1512
|
*/
|
|
1496
|
-
importEvent
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1513
|
+
importEvent(eventCreationRequest, options) {
|
|
1514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
|
|
1516
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1517
|
+
});
|
|
1518
|
+
},
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1521
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
1522
|
+
/**
|
|
1523
|
+
* DefaultApi - factory interface
|
|
1524
|
+
* @export
|
|
1525
|
+
*/
|
|
1526
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1527
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
1528
|
+
return {
|
|
1529
|
+
/**
|
|
1530
|
+
* Import events to the system to be processed
|
|
1531
|
+
* @summary Add event
|
|
1532
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1533
|
+
* @param {*} [options] Override http request option.
|
|
1534
|
+
* @throws {RequiredError}
|
|
1535
|
+
*/
|
|
1536
|
+
importEvent(eventCreationRequest, options) {
|
|
1537
|
+
return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
|
|
1538
|
+
},
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
1541
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
1542
|
+
/**
|
|
1543
|
+
* DefaultApi - object-oriented interface
|
|
1544
|
+
* @export
|
|
1545
|
+
* @class DefaultApi
|
|
1546
|
+
* @extends {BaseAPI}
|
|
1547
|
+
*/
|
|
1548
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
1549
|
+
/**
|
|
1550
|
+
* Import events to the system to be processed
|
|
1551
|
+
* @summary Add event
|
|
1552
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1553
|
+
* @param {*} [options] Override http request option.
|
|
1554
|
+
* @throws {RequiredError}
|
|
1555
|
+
* @memberof DefaultApi
|
|
1556
|
+
*/
|
|
1557
|
+
importEvent(eventCreationRequest, options) {
|
|
1558
|
+
return (0, exports.DefaultApiFp)(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
exports.DefaultApi = DefaultApi;
|
|
1562
|
+
/**
|
|
1563
|
+
* IntegrationApi - axios parameter creator
|
|
1564
|
+
* @export
|
|
1565
|
+
*/
|
|
1566
|
+
const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
1567
|
+
return {
|
|
1568
|
+
/**
|
|
1569
|
+
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
1570
|
+
* @summary Generate API key for the current tenant
|
|
1571
|
+
* @param {*} [options] Override http request option.
|
|
1572
|
+
* @throws {RequiredError}
|
|
1573
|
+
*/
|
|
1574
|
+
generateApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1575
|
+
const localVarPath = `/admins/integrations/apikey`;
|
|
1500
1576
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1501
1577
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1502
1578
|
let baseOptions;
|
|
@@ -1509,11 +1585,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1509
1585
|
// authentication jwt required
|
|
1510
1586
|
// http bearer authentication required
|
|
1511
1587
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1512
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1513
1588
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1514
1589
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1515
1590
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1516
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(eventCreationRequest, localVarRequestOptions, configuration);
|
|
1517
1591
|
return {
|
|
1518
1592
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1519
1593
|
options: localVarRequestOptions,
|
|
@@ -1526,7 +1600,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1526
1600
|
* @throws {RequiredError}
|
|
1527
1601
|
*/
|
|
1528
1602
|
listWebhooks: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1529
|
-
const localVarPath = `/integrations/webhooks`;
|
|
1603
|
+
const localVarPath = `/admins/integrations/webhooks`;
|
|
1530
1604
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1531
1605
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1532
1606
|
let baseOptions;
|
|
@@ -1557,7 +1631,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1557
1631
|
setWebhook: (webhook, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1558
1632
|
// verify required parameter 'webhook' is not null or undefined
|
|
1559
1633
|
(0, common_1.assertParamExists)('setWebhook', 'webhook', webhook);
|
|
1560
|
-
const localVarPath = `/integrations/webhooks`;
|
|
1634
|
+
const localVarPath = `/admins/integrations/webhooks`;
|
|
1561
1635
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1562
1636
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1563
1637
|
let baseOptions;
|
|
@@ -1587,7 +1661,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1587
1661
|
* @throws {RequiredError}
|
|
1588
1662
|
*/
|
|
1589
1663
|
testApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1590
|
-
const localVarPath = `/integrations/apikey`;
|
|
1664
|
+
const localVarPath = `/admins/integrations/apikey`;
|
|
1591
1665
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1592
1666
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1593
1667
|
let baseOptions;
|
|
@@ -1609,13 +1683,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1609
1683
|
}),
|
|
1610
1684
|
};
|
|
1611
1685
|
};
|
|
1612
|
-
exports.
|
|
1686
|
+
exports.IntegrationApiAxiosParamCreator = IntegrationApiAxiosParamCreator;
|
|
1613
1687
|
/**
|
|
1614
|
-
*
|
|
1688
|
+
* IntegrationApi - functional programming interface
|
|
1615
1689
|
* @export
|
|
1616
1690
|
*/
|
|
1617
|
-
const
|
|
1618
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1691
|
+
const IntegrationApiFp = function (configuration) {
|
|
1692
|
+
const localVarAxiosParamCreator = (0, exports.IntegrationApiAxiosParamCreator)(configuration);
|
|
1619
1693
|
return {
|
|
1620
1694
|
/**
|
|
1621
1695
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
@@ -1629,19 +1703,6 @@ const DefaultApiFp = function (configuration) {
|
|
|
1629
1703
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1630
1704
|
});
|
|
1631
1705
|
},
|
|
1632
|
-
/**
|
|
1633
|
-
* Import events to the system to be processed
|
|
1634
|
-
* @summary Add event
|
|
1635
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1636
|
-
* @param {*} [options] Override http request option.
|
|
1637
|
-
* @throws {RequiredError}
|
|
1638
|
-
*/
|
|
1639
|
-
importEvent(eventCreationRequest, options) {
|
|
1640
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1641
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
|
|
1642
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1643
|
-
});
|
|
1644
|
-
},
|
|
1645
1706
|
/**
|
|
1646
1707
|
* List all webhooks for current tenant
|
|
1647
1708
|
* @summary List webhooks
|
|
@@ -1681,13 +1742,13 @@ const DefaultApiFp = function (configuration) {
|
|
|
1681
1742
|
},
|
|
1682
1743
|
};
|
|
1683
1744
|
};
|
|
1684
|
-
exports.
|
|
1745
|
+
exports.IntegrationApiFp = IntegrationApiFp;
|
|
1685
1746
|
/**
|
|
1686
|
-
*
|
|
1747
|
+
* IntegrationApi - factory interface
|
|
1687
1748
|
* @export
|
|
1688
1749
|
*/
|
|
1689
|
-
const
|
|
1690
|
-
const localVarFp = (0, exports.
|
|
1750
|
+
const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
1751
|
+
const localVarFp = (0, exports.IntegrationApiFp)(configuration);
|
|
1691
1752
|
return {
|
|
1692
1753
|
/**
|
|
1693
1754
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
@@ -1698,16 +1759,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1698
1759
|
generateApiKey(options) {
|
|
1699
1760
|
return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
|
|
1700
1761
|
},
|
|
1701
|
-
/**
|
|
1702
|
-
* Import events to the system to be processed
|
|
1703
|
-
* @summary Add event
|
|
1704
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1705
|
-
* @param {*} [options] Override http request option.
|
|
1706
|
-
* @throws {RequiredError}
|
|
1707
|
-
*/
|
|
1708
|
-
importEvent(eventCreationRequest, options) {
|
|
1709
|
-
return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
|
|
1710
|
-
},
|
|
1711
1762
|
/**
|
|
1712
1763
|
* List all webhooks for current tenant
|
|
1713
1764
|
* @summary List webhooks
|
|
@@ -1738,44 +1789,33 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1738
1789
|
},
|
|
1739
1790
|
};
|
|
1740
1791
|
};
|
|
1741
|
-
exports.
|
|
1792
|
+
exports.IntegrationApiFactory = IntegrationApiFactory;
|
|
1742
1793
|
/**
|
|
1743
|
-
*
|
|
1794
|
+
* IntegrationApi - object-oriented interface
|
|
1744
1795
|
* @export
|
|
1745
|
-
* @class
|
|
1796
|
+
* @class IntegrationApi
|
|
1746
1797
|
* @extends {BaseAPI}
|
|
1747
1798
|
*/
|
|
1748
|
-
class
|
|
1799
|
+
class IntegrationApi extends base_1.BaseAPI {
|
|
1749
1800
|
/**
|
|
1750
1801
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
1751
1802
|
* @summary Generate API key for the current tenant
|
|
1752
1803
|
* @param {*} [options] Override http request option.
|
|
1753
1804
|
* @throws {RequiredError}
|
|
1754
|
-
* @memberof
|
|
1805
|
+
* @memberof IntegrationApi
|
|
1755
1806
|
*/
|
|
1756
1807
|
generateApiKey(options) {
|
|
1757
|
-
return (0, exports.
|
|
1758
|
-
}
|
|
1759
|
-
/**
|
|
1760
|
-
* Import events to the system to be processed
|
|
1761
|
-
* @summary Add event
|
|
1762
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1763
|
-
* @param {*} [options] Override http request option.
|
|
1764
|
-
* @throws {RequiredError}
|
|
1765
|
-
* @memberof DefaultApi
|
|
1766
|
-
*/
|
|
1767
|
-
importEvent(eventCreationRequest, options) {
|
|
1768
|
-
return (0, exports.DefaultApiFp)(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1808
|
+
return (0, exports.IntegrationApiFp)(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
1769
1809
|
}
|
|
1770
1810
|
/**
|
|
1771
1811
|
* List all webhooks for current tenant
|
|
1772
1812
|
* @summary List webhooks
|
|
1773
1813
|
* @param {*} [options] Override http request option.
|
|
1774
1814
|
* @throws {RequiredError}
|
|
1775
|
-
* @memberof
|
|
1815
|
+
* @memberof IntegrationApi
|
|
1776
1816
|
*/
|
|
1777
1817
|
listWebhooks(options) {
|
|
1778
|
-
return (0, exports.
|
|
1818
|
+
return (0, exports.IntegrationApiFp)(this.configuration).listWebhooks(options).then((request) => request(this.axios, this.basePath));
|
|
1779
1819
|
}
|
|
1780
1820
|
/**
|
|
1781
1821
|
* Set up webhook url for a given integration
|
|
@@ -1783,23 +1823,23 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1783
1823
|
* @param {Webhook} webhook webhook data
|
|
1784
1824
|
* @param {*} [options] Override http request option.
|
|
1785
1825
|
* @throws {RequiredError}
|
|
1786
|
-
* @memberof
|
|
1826
|
+
* @memberof IntegrationApi
|
|
1787
1827
|
*/
|
|
1788
1828
|
setWebhook(webhook, options) {
|
|
1789
|
-
return (0, exports.
|
|
1829
|
+
return (0, exports.IntegrationApiFp)(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
|
1790
1830
|
}
|
|
1791
1831
|
/**
|
|
1792
1832
|
* Test API key security scheme
|
|
1793
1833
|
* @summary Test API key security scheme
|
|
1794
1834
|
* @param {*} [options] Override http request option.
|
|
1795
1835
|
* @throws {RequiredError}
|
|
1796
|
-
* @memberof
|
|
1836
|
+
* @memberof IntegrationApi
|
|
1797
1837
|
*/
|
|
1798
1838
|
testApiKey(options) {
|
|
1799
|
-
return (0, exports.
|
|
1839
|
+
return (0, exports.IntegrationApiFp)(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
1800
1840
|
}
|
|
1801
1841
|
}
|
|
1802
|
-
exports.
|
|
1842
|
+
exports.IntegrationApi = IntegrationApi;
|
|
1803
1843
|
/**
|
|
1804
1844
|
* NotificationApi - axios parameter creator
|
|
1805
1845
|
* @export
|
|
@@ -2142,7 +2182,7 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2142
2182
|
getOrder: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2143
2183
|
// verify required parameter 'id' is not null or undefined
|
|
2144
2184
|
(0, common_1.assertParamExists)('getOrder', 'id', id);
|
|
2145
|
-
const localVarPath = `/orders/{id}`
|
|
2185
|
+
const localVarPath = `/users/orders/{id}`
|
|
2146
2186
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2147
2187
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2148
2188
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2380,7 +2420,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2380
2420
|
approveProduct: (id, productRequestApprovalRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2381
2421
|
// verify required parameter 'id' is not null or undefined
|
|
2382
2422
|
(0, common_1.assertParamExists)('approveProduct', 'id', id);
|
|
2383
|
-
const localVarPath = `/products/requests/{id}`
|
|
2423
|
+
const localVarPath = `/admins/products/requests/{id}`
|
|
2384
2424
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2385
2425
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2386
2426
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2405,14 +2445,14 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2405
2445
|
};
|
|
2406
2446
|
}),
|
|
2407
2447
|
/**
|
|
2408
|
-
*
|
|
2409
|
-
* @summary
|
|
2448
|
+
* Create multiple products
|
|
2449
|
+
* @summary Create multiple products
|
|
2410
2450
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2411
2451
|
* @param {*} [options] Override http request option.
|
|
2412
2452
|
* @throws {RequiredError}
|
|
2413
2453
|
*/
|
|
2414
2454
|
bulkCreateProducts: (productBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2415
|
-
const localVarPath = `/products/bulk`;
|
|
2455
|
+
const localVarPath = `/admins/products/bulk`;
|
|
2416
2456
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2417
2457
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2418
2458
|
let baseOptions;
|
|
@@ -2443,7 +2483,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2443
2483
|
* @throws {RequiredError}
|
|
2444
2484
|
*/
|
|
2445
2485
|
createProduct: (productCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2446
|
-
const localVarPath = `/products`;
|
|
2486
|
+
const localVarPath = `/admins/products`;
|
|
2447
2487
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2448
2488
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2449
2489
|
let baseOptions;
|
|
@@ -2504,7 +2544,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2504
2544
|
* @throws {RequiredError}
|
|
2505
2545
|
*/
|
|
2506
2546
|
createUploadURL: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2507
|
-
const localVarPath = `/products/upload-urls`;
|
|
2547
|
+
const localVarPath = `/admins/products/upload-urls`;
|
|
2508
2548
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2509
2549
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2510
2550
|
let baseOptions;
|
|
@@ -2532,7 +2572,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2532
2572
|
getProductById: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2533
2573
|
// verify required parameter 'id' is not null or undefined
|
|
2534
2574
|
(0, common_1.assertParamExists)('getProductById', 'id', id);
|
|
2535
|
-
const localVarPath = `/products/{id}`
|
|
2575
|
+
const localVarPath = `/admins/products/{id}`
|
|
2536
2576
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2537
2577
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2538
2578
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2564,7 +2604,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2564
2604
|
getProductRequestById: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2565
2605
|
// verify required parameter 'id' is not null or undefined
|
|
2566
2606
|
(0, common_1.assertParamExists)('getProductRequestById', 'id', id);
|
|
2567
|
-
const localVarPath = `/products/requests/{id}`
|
|
2607
|
+
const localVarPath = `/admins/products/requests/{id}`
|
|
2568
2608
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2569
2609
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2570
2610
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2627,7 +2667,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2627
2667
|
* @throws {RequiredError}
|
|
2628
2668
|
*/
|
|
2629
2669
|
listProductRequests: (status, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2630
|
-
const localVarPath = `/products/requests`;
|
|
2670
|
+
const localVarPath = `/admins/products/requests`;
|
|
2631
2671
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2632
2672
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2633
2673
|
let baseOptions;
|
|
@@ -2670,7 +2710,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2670
2710
|
* @throws {RequiredError}
|
|
2671
2711
|
*/
|
|
2672
2712
|
listProducts: (kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2673
|
-
const localVarPath = `/products`;
|
|
2713
|
+
const localVarPath = `/admins/products`;
|
|
2674
2714
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2675
2715
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2676
2716
|
let baseOptions;
|
|
@@ -2729,7 +2769,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2729
2769
|
updateProduct: (id, productCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2730
2770
|
// verify required parameter 'id' is not null or undefined
|
|
2731
2771
|
(0, common_1.assertParamExists)('updateProduct', 'id', id);
|
|
2732
|
-
const localVarPath = `/products/{id}`
|
|
2772
|
+
const localVarPath = `/admins/products/{id}`
|
|
2733
2773
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2734
2774
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2735
2775
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2778,8 +2818,8 @@ const ProductApiFp = function (configuration) {
|
|
|
2778
2818
|
});
|
|
2779
2819
|
},
|
|
2780
2820
|
/**
|
|
2781
|
-
*
|
|
2782
|
-
* @summary
|
|
2821
|
+
* Create multiple products
|
|
2822
|
+
* @summary Create multiple products
|
|
2783
2823
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2784
2824
|
* @param {*} [options] Override http request option.
|
|
2785
2825
|
* @throws {RequiredError}
|
|
@@ -2938,8 +2978,8 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2938
2978
|
return localVarFp.approveProduct(id, productRequestApprovalRequest, options).then((request) => request(axios, basePath));
|
|
2939
2979
|
},
|
|
2940
2980
|
/**
|
|
2941
|
-
*
|
|
2942
|
-
* @summary
|
|
2981
|
+
* Create multiple products
|
|
2982
|
+
* @summary Create multiple products
|
|
2943
2983
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2944
2984
|
* @param {*} [options] Override http request option.
|
|
2945
2985
|
* @throws {RequiredError}
|
|
@@ -3069,8 +3109,8 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
3069
3109
|
return (0, exports.ProductApiFp)(this.configuration).approveProduct(id, productRequestApprovalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3070
3110
|
}
|
|
3071
3111
|
/**
|
|
3072
|
-
*
|
|
3073
|
-
* @summary
|
|
3112
|
+
* Create multiple products
|
|
3113
|
+
* @summary Create multiple products
|
|
3074
3114
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
3075
3115
|
* @param {*} [options] Override http request option.
|
|
3076
3116
|
* @throws {RequiredError}
|
|
@@ -3210,7 +3250,7 @@ const ProgressApiAxiosParamCreator = function (configuration) {
|
|
|
3210
3250
|
listProgress: (id, periodID, userID, clientID, interval, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3211
3251
|
// verify required parameter 'id' is not null or undefined
|
|
3212
3252
|
(0, common_1.assertParamExists)('listProgress', 'id', id);
|
|
3213
|
-
const localVarPath = `/promotions/{id}/progress`
|
|
3253
|
+
const localVarPath = `/admins/promotions/{id}/progress`
|
|
3214
3254
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3215
3255
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3216
3256
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3434,7 +3474,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3434
3474
|
claimPromotion: (id, promotionClaimRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3435
3475
|
// verify required parameter 'id' is not null or undefined
|
|
3436
3476
|
(0, common_1.assertParamExists)('claimPromotion', 'id', id);
|
|
3437
|
-
const localVarPath = `/promotions/{id}/claims`
|
|
3477
|
+
const localVarPath = `/admins/promotions/{id}/claims`
|
|
3438
3478
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3439
3479
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3440
3480
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3468,7 +3508,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3468
3508
|
(0, common_1.assertParamExists)('claimPromotionProgress', 'id', id);
|
|
3469
3509
|
// verify required parameter 'progressID' is not null or undefined
|
|
3470
3510
|
(0, common_1.assertParamExists)('claimPromotionProgress', 'progressID', progressID);
|
|
3471
|
-
const localVarPath = `/
|
|
3511
|
+
const localVarPath = `/adminspromotions/{id}/progress/{progressID}/claims`
|
|
3472
3512
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3473
3513
|
.replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
|
|
3474
3514
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3560,7 +3600,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3560
3600
|
createPromotion: (promotionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3561
3601
|
// verify required parameter 'promotionRequest' is not null or undefined
|
|
3562
3602
|
(0, common_1.assertParamExists)('createPromotion', 'promotionRequest', promotionRequest);
|
|
3563
|
-
const localVarPath = `/promotions`;
|
|
3603
|
+
const localVarPath = `/admins/promotions`;
|
|
3564
3604
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3565
3605
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3566
3606
|
let baseOptions;
|
|
@@ -3593,7 +3633,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3593
3633
|
deletePromotion: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3594
3634
|
// verify required parameter 'id' is not null or undefined
|
|
3595
3635
|
(0, common_1.assertParamExists)('deletePromotion', 'id', id);
|
|
3596
|
-
const localVarPath = `/promotions/{id}`
|
|
3636
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
3597
3637
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3598
3638
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3599
3639
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3625,7 +3665,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3625
3665
|
getPromotion: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3626
3666
|
// verify required parameter 'id' is not null or undefined
|
|
3627
3667
|
(0, common_1.assertParamExists)('getPromotion', 'id', id);
|
|
3628
|
-
const localVarPath = `/promotions/{id}`
|
|
3668
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
3629
3669
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3630
3670
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3631
3671
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3695,7 +3735,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3695
3735
|
* @throws {RequiredError}
|
|
3696
3736
|
*/
|
|
3697
3737
|
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3698
|
-
const localVarPath = `/promotions`;
|
|
3738
|
+
const localVarPath = `/admins/promotions`;
|
|
3699
3739
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3700
3740
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3701
3741
|
let baseOptions;
|
|
@@ -3812,7 +3852,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3812
3852
|
(0, common_1.assertParamExists)('updatePromotion', 'id', id);
|
|
3813
3853
|
// verify required parameter 'updatePromotionRequest' is not null or undefined
|
|
3814
3854
|
(0, common_1.assertParamExists)('updatePromotion', 'updatePromotionRequest', updatePromotionRequest);
|
|
3815
|
-
const localVarPath = `/promotions/{id}`
|
|
3855
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
3816
3856
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3817
3857
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3818
3858
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4415,7 +4455,7 @@ const SegmentApiAxiosParamCreator = function (configuration) {
|
|
|
4415
4455
|
* @throws {RequiredError}
|
|
4416
4456
|
*/
|
|
4417
4457
|
createSegment: (createSegmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4418
|
-
const localVarPath = `/segments`;
|
|
4458
|
+
const localVarPath = `/admins/segments`;
|
|
4419
4459
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4420
4460
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4421
4461
|
let baseOptions;
|
|
@@ -4448,7 +4488,7 @@ const SegmentApiAxiosParamCreator = function (configuration) {
|
|
|
4448
4488
|
getSegmentById: (segmentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4449
4489
|
// verify required parameter 'segmentId' is not null or undefined
|
|
4450
4490
|
(0, common_1.assertParamExists)('getSegmentById', 'segmentId', segmentId);
|
|
4451
|
-
const localVarPath = `/segments/{segmentId}`
|
|
4491
|
+
const localVarPath = `/admins/segments/{segmentId}`
|
|
4452
4492
|
.replace(`{${"segmentId"}}`, encodeURIComponent(String(segmentId)));
|
|
4453
4493
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4454
4494
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4479,7 +4519,7 @@ const SegmentApiAxiosParamCreator = function (configuration) {
|
|
|
4479
4519
|
* @throws {RequiredError}
|
|
4480
4520
|
*/
|
|
4481
4521
|
listSegments: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4482
|
-
const localVarPath = `/segments`;
|
|
4522
|
+
const localVarPath = `/admins/segments`;
|
|
4483
4523
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4484
4524
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4485
4525
|
let baseOptions;
|
|
@@ -4657,7 +4697,7 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4657
4697
|
* @throws {RequiredError}
|
|
4658
4698
|
*/
|
|
4659
4699
|
createTag: (createTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4660
|
-
const localVarPath = `/tags`;
|
|
4700
|
+
const localVarPath = `/admins/tags`;
|
|
4661
4701
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4662
4702
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4663
4703
|
let baseOptions;
|
|
@@ -4690,7 +4730,7 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4690
4730
|
deleteTag: (key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4691
4731
|
// verify required parameter 'key' is not null or undefined
|
|
4692
4732
|
(0, common_1.assertParamExists)('deleteTag', 'key', key);
|
|
4693
|
-
const localVarPath = `/tags/{key}`
|
|
4733
|
+
const localVarPath = `/admins/tags/{key}`
|
|
4694
4734
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
4695
4735
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4696
4736
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4722,7 +4762,7 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4722
4762
|
getTagByKey: (key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4723
4763
|
// verify required parameter 'key' is not null or undefined
|
|
4724
4764
|
(0, common_1.assertParamExists)('getTagByKey', 'key', key);
|
|
4725
|
-
const localVarPath = `/tags/{key}`
|
|
4765
|
+
const localVarPath = `/admins/tags/{key}`
|
|
4726
4766
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
4727
4767
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4728
4768
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4752,7 +4792,7 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4752
4792
|
* @throws {RequiredError}
|
|
4753
4793
|
*/
|
|
4754
4794
|
listTags: (tagKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4755
|
-
const localVarPath = `/tags`;
|
|
4795
|
+
const localVarPath = `/admins/tags`;
|
|
4756
4796
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4757
4797
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4758
4798
|
let baseOptions;
|
|
@@ -4787,7 +4827,7 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4787
4827
|
updateTag: (key, createTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4788
4828
|
// verify required parameter 'key' is not null or undefined
|
|
4789
4829
|
(0, common_1.assertParamExists)('updateTag', 'key', key);
|
|
4790
|
-
const localVarPath = `/tags/{key}`
|
|
4830
|
+
const localVarPath = `/admins/tags/{key}`
|
|
4791
4831
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
4792
4832
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4793
4833
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5031,7 +5071,7 @@ const TransactionApiAxiosParamCreator = function (configuration) {
|
|
|
5031
5071
|
* @throws {RequiredError}
|
|
5032
5072
|
*/
|
|
5033
5073
|
listTransactions: (paginationToken, clientID, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5034
|
-
const localVarPath = `/transactions`;
|
|
5074
|
+
const localVarPath = `/admins/transactions`;
|
|
5035
5075
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5036
5076
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5037
5077
|
let baseOptions;
|
|
@@ -5143,7 +5183,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
5143
5183
|
getUserByID: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5144
5184
|
// verify required parameter 'id' is not null or undefined
|
|
5145
5185
|
(0, common_1.assertParamExists)('getUserByID', 'id', id);
|
|
5146
|
-
const localVarPath = `/users/{id}`
|
|
5186
|
+
const localVarPath = `/admins/users/{id}`
|
|
5147
5187
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5148
5188
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5149
5189
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5175,7 +5215,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
5175
5215
|
getUserSubordinates: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5176
5216
|
// verify required parameter 'id' is not null or undefined
|
|
5177
5217
|
(0, common_1.assertParamExists)('getUserSubordinates', 'id', id);
|
|
5178
|
-
const localVarPath = `/
|
|
5218
|
+
const localVarPath = `/admins/users/{id}/team`
|
|
5179
5219
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5180
5220
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5181
5221
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5210,7 +5250,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
5210
5250
|
* @throws {RequiredError}
|
|
5211
5251
|
*/
|
|
5212
5252
|
listUsers: (nextToken, role, search, clientID, userIds, source, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5213
|
-
const localVarPath = `/users`;
|
|
5253
|
+
const localVarPath = `/admins/users`;
|
|
5214
5254
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5215
5255
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5216
5256
|
let baseOptions;
|