@infisale-client/api 1.2.40 → 1.2.42

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
@@ -727,11 +727,11 @@ export interface IAllCategoriesTreeResponseDataInner {
727
727
  */
728
728
  'attributes': Array<ICategoryResponseAttributesInner>;
729
729
  /**
730
- * Make all properties in T optional
731
- * @type {object}
730
+ *
731
+ * @type {PartialRecordLanguageEnumTitleString}
732
732
  * @memberof IAllCategoriesTreeResponseDataInner
733
733
  */
734
- 'contents': object;
734
+ 'contents': PartialRecordLanguageEnumTitleString;
735
735
  /**
736
736
  *
737
737
  * @type {string}
@@ -8284,6 +8284,44 @@ export interface PartialRecordLanguageEnumString {
8284
8284
  */
8285
8285
  'de'?: string;
8286
8286
  }
8287
+ /**
8288
+ * Make all properties in T optional
8289
+ * @export
8290
+ * @interface PartialRecordLanguageEnumTitleString
8291
+ */
8292
+ export interface PartialRecordLanguageEnumTitleString {
8293
+ /**
8294
+ *
8295
+ * @type {PartialRecordLanguageEnumTitleStringTr}
8296
+ * @memberof PartialRecordLanguageEnumTitleString
8297
+ */
8298
+ 'tr'?: PartialRecordLanguageEnumTitleStringTr;
8299
+ /**
8300
+ *
8301
+ * @type {PartialRecordLanguageEnumTitleStringTr}
8302
+ * @memberof PartialRecordLanguageEnumTitleString
8303
+ */
8304
+ 'en'?: PartialRecordLanguageEnumTitleStringTr;
8305
+ /**
8306
+ *
8307
+ * @type {PartialRecordLanguageEnumTitleStringTr}
8308
+ * @memberof PartialRecordLanguageEnumTitleString
8309
+ */
8310
+ 'de'?: PartialRecordLanguageEnumTitleStringTr;
8311
+ }
8312
+ /**
8313
+ *
8314
+ * @export
8315
+ * @interface PartialRecordLanguageEnumTitleStringTr
8316
+ */
8317
+ export interface PartialRecordLanguageEnumTitleStringTr {
8318
+ /**
8319
+ *
8320
+ * @type {string}
8321
+ * @memberof PartialRecordLanguageEnumTitleStringTr
8322
+ */
8323
+ 'title': string;
8324
+ }
8287
8325
  /**
8288
8326
  *
8289
8327
  * @export
@@ -9969,11 +10007,11 @@ export interface SubCategories {
9969
10007
  */
9970
10008
  'attributes': Array<ICategoryResponseAttributesInner>;
9971
10009
  /**
9972
- * Make all properties in T optional
9973
- * @type {object}
10010
+ *
10011
+ * @type {PartialRecordLanguageEnumTitleString}
9974
10012
  * @memberof SubCategories
9975
10013
  */
9976
- 'contents': object;
10014
+ 'contents': PartialRecordLanguageEnumTitleString;
9977
10015
  /**
9978
10016
  *
9979
10017
  * @type {string}
@@ -10614,20 +10652,18 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
10614
10652
  deleteProductFromBasket: (itemId: string, iBasketDeleteRequest: IBasketDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10615
10653
  /**
10616
10654
  *
10617
- * @param {string} domain
10618
10655
  * @param {string} [id]
10619
10656
  * @param {*} [options] Override http request option.
10620
10657
  * @throws {RequiredError}
10621
10658
  */
10622
- getBasket: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10659
+ getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10623
10660
  /**
10624
10661
  *
10625
- * @param {string} domain
10626
10662
  * @param {string} [id]
10627
10663
  * @param {*} [options] Override http request option.
10628
10664
  * @throws {RequiredError}
10629
10665
  */
