@infisale-client/api 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
@@ -9906,6 +9950,37 @@ export declare const SitemapTypeEnum: {
9906
9950
  readonly BLOG: "blog";
9907
9951
  };
9908
9952
  export type SitemapTypeEnum = typeof SitemapTypeEnum[keyof typeof SitemapTypeEnum];
9953
+ /**
9954
+ *
9955
+ * @export
9956
+ * @interface SubCategories
9957
+ */
9958
+ export interface SubCategories {
9959
+ /**
9960
+ *
9961
+ * @type {Array<SubCategories>}
9962
+ * @memberof SubCategories
9963
+ */
9964
+ 'subCategories': Array<SubCategories>;
9965
+ /**
9966
+ *
9967
+ * @type {Array<ICategoryResponseAttributesInner>}
9968
+ * @memberof SubCategories
9969
+ */
9970
+ 'attributes': Array<ICategoryResponseAttributesInner>;
9971
+ /**
9972
+ * Make all properties in T optional
9973
+ * @type {object}
9974
+ * @memberof SubCategories
9975
+ */
9976
+ 'contents': object;
9977
+ /**
9978
+ *
9979
+ * @type {string}
9980
+ * @memberof SubCategories
9981
+ */
9982
+ '_id': string;
9983
+ }
9909
9984
  /**
9910
9985
  *
9911
9986
  * @export
@@ -10547,11 +10622,12 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
10547
10622
  getBasket: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10548
10623
  /**
10549
10624
  *
10625
+ * @param {string} domain
10550
10626
  * @param {string} [id]
10551
10627
  * @param {*} [options] Override http request option.
10552
10628
  * @throws {RequiredError}
10553
10629
  */
10554
- getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10630
+ getBasketCount: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10555
10631
  /**
10556
10632
  *
10557
10633
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -10598,11 +10674,12 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
10598
10674
  getBasket(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
10599
10675
  /**
10600
10676
  *
10677
+ * @param {string} domain
10601
10678
  * @param {string} [id]
10602
10679
  * @param {*} [options] Override http request option.
10603
10680
  * @throws {RequiredError}
10604
10681
  */
