@infisale-client/api 1.2.12 → 1.2.13

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
@@ -622,6 +622,19 @@ export interface IAllProductsResponse {
622
622
  */
623
623
  'data': Array<PickIProductIdOrContentsOrCollectionsOrCategory>;
624
624
  }
625
+ /**
626
+ *
627
+ * @export
628
+ * @interface IBasketCountResponse
629
+ */
630
+ export interface IBasketCountResponse {
631
+ /**
632
+ *
633
+ * @type {number}
634
+ * @memberof IBasketCountResponse
635
+ */
636
+ 'productCount': number;
637
+ }
625
638
  /**
626
639
  *
627
640
  * @export
@@ -8420,6 +8433,12 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
8420
8433
  * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8421
8434
  */
8422
8435
  'title': string;
8436
+ /**
8437
+ *
8438
+ * @type {string}
8439
+ * @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
8440
+ */
8441
+ '_id': string;
8423
8442
  }
8424
8443
  /**
8425
8444
  *
@@ -9310,6 +9329,13 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
9310
9329
  * @throws {RequiredError}
9311
9330
  */
9312
9331
  getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9332
+ /**
9333
+ *
9334
+ * @param {string} [id]
9335
+ * @param {*} [options] Override http request option.
9336
+ * @throws {RequiredError}
9337
+ */
9338
+ getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9313
9339
  /**
9314
9340
  *
9315
9341
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -9353,6 +9379,13 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
9353
9379
  * @throws {RequiredError}
9354
9380
  */
9355
9381
  getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
9382
+ /**
9383
+ *
9384
+ * @param {string} [id]
9385
+ * @param {*} [options] Override http request option.
9386
+ * @throws {RequiredError}
9387
+ */
9388
+ getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
9356
9389
  /**
9357
9390
  *
9358
9391
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -9395,6 +9428,13 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
9395
9428
  * @throws {RequiredError}
9396
9429
  */
9397
9430
  getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
9431
+ /**
9432
+ *
9433
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
9434
+ * @param {*} [options] Override http request option.
9435
+ * @throws {RequiredError}
9436
+ */
9437
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
9398
9438
  /**
9399
9439
  *
9400
9440
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -9455,6 +9495,19 @@ export interface BasketApiGetBasketRequest {
9455
9495
  */
9456
9496
  readonly id?: string;
9457
9497
  }
9498
+ /**
9499
+ * Request parameters for getBasketCount operation in BasketApi.
9500
+ * @export
9501
+ * @interface BasketApiGetBasketCountRequest
9502
+ */
9503
+ export interface BasketApiGetBasketCountRequest {
9504
+ /**
9505
+ *
9506
+ * @type {string}
9507
+ * @memberof BasketApiGetBasketCount
9508
+ */
9509
+ readonly id?: string;
9510
+ }
9458
9511
  /**
9459
9512
  * Request parameters for mergeBasket operation in BasketApi.
9460
9513
  * @export
@@ -9518,6 +9571,14 @@ export declare class BasketApi extends BaseAPI {
9518
9571
  * @memberof BasketApi
9519
9572
  */
9520
9573
  getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
