@infisale-client/api 1.2.40 → 1.2.41

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
@@ -10614,20 +10614,18 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
10614
10614
  deleteProductFromBasket: (itemId: string, iBasketDeleteRequest: IBasketDeleteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10615
10615
  /**
10616
10616
  *
10617
- * @param {string} domain
10618
10617
  * @param {string} [id]
10619
10618
  * @param {*} [options] Override http request option.
10620
10619
  * @throws {RequiredError}
10621
10620
  */
10622
- getBasket: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10621
+ getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10623
10622
  /**
10624
10623
  *
10625
- * @param {string} domain
10626
10624
  * @param {string} [id]
10627
10625
  * @param {*} [options] Override http request option.
10628
10626
  * @throws {RequiredError}
10629
10627
  */
10630
- getBasketCount: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10628
+ getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10631
10629
  /**
10632
10630
  *
10633
10631
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -10666,20 +10664,18 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
10666
10664
  deleteProductFromBasket(itemId: string, iBasketDeleteRequest: IBasketDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
10667
10665
  /**
10668
10666
  *
10669
- * @param {string} domain
10670
10667
  * @param {string} [id]
10671
10668
  * @param {*} [options] Override http request option.
10672
10669
  * @throws {RequiredError}
10673
10670
  */
10674
- getBasket(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
10671
+ getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
10675
10672
  /**
10676
10673
  *
10677
- * @param {string} domain
10678
10674
  * @param {string} [id]
10679
10675
  * @param {*} [options] Override http request option.
10680
10676
  * @throws {RequiredError}
10681
10677
  */
10682
- getBasketCount(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
10678
+ getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
10683
10679
  /**
10684
10680
  *
10685
10681
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -10721,14 +10717,14 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
10721
10717
  * @param {*} [options] Override http request option.
10722
10718
  * @throws {RequiredError}
10723
10719
  */
10724
- getBasket(requestParameters: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
10720
+ getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
10725
10721
  /**
10726
10722
  *
10727
10723
  * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
10728
10724
  * @param {*} [options] Override http request option.
10729
10725
  * @throws {RequiredError}
10730
10726
  */
10731
- getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
10727
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
10732
10728
  /**
10733
10729
  *
10734
10730
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -10782,12 +10778,6 @@ export interface BasketApiDeleteProductFromBasketRequest {
10782
10778
  * @interface BasketApiGetBasketRequest
10783
10779
  */
10784
10780
  export interface BasketApiGetBasketRequest {
10785
- /**
10786
- *
10787
- * @type {string}
10788
- * @memberof BasketApiGetBasket
10789
- */
10790
- readonly domain: string;
10791
10781
  /**
10792
10782
  *
10793
10783
  * @type {string}
@@ -10801,12 +10791,6 @@ export interface BasketApiGetBasketRequest {
10801
10791
  * @interface BasketApiGetBasketCountRequest
10802
10792
  */
10803
10793
  export interface BasketApiGetBasketCountRequest {
10804
- /**
10805
- *
10806
- * @type {string}
10807
- * @memberof BasketApiGetBasketCount
10808
- */
10809
- readonly domain: string;
10810
10794
  /**
10811
10795
  *
10812
10796
  * @type {string}
@@ -10876,7 +10860,7 @@ export declare class BasketApi extends BaseAPI {
10876
10860
  * @throws {RequiredError}
10877
10861
  * @memberof BasketApi
10878
10862
  */
10879
- getBasket(requestParameters: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
10863
+ getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
10880
10864
  /**
10881
10865
  *
10882
10866
  * @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
@@ -10884,7 +10868,7 @@ export declare class BasketApi extends BaseAPI {
10884
10868
  * @throws {RequiredError}
10885
10869
  * @memberof BasketApi
10886
10870
  */
10887
- getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
10871
+ getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
10888
10872
  /**
10889
10873
  *
10890
10874
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -13732,6 +13716,13 @@ export declare const FileApiAxiosParamCreator: (configuration?: Configuration) =
13732
13716
  * @throws {RequiredError}
13733
13717
  */
13734
13718
  deleteFile: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13719
+ /**
13720
+ *
13721
+ * @param {string} key
13722
+ * @param {*} [options] Override http request option.
13723
+ * @throws {RequiredError}
13724
+ */
13725
+ downloadFile: (key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13735
13726
  /**
13736
13727
  *
13737
13728
  * @param {string} id
@@ -13787,6 +13778,13 @@ export declare const FileApiFp: (configuration?: Configuration) => {
13787
13778
  * @throws {RequiredError}
13788
13779
  */
13789
13780
  deleteFile(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
13781
+ /**
13782
+ *
13783
+ * @param {string} key
13784
+ * @param {*} [options] Override http request option.
13785
+ * @throws {RequiredError}
13786
+ */
13787
+ downloadFile(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
13790
13788
  /**
13791
13789
  *
13792
13790
  * @param {string} id
@@ -13842,6 +13840,13 @@ export declare const FileApiFactory: (configuration?: Configuration, basePath?:
13842
13840
  * @throws {RequiredError}
13843
13841
  */
13844
13842
  deleteFile(requestParameters: FileApiDeleteFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
13843
+ /**
13844
+ *
13845
+ * @param {FileApiDownloadFileRequest} requestParameters Request parameters.
13846
+ * @param {*} [options] Override http request option.
13847
+ * @throws {RequiredError}
13848
+ */
13849
+ downloadFile(requestParameters: FileApiDownloadFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
13845
13850
  /**
13846
13851
  *
13847
13852
  * @param {FileApiGetFileByIdRequest} requestParameters Request parameters.
@@ -13884,6 +13889,19 @@ export interface FileApiDeleteFileRequest {
13884
13889
  */
13885
13890
  readonly id: string;
13886
13891
  }
13892
+ /**
13893
+ * Request parameters for downloadFile operation in FileApi.
13894
+ * @export
13895
+ * @interface FileApiDownloadFileRequest
13896
+ */
13897
+ export interface FileApiDownloadFileRequest {
13898
+ /**
13899
+ *
13900
+ * @type {string}
13901
+ * @memberof FileApiDownloadFile
13902
+ */
13903
+ readonly key: string;
13904
+ }
13887
13905
  /**
13888
13906
  * Request parameters for getFileById operation in FileApi.
13889
13907
  * @export
@@ -14035,6 +14053,14 @@ export declare class FileApi extends BaseAPI {
14035
14053
  * @memberof FileApi
14036
14054
  */
14037
14055
  deleteFile(requestParameters: FileApiDeleteFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
14056
+ /**
14057
+ *
14058
+ * @param {FileApiDownloadFileRequest} requestParameters Request parameters.
14059
+ * @param {*} [options] Override http request option.
14060
+ * @throws {RequiredError}
14061
+ * @memberof FileApi
14062
+ */
14063
+ downloadFile(requestParameters: FileApiDownloadFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
14038
14064
  /**
14039
14065
  *
14040
14066
  * @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.41",
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": "3e80db112700f1d8cb36ee399e03fd2b249aae84"
41
41
  }