10605
- getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
10682
+ getBasketCount(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
10606
10683
  /**
10607
10684
  *
10608
10685
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -10651,7 +10728,7 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
10651
10728
  * @param {*} [options] Override http request option.
10652
10729
  * @throws {RequiredError}
10653
10730
  */
10654
- getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
10731
+ getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
10655
10732
  /**
10656
10733
  *
10657
10734
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -10724,6 +10801,12 @@ export interface BasketApiGetBasketRequest {
10724
10801
  * @interface BasketApiGetBasketCountRequest
10725
10802
  */
10726
10803
  export interface BasketApiGetBasketCountRequest {
10804
+ /**
10805
+ *
10806
+ * @type {string}
10807
+ * @memberof BasketApiGetBasketCount
10808
+ */
10809
+ readonly domain: string;
10727
10810
  /**
10728
10811
  *
10729
10812
  * @type {string}
@@ -10801,7 +10884,7 @@ export declare class BasketApi extends BaseAPI {
10801
10884
  * @throws {RequiredError}
10802
10885
  * @memberof BasketApi
10803
10886
  */
10804
- getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
10887
+ getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
10805
10888
  /**
10806
10889
  *
10807
10890
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -11219,6 +11302,13 @@ export declare const CategoryApiAxiosParamCreator: (configuration?: Configuratio
11219
11302
  * @throws {RequiredError}
11220
11303
  */
11221
11304
  getAllCategories: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11305
+ /**
11306
+ *
11307
+ * @param {string} companyId
11308
+ * @param {*} [options] Override http request option.
11309
+ * @throws {RequiredError}
11310
+ */
11311
+ getAllCategoriesTree: (companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11222
11312
  /**
11223
11313
  *
11224
11314
  * @param {number} [page]
@@ -11285,6 +11375,13 @@ export declare const CategoryApiFp: (configuration?: Configuration) => {
11285
11375
  * @throws {RequiredError}
11286
11376
  */
11287
11377
  getAllCategories(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCategoriesResponse>>;
11378
+ /**
11379
+ *
11380
+ * @param {string} companyId
11381
+ * @param {*} [options] Override http request option.
11382
+ * @throws {RequiredError}
11383
+ */
11384
+ getAllCategoriesTree(companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IAllCategoriesTreeResponse>>;
11288
11385
  /**
11289
11386
  *
11290
11387
  * @param {number} [page]
@@ -11351,6 +11448,13 @@ export declare const CategoryApiFactory: (configuration?: Configuration, basePat
11351
11448
  * @throws {RequiredError}
11352
11449
  */
11353
11450
  getAllCategories(requestParameters: CategoryApiGetAllCategoriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<IAllCategoriesResponse>;
11451
+ /**
11452
+ *
11453
+ * @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
11454
+ * @param {*} [options] Override http request option.
11455
+ * @throws {RequiredError}
11456
+ */
11457
+ getAllCategoriesTree(requestParameters: CategoryApiGetAllCategoriesTreeRequest, options?: RawAxiosRequestConfig): AxiosPromise<IAllCategoriesTreeResponse>;
11354
11458
  /**
11355
11459
  *
11356
11460
  * @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
@@ -11419,6 +11523,19 @@ export interface CategoryApiGetAllCategoriesRequest {
11419
11523
  */
11420
11524
  readonly companyId: string;
11421
11525
  }
11526
+ /**
11527
+ * Request parameters for getAllCategoriesTree operation in CategoryApi.
11528
+ * @export
11529
+ * @interface CategoryApiGetAllCategoriesTreeRequest
11530
+ */
11531
+ export interface CategoryApiGetAllCategoriesTreeRequest {
11532
+ /**
11533
+ *
11534
+ * @type {string}
11535
+ * @memberof CategoryApiGetAllCategoriesTree
11536
+ */
11537
+ readonly companyId: string;
11538
+ }
11422
11539
  /**
11423
11540
  * Request parameters for getCategories operation in CategoryApi.
11424
11541
  * @export
@@ -11568,6 +11685,14 @@ export declare class CategoryApi extends BaseAPI {
11568
11685
  * @memberof CategoryApi
11569
11686
  */
11570
11687
  getAllCategories(requestParameters: CategoryApiGetAllCategoriesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IAllCategoriesResponse, any>>;
11688
+ /**
11689
+ *
11690
+ * @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
11691
+ * @param {*} [options] Override http request option.
11692
+ * @throws {RequiredError}
11693
+ * @memberof CategoryApi
11694
+ */
11695
+ getAllCategoriesTree(requestParameters: CategoryApiGetAllCategoriesTreeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IAllCategoriesTreeResponse, any>>;
11571
11696
  /**
11572
11697
  *
11573
11698
  * @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -1640,11 +1640,14 @@ const BasketApiAxiosParamCreator = function (configuration) {
1640
1640
  },
1641
1641
  /**
1642
1642
  *
1643
+ * @param {string} domain
1643
1644
  * @param {string} [id]
1644
1645
  * @param {*} [options] Override http request option.
1645
1646
  * @throws {RequiredError}
1646
1647
  */
1647
- getBasketCount: async (id, options = {}) => {
1648
+ getBasketCount: async (domain, id, options = {}) => {
1649
+ // verify required parameter 'domain' is not null or undefined
1650
+ (0, common_1.assertParamExists)('getBasketCount', 'domain', domain);
1648
1651
  const localVarPath = `/api/baskets/count`;
1649
1652
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1650
1653
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1655,6 +1658,9 @@ const BasketApiAxiosParamCreator = function (configuration) {
1655
1658
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1656
1659
  const localVarHeaderParameter = {};
1657
1660
  const localVarQueryParameter = {};
1661
+ if (domain !== undefined) {
1662
+ localVarQueryParameter['domain'] = domain;
1663
+ }
1658
1664
  if (id !== undefined) {
1659
1665
  localVarQueryParameter['id'] = id;
1660
1666
  }
@@ -1778,12 +1784,13 @@ const BasketApiFp = function (configuration) {
1778
1784
  },
1779
1785
  /**
1780
1786
  *
1787
+ * @param {string} domain
1781
1788
  * @param {string} [id]
1782
1789
  * @param {*} [options] Override http request option.
1783
1790
  * @throws {RequiredError}
1784
1791
  */
1785
- async getBasketCount(id, options) {
1786
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1792
+ async getBasketCount(domain, id, options) {
1793
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(domain, id, options);
1787
1794
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1788
1795
  const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1789
1796
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1856,8 +1863,8 @@ const BasketApiFactory = function (configuration, basePath, axios) {
1856
1863
  * @param {*} [options] Override http request option.
1857
1864
  * @throws {RequiredError}
1858
1865
  */
1859
- getBasketCount(requestParameters = {}, options) {
1860
- return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1866
+ getBasketCount(requestParameters, options) {
1867
+ return localVarFp.getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
1861
1868
  },
1862
1869
  /**
1863
1870
  *
@@ -1924,8 +1931,8 @@ class BasketApi extends base_1.BaseAPI {
1924
1931
  * @throws {RequiredError}
1925
1932
  * @memberof BasketApi
1926
1933
  */
1927
- getBasketCount(requestParameters = {}, options) {
1928
- return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1934
+ getBasketCount(requestParameters, options) {
1935
+ return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1929
1936
  }
1930
1937
  /**
1931
1938
  *
@@ -2504,6 +2511,36 @@ const CategoryApiAxiosParamCreator = function (configuration) {
2504
2511
  options: localVarRequestOptions,
2505
2512
  };
2506
2513
  },
2514
+ /**
2515
+ *
2516
+ * @param {string} companyId
2517
+ * @param {*} [options] Override http request option.
2518
+ * @throws {RequiredError}
2519
+ */
2520
+ getAllCategoriesTree: async (companyId, options = {}) => {
2521
+ // verify required parameter 'companyId' is not null or undefined
2522
+ (0, common_1.assertParamExists)('getAllCategoriesTree', 'companyId', companyId);
2523
+ const localVarPath = `/api/categories/get/all-tree`;
2524
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2525
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2526
+ let baseOptions;
2527
+ if (configuration) {
2528
+ baseOptions = configuration.baseOptions;
2529
+ }
2530
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2531
+ const localVarHeaderParameter = {};
2532
+ const localVarQueryParameter = {};
2533
+ if (companyId !== undefined) {
2534
+ localVarQueryParameter['companyId'] = companyId;
2535
+ }
2536
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2537
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2538
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2539
+ return {
2540
+ url: (0, common_1.toPathString)(localVarUrlObj),
2541
+ options: localVarRequestOptions,
2542
+ };
2543
+ },
2507
2544
  /**
2508
2545
  *
2509
2546
  * @param {number} [page]
@@ -2713,6 +2750,18 @@ const CategoryApiFp = function (configuration) {
2713
2750
  const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getAllCategories']?.[localVarOperationServerIndex]?.url;
2714
2751
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2715
2752
  },
2753
+ /**
2754
+ *
2755
+ * @param {string} companyId
2756
+ * @param {*} [options] Override http request option.
2757
+ * @throws {RequiredError}
2758
+ */
2759
+ async getAllCategoriesTree(companyId, options) {
2760
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategoriesTree(companyId, options);
2761
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2762
+ const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getAllCategoriesTree']?.[localVarOperationServerIndex]?.url;
2763
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2764
+ },
2716
2765
  /**
2717
2766
  *
2718
2767
  * @param {number} [page]
@@ -2809,6 +2858,15 @@ const CategoryApiFactory = function (configuration, basePath, axios) {
2809
2858
  getAllCategories(requestParameters, options) {
2810
2859
  return localVarFp.getAllCategories(requestParameters.companyId, options).then((request) => request(axios, basePath));
2811
2860
  },
2861
+ /**
2862
+ *
2863
+ * @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
2864
+ * @param {*} [options] Override http request option.
2865
+ * @throws {RequiredError}
2866
+ */
2867
+ getAllCategoriesTree(requestParameters, options) {
2868
+ return localVarFp.getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(axios, basePath));
2869
+ },
2812
2870
  /**
2813
2871
  *
2814
2872
  * @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
@@ -2885,6 +2943,16 @@ class CategoryApi extends base_1.BaseAPI {
2885
2943
  getAllCategories(requestParameters, options) {
2886
2944
  return (0, exports.CategoryApiFp)(this.configuration).getAllCategories(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
2887
2945
  }
2946
+ /**
2947
+ *
2948
+ * @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
2949
+ * @param {*} [options] Override http request option.
2950
+ * @throws {RequiredError}
2951
+ * @memberof CategoryApi
2952
+ */
2953
+ getAllCategoriesTree(requestParameters, options) {
2954
+ return (0, exports.CategoryApiFp)(this.configuration).getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
2955
+ }
2888
2956
  /**
2889
2957
  *
2890
2958
  * @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -1621,11 +1621,14 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1621
1621
  },
1622
1622
  /**
1623
1623
  *
1624
+ * @param {string} domain
1624
1625
  * @param {string} [id]
1625
1626
  * @param {*} [options] Override http request option.
1626
1627
  * @throws {RequiredError}
1627
1628
  */
1628
- getBasketCount: async (id, options = {}) => {
1629
+ getBasketCount: async (domain, id, options = {}) => {
1630
+ // verify required parameter 'domain' is not null or undefined
1631
+ assertParamExists('getBasketCount', 'domain', domain);
1629
1632
  const localVarPath = `/api/baskets/count`;
1630
1633
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1631
1634
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1636,6 +1639,9 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1636
1639
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1637
1640
  const localVarHeaderParameter = {};
1638
1641
  const localVarQueryParameter = {};
1642
+ if (domain !== undefined) {
1643
+ localVarQueryParameter['domain'] = domain;
1644
+ }
1639
1645
  if (id !== undefined) {
1640
1646
  localVarQueryParameter['id'] = id;
1641
1647
  }
@@ -1758,12 +1764,13 @@ export const BasketApiFp = function (configuration) {
1758
1764
  },
1759
1765
  /**
1760
1766
  *
1767
+ * @param {string} domain
1761
1768
  * @param {string} [id]
1762
1769
  * @param {*} [options] Override http request option.
1763
1770
  * @throws {RequiredError}
1764
1771
  */
1765
- async getBasketCount(id, options) {
1766
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1772
+ async getBasketCount(domain, id, options) {
1773
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(domain, id, options);
1767
1774
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1768
1775
  const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1769
1776
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1835,8 +1842,8 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
1835
1842
  * @param {*} [options] Override http request option.
1836
1843
  * @throws {RequiredError}
1837
1844
  */
1838
- getBasketCount(requestParameters = {}, options) {
1839
- return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1845
+ getBasketCount(requestParameters, options) {
1846
+ return localVarFp.getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
1840
1847
  },
1841
1848
  /**
1842
1849
  *
@@ -1902,8 +1909,8 @@ export class BasketApi extends BaseAPI {
1902
1909
  * @throws {RequiredError}
1903
1910
  * @memberof BasketApi
1904
1911
  */
1905
- getBasketCount(requestParameters = {}, options) {
1906
- return BasketApiFp(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1912
+ getBasketCount(requestParameters, options) {
1913
+ return BasketApiFp(this.configuration).getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1907
1914
  }
1908
1915
  /**
1909
1916
  *
@@ -2477,6 +2484,36 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
2477
2484
  options: localVarRequestOptions,
2478
2485
  };
2479
2486
  },
2487
+ /**
2488
+ *
2489
+ * @param {string} companyId
2490
+ * @param {*} [options] Override http request option.
2491
+ * @throws {RequiredError}
2492
+ */
2493
+ getAllCategoriesTree: async (companyId, options = {}) => {
2494
+ // verify required parameter 'companyId' is not null or undefined
2495
+ assertParamExists('getAllCategoriesTree', 'companyId', companyId);
2496
+ const localVarPath = `/api/categories/get/all-tree`;
2497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2498
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2499
+ let baseOptions;
2500
+ if (configuration) {
2501
+ baseOptions = configuration.baseOptions;
2502
+ }
2503
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2504
+ const localVarHeaderParameter = {};
2505
+ const localVarQueryParameter = {};
2506
+ if (companyId !== undefined) {
2507
+ localVarQueryParameter['companyId'] = companyId;
2508
+ }
2509
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2510
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2511
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2512
+ return {
2513
+ url: toPathString(localVarUrlObj),
2514
+ options: localVarRequestOptions,
2515
+ };
2516
+ },
2480
2517
  /**
2481
2518
  *
2482
2519
  * @param {number} [page]
@@ -2685,6 +2722,18 @@ export const CategoryApiFp = function (configuration) {
2685
2722
  const localVarOperationServerBasePath = operationServerMap['CategoryApi.getAllCategories']?.[localVarOperationServerIndex]?.url;
2686
2723
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2687
2724
  },
2725
+ /**
2726
+ *
2727
+ * @param {string} companyId
2728
+ * @param {*} [options] Override http request option.
2729
+ * @throws {RequiredError}
2730
+ */
2731
+ async getAllCategoriesTree(companyId, options) {
2732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategoriesTree(companyId, options);
2733
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2734
+ const localVarOperationServerBasePath = operationServerMap['CategoryApi.getAllCategoriesTree']?.[localVarOperationServerIndex]?.url;
2735
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2736
+ },
2688
2737
  /**
2689
2738
  *
2690
2739
  * @param {number} [page]
@@ -2780,6 +2829,15 @@ export const CategoryApiFactory = function (configuration, basePath, axios) {
2780
2829
  getAllCategories(requestParameters, options) {
2781
2830
  return localVarFp.getAllCategories(requestParameters.companyId, options).then((request) => request(axios, basePath));
2782
2831
  },
2832
+ /**
2833
+ *
2834
+ * @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
2835
+ * @param {*} [options] Override http request option.
2836
+ * @throws {RequiredError}
2837
+ */
2838
+ getAllCategoriesTree(requestParameters, options) {
2839
+ return localVarFp.getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(axios, basePath));
2840
+ },
2783
2841
  /**
2784
2842
  *
2785
2843
  * @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
@@ -2855,6 +2913,16 @@ export class CategoryApi extends BaseAPI {
2855
2913
  getAllCategories(requestParameters, options) {
2856
2914
  return CategoryApiFp(this.configuration).getAllCategories(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
2857
2915
  }
2916
+ /**
2917
+ *
2918
+ * @param {CategoryApiGetAllCategoriesTreeRequest} requestParameters Request parameters.
2919
+ * @param {*} [options] Override http request option.
2920
+ * @throws {RequiredError}
2921
+ * @memberof CategoryApi
2922
+ */
2923
+ getAllCategoriesTree(requestParameters, options) {
2924
+ return CategoryApiFp(this.configuration).getAllCategoriesTree(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
2925
+ }
2858
2926
  /**
2859
2927
  *
2860
2928
  * @param {CategoryApiGetCategoriesRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.38",
3
+ "version": "1.2.40",
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": "9205366c5d2402d7bb7575bdbed18651ffd42ccc"
40
+ "gitHead": "e1912d682b9f6092c6d8d90ad959f4fa0481245a"
41
41
  }