@infisale-client/api-client 1.2.13 → 1.2.15

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
@@ -128,7 +128,9 @@ export declare const ComponentTypeEnum: {
128
128
  readonly FOOTER: "footer";
129
129
  readonly EMAIL_SIGNUP: "email-signup";
130
130
  readonly CONTACT_FORM: "contact-form";
131
- readonly BASKET_DETAIL: "basket-detail";
131
+ readonly CART_DETAIL: "cart-detail";
132
+ readonly CHECKOUT_DETAIL: "checkout-detail";
133
+ readonly NOT_FOUND_DETAIL: "not-found-detail";
132
134
  };
133
135
  export type ComponentTypeEnum = typeof ComponentTypeEnum[keyof typeof ComponentTypeEnum];
134
136
  /**
@@ -9268,6 +9270,13 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
9268
9270
  * @throws {RequiredError}
9269
9271
  */
9270
9272
  getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9273
+ /**
9274
+ *
9275
+ * @param {string} [id]
9276
+ * @param {*} [options] Override http request option.
9277
+ * @throws {RequiredError}
9278
+ */
9279
+ getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9271
9280
  /**
9272
9281
  *
9273
9282
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -9311,6 +9320,13 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
9311
9320
  * @throws {RequiredError}
9312
9321
  */
9313
9322
  getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
9323
+ /**
9324
+ *
9325
+ * @param {string} [id]
9326
+ * @param {*} [options] Override http request option.
9327
+ * @throws {RequiredError}
9328
+ */
9329
+ getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
9314
9330
  /**
9315
9331
  *
9316
9332
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -9353,6 +9369,13 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
9353
9369
  * @throws {RequiredError}
9354
9370
  */
9355
9371
  getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
9372
+ /**
9373
+ *
9374
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
9375
+ * @param {*} [options] Override http request option.
9376
+ * @throws {RequiredError}
9377
+ */
9378
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
9356
9379
  /**
9357
9380
  *
9358
9381
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -9413,6 +9436,19 @@ export interface BasketApiGetBasketRequest {
9413
9436
  */
9414
9437
  readonly id?: string;
9415
9438
  }
9439
+ /**
9440
+ * Request parameters for getBasketCount operation in BasketApi.
9441
+ * @export
9442
+ * @interface BasketApiGetBasketCountRequest
9443
+ */
9444
+ export interface BasketApiGetBasketCountRequest {
9445
+ /**
9446
+ *
9447
+ * @type {string}
9448
+ * @memberof BasketApiGetBasketCount
9449
+ */
9450
+ readonly id?: string;
9451
+ }
9416
9452
  /**
9417
9453
  * Request parameters for mergeBasket operation in BasketApi.
9418
9454
  * @export
@@ -9476,6 +9512,14 @@ export declare class BasketApi extends BaseAPI {
9476
9512
  * @memberof BasketApi
9477
9513
  */
9478
9514
  getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
