@infisale-client/api-client 1.2.38 → 1.2.40

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
@@ -695,6 +695,50 @@ export interface IAllCategoriesResponse {
695
695
  */
696
696
  'data': Array<PickICategoryResponseIdOrContentsOrAttributes>;
697
697
  }
698
+ /**
699
+ *
700
+ * @export
701
+ * @interface IAllCategoriesTreeResponse
702
+ */
703
+ export interface IAllCategoriesTreeResponse {
704
+ /**
705
+ *
706
+ * @type {Array<IAllCategoriesTreeResponseDataInner>}
707
+ * @memberof IAllCategoriesTreeResponse
708
+ */
709
+ 'data': Array<IAllCategoriesTreeResponseDataInner>;
710
+ }
711
+ /**
712
+ *
713
+ * @export
714
+ * @interface IAllCategoriesTreeResponseDataInner
715
+ */
716
+ export interface IAllCategoriesTreeResponseDataInner {
717
+ /**
718
+ *
719
+ * @type {Array<SubCategories>}
720
+ * @memberof IAllCategoriesTreeResponseDataInner
721
+ */
722
+ 'subCategories': Array<SubCategories>;
723
+ /**
724
+ *
725
+ * @type {Array<ICategoryResponseAttributesInner>}
726
+ * @memberof IAllCategoriesTreeResponseDataInner
727
+ */
728
+ 'attributes': Array<ICategoryResponseAttributesInner>;
729
+ /**
730
+ * Make all properties in T optional
731
+ * @type {object}
732
+ * @memberof IAllCategoriesTreeResponseDataInner
733
+ */
734
+ 'contents': object;
735
+ /**
736
+ *
737
+ * @type {string}
738
+ * @memberof IAllCategoriesTreeResponseDataInner
739
+ */
740
+ '_id': string;
741
+ }
698
742
  /**
699
743
  *
700
744
  * @export
@@ -9887,6 +9931,37 @@ export declare const SitemapTypeEnum: {
9887
9931
  readonly BLOG: "blog";
9888
9932
  };
9889
9933
  export type SitemapTypeEnum = typeof SitemapTypeEnum[keyof typeof SitemapTypeEnum];
9934
+ /**
9935
+ *
9936
+ * @export
9937
+ * @interface SubCategories
9938
+ */
9939
+ export interface SubCategories {
9940
+ /**
9941
+ *
9942
+ * @type {Array<SubCategories>}
9943
+ * @memberof SubCategories
9944
+ */
9945
+ 'subCategories': Array<SubCategories>;
9946
+ /**
9947
+ *
9948
+ * @type {Array<ICategoryResponseAttributesInner>}
9949
+ * @memberof SubCategories
9950
+ */
9951
+ 'attributes': Array<ICategoryResponseAttributesInner>;
9952
+ /**
9953
+ * Make all properties in T optional
9954
+ * @type {object}
9955
+ * @memberof SubCategories
9956
+ */
9957
+ 'contents': object;
9958
+ /**
9959
+ *
9960
+ * @type {string}
9961
+ * @memberof SubCategories
9962
+ */
9963
+ '_id': string;
9964
+ }
9890
9965
  /**
9891
9966
  *
9892
9967
  * @export
@@ -10486,11 +10561,12 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
10486
10561
  getBasket: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10487
10562
  /**
10488
10563
  *
10564
+ * @param {string} domain
10489
10565
  * @param {string} [id]
10490
10566
  * @param {*} [options] Override http request option.
10491
10567
  * @throws {RequiredError}
10492
10568
  */
10493
- getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10569
+ getBasketCount: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10494
10570
  /**
10495
10571
  *
10496
10572
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -10537,11 +10613,12 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
10537
10613
  getBasket(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
10538
10614
  /**
10539
10615
  *
10616
+ * @param {string} domain
10540
10617
  * @param {string} [id]
10541
10618
  * @param {*} [options] Override http request option.
10542
10619
  * @throws {RequiredError}
10543
10620
  */