9574
+ /**
9575
+ *
9576
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
9577
+ * @param {*} [options] Override http request option.
9578
+ * @throws {RequiredError}
9579
+ * @memberof BasketApi
9580
+ */
9581
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
9521
9582
  /**
9522
9583
  *
9523
9584
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -1503,6 +1503,34 @@ const BasketApiAxiosParamCreator = function (configuration) {
1503
1503
  options: localVarRequestOptions,
1504
1504
  };
1505
1505
  },
1506
+ /**
1507
+ *
1508
+ * @param {string} [id]
1509
+ * @param {*} [options] Override http request option.
1510
+ * @throws {RequiredError}
1511
+ */
1512
+ getBasketCount: async (id, options = {}) => {
1513
+ const localVarPath = `/api/baskets/count`;
1514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1515
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1516
+ let baseOptions;
1517
+ if (configuration) {
1518
+ baseOptions = configuration.baseOptions;
1519
+ }
1520
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1521
+ const localVarHeaderParameter = {};
1522
+ const localVarQueryParameter = {};
1523
+ if (id !== undefined) {
1524
+ localVarQueryParameter['id'] = id;
1525
+ }
1526
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1527
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1528
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1529
+ return {
1530
+ url: (0, common_1.toPathString)(localVarUrlObj),
1531
+ options: localVarRequestOptions,
1532
+ };
1533
+ },
1506
1534
  /**
1507
1535
  *
1508
1536
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1612,6 +1640,18 @@ const BasketApiFp = function (configuration) {
1612
1640
  const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
1613
1641
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1614
1642
  },
1643
+ /**
1644
+ *
1645
+ * @param {string} [id]
1646
+ * @param {*} [options] Override http request option.
1647
+ * @throws {RequiredError}
1648
+ */
1649
+ async getBasketCount(id, options) {
1650
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1651
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1652
+ const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1653
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1654
+ },
1615
1655
  /**
1616
1656
  *
1617
1657
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1674,6 +1714,15 @@ const BasketApiFactory = function (configuration, basePath, axios) {
1674
1714
  getBasket(requestParameters = {}, options) {
1675
1715
  return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
1676
1716
  },
1717
+ /**
1718
+ *
1719
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1720
+ * @param {*} [options] Override http request option.
1721
+ * @throws {RequiredError}
1722
+ */
1723
+ getBasketCount(requestParameters = {}, options) {
1724
+ return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1725
+ },
1677
1726
  /**
1678
1727
  *
1679
1728
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -1732,6 +1781,16 @@ class BasketApi extends base_1.BaseAPI {
1732
1781
  getBasket(requestParameters = {}, options) {
1733
1782
  return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1734
1783
  }
1784
+ /**
1785
+ *
1786
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1787
+ * @param {*} [options] Override http request option.
1788
+ * @throws {RequiredError}
1789
+ * @memberof BasketApi
1790
+ */
1791
+ getBasketCount(requestParameters = {}, options) {
1792
+ return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1793
+ }
1735
1794
  /**
1736
1795
  *
1737
1796
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -1484,6 +1484,34 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1484
1484
  options: localVarRequestOptions,
1485
1485
  };
1486
1486
  },
1487
+ /**
1488
+ *
1489
+ * @param {string} [id]
1490
+ * @param {*} [options] Override http request option.
1491
+ * @throws {RequiredError}
1492
+ */
1493
+ getBasketCount: async (id, options = {}) => {
1494
+ const localVarPath = `/api/baskets/count`;
1495
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1496
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1497
+ let baseOptions;
1498
+ if (configuration) {
1499
+ baseOptions = configuration.baseOptions;
1500
+ }
1501
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1502
+ const localVarHeaderParameter = {};
1503
+ const localVarQueryParameter = {};
1504
+ if (id !== undefined) {
1505
+ localVarQueryParameter['id'] = id;
1506
+ }
1507
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1508
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1509
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1510
+ return {
1511
+ url: toPathString(localVarUrlObj),
1512
+ options: localVarRequestOptions,
1513
+ };
1514
+ },
1487
1515
  /**
1488
1516
  *
1489
1517
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1592,6 +1620,18 @@ export const BasketApiFp = function (configuration) {
1592
1620
  const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
1593
1621
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1594
1622
  },
1623
+ /**
1624
+ *
1625
+ * @param {string} [id]
1626
+ * @param {*} [options] Override http request option.
1627
+ * @throws {RequiredError}
1628
+ */
1629
+ async getBasketCount(id, options) {
1630
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1631
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1632
+ const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1633
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1634
+ },
1595
1635
  /**
1596
1636
  *
1597
1637
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1653,6 +1693,15 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
1653
1693
  getBasket(requestParameters = {}, options) {
1654
1694
  return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
1655
1695
  },
1696
+ /**
1697
+ *
1698
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1699
+ * @param {*} [options] Override http request option.
1700
+ * @throws {RequiredError}
1701
+ */
1702
+ getBasketCount(requestParameters = {}, options) {
1703
+ return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1704
+ },
1656
1705
  /**
1657
1706
  *
1658
1707
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -1710,6 +1759,16 @@ export class BasketApi extends BaseAPI {
1710
1759
  getBasket(requestParameters = {}, options) {
1711
1760
  return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1712
1761
  }
1762
+ /**
1763
+ *
1764
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1765
+ * @param {*} [options] Override http request option.
1766
+ * @throws {RequiredError}
1767
+ * @memberof BasketApi
1768
+ */
1769
+ getBasketCount(requestParameters = {}, options) {
1770
+ return BasketApiFp(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1771
+ }
1713
1772
  /**
1714
1773
  *
1715
1774
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
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",
@@ -37,5 +37,5 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/infisale/infisale-client/issues"
39
39
  },
40
- "gitHead": "b13a3fd0bbcf489c7c0a7fd724cf095702fb4a8b"
40
+ "gitHead": "4129bac48deb35e17c98c2770bda7cf00066ed18"
41
41
  }