9515
+ /**
9516
+ *
9517
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
9518
+ * @param {*} [options] Override http request option.
9519
+ * @throws {RequiredError}
9520
+ * @memberof BasketApi
9521
+ */
9522
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
9479
9523
  /**
9480
9524
  *
9481
9525
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -132,7 +132,9 @@ exports.ComponentTypeEnum = {
132
132
  FOOTER: 'footer',
133
133
  EMAIL_SIGNUP: 'email-signup',
134
134
  CONTACT_FORM: 'contact-form',
135
- BASKET_DETAIL: 'basket-detail'
135
+ CART_DETAIL: 'cart-detail',
136
+ CHECKOUT_DETAIL: 'checkout-detail',
137
+ NOT_FOUND_DETAIL: 'not-found-detail'
136
138
  };
137
139
  /**
138
140
  *
@@ -1443,6 +1445,34 @@ const BasketApiAxiosParamCreator = function (configuration) {
1443
1445
  options: localVarRequestOptions,
1444
1446
  };
1445
1447
  },
1448
+ /**
1449
+ *
1450
+ * @param {string} [id]
1451
+ * @param {*} [options] Override http request option.
1452
+ * @throws {RequiredError}
1453
+ */
1454
+ getBasketCount: async (id, options = {}) => {
1455
+ const localVarPath = `/api/baskets/count`;
1456
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1457
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1458
+ let baseOptions;
1459
+ if (configuration) {
1460
+ baseOptions = configuration.baseOptions;
1461
+ }
1462
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1463
+ const localVarHeaderParameter = {};
1464
+ const localVarQueryParameter = {};
1465
+ if (id !== undefined) {
1466
+ localVarQueryParameter['id'] = id;
1467
+ }
1468
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1469
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1470
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1471
+ return {
1472
+ url: (0, common_1.toPathString)(localVarUrlObj),
1473
+ options: localVarRequestOptions,
1474
+ };
1475
+ },
1446
1476
  /**
1447
1477
  *
1448
1478
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1552,6 +1582,18 @@ const BasketApiFp = function (configuration) {
1552
1582
  const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
1553
1583
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1554
1584
  },
1585
+ /**
1586
+ *
1587
+ * @param {string} [id]
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ */
1591
+ async getBasketCount(id, options) {
1592
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1593
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1594
+ const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1595
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1596
+ },
1555
1597
  /**
1556
1598
  *
1557
1599
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1614,6 +1656,15 @@ const BasketApiFactory = function (configuration, basePath, axios) {
1614
1656
  getBasket(requestParameters = {}, options) {
1615
1657
  return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
1616
1658
  },
1659
+ /**
1660
+ *
1661
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1662
+ * @param {*} [options] Override http request option.
1663
+ * @throws {RequiredError}
1664
+ */
1665
+ getBasketCount(requestParameters = {}, options) {
1666
+ return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1667
+ },
1617
1668
  /**
1618
1669
  *
1619
1670
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -1672,6 +1723,16 @@ class BasketApi extends base_1.BaseAPI {
1672
1723
  getBasket(requestParameters = {}, options) {
1673
1724
  return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1674
1725
  }
1726
+ /**
1727
+ *
1728
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1729
+ * @param {*} [options] Override http request option.
1730
+ * @throws {RequiredError}
1731
+ * @memberof BasketApi
1732
+ */
1733
+ getBasketCount(requestParameters = {}, options) {
1734
+ return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1735
+ }
1675
1736
  /**
1676
1737
  *
1677
1738
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -122,7 +122,9 @@ export const ComponentTypeEnum = {
122
122
  FOOTER: 'footer',
123
123
  EMAIL_SIGNUP: 'email-signup',
124
124
  CONTACT_FORM: 'contact-form',
125
- BASKET_DETAIL: 'basket-detail'
125
+ CART_DETAIL: 'cart-detail',
126
+ CHECKOUT_DETAIL: 'checkout-detail',
127
+ NOT_FOUND_DETAIL: 'not-found-detail'
126
128
  };
127
129
  /**
128
130
  *
@@ -1425,6 +1427,34 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1425
1427
  options: localVarRequestOptions,
1426
1428
  };
1427
1429
  },
1430
+ /**
1431
+ *
1432
+ * @param {string} [id]
1433
+ * @param {*} [options] Override http request option.
1434
+ * @throws {RequiredError}
1435
+ */
1436
+ getBasketCount: async (id, options = {}) => {
1437
+ const localVarPath = `/api/baskets/count`;
1438
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1439
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1440
+ let baseOptions;
1441
+ if (configuration) {
1442
+ baseOptions = configuration.baseOptions;
1443
+ }
1444
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1445
+ const localVarHeaderParameter = {};
1446
+ const localVarQueryParameter = {};
1447
+ if (id !== undefined) {
1448
+ localVarQueryParameter['id'] = id;
1449
+ }
1450
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1451
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1452
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1453
+ return {
1454
+ url: toPathString(localVarUrlObj),
1455
+ options: localVarRequestOptions,
1456
+ };
1457
+ },
1428
1458
  /**
1429
1459
  *
1430
1460
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1533,6 +1563,18 @@ export const BasketApiFp = function (configuration) {
1533
1563
  const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
1534
1564
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1535
1565
  },
1566
+ /**
1567
+ *
1568
+ * @param {string} [id]
1569
+ * @param {*} [options] Override http request option.
1570
+ * @throws {RequiredError}
1571
+ */
1572
+ async getBasketCount(id, options) {
1573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1574
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1575
+ const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1576
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1577
+ },
1536
1578
  /**
1537
1579
  *
1538
1580
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -1594,6 +1636,15 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
1594
1636
  getBasket(requestParameters = {}, options) {
1595
1637
  return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
1596
1638
  },
1639
+ /**
1640
+ *
1641
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1642
+ * @param {*} [options] Override http request option.
1643
+ * @throws {RequiredError}
1644
+ */
1645
+ getBasketCount(requestParameters = {}, options) {
1646
+ return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1647
+ },
1597
1648
  /**
1598
1649
  *
1599
1650
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -1651,6 +1702,16 @@ export class BasketApi extends BaseAPI {
1651
1702
  getBasket(requestParameters = {}, options) {
1652
1703
  return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1653
1704
  }
1705
+ /**
1706
+ *
1707
+ * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
1708
+ * @param {*} [options] Override http request option.
1709
+ * @throws {RequiredError}
1710
+ * @memberof BasketApi
1711
+ */
1712
+ getBasketCount(requestParameters = {}, options) {
1713
+ return BasketApiFp(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1714
+ }
1654
1715
  /**
1655
1716
  *
1656
1717
  * @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.15",
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": "7b84bcf1d93842548df7dc000cc0be467c121850"
41
41
  }