@infisale-client/api 1.1.5 → 1.1.7
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 +1 -1
- package/dist/api/api.d.ts +493 -71
- package/dist/api/api.js +391 -7
- package/dist/api/api.mjs +385 -5
- package/package.json +2 -2
package/dist/api/api.js
CHANGED
|
@@ -16,8 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = void 0;
|
|
19
|
+
exports.CategoryApiAxiosParamCreator = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaginationLimitEnum = exports.PageTypeEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.GridTypeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
|
|
20
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = void 0;
|
|
21
21
|
const axios_1 = __importDefault(require("axios"));
|
|
22
22
|
// Some imports not used depending on template conditions
|
|
23
23
|
// @ts-ignore
|
|
@@ -425,6 +425,20 @@ exports.EmailConfigDnsRecordTypeEnum = {
|
|
|
425
425
|
TXT: 'TXT',
|
|
426
426
|
MX: 'MX'
|
|
427
427
|
};
|
|
428
|
+
/**
|
|
429
|
+
*
|
|
430
|
+
* @export
|
|
431
|
+
* @enum {string}
|
|
432
|
+
*/
|
|
433
|
+
exports.FileKeywordEnum = {
|
|
434
|
+
CAROUSEL: 'carousel',
|
|
435
|
+
BANNER: 'banner',
|
|
436
|
+
CONTENT: 'content',
|
|
437
|
+
LOGO: 'logo',
|
|
438
|
+
PRODUCT: 'product',
|
|
439
|
+
ATTACHMENT: 'attachment',
|
|
440
|
+
COMMENT: 'comment'
|
|
441
|
+
};
|
|
428
442
|
/**
|
|
429
443
|
*
|
|
430
444
|
* @export
|
|
@@ -1324,6 +1338,362 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1324
1338
|
}
|
|
1325
1339
|
}
|
|
1326
1340
|
exports.AuthApi = AuthApi;
|
|
1341
|
+
/**
|
|
1342
|
+
* BasketApi - axios parameter creator
|
|
1343
|
+
* @export
|
|
1344
|
+
*/
|
|
1345
|
+
const BasketApiAxiosParamCreator = function (configuration) {
|
|
1346
|
+
return {
|
|
1347
|
+
/**
|
|
1348
|
+
*
|
|
1349
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1350
|
+
* @param {string} [basketId]
|
|
1351
|
+
* @param {*} [options] Override http request option.
|
|
1352
|
+
* @throws {RequiredError}
|
|
1353
|
+
*/
|
|
1354
|
+
addProductToBasket: async (iAddProductToBasketRequest, basketId, options = {}) => {
|
|
1355
|
+
// verify required parameter 'iAddProductToBasketRequest' is not null or undefined
|
|
1356
|
+
(0, common_1.assertParamExists)('addProductToBasket', 'iAddProductToBasketRequest', iAddProductToBasketRequest);
|
|
1357
|
+
const localVarPath = `/api/baskets/add-product`;
|
|
1358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1359
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1360
|
+
let baseOptions;
|
|
1361
|
+
if (configuration) {
|
|
1362
|
+
baseOptions = configuration.baseOptions;
|
|
1363
|
+
}
|
|
1364
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1365
|
+
const localVarHeaderParameter = {};
|
|
1366
|
+
const localVarQueryParameter = {};
|
|
1367
|
+
if (basketId !== undefined) {
|
|
1368
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1369
|
+
}
|
|
1370
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1371
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1372
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1373
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1374
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iAddProductToBasketRequest, localVarRequestOptions, configuration);
|
|
1375
|
+
return {
|
|
1376
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1377
|
+
options: localVarRequestOptions,
|
|
1378
|
+
};
|
|
1379
|
+
},
|
|
1380
|
+
/**
|
|
1381
|
+
*
|
|
1382
|
+
* @param {string} itemId
|
|
1383
|
+
* @param {string} [basketId]
|
|
1384
|
+
* @param {*} [options] Override http request option.
|
|
1385
|
+
* @throws {RequiredError}
|
|
1386
|
+
*/
|
|
1387
|
+
deleteProductFromBasket: async (itemId, basketId, options = {}) => {
|
|
1388
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1389
|
+
(0, common_1.assertParamExists)('deleteProductFromBasket', 'itemId', itemId);
|
|
1390
|
+
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1391
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1393
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1394
|
+
let baseOptions;
|
|
1395
|
+
if (configuration) {
|
|
1396
|
+
baseOptions = configuration.baseOptions;
|
|
1397
|
+
}
|
|
1398
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1399
|
+
const localVarHeaderParameter = {};
|
|
1400
|
+
const localVarQueryParameter = {};
|
|
1401
|
+
if (basketId !== undefined) {
|
|
1402
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1403
|
+
}
|
|
1404
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1405
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1406
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1407
|
+
return {
|
|
1408
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1409
|
+
options: localVarRequestOptions,
|
|
1410
|
+
};
|
|
1411
|
+
},
|
|
1412
|
+
/**
|
|
1413
|
+
*
|
|
1414
|
+
* @param {string} [id]
|
|
1415
|
+
* @param {*} [options] Override http request option.
|
|
1416
|
+
* @throws {RequiredError}
|
|
1417
|
+
*/
|
|
1418
|
+
getBasket: async (id, options = {}) => {
|
|
1419
|
+
const localVarPath = `/api/baskets/single`;
|
|
1420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1421
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1422
|
+
let baseOptions;
|
|
1423
|
+
if (configuration) {
|
|
1424
|
+
baseOptions = configuration.baseOptions;
|
|
1425
|
+
}
|
|
1426
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1427
|
+
const localVarHeaderParameter = {};
|
|
1428
|
+
const localVarQueryParameter = {};
|
|
1429
|
+
if (id !== undefined) {
|
|
1430
|
+
localVarQueryParameter['id'] = id;
|
|
1431
|
+
}
|
|
1432
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1433
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1434
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1435
|
+
return {
|
|
1436
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1437
|
+
options: localVarRequestOptions,
|
|
1438
|
+
};
|
|
1439
|
+
},
|
|
1440
|
+
/**
|
|
1441
|
+
*
|
|
1442
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1443
|
+
* @param {*} [options] Override http request option.
|
|
1444
|
+
* @throws {RequiredError}
|
|
1445
|
+
*/
|
|
1446
|
+
mergeBasket: async (iBasketMergeRequest, options = {}) => {
|
|
1447
|
+
// verify required parameter 'iBasketMergeRequest' is not null or undefined
|
|
1448
|
+
(0, common_1.assertParamExists)('mergeBasket', 'iBasketMergeRequest', iBasketMergeRequest);
|
|
1449
|
+
const localVarPath = `/api/baskets/merge`;
|
|
1450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1451
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1452
|
+
let baseOptions;
|
|
1453
|
+
if (configuration) {
|
|
1454
|
+
baseOptions = configuration.baseOptions;
|
|
1455
|
+
}
|
|
1456
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1457
|
+
const localVarHeaderParameter = {};
|
|
1458
|
+
const localVarQueryParameter = {};
|
|
1459
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1460
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1461
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1462
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1463
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iBasketMergeRequest, localVarRequestOptions, configuration);
|
|
1464
|
+
return {
|
|
1465
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1466
|
+
options: localVarRequestOptions,
|
|
1467
|
+
};
|
|
1468
|
+
},
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @param {string} itemId
|
|
1472
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1473
|
+
* @param {string} [basketId]
|
|
1474
|
+
* @param {*} [options] Override http request option.
|
|
1475
|
+
* @throws {RequiredError}
|
|
1476
|
+
*/
|
|
1477
|
+
updateAmount: async (itemId, iBasketUpdateAmountRequest, basketId, options = {}) => {
|
|
1478
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1479
|
+
(0, common_1.assertParamExists)('updateAmount', 'itemId', itemId);
|
|
1480
|
+
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1481
|
+
(0, common_1.assertParamExists)('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1482
|
+
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1483
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1484
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1485
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1486
|
+
let baseOptions;
|
|
1487
|
+
if (configuration) {
|
|
1488
|
+
baseOptions = configuration.baseOptions;
|
|
1489
|
+
}
|
|
1490
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
1491
|
+
const localVarHeaderParameter = {};
|
|
1492
|
+
const localVarQueryParameter = {};
|
|
1493
|
+
if (basketId !== undefined) {
|
|
1494
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1495
|
+
}
|
|
1496
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1497
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1498
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1499
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1500
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iBasketUpdateAmountRequest, localVarRequestOptions, configuration);
|
|
1501
|
+
return {
|
|
1502
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1503
|
+
options: localVarRequestOptions,
|
|
1504
|
+
};
|
|
1505
|
+
},
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
exports.BasketApiAxiosParamCreator = BasketApiAxiosParamCreator;
|
|
1509
|
+
/**
|
|
1510
|
+
* BasketApi - functional programming interface
|
|
1511
|
+
* @export
|
|
1512
|
+
*/
|
|
1513
|
+
const BasketApiFp = function (configuration) {
|
|
1514
|
+
const localVarAxiosParamCreator = (0, exports.BasketApiAxiosParamCreator)(configuration);
|
|
1515
|
+
return {
|
|
1516
|
+
/**
|
|
1517
|
+
*
|
|
1518
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1519
|
+
* @param {string} [basketId]
|
|
1520
|
+
* @param {*} [options] Override http request option.
|
|
1521
|
+
* @throws {RequiredError}
|
|
1522
|
+
*/
|
|
1523
|
+
async addProductToBasket(iAddProductToBasketRequest, basketId, options) {
|
|
1524
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addProductToBasket(iAddProductToBasketRequest, basketId, options);
|
|
1525
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1526
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.addProductToBasket']?.[localVarOperationServerIndex]?.url;
|
|
1527
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1528
|
+
},
|
|
1529
|
+
/**
|
|
1530
|
+
*
|
|
1531
|
+
* @param {string} itemId
|
|
1532
|
+
* @param {string} [basketId]
|
|
1533
|
+
* @param {*} [options] Override http request option.
|
|
1534
|
+
* @throws {RequiredError}
|
|
1535
|
+
*/
|
|
1536
|
+
async deleteProductFromBasket(itemId, basketId, options) {
|
|
1537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, basketId, options);
|
|
1538
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1539
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1540
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1541
|
+
},
|
|
1542
|
+
/**
|
|
1543
|
+
*
|
|
1544
|
+
* @param {string} [id]
|
|
1545
|
+
* @param {*} [options] Override http request option.
|
|
1546
|
+
* @throws {RequiredError}
|
|
1547
|
+
*/
|
|
1548
|
+
async getBasket(id, options) {
|
|
1549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
|
|
1550
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1551
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1552
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1553
|
+
},
|
|
1554
|
+
/**
|
|
1555
|
+
*
|
|
1556
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1557
|
+
* @param {*} [options] Override http request option.
|
|
1558
|
+
* @throws {RequiredError}
|
|
1559
|
+
*/
|
|
1560
|
+
async mergeBasket(iBasketMergeRequest, options) {
|
|
1561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mergeBasket(iBasketMergeRequest, options);
|
|
1562
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1563
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.mergeBasket']?.[localVarOperationServerIndex]?.url;
|
|
1564
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1565
|
+
},
|
|
1566
|
+
/**
|
|
1567
|
+
*
|
|
1568
|
+
* @param {string} itemId
|
|
1569
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1570
|
+
* @param {string} [basketId]
|
|
1571
|
+
* @param {*} [options] Override http request option.
|
|
1572
|
+
* @throws {RequiredError}
|
|
1573
|
+
*/
|
|
1574
|
+
async updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options) {
|
|
1575
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options);
|
|
1576
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1577
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1578
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1579
|
+
},
|
|
1580
|
+
};
|
|
1581
|
+
};
|
|
1582
|
+
exports.BasketApiFp = BasketApiFp;
|
|
1583
|
+
/**
|
|
1584
|
+
* BasketApi - factory interface
|
|
1585
|
+
* @export
|
|
1586
|
+
*/
|
|
1587
|
+
const BasketApiFactory = function (configuration, basePath, axios) {
|
|
1588
|
+
const localVarFp = (0, exports.BasketApiFp)(configuration);
|
|
1589
|
+
return {
|
|
1590
|
+
/**
|
|
1591
|
+
*
|
|
1592
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1593
|
+
* @param {*} [options] Override http request option.
|
|
1594
|
+
* @throws {RequiredError}
|
|
1595
|
+
*/
|
|
1596
|
+
addProductToBasket(requestParameters, options) {
|
|
1597
|
+
return localVarFp.addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1598
|
+
},
|
|
1599
|
+
/**
|
|
1600
|
+
*
|
|
1601
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1602
|
+
* @param {*} [options] Override http request option.
|
|
1603
|
+
* @throws {RequiredError}
|
|
1604
|
+
*/
|
|
1605
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1606
|
+
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1607
|
+
},
|
|
1608
|
+
/**
|
|
1609
|
+
*
|
|
1610
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1611
|
+
* @param {*} [options] Override http request option.
|
|
1612
|
+
* @throws {RequiredError}
|
|
1613
|
+
*/
|
|
1614
|
+
getBasket(requestParameters = {}, options) {
|
|
1615
|
+
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1616
|
+
},
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1620
|
+
* @param {*} [options] Override http request option.
|
|
1621
|
+
* @throws {RequiredError}
|
|
1622
|
+
*/
|
|
1623
|
+
mergeBasket(requestParameters, options) {
|
|
1624
|
+
return localVarFp.mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(axios, basePath));
|
|
1625
|
+
},
|
|
1626
|
+
/**
|
|
1627
|
+
*
|
|
1628
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1629
|
+
* @param {*} [options] Override http request option.
|
|
1630
|
+
* @throws {RequiredError}
|
|
1631
|
+
*/
|
|
1632
|
+
updateAmount(requestParameters, options) {
|
|
1633
|
+
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1634
|
+
},
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1637
|
+
exports.BasketApiFactory = BasketApiFactory;
|
|
1638
|
+
/**
|
|
1639
|
+
* BasketApi - object-oriented interface
|
|
1640
|
+
* @export
|
|
1641
|
+
* @class BasketApi
|
|
1642
|
+
* @extends {BaseAPI}
|
|
1643
|
+
*/
|
|
1644
|
+
class BasketApi extends base_1.BaseAPI {
|
|
1645
|
+
/**
|
|
1646
|
+
*
|
|
1647
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1648
|
+
* @param {*} [options] Override http request option.
|
|
1649
|
+
* @throws {RequiredError}
|
|
1650
|
+
* @memberof BasketApi
|
|
1651
|
+
*/
|
|
1652
|
+
addProductToBasket(requestParameters, options) {
|
|
1653
|
+
return (0, exports.BasketApiFp)(this.configuration).addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
*
|
|
1657
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1658
|
+
* @param {*} [options] Override http request option.
|
|
1659
|
+
* @throws {RequiredError}
|
|
1660
|
+
* @memberof BasketApi
|
|
1661
|
+
*/
|
|
1662
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1663
|
+
return (0, exports.BasketApiFp)(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
*
|
|
1667
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1668
|
+
* @param {*} [options] Override http request option.
|
|
1669
|
+
* @throws {RequiredError}
|
|
1670
|
+
* @memberof BasketApi
|
|
1671
|
+
*/
|
|
1672
|
+
getBasket(requestParameters = {}, options) {
|
|
1673
|
+
return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1674
|
+
}
|
|
1675
|
+
/**
|
|
1676
|
+
*
|
|
1677
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1678
|
+
* @param {*} [options] Override http request option.
|
|
1679
|
+
* @throws {RequiredError}
|
|
1680
|
+
* @memberof BasketApi
|
|
1681
|
+
*/
|
|
1682
|
+
mergeBasket(requestParameters, options) {
|
|
1683
|
+
return (0, exports.BasketApiFp)(this.configuration).mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
*
|
|
1687
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1688
|
+
* @param {*} [options] Override http request option.
|
|
1689
|
+
* @throws {RequiredError}
|
|
1690
|
+
* @memberof BasketApi
|
|
1691
|
+
*/
|
|
1692
|
+
updateAmount(requestParameters, options) {
|
|
1693
|
+
return (0, exports.BasketApiFp)(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
exports.BasketApi = BasketApi;
|
|
1327
1697
|
/**
|
|
1328
1698
|
* BrandApi - axios parameter creator
|
|
1329
1699
|
* @export
|
|
@@ -4318,13 +4688,19 @@ const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4318
4688
|
},
|
|
4319
4689
|
/**
|
|
4320
4690
|
*
|
|
4691
|
+
* @param {FileKeywordEnum} keyword
|
|
4321
4692
|
* @param {File} file
|
|
4693
|
+
* @param {string} domain
|
|
4322
4694
|
* @param {*} [options] Override http request option.
|
|
4323
4695
|
* @throws {RequiredError}
|
|
4324
4696
|
*/
|
|
4325
|
-
uploadFile: async (file, options = {}) => {
|
|
4697
|
+
uploadFile: async (keyword, file, domain, options = {}) => {
|
|
4698
|
+
// verify required parameter 'keyword' is not null or undefined
|
|
4699
|
+
(0, common_1.assertParamExists)('uploadFile', 'keyword', keyword);
|
|
4326
4700
|
// verify required parameter 'file' is not null or undefined
|
|
4327
4701
|
(0, common_1.assertParamExists)('uploadFile', 'file', file);
|
|
4702
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4703
|
+
(0, common_1.assertParamExists)('uploadFile', 'domain', domain);
|
|
4328
4704
|
const localVarPath = `/api/files/upload`;
|
|
4329
4705
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4330
4706
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4336,9 +4712,15 @@ const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4336
4712
|
const localVarHeaderParameter = {};
|
|
4337
4713
|
const localVarQueryParameter = {};
|
|
4338
4714
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
4715
|
+
if (keyword !== undefined) {
|
|
4716
|
+
localVarQueryParameter['keyword'] = keyword;
|
|
4717
|
+
}
|
|
4339
4718
|
if (file !== undefined) {
|
|
4340
4719
|
localVarFormParams.append('file', file);
|
|
4341
4720
|
}
|
|
4721
|
+
if (domain !== undefined) {
|
|
4722
|
+
localVarFormParams.append('domain', domain);
|
|
4723
|
+
}
|
|
4342
4724
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
4343
4725
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4344
4726
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -4421,12 +4803,14 @@ const FileApiFp = function (configuration) {
|
|
|
4421
4803
|
},
|
|
4422
4804
|
/**
|
|
4423
4805
|
*
|
|
4806
|
+
* @param {FileKeywordEnum} keyword
|
|
4424
4807
|
* @param {File} file
|
|
4808
|
+
* @param {string} domain
|
|
4425
4809
|
* @param {*} [options] Override http request option.
|
|
4426
4810
|
* @throws {RequiredError}
|
|
4427
4811
|
*/
|
|
4428
|
-
async uploadFile(file, options) {
|
|
4429
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(file, options);
|
|
4812
|
+
async uploadFile(keyword, file, domain, options) {
|
|
4813
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(keyword, file, domain, options);
|
|
4430
4814
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4431
4815
|
const localVarOperationServerBasePath = base_1.operationServerMap['FileApi.uploadFile']?.[localVarOperationServerIndex]?.url;
|
|
4432
4816
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4484,7 +4868,7 @@ const FileApiFactory = function (configuration, basePath, axios) {
|
|
|
4484
4868
|
* @throws {RequiredError}
|
|
4485
4869
|
*/
|
|
4486
4870
|
uploadFile(requestParameters, options) {
|
|
4487
|
-
return localVarFp.uploadFile(requestParameters.file, options).then((request) => request(axios, basePath));
|
|
4871
|
+
return localVarFp.uploadFile(requestParameters.keyword, requestParameters.file, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
4488
4872
|
},
|
|
4489
4873
|
};
|
|
4490
4874
|
};
|
|
@@ -4544,7 +4928,7 @@ class FileApi extends base_1.BaseAPI {
|
|
|
4544
4928
|
* @memberof FileApi
|
|
4545
4929
|
*/
|
|
4546
4930
|
uploadFile(requestParameters, options) {
|
|
4547
|
-
return (0, exports.FileApiFp)(this.configuration).uploadFile(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
4931
|
+
return (0, exports.FileApiFp)(this.configuration).uploadFile(requestParameters.keyword, requestParameters.file, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
4548
4932
|
}
|
|
4549
4933
|
}
|
|
4550
4934
|
exports.FileApi = FileApi;
|