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/esm/api.js
CHANGED
|
@@ -273,7 +273,8 @@ export const UserSource = {
|
|
|
273
273
|
* @enum {string}
|
|
274
274
|
*/
|
|
275
275
|
export const WebhookKind = {
|
|
276
|
-
Order: 'order'
|
|
276
|
+
Order: 'order',
|
|
277
|
+
Prod: 'prod'
|
|
277
278
|
};
|
|
278
279
|
/**
|
|
279
280
|
* AuditApi - axios parameter creator
|
|
@@ -294,7 +295,7 @@ export const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
294
295
|
assertParamExists('listAuditLogs', 'objectType', objectType);
|
|
295
296
|
// verify required parameter 'objectID' is not null or undefined
|
|
296
297
|
assertParamExists('listAuditLogs', 'objectID', objectID);
|
|
297
|
-
const localVarPath = `/audit/{objectType}/{objectID}`
|
|
298
|
+
const localVarPath = `/admins/audit/{objectType}/{objectID}`
|
|
298
299
|
.replace(`{${"objectType"}}`, encodeURIComponent(String(objectType)))
|
|
299
300
|
.replace(`{${"objectID"}}`, encodeURIComponent(String(objectID)));
|
|
300
301
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -328,7 +329,7 @@ export const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
328
329
|
listUserAuditLogs: (userID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
329
330
|
// verify required parameter 'userID' is not null or undefined
|
|
330
331
|
assertParamExists('listUserAuditLogs', 'userID', userID);
|
|
331
|
-
const localVarPath = `/audit/user/{userID}`
|
|
332
|
+
const localVarPath = `/admins/audit/user/{userID}`
|
|
332
333
|
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
|
333
334
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
334
335
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -474,7 +475,7 @@ export const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
474
475
|
assertParamExists('getBalance', 'beneficiaryValue', beneficiaryValue);
|
|
475
476
|
// verify required parameter 'kind' is not null or undefined
|
|
476
477
|
assertParamExists('getBalance', 'kind', kind);
|
|
477
|
-
const localVarPath = `/balances`;
|
|
478
|
+
const localVarPath = `/admins/balances`;
|
|
478
479
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
479
480
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
480
481
|
let baseOptions;
|
|
@@ -540,7 +541,7 @@ export const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
540
541
|
transferBalance: (beneficiaryValue, balanceUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
541
542
|
// verify required parameter 'beneficiaryValue' is not null or undefined
|
|
542
543
|
assertParamExists('transferBalance', 'beneficiaryValue', beneficiaryValue);
|
|
543
|
-
const localVarPath = `/balances/{beneficiaryValue}/transfer`
|
|
544
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}/transfer`
|
|
544
545
|
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
|
545
546
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
546
547
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -572,7 +573,7 @@ export const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
572
573
|
updateBalance: (beneficiaryValue, balanceUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
573
574
|
// verify required parameter 'beneficiaryValue' is not null or undefined
|
|
574
575
|
assertParamExists('updateBalance', 'beneficiaryValue', beneficiaryValue);
|
|
575
|
-
const localVarPath = `/balances/{beneficiaryValue}`
|
|
576
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}`
|
|
576
577
|
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
|
577
578
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
578
579
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -872,7 +873,7 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
872
873
|
createClient: (clientCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
873
874
|
// verify required parameter 'clientCreationRequest' is not null or undefined
|
|
874
875
|
assertParamExists('createClient', 'clientCreationRequest', clientCreationRequest);
|
|
875
|
-
const localVarPath = `/clients`;
|
|
876
|
+
const localVarPath = `/admins/clients`;
|
|
876
877
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
877
878
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
878
879
|
let baseOptions;
|
|
@@ -905,7 +906,7 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
905
906
|
getClient: (clientID, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
906
907
|
// verify required parameter 'clientID' is not null or undefined
|
|
907
908
|
assertParamExists('getClient', 'clientID', clientID);
|
|
908
|
-
const localVarPath = `/clients/{clientID}`
|
|
909
|
+
const localVarPath = `/admins/clients/{clientID}`
|
|
909
910
|
.replace(`{${"clientID"}}`, encodeURIComponent(String(clientID)));
|
|
910
911
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
911
912
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -936,7 +937,7 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
936
937
|
* @throws {RequiredError}
|
|
937
938
|
*/
|
|
938
939
|
listClients: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
939
|
-
const localVarPath = `/clients`;
|
|
940
|
+
const localVarPath = `/admins/clients`;
|
|
940
941
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
941
942
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
942
943
|
let baseOptions;
|
|
@@ -1112,7 +1113,7 @@ export const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
1112
1113
|
createConfiguration: (backofficeConfig, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1113
1114
|
// verify required parameter 'backofficeConfig' is not null or undefined
|
|
1114
1115
|
assertParamExists('createConfiguration', 'backofficeConfig', backofficeConfig);
|
|
1115
|
-
const localVarPath = `/configurations`;
|
|
1116
|
+
const localVarPath = `/admins/configurations`;
|
|
1116
1117
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1117
1118
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1118
1119
|
let baseOptions;
|
|
@@ -1144,7 +1145,7 @@ export const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
1144
1145
|
* @throws {RequiredError}
|
|
1145
1146
|
*/
|
|
1146
1147
|
listConfigurations: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1147
|
-
const localVarPath = `/configurations`;
|
|
1148
|
+
const localVarPath = `/admins/configurations`;
|
|
1148
1149
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1149
1150
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1150
1151
|
let baseOptions;
|
|
@@ -1286,7 +1287,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
|
1286
1287
|
createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1287
1288
|
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
|
1288
1289
|
assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
|
|
1289
|
-
const localVarPath = `/custom-deals/restrictions`;
|
|
1290
|
+
const localVarPath = `/admins/custom-deals/restrictions`;
|
|
1290
1291
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1291
1292
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1292
1293
|
let baseOptions;
|
|
@@ -1313,7 +1314,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
|
1313
1314
|
* @throws {RequiredError}
|
|
1314
1315
|
*/
|
|
1315
1316
|
listCustomDealRestrictions: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1316
|
-
const localVarPath = `/custom-deals/restrictions`;
|
|
1317
|
+
const localVarPath = `/admins/custom-deals/restrictions`;
|
|
1317
1318
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1318
1319
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1319
1320
|
let baseOptions;
|
|
@@ -1431,13 +1432,16 @@ export class CustomDealsApi extends BaseAPI {
|
|
|
1431
1432
|
export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1432
1433
|
return {
|
|
1433
1434
|
/**
|
|
1434
|
-
*
|
|
1435
|
-
* @summary
|
|
1435
|
+
* Import events to the system to be processed
|
|
1436
|
+
* @summary Add event
|
|
1437
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1436
1438
|
* @param {*} [options] Override http request option.
|
|
1437
1439
|
* @throws {RequiredError}
|
|
1438
1440
|
*/
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
+
importEvent: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1442
|
+
// verify required parameter 'eventCreationRequest' is not null or undefined
|
|
1443
|
+
assertParamExists('importEvent', 'eventCreationRequest', eventCreationRequest);
|
|
1444
|
+
const localVarPath = `/admins/events`;
|
|
1441
1445
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1442
1446
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1443
1447
|
let baseOptions;
|
|
@@ -1450,14 +1454,25 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1450
1454
|
// authentication jwt required
|
|
1451
1455
|
// http bearer authentication required
|
|
1452
1456
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1457
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1453
1458
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1454
1459
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1455
1460
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1461
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration);
|
|
1456
1462
|
return {
|
|
1457
1463
|
url: toPathString(localVarUrlObj),
|
|
1458
1464
|
options: localVarRequestOptions,
|
|
1459
1465
|
};
|
|
1460
1466
|
}),
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
/**
|
|
1470
|
+
* DefaultApi - functional programming interface
|
|
1471
|
+
* @export
|
|
1472
|
+
*/
|
|
1473
|
+
export const DefaultApiFp = function (configuration) {
|
|
1474
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
|
|
1475
|
+
return {
|
|
1461
1476
|
/**
|
|
1462
1477
|
* Import events to the system to be processed
|
|
1463
1478
|
* @summary Add event
|
|
@@ -1465,10 +1480,66 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1465
1480
|
* @param {*} [options] Override http request option.
|
|
1466
1481
|
* @throws {RequiredError}
|
|
1467
1482
|
*/
|
|
1468
|
-
importEvent
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1483
|
+
importEvent(eventCreationRequest, options) {
|
|
1484
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1485
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
|
|
1486
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1487
|
+
});
|
|
1488
|
+
},
|
|
1489
|
+
};
|
|
1490
|
+
};
|
|
1491
|
+
/**
|
|
1492
|
+
* DefaultApi - factory interface
|
|
1493
|
+
* @export
|
|
1494
|
+
*/
|
|
1495
|
+
export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1496
|
+
const localVarFp = DefaultApiFp(configuration);
|
|
1497
|
+
return {
|
|
1498
|
+
/**
|
|
1499
|
+
* Import events to the system to be processed
|
|
1500
|
+
* @summary Add event
|
|
1501
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1502
|
+
* @param {*} [options] Override http request option.
|
|
1503
|
+
* @throws {RequiredError}
|
|
1504
|
+
*/
|
|
1505
|
+
importEvent(eventCreationRequest, options) {
|
|
1506
|
+
return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
|
|
1507
|
+
},
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
/**
|
|
1511
|
+
* DefaultApi - object-oriented interface
|
|
1512
|
+
* @export
|
|
1513
|
+
* @class DefaultApi
|
|
1514
|
+
* @extends {BaseAPI}
|
|
1515
|
+
*/
|
|
1516
|
+
export class DefaultApi extends BaseAPI {
|
|
1517
|
+
/**
|
|
1518
|
+
* Import events to the system to be processed
|
|
1519
|
+
* @summary Add event
|
|
1520
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1521
|
+
* @param {*} [options] Override http request option.
|
|
1522
|
+
* @throws {RequiredError}
|
|
1523
|
+
* @memberof DefaultApi
|
|
1524
|
+
*/
|
|
1525
|
+
importEvent(eventCreationRequest, options) {
|
|
1526
|
+
return DefaultApiFp(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* IntegrationApi - axios parameter creator
|
|
1531
|
+
* @export
|
|
1532
|
+
*/
|
|
1533
|
+
export const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
1534
|
+
return {
|
|
1535
|
+
/**
|
|
1536
|
+
* 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.
|
|
1537
|
+
* @summary Generate API key for the current tenant
|
|
1538
|
+
* @param {*} [options] Override http request option.
|
|
1539
|
+
* @throws {RequiredError}
|
|
1540
|
+
*/
|
|
1541
|
+
generateApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1542
|
+
const localVarPath = `/admins/integrations/apikey`;
|
|
1472
1543
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1473
1544
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1474
1545
|
let baseOptions;
|
|
@@ -1481,11 +1552,9 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1481
1552
|
// authentication jwt required
|
|
1482
1553
|
// http bearer authentication required
|
|
1483
1554
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1484
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1485
1555
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1486
1556
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1487
1557
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1488
|
-
localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration);
|
|
1489
1558
|
return {
|
|
1490
1559
|
url: toPathString(localVarUrlObj),
|
|
1491
1560
|
options: localVarRequestOptions,
|
|
@@ -1498,7 +1567,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1498
1567
|
* @throws {RequiredError}
|
|
1499
1568
|
*/
|
|
1500
1569
|
listWebhooks: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1501
|
-
const localVarPath = `/integrations/webhooks`;
|
|
1570
|
+
const localVarPath = `/admins/integrations/webhooks`;
|
|
1502
1571
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1503
1572
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1504
1573
|
let baseOptions;
|
|
@@ -1529,7 +1598,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1529
1598
|
setWebhook: (webhook, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1530
1599
|
// verify required parameter 'webhook' is not null or undefined
|
|
1531
1600
|
assertParamExists('setWebhook', 'webhook', webhook);
|
|
1532
|
-
const localVarPath = `/integrations/webhooks`;
|
|
1601
|
+
const localVarPath = `/admins/integrations/webhooks`;
|
|
1533
1602
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1534
1603
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1535
1604
|
let baseOptions;
|
|
@@ -1559,7 +1628,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1559
1628
|
* @throws {RequiredError}
|
|
1560
1629
|
*/
|
|
1561
1630
|
testApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1562
|
-
const localVarPath = `/integrations/apikey`;
|
|
1631
|
+
const localVarPath = `/admins/integrations/apikey`;
|
|
1563
1632
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1564
1633
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1565
1634
|
let baseOptions;
|
|
@@ -1582,11 +1651,11 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1582
1651
|
};
|
|
1583
1652
|
};
|
|
1584
1653
|
/**
|
|
1585
|
-
*
|
|
1654
|
+
* IntegrationApi - functional programming interface
|
|
1586
1655
|
* @export
|
|
1587
1656
|
*/
|
|
1588
|
-
export const
|
|
1589
|
-
const localVarAxiosParamCreator =
|
|
1657
|
+
export const IntegrationApiFp = function (configuration) {
|
|
1658
|
+
const localVarAxiosParamCreator = IntegrationApiAxiosParamCreator(configuration);
|
|
1590
1659
|
return {
|
|
1591
1660
|
/**
|
|
1592
1661
|
* 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.
|
|
@@ -1600,19 +1669,6 @@ export const DefaultApiFp = function (configuration) {
|
|
|
1600
1669
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1601
1670
|
});
|
|
1602
1671
|
},
|
|
1603
|
-
/**
|
|
1604
|
-
* Import events to the system to be processed
|
|
1605
|
-
* @summary Add event
|
|
1606
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1607
|
-
* @param {*} [options] Override http request option.
|
|
1608
|
-
* @throws {RequiredError}
|
|
1609
|
-
*/
|
|
1610
|
-
importEvent(eventCreationRequest, options) {
|
|
1611
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1612
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
|
|
1613
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1614
|
-
});
|
|
1615
|
-
},
|
|
1616
1672
|
/**
|
|
1617
1673
|
* List all webhooks for current tenant
|
|
1618
1674
|
* @summary List webhooks
|
|
@@ -1653,11 +1709,11 @@ export const DefaultApiFp = function (configuration) {
|
|
|
1653
1709
|
};
|
|
1654
1710
|
};
|
|
1655
1711
|
/**
|
|
1656
|
-
*
|
|
1712
|
+
* IntegrationApi - factory interface
|
|
1657
1713
|
* @export
|
|
1658
1714
|
*/
|
|
1659
|
-
export const
|
|
1660
|
-
const localVarFp =
|
|
1715
|
+
export const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
1716
|
+
const localVarFp = IntegrationApiFp(configuration);
|
|
1661
1717
|
return {
|
|
1662
1718
|
/**
|
|
1663
1719
|
* 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.
|
|
@@ -1668,16 +1724,6 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1668
1724
|
generateApiKey(options) {
|
|
1669
1725
|
return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
|
|
1670
1726
|
},
|
|
1671
|
-
/**
|
|
1672
|
-
* Import events to the system to be processed
|
|
1673
|
-
* @summary Add event
|
|
1674
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1675
|
-
* @param {*} [options] Override http request option.
|
|
1676
|
-
* @throws {RequiredError}
|
|
1677
|
-
*/
|
|
1678
|
-
importEvent(eventCreationRequest, options) {
|
|
1679
|
-
return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
|
|
1680
|
-
},
|
|
1681
1727
|
/**
|
|
1682
1728
|
* List all webhooks for current tenant
|
|
1683
1729
|
* @summary List webhooks
|
|
@@ -1709,42 +1755,31 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1709
1755
|
};
|
|
1710
1756
|
};
|
|
1711
1757
|
/**
|
|
1712
|
-
*
|
|
1758
|
+
* IntegrationApi - object-oriented interface
|
|
1713
1759
|
* @export
|
|
1714
|
-
* @class
|
|
1760
|
+
* @class IntegrationApi
|
|
1715
1761
|
* @extends {BaseAPI}
|
|
1716
1762
|
*/
|
|
1717
|
-
export class
|
|
1763
|
+
export class IntegrationApi extends BaseAPI {
|
|
1718
1764
|
/**
|
|
1719
1765
|
* 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.
|
|
1720
1766
|
* @summary Generate API key for the current tenant
|
|
1721
1767
|
* @param {*} [options] Override http request option.
|
|
1722
1768
|
* @throws {RequiredError}
|
|
1723
|
-
* @memberof
|
|
1769
|
+
* @memberof IntegrationApi
|
|
1724
1770
|
*/
|
|
1725
1771
|
generateApiKey(options) {
|
|
1726
|
-
return
|
|
1727
|
-
}
|
|
1728
|
-
/**
|
|
1729
|
-
* Import events to the system to be processed
|
|
1730
|
-
* @summary Add event
|
|
1731
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1732
|
-
* @param {*} [options] Override http request option.
|
|
1733
|
-
* @throws {RequiredError}
|
|
1734
|
-
* @memberof DefaultApi
|
|
1735
|
-
*/
|
|
1736
|
-
importEvent(eventCreationRequest, options) {
|
|
1737
|
-
return DefaultApiFp(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1772
|
+
return IntegrationApiFp(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
1738
1773
|
}
|
|
1739
1774
|
/**
|
|
1740
1775
|
* List all webhooks for current tenant
|
|
1741
1776
|
* @summary List webhooks
|
|
1742
1777
|
* @param {*} [options] Override http request option.
|
|
1743
1778
|
* @throws {RequiredError}
|
|
1744
|
-
* @memberof
|
|
1779
|
+
* @memberof IntegrationApi
|
|
1745
1780
|
*/
|
|
1746
1781
|
listWebhooks(options) {
|
|
1747
|
-
return
|
|
1782
|
+
return IntegrationApiFp(this.configuration).listWebhooks(options).then((request) => request(this.axios, this.basePath));
|
|
1748
1783
|
}
|
|
1749
1784
|
/**
|
|
1750
1785
|
* Set up webhook url for a given integration
|
|
@@ -1752,20 +1787,20 @@ export class DefaultApi extends BaseAPI {
|
|
|
1752
1787
|
* @param {Webhook} webhook webhook data
|
|
1753
1788
|
* @param {*} [options] Override http request option.
|
|
1754
1789
|
* @throws {RequiredError}
|
|
1755
|
-
* @memberof
|
|
1790
|
+
* @memberof IntegrationApi
|
|
1756
1791
|
*/
|
|
1757
1792
|
setWebhook(webhook, options) {
|
|
1758
|
-
return
|
|
1793
|
+
return IntegrationApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
|
1759
1794
|
}
|
|
1760
1795
|
/**
|
|
1761
1796
|
* Test API key security scheme
|
|
1762
1797
|
* @summary Test API key security scheme
|
|
1763
1798
|
* @param {*} [options] Override http request option.
|
|
1764
1799
|
* @throws {RequiredError}
|
|
1765
|
-
* @memberof
|
|
1800
|
+
* @memberof IntegrationApi
|
|
1766
1801
|
*/
|
|
1767
1802
|
testApiKey(options) {
|
|
1768
|
-
return
|
|
1803
|
+
return IntegrationApiFp(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
1769
1804
|
}
|
|
1770
1805
|
}
|
|
1771
1806
|
/**
|
|
@@ -2106,7 +2141,7 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2106
2141
|
getOrder: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2107
2142
|
// verify required parameter 'id' is not null or undefined
|
|
2108
2143
|
assertParamExists('getOrder', 'id', id);
|
|
2109
|
-
const localVarPath = `/orders/{id}`
|
|
2144
|
+
const localVarPath = `/users/orders/{id}`
|
|
2110
2145
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2111
2146
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2112
2147
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2340,7 +2375,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2340
2375
|
approveProduct: (id, productRequestApprovalRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2341
2376
|
// verify required parameter 'id' is not null or undefined
|
|
2342
2377
|
assertParamExists('approveProduct', 'id', id);
|
|
2343
|
-
const localVarPath = `/products/requests/{id}`
|
|
2378
|
+
const localVarPath = `/admins/products/requests/{id}`
|
|
2344
2379
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2345
2380
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2346
2381
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2365,14 +2400,14 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2365
2400
|
};
|
|
2366
2401
|
}),
|
|
2367
2402
|
/**
|
|
2368
|
-
*
|
|
2369
|
-
* @summary
|
|
2403
|
+
* Create multiple products
|
|
2404
|
+
* @summary Create multiple products
|
|
2370
2405
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2371
2406
|
* @param {*} [options] Override http request option.
|
|
2372
2407
|
* @throws {RequiredError}
|
|
2373
2408
|
*/
|
|
2374
2409
|
bulkCreateProducts: (productBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2375
|
-
const localVarPath = `/products/bulk`;
|
|
2410
|
+
const localVarPath = `/admins/products/bulk`;
|
|
2376
2411
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2377
2412
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2378
2413
|
let baseOptions;
|
|
@@ -2403,7 +2438,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2403
2438
|
* @throws {RequiredError}
|
|
2404
2439
|
*/
|
|
2405
2440
|
createProduct: (productCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2406
|
-
const localVarPath = `/products`;
|
|
2441
|
+
const localVarPath = `/admins/products`;
|
|
2407
2442
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2408
2443
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2409
2444
|
let baseOptions;
|
|
@@ -2464,7 +2499,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2464
2499
|
* @throws {RequiredError}
|
|
2465
2500
|
*/
|
|
2466
2501
|
createUploadURL: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2467
|
-
const localVarPath = `/products/upload-urls`;
|
|
2502
|
+
const localVarPath = `/admins/products/upload-urls`;
|
|
2468
2503
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2469
2504
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2470
2505
|
let baseOptions;
|
|
@@ -2492,7 +2527,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2492
2527
|
getProductById: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2493
2528
|
// verify required parameter 'id' is not null or undefined
|
|
2494
2529
|
assertParamExists('getProductById', 'id', id);
|
|
2495
|
-
const localVarPath = `/products/{id}`
|
|
2530
|
+
const localVarPath = `/admins/products/{id}`
|
|
2496
2531
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2497
2532
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2498
2533
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2524,7 +2559,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2524
2559
|
getProductRequestById: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2525
2560
|
// verify required parameter 'id' is not null or undefined
|
|
2526
2561
|
assertParamExists('getProductRequestById', 'id', id);
|
|
2527
|
-
const localVarPath = `/products/requests/{id}`
|
|
2562
|
+
const localVarPath = `/admins/products/requests/{id}`
|
|
2528
2563
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2529
2564
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2530
2565
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2587,7 +2622,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2587
2622
|
* @throws {RequiredError}
|
|
2588
2623
|
*/
|
|
2589
2624
|
listProductRequests: (status, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2590
|
-
const localVarPath = `/products/requests`;
|
|
2625
|
+
const localVarPath = `/admins/products/requests`;
|
|
2591
2626
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2592
2627
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2593
2628
|
let baseOptions;
|
|
@@ -2630,7 +2665,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2630
2665
|
* @throws {RequiredError}
|
|
2631
2666
|
*/
|
|
2632
2667
|
listProducts: (kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2633
|
-
const localVarPath = `/products`;
|
|
2668
|
+
const localVarPath = `/admins/products`;
|
|
2634
2669
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2635
2670
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2636
2671
|
let baseOptions;
|
|
@@ -2689,7 +2724,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2689
2724
|
updateProduct: (id, productCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2690
2725
|
// verify required parameter 'id' is not null or undefined
|
|
2691
2726
|
assertParamExists('updateProduct', 'id', id);
|
|
2692
|
-
const localVarPath = `/products/{id}`
|
|
2727
|
+
const localVarPath = `/admins/products/{id}`
|
|
2693
2728
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2694
2729
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2695
2730
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2737,8 +2772,8 @@ export const ProductApiFp = function (configuration) {
|
|
|
2737
2772
|
});
|
|
2738
2773
|
},
|
|
2739
2774
|
/**
|
|
2740
|
-
*
|
|
2741
|
-
* @summary
|
|
2775
|
+
* Create multiple products
|
|
2776
|
+
* @summary Create multiple products
|
|
2742
2777
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2743
2778
|
* @param {*} [options] Override http request option.
|
|
2744
2779
|
* @throws {RequiredError}
|
|
@@ -2896,8 +2931,8 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2896
2931
|
return localVarFp.approveProduct(id, productRequestApprovalRequest, options).then((request) => request(axios, basePath));
|
|
2897
2932
|
},
|
|
2898
2933
|
/**
|
|
2899
|
-
*
|
|
2900
|
-
* @summary
|
|
2934
|
+
* Create multiple products
|
|
2935
|
+
* @summary Create multiple products
|
|
2901
2936
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2902
2937
|
* @param {*} [options] Override http request option.
|
|
2903
2938
|
* @throws {RequiredError}
|
|
@@ -3026,8 +3061,8 @@ export class ProductApi extends BaseAPI {
|
|
|
3026
3061
|
return ProductApiFp(this.configuration).approveProduct(id, productRequestApprovalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3027
3062
|
}
|
|
3028
3063
|
/**
|
|
3029
|
-
*
|
|
3030
|
-
* @summary
|
|
3064
|
+
* Create multiple products
|
|
3065
|
+
* @summary Create multiple products
|
|
3031
3066
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
3032
3067
|
* @param {*} [options] Override http request option.
|
|
3033
3068
|
* @throws {RequiredError}
|
|
@@ -3166,7 +3201,7 @@ export const ProgressApiAxiosParamCreator = function (configuration) {
|
|
|
3166
3201
|
listProgress: (id, periodID, userID, clientID, interval, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3167
3202
|
// verify required parameter 'id' is not null or undefined
|
|
3168
3203
|
assertParamExists('listProgress', 'id', id);
|
|
3169
|
-
const localVarPath = `/promotions/{id}/progress`
|
|
3204
|
+
const localVarPath = `/admins/promotions/{id}/progress`
|
|
3170
3205
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3171
3206
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3172
3207
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3386,7 +3421,7 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3386
3421
|
claimPromotion: (id, promotionClaimRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3387
3422
|
// verify required parameter 'id' is not null or undefined
|
|
3388
3423
|
assertParamExists('claimPromotion', 'id', id);
|
|
3389
|
-
const localVarPath = `/promotions/{id}/claims`
|
|
3424
|
+
const localVarPath = `/admins/promotions/{id}/claims`
|
|
3390
3425
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3391
3426
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3392
3427
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3420,7 +3455,7 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3420
3455
|
assertParamExists('claimPromotionProgress', 'id', id);
|
|
3421
3456
|
// verify required parameter 'progressID' is not null or undefined
|
|
3422
3457
|
assertParamExists('claimPromotionProgress', 'progressID', progressID);
|
|
3423
|
-
const localVarPath = `/
|
|
3458
|
+
const localVarPath = `/adminspromotions/{id}/progress/{progressID}/claims`
|
|
3424
3459
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3425
3460
|
.replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
|
|
3426
3461
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3512,7 +3547,7 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3512
3547
|
createPromotion: (promotionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3513
3548
|
// verify required parameter 'promotionRequest' is not null or undefined
|
|
3514
3549
|
assertParamExists('createPromotion', 'promotionRequest', promotionRequest);
|
|
3515
|
-
const localVarPath = `/promotions`;
|
|
3550
|
+
const localVarPath = `/admins/promotions`;
|
|
3516
3551
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3517
3552
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3518
3553
|
let baseOptions;
|
|
@@ -3545,7 +3580,7 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3545
3580
|
deletePromotion: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3546
3581
|
// verify required parameter 'id' is not null or undefined
|
|
3547
3582
|
assertParamExists('deletePromotion', 'id', id);
|
|
3548
|
-
const localVarPath = `/promotions/{id}`
|
|
3583
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
3549
3584
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3550
3585
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3551
3586
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3577,7 +3612,7 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3577
3612
|
getPromotion: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3578
3613
|
// verify required parameter 'id' is not null or undefined
|
|
3579
3614
|
assertParamExists('getPromotion', 'id', id);
|
|
3580
|
-
const localVarPath = `/promotions/{id}`
|
|
3615
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
3581
3616
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3582
3617
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3583
3618
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3647,7 +3682,7 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3647
3682
|
* @throws {RequiredError}
|
|
3648
3683
|
*/
|
|
3649
3684
|
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3650
|
-
const localVarPath = `/promotions`;
|
|
3685
|
+
const localVarPath = `/admins/promotions`;
|
|
3651
3686
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3652
3687
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3653
3688
|
let baseOptions;
|
|
@@ -3764,7 +3799,7 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3764
3799
|
assertParamExists('updatePromotion', 'id', id);
|
|
3765
3800
|
// verify required parameter 'updatePromotionRequest' is not null or undefined
|
|
3766
3801
|
assertParamExists('updatePromotion', 'updatePromotionRequest', updatePromotionRequest);
|
|
3767
|
-
const localVarPath = `/promotions/{id}`
|
|
3802
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
3768
3803
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3769
3804
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3770
3805
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4359,7 +4394,7 @@ export const SegmentApiAxiosParamCreator = function (configuration) {
|
|
|
4359
4394
|
* @throws {RequiredError}
|
|
4360
4395
|
*/
|
|
4361
4396
|
createSegment: (createSegmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4362
|
-
const localVarPath = `/segments`;
|
|
4397
|
+
const localVarPath = `/admins/segments`;
|
|
4363
4398
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4364
4399
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4365
4400
|
let baseOptions;
|
|
@@ -4392,7 +4427,7 @@ export const SegmentApiAxiosParamCreator = function (configuration) {
|
|
|
4392
4427
|
getSegmentById: (segmentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4393
4428
|
// verify required parameter 'segmentId' is not null or undefined
|
|
4394
4429
|
assertParamExists('getSegmentById', 'segmentId', segmentId);
|
|
4395
|
-
const localVarPath = `/segments/{segmentId}`
|
|
4430
|
+
const localVarPath = `/admins/segments/{segmentId}`
|
|
4396
4431
|
.replace(`{${"segmentId"}}`, encodeURIComponent(String(segmentId)));
|
|
4397
4432
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4398
4433
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4423,7 +4458,7 @@ export const SegmentApiAxiosParamCreator = function (configuration) {
|
|
|
4423
4458
|
* @throws {RequiredError}
|
|
4424
4459
|
*/
|
|
4425
4460
|
listSegments: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4426
|
-
const localVarPath = `/segments`;
|
|
4461
|
+
const localVarPath = `/admins/segments`;
|
|
4427
4462
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4428
4463
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4429
4464
|
let baseOptions;
|
|
@@ -4597,7 +4632,7 @@ export const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4597
4632
|
* @throws {RequiredError}
|
|
4598
4633
|
*/
|
|
4599
4634
|
createTag: (createTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4600
|
-
const localVarPath = `/tags`;
|
|
4635
|
+
const localVarPath = `/admins/tags`;
|
|
4601
4636
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4602
4637
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4603
4638
|
let baseOptions;
|
|
@@ -4630,7 +4665,7 @@ export const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4630
4665
|
deleteTag: (key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4631
4666
|
// verify required parameter 'key' is not null or undefined
|
|
4632
4667
|
assertParamExists('deleteTag', 'key', key);
|
|
4633
|
-
const localVarPath = `/tags/{key}`
|
|
4668
|
+
const localVarPath = `/admins/tags/{key}`
|
|
4634
4669
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
4635
4670
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4636
4671
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4662,7 +4697,7 @@ export const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4662
4697
|
getTagByKey: (key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4663
4698
|
// verify required parameter 'key' is not null or undefined
|
|
4664
4699
|
assertParamExists('getTagByKey', 'key', key);
|
|
4665
|
-
const localVarPath = `/tags/{key}`
|
|
4700
|
+
const localVarPath = `/admins/tags/{key}`
|
|
4666
4701
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
4667
4702
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4668
4703
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4692,7 +4727,7 @@ export const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4692
4727
|
* @throws {RequiredError}
|
|
4693
4728
|
*/
|
|
4694
4729
|
listTags: (tagKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4695
|
-
const localVarPath = `/tags`;
|
|
4730
|
+
const localVarPath = `/admins/tags`;
|
|
4696
4731
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4697
4732
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4698
4733
|
let baseOptions;
|
|
@@ -4727,7 +4762,7 @@ export const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4727
4762
|
updateTag: (key, createTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4728
4763
|
// verify required parameter 'key' is not null or undefined
|
|
4729
4764
|
assertParamExists('updateTag', 'key', key);
|
|
4730
|
-
const localVarPath = `/tags/{key}`
|
|
4765
|
+
const localVarPath = `/admins/tags/{key}`
|
|
4731
4766
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
4732
4767
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4733
4768
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4967,7 +5002,7 @@ export const TransactionApiAxiosParamCreator = function (configuration) {
|
|
|
4967
5002
|
* @throws {RequiredError}
|
|
4968
5003
|
*/
|
|
4969
5004
|
listTransactions: (paginationToken, clientID, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4970
|
-
const localVarPath = `/transactions`;
|
|
5005
|
+
const localVarPath = `/admins/transactions`;
|
|
4971
5006
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4972
5007
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4973
5008
|
let baseOptions;
|
|
@@ -5075,7 +5110,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
5075
5110
|
getUserByID: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5076
5111
|
// verify required parameter 'id' is not null or undefined
|
|
5077
5112
|
assertParamExists('getUserByID', 'id', id);
|
|
5078
|
-
const localVarPath = `/users/{id}`
|
|
5113
|
+
const localVarPath = `/admins/users/{id}`
|
|
5079
5114
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5080
5115
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5081
5116
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5107,7 +5142,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
5107
5142
|
getUserSubordinates: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5108
5143
|
// verify required parameter 'id' is not null or undefined
|
|
5109
5144
|
assertParamExists('getUserSubordinates', 'id', id);
|
|
5110
|
-
const localVarPath = `/
|
|
5145
|
+
const localVarPath = `/admins/users/{id}/team`
|
|
5111
5146
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5112
5147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5113
5148
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5142,7 +5177,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
5142
5177
|
* @throws {RequiredError}
|
|
5143
5178
|
*/
|
|
5144
5179
|
listUsers: (nextToken, role, search, clientID, userIds, source, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5145
|
-
const localVarPath = `/users`;
|
|
5180
|
+
const localVarPath = `/admins/users`;
|
|
5146
5181
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5147
5182
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5148
5183
|
let baseOptions;
|