10544
- getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
10621
+ getBasketCount(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
10545
10622
  /**
10546
10623
  *
10547
10624
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -10590,7 +10667,7 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
10590
10667
  * @param {*} [options] Override http request option.
10591
10668
  * @throws {RequiredError}
10592
10669
  */
10593
- getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
10670
+ getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
10594
10671
  /**
10595
10672
  *
10596
10673
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -10663,6 +10740,12 @@ export interface BasketApiGetBasketRequest {
10663
10740
  * @interface BasketApiGetBasketCountRequest
10664
10741
  */
10665
10742
  export interface BasketApiGetBasketCountRequest {
10743
+ /**
10744
+ *
10745
+ * @type {string}
10746
+ * @memberof BasketApiGetBasketCount
10747
+ */
10748
+ readonly domain: string;
10666
10749
  /**
10667
10750
  *
10668
10751
  * @type {string}
@@ -10740,7 +10823,7 @@ export declare class BasketApi extends BaseAPI {
10740
10823
  * @throws {RequiredError}
10741
10824
  * @memberof BasketApi
10742
10825
  */
10743
- getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
10826
+ getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
10744
10827
  /**
10745
10828
  *
10746
10829
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -1581,11 +1581,14 @@ const BasketApiAxiosParamCreator = function (configuration) {
1581
1581
  },
1582
1582
  /**
1583
1583
  *
1584
+ * @param {string} domain
1584
1585
  * @param {string} [id]
1585
1586
  * @param {*} [options] Override http request option.
1586
1587
  * @throws {RequiredError}
1587
1588
  */
1588
- getBasketCount: async (id, options = {}) => {
1589
+ getBasketCount: async (domain, id, options = {}) => {
1590
+ // verify required parameter 'domain' is not null or undefined
1591
+ (0, common_1.assertParamExists)('getBasketCount', 'domain', domain);
1589
1592
  const localVarPath = `/api/baskets/count`;
1590
1593
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1591
1594
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1596,6 +1599,9 @@ const BasketApiAxiosParamCreator = function (configuration) {
1596
1599
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1597
1600
  const localVarHeaderParameter = {};
1598
1601
  const localVarQueryParameter = {};
1602
+ if (domain !== undefined) {
1603
+ localVarQueryParameter['domain'] = domain;
1604
+ }
1599
1605
  if (id !== undefined) {
1600
1606
  localVarQueryParameter['id'] = id;
1601
1607
  }
@@ -1719,12 +1725,13 @@ const BasketApiFp = function (configuration) {
1719
1725
  },
1720
1726
  /**
1721
1727
  *
1728
+ * @param {string} domain
1722
1729
  * @param {string} [id]
1723
1730
  * @param {*} [options] Override http request option.
1724
1731
  * @throws {RequiredError}
1725
1732
  */
1726
- async getBasketCount(id, options) {
1727
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1733
+ async getBasketCount(domain, id, options) {
1734
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(domain, id, options);
1728
1735
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1729
1736
  const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1730
1737
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1797,8 +1804,8 @@ const BasketApiFactory = function (configuration, basePath, axios) {
1797
1804
  * @param {*} [options] Override http request option.
1798
1805
  * @throws {RequiredError}
1799
1806
  */
1800
- getBasketCount(requestParameters = {}, options) {
1801
- return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1807
+ getBasketCount(requestParameters, options) {
1808
+ return localVarFp.getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
1802
1809
  },
1803
1810
  /**
1804
1811
  *
@@ -1865,8 +1872,8 @@ class BasketApi extends base_1.BaseAPI {
1865
1872
  * @throws {RequiredError}
1866
1873
  * @memberof BasketApi
1867
1874
  */
1868
- getBasketCount(requestParameters = {}, options) {
1869
- return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1875
+ getBasketCount(requestParameters, options) {
1876
+ return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1870
1877
  }
1871
1878
  /**
1872
1879
  *
package/dist/api/api.mjs CHANGED
@@ -1562,11 +1562,14 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1562
1562
  },
1563
1563
  /**
1564
1564
  *
1565
+ * @param {string} domain
1565
1566
  * @param {string} [id]
1566
1567
  * @param {*} [options] Override http request option.
1567
1568
  * @throws {RequiredError}
1568
1569
  */
1569
- getBasketCount: async (id, options = {}) => {
1570
+ getBasketCount: async (domain, id, options = {}) => {
1571
+ // verify required parameter 'domain' is not null or undefined
1572
+ assertParamExists('getBasketCount', 'domain', domain);
1570
1573
  const localVarPath = `/api/baskets/count`;
1571
1574
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1572
1575
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1577,6 +1580,9 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1577
1580
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1578
1581
  const localVarHeaderParameter = {};
1579
1582
  const localVarQueryParameter = {};
1583
+ if (domain !== undefined) {
1584
+ localVarQueryParameter['domain'] = domain;
1585
+ }
1580
1586
  if (id !== undefined) {
1581
1587
  localVarQueryParameter['id'] = id;
1582
1588
  }
@@ -1699,12 +1705,13 @@ export const BasketApiFp = function (configuration) {
1699
1705
  },
1700
1706
  /**
1701
1707
  *
1708
+ * @param {string} domain
1702
1709
  * @param {string} [id]
1703
1710
  * @param {*} [options] Override http request option.
1704
1711
  * @throws {RequiredError}
1705
1712
  */
1706
- async getBasketCount(id, options) {
1707
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1713
+ async getBasketCount(domain, id, options) {
1714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(domain, id, options);
1708
1715
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1709
1716
  const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1710
1717
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1776,8 +1783,8 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
1776
1783
  * @param {*} [options] Override http request option.
1777
1784
  * @throws {RequiredError}
1778
1785
  */
1779
- getBasketCount(requestParameters = {}, options) {
1780
- return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1786
+ getBasketCount(requestParameters, options) {
1787
+ return localVarFp.getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
1781
1788
  },
1782
1789
  /**
1783
1790
  *
@@ -1843,8 +1850,8 @@ export class BasketApi extends BaseAPI {
1843
1850
  * @throws {RequiredError}
1844
1851
  * @memberof BasketApi
1845
1852
  */
1846
- getBasketCount(requestParameters = {}, options) {
1847
- return BasketApiFp(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1853
+ getBasketCount(requestParameters, options) {
1854
+ return BasketApiFp(this.configuration).getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1848
1855
  }
1849
1856
  /**
1850
1857
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.38",
3
+ "version": "1.2.40",
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": "9205366c5d2402d7bb7575bdbed18651ffd42ccc"
40
+ "gitHead": "e1912d682b9f6092c6d8d90ad959f4fa0481245a"
41
41
  }