10630
- getBasketCount: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10666
+ getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10631
10667
  /**
10632
10668
  *
10633
10669
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -10666,20 +10702,18 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
10666
10702
  deleteProductFromBasket(itemId: string, iBasketDeleteRequest: IBasketDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
10667
10703
  /**
10668
10704
  *
10669
- * @param {string} domain
10670
10705
  * @param {string} [id]
10671
10706
  * @param {*} [options] Override http request option.
10672
10707
  * @throws {RequiredError}
10673
10708
  */
10674
- getBasket(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
10709
+ getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
10675
10710
  /**
10676
10711
  *
10677
- * @param {string} domain
10678
10712
  * @param {string} [id]
10679
10713
  * @param {*} [options] Override http request option.
10680
10714
  * @throws {RequiredError}
10681
10715
  */
10682
- getBasketCount(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
10716
+ getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
10683
10717
  /**
10684
10718
  *
10685
10719
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -10721,14 +10755,14 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
10721
10755
  * @param {*} [options] Override http request option.
10722
10756
  * @throws {RequiredError}
10723
10757
  */
10724
- getBasket(requestParameters: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
10758
+ getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
10725
10759
  /**
10726
10760
  *
10727
10761
  * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
10728
10762
  * @param {*} [options] Override http request option.
10729
10763
  * @throws {RequiredError}
10730
10764
  */
10731
- getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
10765
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
10732
10766
  /**
10733
10767
  *
10734
10768
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -10782,12 +10816,6 @@ export interface BasketApiDeleteProductFromBasketRequest {
10782
10816
  * @interface BasketApiGetBasketRequest
10783
10817
  */
10784
10818
  export interface BasketApiGetBasketRequest {
10785
- /**
10786
- *
10787
- * @type {string}
10788
- * @memberof BasketApiGetBasket
10789
- */
10790
- readonly domain: string;
10791
10819
  /**
10792
10820
  *
10793
10821
  * @type {string}
@@ -10801,12 +10829,6 @@ export interface BasketApiGetBasketRequest {
10801
10829
  * @interface BasketApiGetBasketCountRequest
10802
10830
  */
10803
10831
  export interface BasketApiGetBasketCountRequest {
10804
- /**
10805
- *
10806
- * @type {string}
10807
- * @memberof BasketApiGetBasketCount
10808
- */
10809
- readonly domain: string;
10810
10832
  /**
10811
10833
  *
10812
10834
  * @type {string}
@@ -10876,7 +10898,7 @@ export declare class BasketApi extends BaseAPI {
10876
10898
  * @throws {RequiredError}
10877
10899
  * @memberof BasketApi
10878
10900
  */
10879
- getBasket(requestParameters: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
10901
+ getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
10880
10902
  /**
10881
10903
  *
10882
10904
  * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
@@ -10884,7 +10906,7 @@ export declare class BasketApi extends BaseAPI {
10884
10906
  * @throws {RequiredError}
10885
10907
  * @memberof BasketApi
10886
10908
  */
10887
- getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
10909
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
10888
10910
  /**
10889
10911
  *
10890
10912
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -13732,6 +13754,13 @@ export declare const FileApiAxiosParamCreator: (configuration?: Configuration) =
13732
13754
  * @throws {RequiredError}
13733
13755
  */
13734
13756
  deleteFile: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13757
+ /**
13758
+ *
13759
+ * @param {string} key
13760
+ * @param {*} [options] Override http request option.
13761
+ * @throws {RequiredError}
13762
+ */
13763
+ downloadFile: (key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13735
13764
  /**
13736
13765
  *
13737
13766
  * @param {string} id
@@ -13787,6 +13816,13 @@ export declare const FileApiFp: (configuration?: Configuration) => {
13787
13816
  * @throws {RequiredError}
13788
13817
  */
13789
13818
  deleteFile(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
13819
+ /**
13820
+ *
13821
+ * @param {string} key
13822
+ * @param {*} [options] Override http request option.
13823
+ * @throws {RequiredError}
13824
+ */
13825
+ downloadFile(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
13790
13826
  /**
13791
13827
  *
13792
13828
  * @param {string} id
@@ -13842,6 +13878,13 @@ export declare const FileApiFactory: (configuration?: Configuration, basePath?:
13842
13878
  * @throws {RequiredError}
13843
13879
  */
13844
13880
  deleteFile(requestParameters: FileApiDeleteFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
13881
+ /**
13882
+ *
13883
+ * @param {FileApiDownloadFileRequest} requestParameters Request parameters.
13884
+ * @param {*} [options] Override http request option.
13885
+ * @throws {RequiredError}
13886
+ */
13887
+ downloadFile(requestParameters: FileApiDownloadFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
13845
13888
  /**
13846
13889
  *
13847
13890
  * @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
@@ -13884,6 +13927,19 @@ export interface FileApiDeleteFileRequest {
13884
13927
  */
13885
13928
  readonly id: string;
13886
13929
  }
13930
+ /**
13931
+ * Request parameters for downloadFile operation in FileApi.
13932
+ * @export
13933
+ * @interface FileApiDownloadFileRequest
13934
+ */
13935
+ export interface FileApiDownloadFileRequest {
13936
+ /**
13937
+ *
13938
+ * @type {string}
13939
+ * @memberof FileApiDownloadFile
13940
+ */
13941
+ readonly key: string;
13942
+ }
13887
13943
  /**
13888
13944
  * Request parameters for getFileById operation in FileApi.
13889
13945
  * @export
@@ -14035,6 +14091,14 @@ export declare class FileApi extends BaseAPI {
14035
14091
  * @memberof FileApi
14036
14092
  */
14037
14093
  deleteFile(requestParameters: FileApiDeleteFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
14094
+ /**
14095
+ *
14096
+ * @param {FileApiDownloadFileRequest} requestParameters Request parameters.
14097
+ * @param {*} [options] Override http request option.
14098
+ * @throws {RequiredError}
14099
+ * @memberof FileApi
14100
+ */
14101
+ downloadFile(requestParameters: FileApiDownloadFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
14038
14102
  /**
14039
14103
  *
14040
14104
  * @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -1606,14 +1606,11 @@ const BasketApiAxiosParamCreator = function (configuration) {
1606
1606
  },
1607
1607
  /**
1608
1608
  *
1609
- * @param {string} domain
1610
1609
  * @param {string} [id]
1611
1610
  * @param {*} [options] Override http request option.
1612
1611
  * @throws {RequiredError}
1613
1612
  */
1614
- getBasket: async (domain, id, options = {}) => {
1615
- // verify required parameter 'domain' is not null or undefined
1616
- (0, common_1.assertParamExists)('getBasket', 'domain', domain);
1613
+ getBasket: async (id, options = {}) => {
1617
1614
  const localVarPath = `/api/baskets/single`;
1618
1615
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1619
1616
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1624,9 +1621,6 @@ const BasketApiAxiosParamCreator = function (configuration) {
1624
1621
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1625
1622
  const localVarHeaderParameter = {};
1626
1623
  const localVarQueryParameter = {};
1627
- if (domain !== undefined) {
1628
- localVarQueryParameter['domain'] = domain;
1629
- }
1630
1624
  if (id !== undefined) {
1631
1625
  localVarQueryParameter['id'] = id;
1632
1626
  }
@@ -1640,14 +1634,11 @@ const BasketApiAxiosParamCreator = function (configuration) {
1640
1634
  },
1641
1635
  /**
1642
1636
  *
1643
- * @param {string} domain
1644
1637
  * @param {string} [id]
1645
1638
  * @param {*} [options] Override http request option.
1646
1639
  * @throws {RequiredError}
1647
1640
  */
1648
- getBasketCount: async (domain, id, options = {}) => {
1649
- // verify required parameter 'domain' is not null or undefined
1650
- (0, common_1.assertParamExists)('getBasketCount', 'domain', domain);
1641
+ getBasketCount: async (id, options = {}) => {
1651
1642
  const localVarPath = `/api/baskets/count`;
1652
1643
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1653
1644
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1658,9 +1649,6 @@ const BasketApiAxiosParamCreator = function (configuration) {
1658
1649
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1659
1650
  const localVarHeaderParameter = {};
1660
1651
  const localVarQueryParameter = {};
1661
- if (domain !== undefined) {
1662
- localVarQueryParameter['domain'] = domain;
1663
- }
1664
1652
  if (id !== undefined) {
1665
1653
  localVarQueryParameter['id'] = id;
1666
1654
  }
@@ -1771,26 +1759,24 @@ const BasketApiFp = function (configuration) {
1771
1759
  },
1772
1760
  /**
1773
1761
  *
1774
- * @param {string} domain
1775
1762
  * @param {string} [id]
1776
1763
  * @param {*} [options] Override http request option.
1777
1764
  * @throws {RequiredError}
1778
1765
  */
1779
- async getBasket(domain, id, options) {
1780
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(domain, id, options);
1766
+ async getBasket(id, options) {
1767
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
1781
1768
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1782
1769
  const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
1783
1770
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1784
1771
  },
1785
1772
  /**
1786
1773
  *
1787
- * @param {string} domain
1788
1774
  * @param {string} [id]
1789
1775
  * @param {*} [options] Override http request option.
1790
1776
  * @throws {RequiredError}
1791
1777
  */
1792
- async getBasketCount(domain, id, options) {
1793
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(domain, id, options);
1778
+ async getBasketCount(id, options) {
1779
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1794
1780
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1795
1781
  const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1796
1782
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1854,8 +1840,8 @@ const BasketApiFactory = function (configuration, basePath, axios) {
1854
1840
  * @param {*} [options] Override http request option.
1855
1841
  * @throws {RequiredError}
1856
1842
  */
1857
- getBasket(requestParameters, options) {
1858
- return localVarFp.getBasket(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
1843
+ getBasket(requestParameters = {}, options) {
1844
+ return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
1859
1845
  },
1860
1846
  /**
1861
1847
  *
@@ -1863,8 +1849,8 @@ const BasketApiFactory = function (configuration, basePath, axios) {
1863
1849
  * @param {*} [options] Override http request option.
1864
1850
  * @throws {RequiredError}
1865
1851
  */
1866
- getBasketCount(requestParameters, options) {
1867
- return localVarFp.getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
1852
+ getBasketCount(requestParameters = {}, options) {
1853
+ return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1868
1854
  },
1869
1855
  /**
1870
1856
  *
@@ -1921,8 +1907,8 @@ class BasketApi extends base_1.BaseAPI {
1921
1907
  * @throws {RequiredError}
1922
1908
  * @memberof BasketApi
1923
1909
  */
1924
- getBasket(requestParameters, options) {
1925
- return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1910
+ getBasket(requestParameters = {}, options) {
1911
+ return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1926
1912
  }
1927
1913
  /**
1928
1914
  *
@@ -1931,8 +1917,8 @@ class BasketApi extends base_1.BaseAPI {
1931
1917
  * @throws {RequiredError}
1932
1918
  * @memberof BasketApi
1933
1919
  */
1934
- getBasketCount(requestParameters, options) {
1935
- return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1920
+ getBasketCount(requestParameters = {}, options) {
1921
+ return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1936
1922
  }
1937
1923
  /**
1938
1924
  *
@@ -5503,6 +5489,34 @@ const FileApiAxiosParamCreator = function (configuration) {
5503
5489
  options: localVarRequestOptions,
5504
5490
  };
5505
5491
  },
5492
+ /**
5493
+ *
5494
+ * @param {string} key
5495
+ * @param {*} [options] Override http request option.
5496
+ * @throws {RequiredError}
5497
+ */
5498
+ downloadFile: async (key, options = {}) => {
5499
+ // verify required parameter 'key' is not null or undefined
5500
+ (0, common_1.assertParamExists)('downloadFile', 'key', key);
5501
+ const localVarPath = `/api/files/{key}/download`
5502
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
5503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5504
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5505
+ let baseOptions;
5506
+ if (configuration) {
5507
+ baseOptions = configuration.baseOptions;
5508
+ }
5509
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5510
+ const localVarHeaderParameter = {};
5511
+ const localVarQueryParameter = {};
5512
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5513
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5514
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5515
+ return {
5516
+ url: (0, common_1.toPathString)(localVarUrlObj),
5517
+ options: localVarRequestOptions,
5518
+ };
5519
+ },
5506
5520
  /**
5507
5521
  *
5508
5522
  * @param {string} id
@@ -5709,6 +5723,18 @@ const FileApiFp = function (configuration) {
5709
5723
  const localVarOperationServerBasePath = base_1.operationServerMap['FileApi.deleteFile']?.[localVarOperationServerIndex]?.url;
5710
5724
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5711
5725
  },
5726
+ /**
5727
+ *
5728
+ * @param {string} key
5729
+ * @param {*} [options] Override http request option.
5730
+ * @throws {RequiredError}
5731
+ */
5732
+ async downloadFile(key, options) {
5733
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(key, options);
5734
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5735
+ const localVarOperationServerBasePath = base_1.operationServerMap['FileApi.downloadFile']?.[localVarOperationServerIndex]?.url;
5736
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5737
+ },
5712
5738
  /**
5713
5739
  *
5714
5740
  * @param {string} id
@@ -5790,6 +5816,15 @@ const FileApiFactory = function (configuration, basePath, axios) {
5790
5816
  deleteFile(requestParameters, options) {
5791
5817
  return localVarFp.deleteFile(requestParameters.id, options).then((request) => request(axios, basePath));
5792
5818
  },
5819
+ /**
5820
+ *
5821
+ * @param {FileApiDownloadFileRequest} requestParameters Request parameters.
5822
+ * @param {*} [options] Override http request option.
5823
+ * @throws {RequiredError}
5824
+ */
5825
+ downloadFile(requestParameters, options) {
5826
+ return localVarFp.downloadFile(requestParameters.key, options).then((request) => request(axios, basePath));
5827
+ },
5793
5828
  /**
5794
5829
  *
5795
5830
  * @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
@@ -5846,6 +5881,16 @@ class FileApi extends base_1.BaseAPI {
5846
5881
  deleteFile(requestParameters, options) {
5847
5882
  return (0, exports.FileApiFp)(this.configuration).deleteFile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
5848
5883
  }
5884
+ /**
5885
+ *
5886
+ * @param {FileApiDownloadFileRequest} requestParameters Request parameters.
5887
+ * @param {*} [options] Override http request option.
5888
+ * @throws {RequiredError}
5889
+ * @memberof FileApi
5890
+ */
5891
+ downloadFile(requestParameters, options) {
5892
+ return (0, exports.FileApiFp)(this.configuration).downloadFile(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
5893
+ }
5849
5894
  /**
5850
5895
  *
5851
5896
  * @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -1587,14 +1587,11 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1587
1587
  },
1588
1588
  /**
1589
1589
  *
1590
- * @param {string} domain
1591
1590
  * @param {string} [id]
1592
1591
  * @param {*} [options] Override http request option.
1593
1592
  * @throws {RequiredError}
1594
1593
  */
1595
- getBasket: async (domain, id, options = {}) => {
1596
- // verify required parameter 'domain' is not null or undefined
1597
- assertParamExists('getBasket', 'domain', domain);
1594
+ getBasket: async (id, options = {}) => {
1598
1595
  const localVarPath = `/api/baskets/single`;
1599
1596
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1600
1597
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1605,9 +1602,6 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1605
1602
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1606
1603
  const localVarHeaderParameter = {};
1607
1604
  const localVarQueryParameter = {};
1608
- if (domain !== undefined) {
1609
- localVarQueryParameter['domain'] = domain;
1610
- }
1611
1605
  if (id !== undefined) {
1612
1606
  localVarQueryParameter['id'] = id;
1613
1607
  }
@@ -1621,14 +1615,11 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1621
1615
  },
1622
1616
  /**
1623
1617
  *
1624
- * @param {string} domain
1625
1618
  * @param {string} [id]
1626
1619
  * @param {*} [options] Override http request option.
1627
1620
  * @throws {RequiredError}
1628
1621
  */
1629
- getBasketCount: async (domain, id, options = {}) => {
1630
- // verify required parameter 'domain' is not null or undefined
1631
- assertParamExists('getBasketCount', 'domain', domain);
1622
+ getBasketCount: async (id, options = {}) => {
1632
1623
  const localVarPath = `/api/baskets/count`;
1633
1624
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1634
1625
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1639,9 +1630,6 @@ export const BasketApiAxiosParamCreator = function (configuration) {
1639
1630
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1640
1631
  const localVarHeaderParameter = {};
1641
1632
  const localVarQueryParameter = {};
1642
- if (domain !== undefined) {
1643
- localVarQueryParameter['domain'] = domain;
1644
- }
1645
1633
  if (id !== undefined) {
1646
1634
  localVarQueryParameter['id'] = id;
1647
1635
  }
@@ -1751,26 +1739,24 @@ export const BasketApiFp = function (configuration) {
1751
1739
  },
1752
1740
  /**
1753
1741
  *
1754
- * @param {string} domain
1755
1742
  * @param {string} [id]
1756
1743
  * @param {*} [options] Override http request option.
1757
1744
  * @throws {RequiredError}
1758
1745
  */
1759
- async getBasket(domain, id, options) {
1760
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(domain, id, options);
1746
+ async getBasket(id, options) {
1747
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasket(id, options);
1761
1748
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1762
1749
  const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
1763
1750
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1764
1751
  },
1765
1752
  /**
1766
1753
  *
1767
- * @param {string} domain
1768
1754
  * @param {string} [id]
1769
1755
  * @param {*} [options] Override http request option.
1770
1756
  * @throws {RequiredError}
1771
1757
  */
1772
- async getBasketCount(domain, id, options) {
1773
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(domain, id, options);
1758
+ async getBasketCount(id, options) {
1759
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
1774
1760
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1775
1761
  const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
1776
1762
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1833,8 +1819,8 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
1833
1819
  * @param {*} [options] Override http request option.
1834
1820
  * @throws {RequiredError}
1835
1821
  */
1836
- getBasket(requestParameters, options) {
1837
- return localVarFp.getBasket(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
1822
+ getBasket(requestParameters = {}, options) {
1823
+ return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
1838
1824
  },
1839
1825
  /**
1840
1826
  *
@@ -1842,8 +1828,8 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
1842
1828
  * @param {*} [options] Override http request option.
1843
1829
  * @throws {RequiredError}
1844
1830
  */
1845
- getBasketCount(requestParameters, options) {
1846
- return localVarFp.getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(axios, basePath));
1831
+ getBasketCount(requestParameters = {}, options) {
1832
+ return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
1847
1833
  },
1848
1834
  /**
1849
1835
  *
@@ -1899,8 +1885,8 @@ export class BasketApi extends BaseAPI {
1899
1885
  * @throws {RequiredError}
1900
1886
  * @memberof BasketApi
1901
1887
  */
1902
- getBasket(requestParameters, options) {
1903
- return BasketApiFp(this.configuration).getBasket(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1888
+ getBasket(requestParameters = {}, options) {
1889
+ return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1904
1890
  }
1905
1891
  /**
1906
1892
  *
@@ -1909,8 +1895,8 @@ export class BasketApi extends BaseAPI {
1909
1895
  * @throws {RequiredError}
1910
1896
  * @memberof BasketApi
1911
1897
  */
1912
- getBasketCount(requestParameters, options) {
1913
- return BasketApiFp(this.configuration).getBasketCount(requestParameters.domain, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1898
+ getBasketCount(requestParameters = {}, options) {
1899
+ return BasketApiFp(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1914
1900
  }
1915
1901
  /**
1916
1902
  *
@@ -5460,6 +5446,34 @@ export const FileApiAxiosParamCreator = function (configuration) {
5460
5446
  options: localVarRequestOptions,
5461
5447
  };
5462
5448
  },
5449
+ /**
5450
+ *
5451
+ * @param {string} key
5452
+ * @param {*} [options] Override http request option.
5453
+ * @throws {RequiredError}
5454
+ */
5455
+ downloadFile: async (key, options = {}) => {
5456
+ // verify required parameter 'key' is not null or undefined
5457
+ assertParamExists('downloadFile', 'key', key);
5458
+ const localVarPath = `/api/files/{key}/download`
5459
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)));
5460
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5461
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5462
+ let baseOptions;
5463
+ if (configuration) {
5464
+ baseOptions = configuration.baseOptions;
5465
+ }
5466
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5467
+ const localVarHeaderParameter = {};
5468
+ const localVarQueryParameter = {};
5469
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5471
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5472
+ return {
5473
+ url: toPathString(localVarUrlObj),
5474
+ options: localVarRequestOptions,
5475
+ };
5476
+ },
5463
5477
  /**
5464
5478
  *
5465
5479
  * @param {string} id
@@ -5665,6 +5679,18 @@ export const FileApiFp = function (configuration) {
5665
5679
  const localVarOperationServerBasePath = operationServerMap['FileApi.deleteFile']?.[localVarOperationServerIndex]?.url;
5666
5680
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5667
5681
  },
5682
+ /**
5683
+ *
5684
+ * @param {string} key
5685
+ * @param {*} [options] Override http request option.
5686
+ * @throws {RequiredError}
5687
+ */
5688
+ async downloadFile(key, options) {
5689
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(key, options);
5690
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5691
+ const localVarOperationServerBasePath = operationServerMap['FileApi.downloadFile']?.[localVarOperationServerIndex]?.url;
5692
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5693
+ },
5668
5694
  /**
5669
5695
  *
5670
5696
  * @param {string} id
@@ -5745,6 +5771,15 @@ export const FileApiFactory = function (configuration, basePath, axios) {
5745
5771
  deleteFile(requestParameters, options) {
5746
5772
  return localVarFp.deleteFile(requestParameters.id, options).then((request) => request(axios, basePath));
5747
5773
  },
5774
+ /**
5775
+ *
5776
+ * @param {FileApiDownloadFileRequest} requestParameters Request parameters.
5777
+ * @param {*} [options] Override http request option.
5778
+ * @throws {RequiredError}
5779
+ */
5780
+ downloadFile(requestParameters, options) {
5781
+ return localVarFp.downloadFile(requestParameters.key, options).then((request) => request(axios, basePath));
5782
+ },
5748
5783
  /**
5749
5784
  *
5750
5785
  * @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
@@ -5800,6 +5835,16 @@ export class FileApi extends BaseAPI {
5800
5835
  deleteFile(requestParameters, options) {
5801
5836
  return FileApiFp(this.configuration).deleteFile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
5802
5837
  }
5838
+ /**
5839
+ *
5840
+ * @param {FileApiDownloadFileRequest} requestParameters Request parameters.
5841
+ * @param {*} [options] Override http request option.
5842
+ * @throws {RequiredError}
5843
+ * @memberof FileApi
5844
+ */
5845
+ downloadFile(requestParameters, options) {
5846
+ return FileApiFp(this.configuration).downloadFile(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
5847
+ }
5803
5848
  /**
5804
5849
  *
5805
5850
  * @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.40",
3
+ "version": "1.2.42",
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": "e1912d682b9f6092c6d8d90ad959f4fa0481245a"
40
+ "gitHead": "980840ea651d348c27afd8bf83721d6e21554bff"
41
41
  }