@infisale-client/api 1.2.38 → 1.2.39

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
@@ -10547,11 +10547,12 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
10547
10547
  getBasket: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10548
10548
  /**
10549
10549
  *
10550
+ * @param {string} domain
10550
10551
  * @param {string} [id]
10551
10552
  * @param {*} [options] Override http request option.
10552
10553
  * @throws {RequiredError}
10553
10554
  */
10554
- getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10555
+ getBasketCount: (domain: string, id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10555
10556
  /**
10556
10557
  *
10557
10558
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -10598,11 +10599,12 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
10598
10599
  getBasket(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
10599
10600
  /**
10600
10601
  *
10602
+ * @param {string} domain
10601
10603
  * @param {string} [id]
10602
10604
  * @param {*} [options] Override http request option.
10603
10605
  * @throws {RequiredError}
10604
10606
  */
10605
- getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
10607
+ getBasketCount(domain: string, id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
10606
10608
  /**
10607
10609
  *
10608
10610
  * @param {IBasketMergeRequest} iBasketMergeRequest
@@ -10651,7 +10653,7 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
10651
10653
  * @param {*} [options] Override http request option.
10652
10654
  * @throws {RequiredError}
10653
10655
  */
10654
- getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
10656
+ getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
10655
10657
  /**
10656
10658
  *
10657
10659
  * @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
@@ -10724,6 +10726,12 @@ export interface BasketApiGetBasketRequest {
10724
10726
  * @interface BasketApiGetBasketCountRequest
10725
10727
  */
10726
10728
  export interface BasketApiGetBasketCountRequest {
10729
+ /**
10730
+ *
10731
+ * @type {string}
10732
+ * @memberof BasketApiGetBasketCount
10733
+ */
10734
+ readonly domain: string;
10727
10735
  /**
10728
10736
  *
10729
10737
  * @type {string}
@@ -10801,7 +10809,7 @@ export declare class BasketApi extends BaseAPI {
10801
10809
  * @throws {RequiredError}
10802
10810
  * @memberof BasketApi
10803
10811
  */
10804
- getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
10812
+ getBasketCount(requestParameters: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
10805
10813
  /**
10806
10814
  *
10807
10815
  * @param {BasketApiMergeBasketRequest} 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
  *
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
  *
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.39",
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": "a2243522d8a3450966554343800b7dda538a6062"
41
41
  }