@infisale-client/api-client 1.2.12 → 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
@@ -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
  *
@@ -9249,6 +9268,13 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
9249
9268
  * @throws {RequiredError}
9250
9269
  */
9251
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>;
9252
9278
  /**
9253
9279
  *
9254
9280
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -9292,6 +9318,13 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
9292
9318
  * @throws {RequiredError}
9293
9319
  */
9294
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>>;
9295
9328
  /**
9296
9329
  *
9297
9330
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -9334,6 +9367,13 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
9334
9367
  * @throws {RequiredError}
9335
9368
  */
9336
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>;
9337
9377
  /**
9338
9378
  *
9339
9379
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -9394,6 +9434,19 @@ export interface BasketApiGetBasketRequest {
9394
9434
  */
9395
9435
  readonly id?: string;
9396
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
+ }
9397
9450
  /**
9398
9451
  * Request parameters for mergeBasket operation in BasketApi.
9399
9452
  * @export
@@ -9457,6 +9510,14 @@ export declare class BasketApi extends BaseAPI {
9457
9510
  * @memberof BasketApi
9458
9511
  */
9459
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>>;
9460
9521
  /**
9461
9522
  *
9462
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.12",
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": "b13a3fd0bbcf489c7c0a7fd724cf095702fb4a8b"
40
+ "gitHead": "7890e3e706a2341f8375439b80aff6dc560cf84e"
41
41
  }