@infisale-client/api-client 1.1.19 → 1.1.22

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.mjs CHANGED
@@ -1617,12 +1617,12 @@ export const PageApiAxiosParamCreator = function (configuration) {
1617
1617
  /**
1618
1618
  *
1619
1619
  * @param {string} slug
1620
- * @param {string} [company]
1620
+ * @param {string} [companyId]
1621
1621
  * @param {string} [domain]
1622
1622
  * @param {*} [options] Override http request option.
1623
1623
  * @throws {RequiredError}
1624
1624
  */
1625
- getPageBySlug: async (slug, company, domain, options = {}) => {
1625
+ getPageBySlug: async (slug, companyId, domain, options = {}) => {
1626
1626
  // verify required parameter 'slug' is not null or undefined
1627
1627
  assertParamExists('getPageBySlug', 'slug', slug);
1628
1628
  const localVarPath = `/api/pages/slug/{slug}`
@@ -1636,8 +1636,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
1636
1636
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1637
1637
  const localVarHeaderParameter = {};
1638
1638
  const localVarQueryParameter = {};
1639
- if (company !== undefined) {
1640
- localVarQueryParameter['company'] = company;
1639
+ if (companyId !== undefined) {
1640
+ localVarQueryParameter['company_id'] = companyId;
1641
1641
  }
1642
1642
  if (domain !== undefined) {
1643
1643
  localVarQueryParameter['domain'] = domain;
@@ -1653,12 +1653,12 @@ export const PageApiAxiosParamCreator = function (configuration) {
1653
1653
  /**
1654
1654
  *
1655
1655
  * @param {string} type
1656
- * @param {string} [company]
1656
+ * @param {string} [companyId]
1657
1657
  * @param {string} [domain]
1658
1658
  * @param {*} [options] Override http request option.
1659
1659
  * @throws {RequiredError}
1660
1660
  */
1661
- getPageByType: async (type, company, domain, options = {}) => {
1661
+ getPageByType: async (type, companyId, domain, options = {}) => {
1662
1662
  // verify required parameter 'type' is not null or undefined
1663
1663
  assertParamExists('getPageByType', 'type', type);
1664
1664
  const localVarPath = `/api/pages/type/{type}`
@@ -1672,8 +1672,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
1672
1672
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1673
1673
  const localVarHeaderParameter = {};
1674
1674
  const localVarQueryParameter = {};
1675
- if (company !== undefined) {
1676
- localVarQueryParameter['company'] = company;
1675
+ if (companyId !== undefined) {
1676
+ localVarQueryParameter['company_id'] = companyId;
1677
1677
  }
1678
1678
  if (domain !== undefined) {
1679
1679
  localVarQueryParameter['domain'] = domain;
@@ -1688,7 +1688,6 @@ export const PageApiAxiosParamCreator = function (configuration) {
1688
1688
  },
1689
1689
  /**
1690
1690
  *
1691
- * @param {string} company
1692
1691
  * @param {number} [page]
1693
1692
  * @param {number} [itemsPerPage]
1694
1693
  * @param {string} [search]
@@ -1697,15 +1696,14 @@ export const PageApiAxiosParamCreator = function (configuration) {
1697
1696
  * @param {string} [dateField]
1698
1697
  * @param {OrderEnum} [order]
1699
1698
  * @param {string} [sort]
1699
+ * @param {string} [companyId]
1700
1700
  * @param {string} [domain]
1701
1701
  * @param {PageTypeEnum} [type]
1702
1702
  * @param {ContentStatusEnum} [status]
1703
1703
  * @param {*} [options] Override http request option.
1704
1704
  * @throws {RequiredError}
1705
1705
  */
1706
- getPages: async (company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, domain, type, status, options = {}) => {
1707
- // verify required parameter 'company' is not null or undefined
1708
- assertParamExists('getPages', 'company', company);
1706
+ getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options = {}) => {
1709
1707
  const localVarPath = `/api/pages`;
1710
1708
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1711
1709
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1744,8 +1742,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
1744
1742
  if (sort !== undefined) {
1745
1743
  localVarQueryParameter['sort'] = sort;
1746
1744
  }
1747
- if (company !== undefined) {
1748
- localVarQueryParameter['company'] = company;
1745
+ if (companyId !== undefined) {
1746
+ localVarQueryParameter['company_id'] = companyId;
1749
1747
  }
1750
1748
  if (domain !== undefined) {
1751
1749
  localVarQueryParameter['domain'] = domain;
@@ -1776,13 +1774,13 @@ export const PageApiFp = function (configuration) {
1776
1774
  /**
1777
1775
  *
1778
1776
  * @param {string} slug
1779
- * @param {string} [company]
1777
+ * @param {string} [companyId]
1780
1778
  * @param {string} [domain]
1781
1779
  * @param {*} [options] Override http request option.
1782
1780
  * @throws {RequiredError}
1783
1781
  */
1784
- async getPageBySlug(slug, company, domain, options) {
1785
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug, company, domain, options);
1782
+ async getPageBySlug(slug, companyId, domain, options) {
1783
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug, companyId, domain, options);
1786
1784
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1787
1785
  const localVarOperationServerBasePath = operationServerMap['PageApi.getPageBySlug']?.[localVarOperationServerIndex]?.url;
1788
1786
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1790,20 +1788,19 @@ export const PageApiFp = function (configuration) {
1790
1788
  /**
1791
1789
  *
1792
1790
  * @param {string} type
1793
- * @param {string} [company]
1791
+ * @param {string} [companyId]
1794
1792
  * @param {string} [domain]
1795
1793
  * @param {*} [options] Override http request option.
1796
1794
  * @throws {RequiredError}
1797
1795
  */
1798
- async getPageByType(type, company, domain, options) {
1799
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, company, domain, options);
1796
+ async getPageByType(type, companyId, domain, options) {
1797
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
1800
1798
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1801
1799
  const localVarOperationServerBasePath = operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
1802
1800
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1803
1801
  },
1804
1802
  /**
1805
1803
  *
1806
- * @param {string} company
1807
1804
  * @param {number} [page]
1808
1805
  * @param {number} [itemsPerPage]
1809
1806
  * @param {string} [search]
@@ -1812,14 +1809,15 @@ export const PageApiFp = function (configuration) {
1812
1809
  * @param {string} [dateField]
1813
1810
  * @param {OrderEnum} [order]
1814
1811
  * @param {string} [sort]
1812
+ * @param {string} [companyId]
1815
1813
  * @param {string} [domain]
1816
1814
  * @param {PageTypeEnum} [type]
1817
1815
  * @param {ContentStatusEnum} [status]
1818
1816
  * @param {*} [options] Override http request option.
1819
1817
  * @throws {RequiredError}
1820
1818
  */
1821
- async getPages(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, domain, type, status, options) {
1822
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, domain, type, status, options);
1819
+ async getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options) {
1820
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options);
1823
1821
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1824
1822
  const localVarOperationServerBasePath = operationServerMap['PageApi.getPages']?.[localVarOperationServerIndex]?.url;
1825
1823
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1840,7 +1838,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
1840
1838
  * @throws {RequiredError}
1841
1839
  */
1842
1840
  getPageBySlug(requestParameters, options) {
1843
- return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.company, requestParameters.domain, options).then((request) => request(axios, basePath));
1841
+ return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
1844
1842
  },
1845
1843
  /**
1846
1844
  *
@@ -1849,7 +1847,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
1849
1847
  * @throws {RequiredError}
1850
1848
  */
1851
1849
  getPageByType(requestParameters, options) {
1852
- return localVarFp.getPageByType(requestParameters.type, requestParameters.company, requestParameters.domain, options).then((request) => request(axios, basePath));
1850
+ return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
1853
1851
  },
1854
1852
  /**
1855
1853
  *
@@ -1857,8 +1855,8 @@ export const PageApiFactory = function (configuration, basePath, axios) {
1857
1855
  * @param {*} [options] Override http request option.
1858
1856
  * @throws {RequiredError}
1859
1857
  */
1860
- getPages(requestParameters, options) {
1861
- return localVarFp.getPages(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(axios, basePath));
1858
+ getPages(requestParameters = {}, options) {
1859
+ return localVarFp.getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(axios, basePath));
1862
1860
  },
1863
1861
  };
1864
1862
  };
@@ -1877,7 +1875,7 @@ export class PageApi extends BaseAPI {
1877
1875
  * @memberof PageApi
1878
1876
  */
1879
1877
  getPageBySlug(requestParameters, options) {
1880
- return PageApiFp(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.company, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
1878
+ return PageApiFp(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
1881
1879
  }
1882
1880
  /**
1883
1881
  *
@@ -1887,7 +1885,7 @@ export class PageApi extends BaseAPI {
1887
1885
  * @memberof PageApi
1888
1886
  */
1889
1887
  getPageByType(requestParameters, options) {
1890
- return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.company, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
1888
+ return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
1891
1889
  }
1892
1890
  /**
1893
1891
  *
@@ -1896,8 +1894,8 @@ export class PageApi extends BaseAPI {
1896
1894
  * @throws {RequiredError}
1897
1895
  * @memberof PageApi
1898
1896
  */
1899
- getPages(requestParameters, options) {
1900
- return PageApiFp(this.configuration).getPages(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
1897
+ getPages(requestParameters = {}, options) {
1898
+ return PageApiFp(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
1901
1899
  }
1902
1900
  }
1903
1901
  /**
@@ -1909,15 +1907,14 @@ export const ProductApiAxiosParamCreator = function (configuration) {
1909
1907
  /**
1910
1908
  *
1911
1909
  * @param {string} slug
1912
- * @param {string} domain
1910
+ * @param {string} [companyId]
1911
+ * @param {string} [domain]
1913
1912
  * @param {*} [options] Override http request option.
1914
1913
  * @throws {RequiredError}
1915
1914
  */
1916
- getProductBySlug: async (slug, domain, options = {}) => {
1915
+ getProductBySlug: async (slug, companyId, domain, options = {}) => {
1917
1916
  // verify required parameter 'slug' is not null or undefined
1918
1917
  assertParamExists('getProductBySlug', 'slug', slug);
1919
- // verify required parameter 'domain' is not null or undefined
1920
- assertParamExists('getProductBySlug', 'domain', domain);
1921
1918
  const localVarPath = `/api/products/slug/{slug}`
1922
1919
  .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
1923
1920
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1929,6 +1926,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
1929
1926
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1930
1927
  const localVarHeaderParameter = {};
1931
1928
  const localVarQueryParameter = {};
1929
+ if (companyId !== undefined) {
1930
+ localVarQueryParameter['company_id'] = companyId;
1931
+ }
1932
1932
  if (domain !== undefined) {
1933
1933
  localVarQueryParameter['domain'] = domain;
1934
1934
  }
@@ -1942,7 +1942,6 @@ export const ProductApiAxiosParamCreator = function (configuration) {
1942
1942
  },
1943
1943
  /**
1944
1944
  *
1945
- * @param {string} company
1946
1945
  * @param {number} [page]
1947
1946
  * @param {number} [itemsPerPage]
1948
1947
  * @param {string} [search]
@@ -1951,6 +1950,8 @@ export const ProductApiAxiosParamCreator = function (configuration) {
1951
1950
  * @param {string} [dateField]
1952
1951
  * @param {OrderEnum} [order]
1953
1952
  * @param {string} [sort]
1953
+ * @param {string} [companyId]
1954
+ * @param {string} [domain]
1954
1955
  * @param {string} [collections]
1955
1956
  * @param {string} [category]
1956
1957
  * @param {string} [brand]
@@ -1958,9 +1959,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
1958
1959
  * @param {*} [options] Override http request option.
1959
1960
  * @throws {RequiredError}
1960
1961
  */
1961
- getProducts: async (company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, collections, category, brand, status, options = {}) => {
1962
- // verify required parameter 'company' is not null or undefined
1963
- assertParamExists('getProducts', 'company', company);
1962
+ getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options = {}) => {
1964
1963
  const localVarPath = `/api/products`;
1965
1964
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1966
1965
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1999,8 +1998,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
1999
1998
  if (sort !== undefined) {
2000
1999
  localVarQueryParameter['sort'] = sort;
2001
2000
  }
2002
- if (company !== undefined) {
2003
- localVarQueryParameter['company'] = company;
2001
+ if (companyId !== undefined) {
2002
+ localVarQueryParameter['company_id'] = companyId;
2003
+ }
2004
+ if (domain !== undefined) {
2005
+ localVarQueryParameter['domain'] = domain;
2004
2006
  }
2005
2007
  if (collections !== undefined) {
2006
2008
  localVarQueryParameter['collections'] = collections;
@@ -2024,14 +2026,13 @@ export const ProductApiAxiosParamCreator = function (configuration) {
2024
2026
  },
2025
2027
  /**
2026
2028
  *
2027
- * @param {string} company
2028
2029
  * @param {string} search
2030
+ * @param {string} [companyId]
2031
+ * @param {string} [domain]
2029
2032
  * @param {*} [options] Override http request option.
2030
2033
  * @throws {RequiredError}
2031
2034
  */
2032
- searchProducts: async (company, search, options = {}) => {
2033
- // verify required parameter 'company' is not null or undefined
2034
- assertParamExists('searchProducts', 'company', company);
2035
+ searchProducts: async (search, companyId, domain, options = {}) => {
2035
2036
  // verify required parameter 'search' is not null or undefined
2036
2037
  assertParamExists('searchProducts', 'search', search);
2037
2038
  const localVarPath = `/api/products/search`;
@@ -2044,12 +2045,15 @@ export const ProductApiAxiosParamCreator = function (configuration) {
2044
2045
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2045
2046
  const localVarHeaderParameter = {};
2046
2047
  const localVarQueryParameter = {};
2047
- if (company !== undefined) {
2048
- localVarQueryParameter['company'] = company;
2049
- }
2050
2048
  if (search !== undefined) {
2051
2049
  localVarQueryParameter['search'] = search;
2052
2050
  }
2051
+ if (companyId !== undefined) {
2052
+ localVarQueryParameter['company_id'] = companyId;
2053
+ }
2054
+ if (domain !== undefined) {
2055
+ localVarQueryParameter['domain'] = domain;
2056
+ }
2053
2057
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2054
2058
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2055
2059
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2070,19 +2074,19 @@ export const ProductApiFp = function (configuration) {
2070
2074
  /**
2071
2075
  *
2072
2076
  * @param {string} slug
2073
- * @param {string} domain
2077
+ * @param {string} [companyId]
2078
+ * @param {string} [domain]
2074
2079
  * @param {*} [options] Override http request option.
2075
2080
  * @throws {RequiredError}
2076
2081
  */
2077
- async getProductBySlug(slug, domain, options) {
2078
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, domain, options);
2082
+ async getProductBySlug(slug, companyId, domain, options) {
2083
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, companyId, domain, options);
2079
2084
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2080
2085
  const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
2081
2086
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2082
2087
  },
2083
2088
  /**
2084
2089
  *
2085
- * @param {string} company
2086
2090
  * @param {number} [page]
2087
2091
  * @param {number} [itemsPerPage]
2088
2092
  * @param {string} [search]
@@ -2091,6 +2095,8 @@ export const ProductApiFp = function (configuration) {
2091
2095
  * @param {string} [dateField]
2092
2096
  * @param {OrderEnum} [order]
2093
2097
  * @param {string} [sort]
2098
+ * @param {string} [companyId]
2099
+ * @param {string} [domain]
2094
2100
  * @param {string} [collections]
2095
2101
  * @param {string} [category]
2096
2102
  * @param {string} [brand]
@@ -2098,21 +2104,22 @@ export const ProductApiFp = function (configuration) {
2098
2104
  * @param {*} [options] Override http request option.
2099
2105
  * @throws {RequiredError}
2100
2106
  */
2101
- async getProducts(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, collections, category, brand, status, options) {
2102
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, collections, category, brand, status, options);
2107
+ async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options) {
2108
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options);
2103
2109
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2104
2110
  const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
2105
2111
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2106
2112
  },
2107
2113
  /**
2108
2114
  *
2109
- * @param {string} company
2110
2115
  * @param {string} search
2116
+ * @param {string} [companyId]
2117
+ * @param {string} [domain]
2111
2118
  * @param {*} [options] Override http request option.
2112
2119
  * @throws {RequiredError}
2113
2120
  */
2114
- async searchProducts(company, search, options) {
2115
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(company, search, options);
2121
+ async searchProducts(search, companyId, domain, options) {
2122
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
2116
2123
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2117
2124
  const localVarOperationServerBasePath = operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
2118
2125
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2133,7 +2140,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
2133
2140
  * @throws {RequiredError}
2134
2141
  */
2135
2142
  getProductBySlug(requestParameters, options) {
2136
- return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(axios, basePath));
2143
+ return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
2137
2144
  },
2138
2145
  /**
2139
2146
  *
@@ -2141,8 +2148,8 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
2141
2148
  * @param {*} [options] Override http request option.
2142
2149
  * @throws {RequiredError}
2143
2150
  */
2144
- getProducts(requestParameters, options) {
2145
- return localVarFp.getProducts(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(axios, basePath));
2151
+ getProducts(requestParameters = {}, options) {
2152
+ return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(axios, basePath));
2146
2153
  },
2147
2154
  /**
2148
2155
  *
@@ -2151,7 +2158,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
2151
2158
  * @throws {RequiredError}
2152
2159
  */
2153
2160
  searchProducts(requestParameters, options) {
2154
- return localVarFp.searchProducts(requestParameters.company, requestParameters.search, options).then((request) => request(axios, basePath));
2161
+ return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
2155
2162
  },
2156
2163
  };
2157
2164
  };
@@ -2170,7 +2177,7 @@ export class ProductApi extends BaseAPI {
2170
2177
  * @memberof ProductApi
2171
2178
  */
2172
2179
  getProductBySlug(requestParameters, options) {
2173
- return ProductApiFp(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
2180
+ return ProductApiFp(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
2174
2181
  }
2175
2182
  /**
2176
2183
  *
@@ -2179,8 +2186,8 @@ export class ProductApi extends BaseAPI {
2179
2186
  * @throws {RequiredError}
2180
2187
  * @memberof ProductApi
2181
2188
  */
2182
- getProducts(requestParameters, options) {
2183
- return ProductApiFp(this.configuration).getProducts(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2189
+ getProducts(requestParameters = {}, options) {
2190
+ return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
2184
2191
  }
2185
2192
  /**
2186
2193
  *
@@ -2190,7 +2197,7 @@ export class ProductApi extends BaseAPI {
2190
2197
  * @memberof ProductApi
2191
2198
  */
2192
2199
  searchProducts(requestParameters, options) {
2193
- return ProductApiFp(this.configuration).searchProducts(requestParameters.company, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2200
+ return ProductApiFp(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
2194
2201
  }
2195
2202
  }
2196
2203
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.1.19",
3
+ "version": "1.1.22",
4
4
  "description": "api-client-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -36,5 +36,5 @@
36
36
  "bugs": {
37
37
  "url": "https://github.com/infisale/infisale-client/issues"
38
38
  },
39
- "gitHead": "3bece57b6764b113ec9e88dbcc5375b98d9437fc"
39
+ "gitHead": "11a0263e143de3f428f639b09f0ffc7d83696aad"
40
40
  }