@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.mjs
CHANGED
|
@@ -415,6 +415,20 @@ export const EmailConfigDnsRecordTypeEnum = {
|
|
|
415
415
|
TXT: 'TXT',
|
|
416
416
|
MX: 'MX'
|
|
417
417
|
};
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @export
|
|
421
|
+
* @enum {string}
|
|
422
|
+
*/
|
|
423
|
+
export const FileKeywordEnum = {
|
|
424
|
+
CAROUSEL: 'carousel',
|
|
425
|
+
BANNER: 'banner',
|
|
426
|
+
CONTENT: 'content',
|
|
427
|
+
LOGO: 'logo',
|
|
428
|
+
PRODUCT: 'product',
|
|
429
|
+
ATTACHMENT: 'attachment',
|
|
430
|
+
COMMENT: 'comment'
|
|
431
|
+
};
|
|
418
432
|
/**
|
|
419
433
|
*
|
|
420
434
|
* @export
|
|
@@ -1306,6 +1320,358 @@ export class AuthApi extends BaseAPI {
|
|
|
1306
1320
|
return AuthApiFp(this.configuration).socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1307
1321
|
}
|
|
1308
1322
|
}
|
|
1323
|
+
/**
|
|
1324
|
+
* BasketApi - axios parameter creator
|
|
1325
|
+
* @export
|
|
1326
|
+
*/
|
|
1327
|
+
export const BasketApiAxiosParamCreator = function (configuration) {
|
|
1328
|
+
return {
|
|
1329
|
+
/**
|
|
1330
|
+
*
|
|
1331
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1332
|
+
* @param {string} [basketId]
|
|
1333
|
+
* @param {*} [options] Override http request option.
|
|
1334
|
+
* @throws {RequiredError}
|
|
1335
|
+
*/
|
|
1336
|
+
addProductToBasket: async (iAddProductToBasketRequest, basketId, options = {}) => {
|
|
1337
|
+
// verify required parameter 'iAddProductToBasketRequest' is not null or undefined
|
|
1338
|
+
assertParamExists('addProductToBasket', 'iAddProductToBasketRequest', iAddProductToBasketRequest);
|
|
1339
|
+
const localVarPath = `/api/baskets/add-product`;
|
|
1340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1341
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1342
|
+
let baseOptions;
|
|
1343
|
+
if (configuration) {
|
|
1344
|
+
baseOptions = configuration.baseOptions;
|
|
1345
|
+
}
|
|
1346
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1347
|
+
const localVarHeaderParameter = {};
|
|
1348
|
+
const localVarQueryParameter = {};
|
|
1349
|
+
if (basketId !== undefined) {
|
|
1350
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1351
|
+
}
|
|
1352
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1353
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1355
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1356
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iAddProductToBasketRequest, localVarRequestOptions, configuration);
|
|
1357
|
+
return {
|
|
1358
|
+
url: toPathString(localVarUrlObj),
|
|
1359
|
+
options: localVarRequestOptions,
|
|
1360
|
+
};
|
|
1361
|
+
},
|
|
1362
|
+
/**
|
|
1363
|
+
*
|
|
1364
|
+
* @param {string} itemId
|
|
1365
|
+
* @param {string} [basketId]
|
|
1366
|
+
* @param {*} [options] Override http request option.
|
|
1367
|
+
* @throws {RequiredError}
|
|
1368
|
+
*/
|
|
1369
|
+
deleteProductFromBasket: async (itemId, basketId, options = {}) => {
|
|
1370
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1371
|
+
assertParamExists('deleteProductFromBasket', 'itemId', itemId);
|
|
1372
|
+
const localVarPath = `/api/baskets/delete-product/{item_id}`
|
|
1373
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1374
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1375
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1376
|
+
let baseOptions;
|
|
1377
|
+
if (configuration) {
|
|
1378
|
+
baseOptions = configuration.baseOptions;
|
|
1379
|
+
}
|
|
1380
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1381
|
+
const localVarHeaderParameter = {};
|
|
1382
|
+
const localVarQueryParameter = {};
|
|
1383
|
+
if (basketId !== undefined) {
|
|
1384
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1385
|
+
}
|
|
1386
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1387
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1388
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1389
|
+
return {
|
|
1390
|
+
url: toPathString(localVarUrlObj),
|
|
1391
|
+
options: localVarRequestOptions,
|
|
1392
|
+
};
|
|
1393
|
+
},
|
|
1394
|
+
/**
|
|
1395
|
+
*
|
|
1396
|
+
* @param {string} [id]
|
|
1397
|
+
* @param {*} [options] Override http request option.
|
|
1398
|
+
* @throws {RequiredError}
|
|
1399
|
+
*/
|
|
1400
|
+
getBasket: async (id, options = {}) => {
|
|
1401
|
+
const localVarPath = `/api/baskets/single`;
|
|
1402
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1403
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1404
|
+
let baseOptions;
|
|
1405
|
+
if (configuration) {
|
|
1406
|
+
baseOptions = configuration.baseOptions;
|
|
1407
|
+
}
|
|
1408
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1409
|
+
const localVarHeaderParameter = {};
|
|
1410
|
+
const localVarQueryParameter = {};
|
|
1411
|
+
if (id !== undefined) {
|
|
1412
|
+
localVarQueryParameter['id'] = id;
|
|
1413
|
+
}
|
|
1414
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1415
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1416
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1417
|
+
return {
|
|
1418
|
+
url: toPathString(localVarUrlObj),
|
|
1419
|
+
options: localVarRequestOptions,
|
|
1420
|
+
};
|
|
1421
|
+
},
|
|
1422
|
+
/**
|
|
1423
|
+
*
|
|
1424
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1425
|
+
* @param {*} [options] Override http request option.
|
|
1426
|
+
* @throws {RequiredError}
|
|
1427
|
+
*/
|
|
1428
|
+
mergeBasket: async (iBasketMergeRequest, options = {}) => {
|
|
1429
|
+
// verify required parameter 'iBasketMergeRequest' is not null or undefined
|
|
1430
|
+
assertParamExists('mergeBasket', 'iBasketMergeRequest', iBasketMergeRequest);
|
|
1431
|
+
const localVarPath = `/api/baskets/merge`;
|
|
1432
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1433
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1434
|
+
let baseOptions;
|
|
1435
|
+
if (configuration) {
|
|
1436
|
+
baseOptions = configuration.baseOptions;
|
|
1437
|
+
}
|
|
1438
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1439
|
+
const localVarHeaderParameter = {};
|
|
1440
|
+
const localVarQueryParameter = {};
|
|
1441
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1442
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1443
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1444
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1445
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iBasketMergeRequest, localVarRequestOptions, configuration);
|
|
1446
|
+
return {
|
|
1447
|
+
url: toPathString(localVarUrlObj),
|
|
1448
|
+
options: localVarRequestOptions,
|
|
1449
|
+
};
|
|
1450
|
+
},
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @param {string} itemId
|
|
1454
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1455
|
+
* @param {string} [basketId]
|
|
1456
|
+
* @param {*} [options] Override http request option.
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
*/
|
|
1459
|
+
updateAmount: async (itemId, iBasketUpdateAmountRequest, basketId, options = {}) => {
|
|
1460
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
1461
|
+
assertParamExists('updateAmount', 'itemId', itemId);
|
|
1462
|
+
// verify required parameter 'iBasketUpdateAmountRequest' is not null or undefined
|
|
1463
|
+
assertParamExists('updateAmount', 'iBasketUpdateAmountRequest', iBasketUpdateAmountRequest);
|
|
1464
|
+
const localVarPath = `/api/baskets/update-amount/{item_id}`
|
|
1465
|
+
.replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
|
|
1466
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1467
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1468
|
+
let baseOptions;
|
|
1469
|
+
if (configuration) {
|
|
1470
|
+
baseOptions = configuration.baseOptions;
|
|
1471
|
+
}
|
|
1472
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
1473
|
+
const localVarHeaderParameter = {};
|
|
1474
|
+
const localVarQueryParameter = {};
|
|
1475
|
+
if (basketId !== undefined) {
|
|
1476
|
+
localVarQueryParameter['basket_id'] = basketId;
|
|
1477
|
+
}
|
|
1478
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1479
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1480
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1481
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1482
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iBasketUpdateAmountRequest, localVarRequestOptions, configuration);
|
|
1483
|
+
return {
|
|
1484
|
+
url: toPathString(localVarUrlObj),
|
|
1485
|
+
options: localVarRequestOptions,
|
|
1486
|
+
};
|
|
1487
|
+
},
|
|
1488
|
+
};
|
|
1489
|
+
};
|
|
1490
|
+
/**
|
|
1491
|
+
* BasketApi - functional programming interface
|
|
1492
|
+
* @export
|
|
1493
|
+
*/
|
|
1494
|
+
export const BasketApiFp = function (configuration) {
|
|
1495
|
+
const localVarAxiosParamCreator = BasketApiAxiosParamCreator(configuration);
|
|
1496
|
+
return {
|
|
1497
|
+
/**
|
|
1498
|
+
*
|
|
1499
|
+
* @param {IAddProductToBasketRequest} iAddProductToBasketRequest
|
|
1500
|
+
* @param {string} [basketId]
|
|
1501
|
+
* @param {*} [options] Override http request option.
|
|
1502
|
+
* @throws {RequiredError}
|
|
1503
|
+
*/
|
|
1504
|
+
async addProductToBasket(iAddProductToBasketRequest, basketId, options) {
|
|
1505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addProductToBasket(iAddProductToBasketRequest, basketId, options);
|
|
1506
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1507
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.addProductToBasket']?.[localVarOperationServerIndex]?.url;
|
|
1508
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1509
|
+
},
|
|
1510
|
+
/**
|
|
1511
|
+
*
|
|
1512
|
+
* @param {string} itemId
|
|
1513
|
+
* @param {string} [basketId]
|
|
1514
|
+
* @param {*} [options] Override http request option.
|
|
1515
|
+
* @throws {RequiredError}
|
|
1516
|
+
*/
|
|
1517
|
+
async deleteProductFromBasket(itemId, basketId, options) {
|
|
1518
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFromBasket(itemId, basketId, options);
|
|
1519
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1520
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.deleteProductFromBasket']?.[localVarOperationServerIndex]?.url;
|
|
1521
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1522
|
+
},
|
|
1523
|
+
/**
|
|
1524
|
+
*
|
|
1525
|
+
* @param {string} [id]
|
|
1526
|
+
* @param {*} [options] Override http request option.
|
|
1527
|
+
* @throws {RequiredError}
|
|
1528
|
+
*/
|
|
1529
|
+
async getBasket(id, options) {
|
|
1530
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
|
|
1531
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1532
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1533
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1534
|
+
},
|
|
1535
|
+
/**
|
|
1536
|
+
*
|
|
1537
|
+
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
1538
|
+
* @param {*} [options] Override http request option.
|
|
1539
|
+
* @throws {RequiredError}
|
|
1540
|
+
*/
|
|
1541
|
+
async mergeBasket(iBasketMergeRequest, options) {
|
|
1542
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mergeBasket(iBasketMergeRequest, options);
|
|
1543
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1544
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.mergeBasket']?.[localVarOperationServerIndex]?.url;
|
|
1545
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1546
|
+
},
|
|
1547
|
+
/**
|
|
1548
|
+
*
|
|
1549
|
+
* @param {string} itemId
|
|
1550
|
+
* @param {IBasketUpdateAmountRequest} iBasketUpdateAmountRequest
|
|
1551
|
+
* @param {string} [basketId]
|
|
1552
|
+
* @param {*} [options] Override http request option.
|
|
1553
|
+
* @throws {RequiredError}
|
|
1554
|
+
*/
|
|
1555
|
+
async updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options) {
|
|
1556
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmount(itemId, iBasketUpdateAmountRequest, basketId, options);
|
|
1557
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1558
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.updateAmount']?.[localVarOperationServerIndex]?.url;
|
|
1559
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1560
|
+
},
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
/**
|
|
1564
|
+
* BasketApi - factory interface
|
|
1565
|
+
* @export
|
|
1566
|
+
*/
|
|
1567
|
+
export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
1568
|
+
const localVarFp = BasketApiFp(configuration);
|
|
1569
|
+
return {
|
|
1570
|
+
/**
|
|
1571
|
+
*
|
|
1572
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1573
|
+
* @param {*} [options] Override http request option.
|
|
1574
|
+
* @throws {RequiredError}
|
|
1575
|
+
*/
|
|
1576
|
+
addProductToBasket(requestParameters, options) {
|
|
1577
|
+
return localVarFp.addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1578
|
+
},
|
|
1579
|
+
/**
|
|
1580
|
+
*
|
|
1581
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1582
|
+
* @param {*} [options] Override http request option.
|
|
1583
|
+
* @throws {RequiredError}
|
|
1584
|
+
*/
|
|
1585
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1586
|
+
return localVarFp.deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1587
|
+
},
|
|
1588
|
+
/**
|
|
1589
|
+
*
|
|
1590
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1591
|
+
* @param {*} [options] Override http request option.
|
|
1592
|
+
* @throws {RequiredError}
|
|
1593
|
+
*/
|
|
1594
|
+
getBasket(requestParameters = {}, options) {
|
|
1595
|
+
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1596
|
+
},
|
|
1597
|
+
/**
|
|
1598
|
+
*
|
|
1599
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1600
|
+
* @param {*} [options] Override http request option.
|
|
1601
|
+
* @throws {RequiredError}
|
|
1602
|
+
*/
|
|
1603
|
+
mergeBasket(requestParameters, options) {
|
|
1604
|
+
return localVarFp.mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(axios, basePath));
|
|
1605
|
+
},
|
|
1606
|
+
/**
|
|
1607
|
+
*
|
|
1608
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1609
|
+
* @param {*} [options] Override http request option.
|
|
1610
|
+
* @throws {RequiredError}
|
|
1611
|
+
*/
|
|
1612
|
+
updateAmount(requestParameters, options) {
|
|
1613
|
+
return localVarFp.updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(axios, basePath));
|
|
1614
|
+
},
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
/**
|
|
1618
|
+
* BasketApi - object-oriented interface
|
|
1619
|
+
* @export
|
|
1620
|
+
* @class BasketApi
|
|
1621
|
+
* @extends {BaseAPI}
|
|
1622
|
+
*/
|
|
1623
|
+
export class BasketApi extends BaseAPI {
|
|
1624
|
+
/**
|
|
1625
|
+
*
|
|
1626
|
+
* @param {BasketApiAddProductToBasketRequest} requestParameters Request parameters.
|
|
1627
|
+
* @param {*} [options] Override http request option.
|
|
1628
|
+
* @throws {RequiredError}
|
|
1629
|
+
* @memberof BasketApi
|
|
1630
|
+
*/
|
|
1631
|
+
addProductToBasket(requestParameters, options) {
|
|
1632
|
+
return BasketApiFp(this.configuration).addProductToBasket(requestParameters.iAddProductToBasketRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
*
|
|
1636
|
+
* @param {BasketApiDeleteProductFromBasketRequest} requestParameters Request parameters.
|
|
1637
|
+
* @param {*} [options] Override http request option.
|
|
1638
|
+
* @throws {RequiredError}
|
|
1639
|
+
* @memberof BasketApi
|
|
1640
|
+
*/
|
|
1641
|
+
deleteProductFromBasket(requestParameters, options) {
|
|
1642
|
+
return BasketApiFp(this.configuration).deleteProductFromBasket(requestParameters.itemId, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
*
|
|
1646
|
+
* @param {BasketApiGetBasketRequest} requestParameters Request parameters.
|
|
1647
|
+
* @param {*} [options] Override http request option.
|
|
1648
|
+
* @throws {RequiredError}
|
|
1649
|
+
* @memberof BasketApi
|
|
1650
|
+
*/
|
|
1651
|
+
getBasket(requestParameters = {}, options) {
|
|
1652
|
+
return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
*
|
|
1656
|
+
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
1657
|
+
* @param {*} [options] Override http request option.
|
|
1658
|
+
* @throws {RequiredError}
|
|
1659
|
+
* @memberof BasketApi
|
|
1660
|
+
*/
|
|
1661
|
+
mergeBasket(requestParameters, options) {
|
|
1662
|
+
return BasketApiFp(this.configuration).mergeBasket(requestParameters.iBasketMergeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1663
|
+
}
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @param {BasketApiUpdateAmountRequest} requestParameters Request parameters.
|
|
1667
|
+
* @param {*} [options] Override http request option.
|
|
1668
|
+
* @throws {RequiredError}
|
|
1669
|
+
* @memberof BasketApi
|
|
1670
|
+
*/
|
|
1671
|
+
updateAmount(requestParameters, options) {
|
|
1672
|
+
return BasketApiFp(this.configuration).updateAmount(requestParameters.itemId, requestParameters.iBasketUpdateAmountRequest, requestParameters.basketId, options).then((request) => request(this.axios, this.basePath));
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1309
1675
|
/**
|
|
1310
1676
|
* BrandApi - axios parameter creator
|
|
1311
1677
|
* @export
|
|
@@ -4284,13 +4650,19 @@ export const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4284
4650
|
},
|
|
4285
4651
|
/**
|
|
4286
4652
|
*
|
|
4653
|
+
* @param {FileKeywordEnum} keyword
|
|
4287
4654
|
* @param {File} file
|
|
4655
|
+
* @param {string} domain
|
|
4288
4656
|
* @param {*} [options] Override http request option.
|
|
4289
4657
|
* @throws {RequiredError}
|
|
4290
4658
|
*/
|
|
4291
|
-
uploadFile: async (file, options = {}) => {
|
|
4659
|
+
uploadFile: async (keyword, file, domain, options = {}) => {
|
|
4660
|
+
// verify required parameter 'keyword' is not null or undefined
|
|
4661
|
+
assertParamExists('uploadFile', 'keyword', keyword);
|
|
4292
4662
|
// verify required parameter 'file' is not null or undefined
|
|
4293
4663
|
assertParamExists('uploadFile', 'file', file);
|
|
4664
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4665
|
+
assertParamExists('uploadFile', 'domain', domain);
|
|
4294
4666
|
const localVarPath = `/api/files/upload`;
|
|
4295
4667
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4296
4668
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4302,9 +4674,15 @@ export const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4302
4674
|
const localVarHeaderParameter = {};
|
|
4303
4675
|
const localVarQueryParameter = {};
|
|
4304
4676
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
4677
|
+
if (keyword !== undefined) {
|
|
4678
|
+
localVarQueryParameter['keyword'] = keyword;
|
|
4679
|
+
}
|
|
4305
4680
|
if (file !== undefined) {
|
|
4306
4681
|
localVarFormParams.append('file', file);
|
|
4307
4682
|
}
|
|
4683
|
+
if (domain !== undefined) {
|
|
4684
|
+
localVarFormParams.append('domain', domain);
|
|
4685
|
+
}
|
|
4308
4686
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
4309
4687
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4310
4688
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -4386,12 +4764,14 @@ export const FileApiFp = function (configuration) {
|
|
|
4386
4764
|
},
|
|
4387
4765
|
/**
|
|
4388
4766
|
*
|
|
4767
|
+
* @param {FileKeywordEnum} keyword
|
|
4389
4768
|
* @param {File} file
|
|
4769
|
+
* @param {string} domain
|
|
4390
4770
|
* @param {*} [options] Override http request option.
|
|
4391
4771
|
* @throws {RequiredError}
|
|
4392
4772
|
*/
|
|
4393
|
-
async uploadFile(file, options) {
|
|
4394
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(file, options);
|
|
4773
|
+
async uploadFile(keyword, file, domain, options) {
|
|
4774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(keyword, file, domain, options);
|
|
4395
4775
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4396
4776
|
const localVarOperationServerBasePath = operationServerMap['FileApi.uploadFile']?.[localVarOperationServerIndex]?.url;
|
|
4397
4777
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4448,7 +4828,7 @@ export const FileApiFactory = function (configuration, basePath, axios) {
|
|
|
4448
4828
|
* @throws {RequiredError}
|
|
4449
4829
|
*/
|
|
4450
4830
|
uploadFile(requestParameters, options) {
|
|
4451
|
-
return localVarFp.uploadFile(requestParameters.file, options).then((request) => request(axios, basePath));
|
|
4831
|
+
return localVarFp.uploadFile(requestParameters.keyword, requestParameters.file, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
4452
4832
|
},
|
|
4453
4833
|
};
|
|
4454
4834
|
};
|
|
@@ -4507,7 +4887,7 @@ export class FileApi extends BaseAPI {
|
|
|
4507
4887
|
* @memberof FileApi
|
|
4508
4888
|
*/
|
|
4509
4889
|
uploadFile(requestParameters, options) {
|
|
4510
|
-
return FileApiFp(this.configuration).uploadFile(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
4890
|
+
return FileApiFp(this.configuration).uploadFile(requestParameters.keyword, requestParameters.file, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
4511
4891
|
}
|
|
4512
4892
|
}
|
|
4513
4893
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "api-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"bugs": {
|
|
37
37
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "9957aca5c009e2a0b88ff3ecbe486882e83156e6"
|
|
40
40
|
}
|