flexinet-api 0.0.318-prerelease0 → 0.0.319-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 +55 -55
- package/dist/api.d.ts +8 -8
- package/dist/api.js +55 -55
- package/dist/esm/api.d.ts +8 -8
- package/dist/esm/api.js +55 -55
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -298,7 +298,7 @@ const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
298
298
|
(0, common_1.assertParamExists)('listAuditLogs', 'objectType', objectType);
|
|
299
299
|
// verify required parameter 'objectID' is not null or undefined
|
|
300
300
|
(0, common_1.assertParamExists)('listAuditLogs', 'objectID', objectID);
|
|
301
|
-
const localVarPath = `/audit/{objectType}/{objectID}`
|
|
301
|
+
const localVarPath = `/admins/audit/{objectType}/{objectID}`
|
|
302
302
|
.replace(`{${"objectType"}}`, encodeURIComponent(String(objectType)))
|
|
303
303
|
.replace(`{${"objectID"}}`, encodeURIComponent(String(objectID)));
|
|
304
304
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -332,7 +332,7 @@ const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
332
332
|
listUserAuditLogs: (userID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
333
333
|
// verify required parameter 'userID' is not null or undefined
|
|
334
334
|
(0, common_1.assertParamExists)('listUserAuditLogs', 'userID', userID);
|
|
335
|
-
const localVarPath = `/audit/user/{userID}`
|
|
335
|
+
const localVarPath = `/admins/audit/user/{userID}`
|
|
336
336
|
.replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
|
|
337
337
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
338
338
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -482,7 +482,7 @@ const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
482
482
|
(0, common_1.assertParamExists)('getBalance', 'beneficiaryValue', beneficiaryValue);
|
|
483
483
|
// verify required parameter 'kind' is not null or undefined
|
|
484
484
|
(0, common_1.assertParamExists)('getBalance', 'kind', kind);
|
|
485
|
-
const localVarPath = `/balances`;
|
|
485
|
+
const localVarPath = `/admins/balances`;
|
|
486
486
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
487
487
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
488
488
|
let baseOptions;
|
|
@@ -548,7 +548,7 @@ const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
548
548
|
transferBalance: (beneficiaryValue, balanceUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
549
549
|
// verify required parameter 'beneficiaryValue' is not null or undefined
|
|
550
550
|
(0, common_1.assertParamExists)('transferBalance', 'beneficiaryValue', beneficiaryValue);
|
|
551
|
-
const localVarPath = `/balances/{beneficiaryValue}/transfer`
|
|
551
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}/transfer`
|
|
552
552
|
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
|
553
553
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
554
554
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -580,7 +580,7 @@ const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
580
580
|
updateBalance: (beneficiaryValue, balanceUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
581
581
|
// verify required parameter 'beneficiaryValue' is not null or undefined
|
|
582
582
|
(0, common_1.assertParamExists)('updateBalance', 'beneficiaryValue', beneficiaryValue);
|
|
583
|
-
const localVarPath = `/balances/{beneficiaryValue}`
|
|
583
|
+
const localVarPath = `/admins/balances/{beneficiaryValue}`
|
|
584
584
|
.replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
|
|
585
585
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
586
586
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -888,7 +888,7 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
888
888
|
createClient: (clientCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
889
889
|
// verify required parameter 'clientCreationRequest' is not null or undefined
|
|
890
890
|
(0, common_1.assertParamExists)('createClient', 'clientCreationRequest', clientCreationRequest);
|
|
891
|
-
const localVarPath = `/clients`;
|
|
891
|
+
const localVarPath = `/admins/clients`;
|
|
892
892
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
893
893
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
894
894
|
let baseOptions;
|
|
@@ -921,7 +921,7 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
921
921
|
getClient: (clientID, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
922
922
|
// verify required parameter 'clientID' is not null or undefined
|
|
923
923
|
(0, common_1.assertParamExists)('getClient', 'clientID', clientID);
|
|
924
|
-
const localVarPath = `/clients/{clientID}`
|
|
924
|
+
const localVarPath = `/admins/clients/{clientID}`
|
|
925
925
|
.replace(`{${"clientID"}}`, encodeURIComponent(String(clientID)));
|
|
926
926
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
927
927
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -952,7 +952,7 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
952
952
|
* @throws {RequiredError}
|
|
953
953
|
*/
|
|
954
954
|
listClients: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
955
|
-
const localVarPath = `/clients`;
|
|
955
|
+
const localVarPath = `/admins/clients`;
|
|
956
956
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
957
957
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
958
958
|
let baseOptions;
|
|
@@ -1132,7 +1132,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
1132
1132
|
createConfiguration: (backofficeConfig, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1133
1133
|
// verify required parameter 'backofficeConfig' is not null or undefined
|
|
1134
1134
|
(0, common_1.assertParamExists)('createConfiguration', 'backofficeConfig', backofficeConfig);
|
|
1135
|
-
const localVarPath = `/configurations`;
|
|
1135
|
+
const localVarPath = `/admins/configurations`;
|
|
1136
1136
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1137
1137
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1138
1138
|
let baseOptions;
|
|
@@ -1164,7 +1164,7 @@ const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
1164
1164
|
* @throws {RequiredError}
|
|
1165
1165
|
*/
|
|
1166
1166
|
listConfigurations: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1167
|
-
const localVarPath = `/configurations`;
|
|
1167
|
+
const localVarPath = `/admins/configurations`;
|
|
1168
1168
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1169
1169
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1170
1170
|
let baseOptions;
|
|
@@ -1310,7 +1310,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
|
1310
1310
|
createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1311
1311
|
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
|
1312
1312
|
(0, common_1.assertParamExists)('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
|
|
1313
|
-
const localVarPath = `/custom-deals/restrictions`;
|
|
1313
|
+
const localVarPath = `/admins/custom-deals/restrictions`;
|
|
1314
1314
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1315
1315
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1316
1316
|
let baseOptions;
|
|
@@ -1337,7 +1337,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
|
1337
1337
|
* @throws {RequiredError}
|
|
1338
1338
|
*/
|
|
1339
1339
|
listCustomDealRestrictions: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1340
|
-
const localVarPath = `/custom-deals/restrictions`;
|
|
1340
|
+
const localVarPath = `/admins/custom-deals/restrictions`;
|
|
1341
1341
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1342
1342
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1343
1343
|
let baseOptions;
|
|
@@ -1465,7 +1465,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1465
1465
|
* @throws {RequiredError}
|
|
1466
1466
|
*/
|
|
1467
1467
|
generateApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1468
|
-
const localVarPath = `/integrations/apikey`;
|
|
1468
|
+
const localVarPath = `/admins/integrations/apikey`;
|
|
1469
1469
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1470
1470
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1471
1471
|
let baseOptions;
|
|
@@ -1496,7 +1496,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1496
1496
|
importEvent: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1497
1497
|
// verify required parameter 'eventCreationRequest' is not null or undefined
|
|
1498
1498
|
(0, common_1.assertParamExists)('importEvent', 'eventCreationRequest', eventCreationRequest);
|
|
1499
|
-
const localVarPath = `/events`;
|
|
1499
|
+
const localVarPath = `/admins/events`;
|
|
1500
1500
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1501
1501
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1502
1502
|
let baseOptions;
|
|
@@ -1526,7 +1526,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1526
1526
|
* @throws {RequiredError}
|
|
1527
1527
|
*/
|
|
1528
1528
|
listWebhooks: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1529
|
-
const localVarPath = `/integrations/webhooks`;
|
|
1529
|
+
const localVarPath = `/admins/integrations/webhooks`;
|
|
1530
1530
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1531
1531
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1532
1532
|
let baseOptions;
|
|
@@ -1557,7 +1557,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1557
1557
|
setWebhook: (webhook, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1558
1558
|
// verify required parameter 'webhook' is not null or undefined
|
|
1559
1559
|
(0, common_1.assertParamExists)('setWebhook', 'webhook', webhook);
|
|
1560
|
-
const localVarPath = `/integrations/webhooks`;
|
|
1560
|
+
const localVarPath = `/admins/integrations/webhooks`;
|
|
1561
1561
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1562
1562
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1563
1563
|
let baseOptions;
|
|
@@ -1587,7 +1587,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1587
1587
|
* @throws {RequiredError}
|
|
1588
1588
|
*/
|
|
1589
1589
|
testApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1590
|
-
const localVarPath = `/integrations/apikey`;
|
|
1590
|
+
const localVarPath = `/admins/integrations/apikey`;
|
|
1591
1591
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1592
1592
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1593
1593
|
let baseOptions;
|
|
@@ -2142,7 +2142,7 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2142
2142
|
getOrder: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2143
2143
|
// verify required parameter 'id' is not null or undefined
|
|
2144
2144
|
(0, common_1.assertParamExists)('getOrder', 'id', id);
|
|
2145
|
-
const localVarPath = `/orders/{id}`
|
|
2145
|
+
const localVarPath = `/users/orders/{id}`
|
|
2146
2146
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2147
2147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2148
2148
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2380,7 +2380,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2380
2380
|
approveProduct: (id, productRequestApprovalRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2381
2381
|
// verify required parameter 'id' is not null or undefined
|
|
2382
2382
|
(0, common_1.assertParamExists)('approveProduct', 'id', id);
|
|
2383
|
-
const localVarPath = `/products/requests/{id}`
|
|
2383
|
+
const localVarPath = `/admins/products/requests/{id}`
|
|
2384
2384
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2385
2385
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2386
2386
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2405,14 +2405,14 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2405
2405
|
};
|
|
2406
2406
|
}),
|
|
2407
2407
|
/**
|
|
2408
|
-
*
|
|
2409
|
-
* @summary
|
|
2408
|
+
* Create multiple products
|
|
2409
|
+
* @summary Create multiple products
|
|
2410
2410
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2411
2411
|
* @param {*} [options] Override http request option.
|
|
2412
2412
|
* @throws {RequiredError}
|
|
2413
2413
|
*/
|
|
2414
2414
|
bulkCreateProducts: (productBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2415
|
-
const localVarPath = `/products/bulk`;
|
|
2415
|
+
const localVarPath = `/admins/products/bulk`;
|
|
2416
2416
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2417
2417
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2418
2418
|
let baseOptions;
|
|
@@ -2443,7 +2443,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2443
2443
|
* @throws {RequiredError}
|
|
2444
2444
|
*/
|
|
2445
2445
|
createProduct: (productCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2446
|
-
const localVarPath = `/products`;
|
|
2446
|
+
const localVarPath = `/admins/products`;
|
|
2447
2447
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2448
2448
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2449
2449
|
let baseOptions;
|
|
@@ -2504,7 +2504,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2504
2504
|
* @throws {RequiredError}
|
|
2505
2505
|
*/
|
|
2506
2506
|
createUploadURL: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2507
|
-
const localVarPath = `/products/upload-urls`;
|
|
2507
|
+
const localVarPath = `/admins/products/upload-urls`;
|
|
2508
2508
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2509
2509
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2510
2510
|
let baseOptions;
|
|
@@ -2532,7 +2532,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2532
2532
|
getProductById: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2533
2533
|
// verify required parameter 'id' is not null or undefined
|
|
2534
2534
|
(0, common_1.assertParamExists)('getProductById', 'id', id);
|
|
2535
|
-
const localVarPath = `/products/{id}`
|
|
2535
|
+
const localVarPath = `/admins/products/{id}`
|
|
2536
2536
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2537
2537
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2538
2538
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2564,7 +2564,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2564
2564
|
getProductRequestById: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2565
2565
|
// verify required parameter 'id' is not null or undefined
|
|
2566
2566
|
(0, common_1.assertParamExists)('getProductRequestById', 'id', id);
|
|
2567
|
-
const localVarPath = `/products/requests/{id}`
|
|
2567
|
+
const localVarPath = `/admins/products/requests/{id}`
|
|
2568
2568
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2569
2569
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2570
2570
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2627,7 +2627,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2627
2627
|
* @throws {RequiredError}
|
|
2628
2628
|
*/
|
|
2629
2629
|
listProductRequests: (status, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2630
|
-
const localVarPath = `/products/requests`;
|
|
2630
|
+
const localVarPath = `/admins/products/requests`;
|
|
2631
2631
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2632
2632
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2633
2633
|
let baseOptions;
|
|
@@ -2670,7 +2670,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2670
2670
|
* @throws {RequiredError}
|
|
2671
2671
|
*/
|
|
2672
2672
|
listProducts: (kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2673
|
-
const localVarPath = `/products`;
|
|
2673
|
+
const localVarPath = `/admins/products`;
|
|
2674
2674
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2675
2675
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2676
2676
|
let baseOptions;
|
|
@@ -2729,7 +2729,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2729
2729
|
updateProduct: (id, productCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2730
2730
|
// verify required parameter 'id' is not null or undefined
|
|
2731
2731
|
(0, common_1.assertParamExists)('updateProduct', 'id', id);
|
|
2732
|
-
const localVarPath = `/products/{id}`
|
|
2732
|
+
const localVarPath = `/admins/products/{id}`
|
|
2733
2733
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2734
2734
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2735
2735
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2778,8 +2778,8 @@ const ProductApiFp = function (configuration) {
|
|
|
2778
2778
|
});
|
|
2779
2779
|
},
|
|
2780
2780
|
/**
|
|
2781
|
-
*
|
|
2782
|
-
* @summary
|
|
2781
|
+
* Create multiple products
|
|
2782
|
+
* @summary Create multiple products
|
|
2783
2783
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2784
2784
|
* @param {*} [options] Override http request option.
|
|
2785
2785
|
* @throws {RequiredError}
|
|
@@ -2938,8 +2938,8 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2938
2938
|
return localVarFp.approveProduct(id, productRequestApprovalRequest, options).then((request) => request(axios, basePath));
|
|
2939
2939
|
},
|
|
2940
2940
|
/**
|
|
2941
|
-
*
|
|
2942
|
-
* @summary
|
|
2941
|
+
* Create multiple products
|
|
2942
|
+
* @summary Create multiple products
|
|
2943
2943
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2944
2944
|
* @param {*} [options] Override http request option.
|
|
2945
2945
|
* @throws {RequiredError}
|
|
@@ -3069,8 +3069,8 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
3069
3069
|
return (0, exports.ProductApiFp)(this.configuration).approveProduct(id, productRequestApprovalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3070
3070
|
}
|
|
3071
3071
|
/**
|
|
3072
|
-
*
|
|
3073
|
-
* @summary
|
|
3072
|
+
* Create multiple products
|
|
3073
|
+
* @summary Create multiple products
|
|
3074
3074
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
3075
3075
|
* @param {*} [options] Override http request option.
|
|
3076
3076
|
* @throws {RequiredError}
|
|
@@ -3210,7 +3210,7 @@ const ProgressApiAxiosParamCreator = function (configuration) {
|
|
|
3210
3210
|
listProgress: (id, periodID, userID, clientID, interval, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3211
3211
|
// verify required parameter 'id' is not null or undefined
|
|
3212
3212
|
(0, common_1.assertParamExists)('listProgress', 'id', id);
|
|
3213
|
-
const localVarPath = `/promotions/{id}/progress`
|
|
3213
|
+
const localVarPath = `/admins/promotions/{id}/progress`
|
|
3214
3214
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3215
3215
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3216
3216
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3434,7 +3434,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3434
3434
|
claimPromotion: (id, promotionClaimRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3435
3435
|
// verify required parameter 'id' is not null or undefined
|
|
3436
3436
|
(0, common_1.assertParamExists)('claimPromotion', 'id', id);
|
|
3437
|
-
const localVarPath = `/promotions/{id}/claims`
|
|
3437
|
+
const localVarPath = `/admins/promotions/{id}/claims`
|
|
3438
3438
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3439
3439
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3440
3440
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3468,7 +3468,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3468
3468
|
(0, common_1.assertParamExists)('claimPromotionProgress', 'id', id);
|
|
3469
3469
|
// verify required parameter 'progressID' is not null or undefined
|
|
3470
3470
|
(0, common_1.assertParamExists)('claimPromotionProgress', 'progressID', progressID);
|
|
3471
|
-
const localVarPath = `/
|
|
3471
|
+
const localVarPath = `/adminspromotions/{id}/progress/{progressID}/claims`
|
|
3472
3472
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
3473
3473
|
.replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
|
|
3474
3474
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3560,7 +3560,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3560
3560
|
createPromotion: (promotionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3561
3561
|
// verify required parameter 'promotionRequest' is not null or undefined
|
|
3562
3562
|
(0, common_1.assertParamExists)('createPromotion', 'promotionRequest', promotionRequest);
|
|
3563
|
-
const localVarPath = `/promotions`;
|
|
3563
|
+
const localVarPath = `/admins/promotions`;
|
|
3564
3564
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3565
3565
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3566
3566
|
let baseOptions;
|
|
@@ -3593,7 +3593,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3593
3593
|
deletePromotion: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3594
3594
|
// verify required parameter 'id' is not null or undefined
|
|
3595
3595
|
(0, common_1.assertParamExists)('deletePromotion', 'id', id);
|
|
3596
|
-
const localVarPath = `/promotions/{id}`
|
|
3596
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
3597
3597
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3598
3598
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3599
3599
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3625,7 +3625,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3625
3625
|
getPromotion: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3626
3626
|
// verify required parameter 'id' is not null or undefined
|
|
3627
3627
|
(0, common_1.assertParamExists)('getPromotion', 'id', id);
|
|
3628
|
-
const localVarPath = `/promotions/{id}`
|
|
3628
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
3629
3629
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3630
3630
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3631
3631
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3695,7 +3695,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3695
3695
|
* @throws {RequiredError}
|
|
3696
3696
|
*/
|
|
3697
3697
|
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3698
|
-
const localVarPath = `/promotions`;
|
|
3698
|
+
const localVarPath = `/admins/promotions`;
|
|
3699
3699
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3700
3700
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3701
3701
|
let baseOptions;
|
|
@@ -3812,7 +3812,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3812
3812
|
(0, common_1.assertParamExists)('updatePromotion', 'id', id);
|
|
3813
3813
|
// verify required parameter 'updatePromotionRequest' is not null or undefined
|
|
3814
3814
|
(0, common_1.assertParamExists)('updatePromotion', 'updatePromotionRequest', updatePromotionRequest);
|
|
3815
|
-
const localVarPath = `/promotions/{id}`
|
|
3815
|
+
const localVarPath = `/admins/promotions/{id}`
|
|
3816
3816
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3817
3817
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3818
3818
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4415,7 +4415,7 @@ const SegmentApiAxiosParamCreator = function (configuration) {
|
|
|
4415
4415
|
* @throws {RequiredError}
|
|
4416
4416
|
*/
|
|
4417
4417
|
createSegment: (createSegmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4418
|
-
const localVarPath = `/segments`;
|
|
4418
|
+
const localVarPath = `/admins/segments`;
|
|
4419
4419
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4420
4420
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4421
4421
|
let baseOptions;
|
|
@@ -4448,7 +4448,7 @@ const SegmentApiAxiosParamCreator = function (configuration) {
|
|
|
4448
4448
|
getSegmentById: (segmentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4449
4449
|
// verify required parameter 'segmentId' is not null or undefined
|
|
4450
4450
|
(0, common_1.assertParamExists)('getSegmentById', 'segmentId', segmentId);
|
|
4451
|
-
const localVarPath = `/segments/{segmentId}`
|
|
4451
|
+
const localVarPath = `/admins/segments/{segmentId}`
|
|
4452
4452
|
.replace(`{${"segmentId"}}`, encodeURIComponent(String(segmentId)));
|
|
4453
4453
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4454
4454
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4479,7 +4479,7 @@ const SegmentApiAxiosParamCreator = function (configuration) {
|
|
|
4479
4479
|
* @throws {RequiredError}
|
|
4480
4480
|
*/
|
|
4481
4481
|
listSegments: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4482
|
-
const localVarPath = `/segments`;
|
|
4482
|
+
const localVarPath = `/admins/segments`;
|
|
4483
4483
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4484
4484
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4485
4485
|
let baseOptions;
|
|
@@ -4657,7 +4657,7 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4657
4657
|
* @throws {RequiredError}
|
|
4658
4658
|
*/
|
|
4659
4659
|
createTag: (createTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4660
|
-
const localVarPath = `/tags`;
|
|
4660
|
+
const localVarPath = `/admins/tags`;
|
|
4661
4661
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4662
4662
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4663
4663
|
let baseOptions;
|
|
@@ -4690,7 +4690,7 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4690
4690
|
deleteTag: (key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4691
4691
|
// verify required parameter 'key' is not null or undefined
|
|
4692
4692
|
(0, common_1.assertParamExists)('deleteTag', 'key', key);
|
|
4693
|
-
const localVarPath = `/tags/{key}`
|
|
4693
|
+
const localVarPath = `/admins/tags/{key}`
|
|
4694
4694
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
4695
4695
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4696
4696
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4722,7 +4722,7 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4722
4722
|
getTagByKey: (key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4723
4723
|
// verify required parameter 'key' is not null or undefined
|
|
4724
4724
|
(0, common_1.assertParamExists)('getTagByKey', 'key', key);
|
|
4725
|
-
const localVarPath = `/tags/{key}`
|
|
4725
|
+
const localVarPath = `/admins/tags/{key}`
|
|
4726
4726
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
4727
4727
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4728
4728
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4752,7 +4752,7 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4752
4752
|
* @throws {RequiredError}
|
|
4753
4753
|
*/
|
|
4754
4754
|
listTags: (tagKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4755
|
-
const localVarPath = `/tags`;
|
|
4755
|
+
const localVarPath = `/admins/tags`;
|
|
4756
4756
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4757
4757
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4758
4758
|
let baseOptions;
|
|
@@ -4787,7 +4787,7 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
4787
4787
|
updateTag: (key, createTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4788
4788
|
// verify required parameter 'key' is not null or undefined
|
|
4789
4789
|
(0, common_1.assertParamExists)('updateTag', 'key', key);
|
|
4790
|
-
const localVarPath = `/tags/{key}`
|
|
4790
|
+
const localVarPath = `/admins/tags/{key}`
|
|
4791
4791
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
4792
4792
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4793
4793
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5031,7 +5031,7 @@ const TransactionApiAxiosParamCreator = function (configuration) {
|
|
|
5031
5031
|
* @throws {RequiredError}
|
|
5032
5032
|
*/
|
|
5033
5033
|
listTransactions: (paginationToken, clientID, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5034
|
-
const localVarPath = `/transactions`;
|
|
5034
|
+
const localVarPath = `/admins/transactions`;
|
|
5035
5035
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5036
5036
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5037
5037
|
let baseOptions;
|
|
@@ -5143,7 +5143,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
5143
5143
|
getUserByID: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5144
5144
|
// verify required parameter 'id' is not null or undefined
|
|
5145
5145
|
(0, common_1.assertParamExists)('getUserByID', 'id', id);
|
|
5146
|
-
const localVarPath = `/users/{id}`
|
|
5146
|
+
const localVarPath = `/admins/users/{id}`
|
|
5147
5147
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5148
5148
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5149
5149
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5175,7 +5175,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
5175
5175
|
getUserSubordinates: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5176
5176
|
// verify required parameter 'id' is not null or undefined
|
|
5177
5177
|
(0, common_1.assertParamExists)('getUserSubordinates', 'id', id);
|
|
5178
|
-
const localVarPath = `/
|
|
5178
|
+
const localVarPath = `/admins/users/{id}/team`
|
|
5179
5179
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5180
5180
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5181
5181
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5210,7 +5210,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
5210
5210
|
* @throws {RequiredError}
|
|
5211
5211
|
*/
|
|
5212
5212
|
listUsers: (nextToken, role, search, clientID, userIds, source, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5213
|
-
const localVarPath = `/users`;
|
|
5213
|
+
const localVarPath = `/admins/users`;
|
|
5214
5214
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5215
5215
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5216
5216
|
let baseOptions;
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -3928,8 +3928,8 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3928
3928
|
*/
|
|
3929
3929
|
approveProduct: (id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3930
3930
|
/**
|
|
3931
|
-
*
|
|
3932
|
-
* @summary
|
|
3931
|
+
* Create multiple products
|
|
3932
|
+
* @summary Create multiple products
|
|
3933
3933
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
3934
3934
|
* @param {*} [options] Override http request option.
|
|
3935
3935
|
* @throws {RequiredError}
|
|
@@ -4032,8 +4032,8 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
4032
4032
|
*/
|
|
4033
4033
|
approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestApprovalResponse>>;
|
|
4034
4034
|
/**
|
|
4035
|
-
*
|
|
4036
|
-
* @summary
|
|
4035
|
+
* Create multiple products
|
|
4036
|
+
* @summary Create multiple products
|
|
4037
4037
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
4038
4038
|
* @param {*} [options] Override http request option.
|
|
4039
4039
|
* @throws {RequiredError}
|
|
@@ -4136,8 +4136,8 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
4136
4136
|
*/
|
|
4137
4137
|
approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: any): AxiosPromise<ProductRequestApprovalResponse>;
|
|
4138
4138
|
/**
|
|
4139
|
-
*
|
|
4140
|
-
* @summary
|
|
4139
|
+
* Create multiple products
|
|
4140
|
+
* @summary Create multiple products
|
|
4141
4141
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
4142
4142
|
* @param {*} [options] Override http request option.
|
|
4143
4143
|
* @throws {RequiredError}
|
|
@@ -4243,8 +4243,8 @@ export declare class ProductApi extends BaseAPI {
|
|
|
4243
4243
|
*/
|
|
4244
4244
|
approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestApprovalResponse, any>>;
|
|
4245
4245
|
/**
|
|
4246
|
-
*
|
|
4247
|
-
* @summary
|
|
4246
|
+
* Create multiple products
|
|
4247
|
+
* @summary Create multiple products
|
|
4248
4248
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
4249
4249
|
* @param {*} [options] Override http request option.
|
|
4250
4250
|
* @throws {RequiredError}
|