@infisale-client/api-client 1.2.13 → 1.2.14

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/dist/api/api.d.ts CHANGED
@@ -9268,6 +9268,13 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
9268
9268
  * @throws {RequiredError}
9269
9269
  */
9270
9270
  getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9271
+ /**
9272
+ *
9273
+ * @param {string} [id]
9274
+ * @param {*} [options] Override http request option.
9275
+ * @throws {RequiredError}
9276
+ */
9277
+ getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9271
9278
  /**
9272
9279
  *
9273
9280
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -9311,6 +9318,13 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
9311
9318
  * @throws {RequiredError}
9312
9319
  */
9313
9320
  getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
9321
+ /**
9322
+ *
9323
+ * @param {string} [id]
9324
+ * @param {*} [options] Override http request option.
9325
+ * @throws {RequiredError}
9326
+ */
9327
+ getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
9314
9328
  /**
9315
9329
  *
9316
9330
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -9353,6 +9367,13 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
9353
9367
  * @throws {RequiredError}
9354
9368
  */
9355
9369
  getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
9370
+ /**
9371
+ *
9372
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
9373
+ * @param {*} [options] Override http request option.
9374
+ * @throws {RequiredError}
9375
+ */
9376
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
9356
9377
  /**
9357
9378
  *
9358
9379
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -9413,6 +9434,19 @@ export interface BasketApiGetBasketRequest {
9413
9434
  */
9414
9435
  readonly id?: string;
9415
9436
  }
9437
+ /**
9438
+ * Request parameters for getBasketCount operation in BasketApi.
9439
+ * @export
9440
+ * @interface BasketApiGetBasketCountRequest
9441
+ */
9442
+ export interface BasketApiGetBasketCountRequest {
9443
+ /**
9444
+ *
9445
+ * @type {string}
9446
+ * @memberof BasketApiGetBasketCount
9447
+ */
9448
+ readonly id?: string;
9449
+ }
9416
9450
  /**
9417
9451
  * Request parameters for mergeBasket operation in BasketApi.
9418
9452
  * @export
@@ -9476,6 +9510,14 @@ export declare class BasketApi extends BaseAPI {
9476
9510
  * @memberof BasketApi
9477
9511
  */
9478
9512
  getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
9513
+ /**
9514
+ *
9515
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
9516
+ * @param {*} [options] Override http request option.
9517
+ * @throws {RequiredError}
9518
+ * @memberof BasketApi
9519
+ */
9520
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
9479
9521
  /**
9480
9522
  *
9481
9523
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -1443,6 +1443,34 @@ const BasketApiAxiosParamCreator = function (configuration) {
1443
1443
  options: localVarRequestOptions,
1444
1444
  };
1445
1445
  },
1446
+ /**
1447
+ *
1448
+ * @param {string} [id]
1449
+ * @param {*} [options] Override http request option.
1450
+ * @throws {RequiredError}
1451
+ */
1452
+ getBasketCount: async (id, options = {}) => {
1453
+ const localVarPath = `/api/baskets/count`;
1454
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1455
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1456
+ let baseOptions;
1457
+ if (configuration) {
1458
+ baseOptions = configuration.baseOptions;
1459
+ }
1460
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1461
+ const localVarHeaderParameter = {};
1462
+ const localVarQueryParameter = {};
1463
+ if (id !== undefined) {
1464
+ localVarQueryParameter['id'] = id;
1465
+ }
1466
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1468
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1469
+ return {
1470
+ url: (0, common_1.toPathString)(localVarUrlObj),
1471
+ options: localVarRequestOptions,
1472
+ };
1473
+ },
1446
1474
  /**
1447
1475
  *
1448
1476
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1552,6 +1580,18 @@ const BasketApiFp = function (configuration) {
1552
1580
  const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
1553
1581
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1554
1582
  },
1583
+ /**
1584
+ *
1585
+ * @param {string} [id]
1586
+ * @param {*} [options] Override http request option.
1587
+ * @throws {RequiredError}
1588
+ */
1589
+ async getBasketCount(id, options) {
1590
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1591
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1592
+ const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1593
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1594
+ },
1555
1595
  /**
1556
1596
  *
1557
1597
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1614,6 +1654,15 @@ const BasketApiFactory = function (configuration, basePath, axios) {
1614
1654
  getBasket(requestParameters = {}, options) {
1615
1655
  return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
1616
1656
  },
1657
+ /**
1658
+ *
1659
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1660
+ * @param {*} [options] Override http request option.
1661
+ * @throws {RequiredError}
1662
+ */
1663
+ getBasketCount(requestParameters = {}, options) {
1664
+ return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1665
+ },
1617
1666
  /**
1618
1667
  *
1619
1668
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -1672,6 +1721,16 @@ class BasketApi extends base_1.BaseAPI {
1672
1721
  getBasket(requestParameters = {}, options) {
1673
1722
  return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1674
1723
  }
1724
+ /**
1725
+ *
1726
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1727
+ * @param {*} [options] Override http request option.
1728
+ * @throws {RequiredError}
1729
+ * @memberof BasketApi
1730
+ */
1731
+ getBasketCount(requestParameters = {}, options) {
1732
+ return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1733
+ }
1675
1734
  /**
1676
1735
  *
1677
1736
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -1425,6 +1425,34 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1425
1425
  options: localVarRequestOptions,
1426
1426
  };
1427
1427
  },
1428
+ /**
1429
+ *
1430
+ * @param {string} [id]
1431
+ * @param {*} [options] Override http request option.
1432
+ * @throws {RequiredError}
1433
+ */
1434
+ getBasketCount: async (id, options = {}) => {
1435
+ const localVarPath = `/api/baskets/count`;
1436
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1437
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1438
+ let baseOptions;
1439
+ if (configuration) {
1440
+ baseOptions = configuration.baseOptions;
1441
+ }
1442
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1443
+ const localVarHeaderParameter = {};
1444
+ const localVarQueryParameter = {};
1445
+ if (id !== undefined) {
1446
+ localVarQueryParameter['id'] = id;
1447
+ }
1448
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1449
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1450
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1451
+ return {
1452
+ url: toPathString(localVarUrlObj),
1453
+ options: localVarRequestOptions,
1454
+ };
1455
+ },
1428
1456
  /**
1429
1457
  *
1430
1458
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1533,6 +1561,18 @@ export const BasketApiFp = function (configuration) {
1533
1561
  const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
1534
1562
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1535
1563
  },
1564
+ /**
1565
+ *
1566
+ * @param {string} [id]
1567
+ * @param {*} [options] Override http request option.
1568
+ * @throws {RequiredError}
1569
+ */
1570
+ async getBasketCount(id, options) {
1571
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1572
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1573
+ const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1574
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1575
+ },
1536
1576
  /**
1537
1577
  *
1538
1578
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1594,6 +1634,15 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
1594
1634
  getBasket(requestParameters = {}, options) {
1595
1635
  return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
1596
1636
  },
1637
+ /**
1638
+ *
1639
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1640
+ * @param {*} [options] Override http request option.
1641
+ * @throws {RequiredError}
1642
+ */
1643
+ getBasketCount(requestParameters = {}, options) {
1644
+ return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1645
+ },
1597
1646
  /**
1598
1647
  *
1599
1648
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -1651,6 +1700,16 @@ export class BasketApi extends BaseAPI {
1651
1700
  getBasket(requestParameters = {}, options) {
1652
1701
  return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1653
1702
  }
1703
+ /**
1704
+ *
1705
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1706
+ * @param {*} [options] Override http request option.
1707
+ * @throws {RequiredError}
1708
+ * @memberof BasketApi
1709
+ */
1710
+ getBasketCount(requestParameters = {}, options) {
1711
+ return BasketApiFp(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1712
+ }
1654
1713
  /**
1655
1714
  *
1656
1715
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "description": "api-client-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -37,5 +37,5 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/infisale/infisale-client/issues"
39
39
  },
40
- "gitHead": "4129bac48deb35e17c98c2770bda7cf00066ed18"
40
+ "gitHead": "7890e3e706a2341f8375439b80aff6dc560cf84e"
41
41
  }