@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.d.ts +1311 -465
- package/dist/api/api.js +72 -65
- package/dist/api/api.mjs +72 -65
- package/package.json +2 -2
package/dist/api/api.js
CHANGED
|
@@ -1643,12 +1643,12 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1643
1643
|
/**
|
|
1644
1644
|
*
|
|
1645
1645
|
* @param {string} slug
|
|
1646
|
-
* @param {string} [
|
|
1646
|
+
* @param {string} [companyId]
|
|
1647
1647
|
* @param {string} [domain]
|
|
1648
1648
|
* @param {*} [options] Override http request option.
|
|
1649
1649
|
* @throws {RequiredError}
|
|
1650
1650
|
*/
|
|
1651
|
-
getPageBySlug: async (slug,
|
|
1651
|
+
getPageBySlug: async (slug, companyId, domain, options = {}) => {
|
|
1652
1652
|
// verify required parameter 'slug' is not null or undefined
|
|
1653
1653
|
(0, common_1.assertParamExists)('getPageBySlug', 'slug', slug);
|
|
1654
1654
|
const localVarPath = `/api/pages/slug/{slug}`
|
|
@@ -1662,8 +1662,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1662
1662
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1663
1663
|
const localVarHeaderParameter = {};
|
|
1664
1664
|
const localVarQueryParameter = {};
|
|
1665
|
-
if (
|
|
1666
|
-
localVarQueryParameter['
|
|
1665
|
+
if (companyId !== undefined) {
|
|
1666
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1667
1667
|
}
|
|
1668
1668
|
if (domain !== undefined) {
|
|
1669
1669
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -1679,12 +1679,12 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1679
1679
|
/**
|
|
1680
1680
|
*
|
|
1681
1681
|
* @param {string} type
|
|
1682
|
-
* @param {string} [
|
|
1682
|
+
* @param {string} [companyId]
|
|
1683
1683
|
* @param {string} [domain]
|
|
1684
1684
|
* @param {*} [options] Override http request option.
|
|
1685
1685
|
* @throws {RequiredError}
|
|
1686
1686
|
*/
|
|
1687
|
-
getPageByType: async (type,
|
|
1687
|
+
getPageByType: async (type, companyId, domain, options = {}) => {
|
|
1688
1688
|
// verify required parameter 'type' is not null or undefined
|
|
1689
1689
|
(0, common_1.assertParamExists)('getPageByType', 'type', type);
|
|
1690
1690
|
const localVarPath = `/api/pages/type/{type}`
|
|
@@ -1698,8 +1698,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1698
1698
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1699
1699
|
const localVarHeaderParameter = {};
|
|
1700
1700
|
const localVarQueryParameter = {};
|
|
1701
|
-
if (
|
|
1702
|
-
localVarQueryParameter['
|
|
1701
|
+
if (companyId !== undefined) {
|
|
1702
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1703
1703
|
}
|
|
1704
1704
|
if (domain !== undefined) {
|
|
1705
1705
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -1714,7 +1714,6 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1714
1714
|
},
|
|
1715
1715
|
/**
|
|
1716
1716
|
*
|
|
1717
|
-
* @param {string} company
|
|
1718
1717
|
* @param {number} [page]
|
|
1719
1718
|
* @param {number} [itemsPerPage]
|
|
1720
1719
|
* @param {string} [search]
|
|
@@ -1723,15 +1722,14 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1723
1722
|
* @param {string} [dateField]
|
|
1724
1723
|
* @param {OrderEnum} [order]
|
|
1725
1724
|
* @param {string} [sort]
|
|
1725
|
+
* @param {string} [companyId]
|
|
1726
1726
|
* @param {string} [domain]
|
|
1727
1727
|
* @param {PageTypeEnum} [type]
|
|
1728
1728
|
* @param {ContentStatusEnum} [status]
|
|
1729
1729
|
* @param {*} [options] Override http request option.
|
|
1730
1730
|
* @throws {RequiredError}
|
|
1731
1731
|
*/
|
|
1732
|
-
getPages: async (
|
|
1733
|
-
// verify required parameter 'company' is not null or undefined
|
|
1734
|
-
(0, common_1.assertParamExists)('getPages', 'company', company);
|
|
1732
|
+
getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options = {}) => {
|
|
1735
1733
|
const localVarPath = `/api/pages`;
|
|
1736
1734
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1737
1735
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1770,8 +1768,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
1770
1768
|
if (sort !== undefined) {
|
|
1771
1769
|
localVarQueryParameter['sort'] = sort;
|
|
1772
1770
|
}
|
|
1773
|
-
if (
|
|
1774
|
-
localVarQueryParameter['
|
|
1771
|
+
if (companyId !== undefined) {
|
|
1772
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1775
1773
|
}
|
|
1776
1774
|
if (domain !== undefined) {
|
|
1777
1775
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -1803,13 +1801,13 @@ const PageApiFp = function (configuration) {
|
|
|
1803
1801
|
/**
|
|
1804
1802
|
*
|
|
1805
1803
|
* @param {string} slug
|
|
1806
|
-
* @param {string} [
|
|
1804
|
+
* @param {string} [companyId]
|
|
1807
1805
|
* @param {string} [domain]
|
|
1808
1806
|
* @param {*} [options] Override http request option.
|
|
1809
1807
|
* @throws {RequiredError}
|
|
1810
1808
|
*/
|
|
1811
|
-
async getPageBySlug(slug,
|
|
1812
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug,
|
|
1809
|
+
async getPageBySlug(slug, companyId, domain, options) {
|
|
1810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug, companyId, domain, options);
|
|
1813
1811
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1814
1812
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageBySlug']?.[localVarOperationServerIndex]?.url;
|
|
1815
1813
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1817,20 +1815,19 @@ const PageApiFp = function (configuration) {
|
|
|
1817
1815
|
/**
|
|
1818
1816
|
*
|
|
1819
1817
|
* @param {string} type
|
|
1820
|
-
* @param {string} [
|
|
1818
|
+
* @param {string} [companyId]
|
|
1821
1819
|
* @param {string} [domain]
|
|
1822
1820
|
* @param {*} [options] Override http request option.
|
|
1823
1821
|
* @throws {RequiredError}
|
|
1824
1822
|
*/
|
|
1825
|
-
async getPageByType(type,
|
|
1826
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type,
|
|
1823
|
+
async getPageByType(type, companyId, domain, options) {
|
|
1824
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
|
|
1827
1825
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1828
1826
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
|
|
1829
1827
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1830
1828
|
},
|
|
1831
1829
|
/**
|
|
1832
1830
|
*
|
|
1833
|
-
* @param {string} company
|
|
1834
1831
|
* @param {number} [page]
|
|
1835
1832
|
* @param {number} [itemsPerPage]
|
|
1836
1833
|
* @param {string} [search]
|
|
@@ -1839,14 +1836,15 @@ const PageApiFp = function (configuration) {
|
|
|
1839
1836
|
* @param {string} [dateField]
|
|
1840
1837
|
* @param {OrderEnum} [order]
|
|
1841
1838
|
* @param {string} [sort]
|
|
1839
|
+
* @param {string} [companyId]
|
|
1842
1840
|
* @param {string} [domain]
|
|
1843
1841
|
* @param {PageTypeEnum} [type]
|
|
1844
1842
|
* @param {ContentStatusEnum} [status]
|
|
1845
1843
|
* @param {*} [options] Override http request option.
|
|
1846
1844
|
* @throws {RequiredError}
|
|
1847
1845
|
*/
|
|
1848
|
-
async getPages(
|
|
1849
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(
|
|
1846
|
+
async getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options) {
|
|
1847
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options);
|
|
1850
1848
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1851
1849
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPages']?.[localVarOperationServerIndex]?.url;
|
|
1852
1850
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1868,7 +1866,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
1868
1866
|
* @throws {RequiredError}
|
|
1869
1867
|
*/
|
|
1870
1868
|
getPageBySlug(requestParameters, options) {
|
|
1871
|
-
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.
|
|
1869
|
+
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
1872
1870
|
},
|
|
1873
1871
|
/**
|
|
1874
1872
|
*
|
|
@@ -1877,7 +1875,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
1877
1875
|
* @throws {RequiredError}
|
|
1878
1876
|
*/
|
|
1879
1877
|
getPageByType(requestParameters, options) {
|
|
1880
|
-
return localVarFp.getPageByType(requestParameters.type, requestParameters.
|
|
1878
|
+
return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
1881
1879
|
},
|
|
1882
1880
|
/**
|
|
1883
1881
|
*
|
|
@@ -1885,8 +1883,8 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
1885
1883
|
* @param {*} [options] Override http request option.
|
|
1886
1884
|
* @throws {RequiredError}
|
|
1887
1885
|
*/
|
|
1888
|
-
getPages(requestParameters, options) {
|
|
1889
|
-
return localVarFp.getPages(requestParameters.
|
|
1886
|
+
getPages(requestParameters = {}, options) {
|
|
1887
|
+
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));
|
|
1890
1888
|
},
|
|
1891
1889
|
};
|
|
1892
1890
|
};
|
|
@@ -1906,7 +1904,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
1906
1904
|
* @memberof PageApi
|
|
1907
1905
|
*/
|
|
1908
1906
|
getPageBySlug(requestParameters, options) {
|
|
1909
|
-
return (0, exports.PageApiFp)(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.
|
|
1907
|
+
return (0, exports.PageApiFp)(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
1910
1908
|
}
|
|
1911
1909
|
/**
|
|
1912
1910
|
*
|
|
@@ -1916,7 +1914,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
1916
1914
|
* @memberof PageApi
|
|
1917
1915
|
*/
|
|
1918
1916
|
getPageByType(requestParameters, options) {
|
|
1919
|
-
return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.
|
|
1917
|
+
return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
1920
1918
|
}
|
|
1921
1919
|
/**
|
|
1922
1920
|
*
|
|
@@ -1925,8 +1923,8 @@ class PageApi extends base_1.BaseAPI {
|
|
|
1925
1923
|
* @throws {RequiredError}
|
|
1926
1924
|
* @memberof PageApi
|
|
1927
1925
|
*/
|
|
1928
|
-
getPages(requestParameters, options) {
|
|
1929
|
-
return (0, exports.PageApiFp)(this.configuration).getPages(requestParameters.
|
|
1926
|
+
getPages(requestParameters = {}, options) {
|
|
1927
|
+
return (0, exports.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));
|
|
1930
1928
|
}
|
|
1931
1929
|
}
|
|
1932
1930
|
exports.PageApi = PageApi;
|
|
@@ -1939,15 +1937,14 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1939
1937
|
/**
|
|
1940
1938
|
*
|
|
1941
1939
|
* @param {string} slug
|
|
1942
|
-
* @param {string}
|
|
1940
|
+
* @param {string} [companyId]
|
|
1941
|
+
* @param {string} [domain]
|
|
1943
1942
|
* @param {*} [options] Override http request option.
|
|
1944
1943
|
* @throws {RequiredError}
|
|
1945
1944
|
*/
|
|
1946
|
-
getProductBySlug: async (slug, domain, options = {}) => {
|
|
1945
|
+
getProductBySlug: async (slug, companyId, domain, options = {}) => {
|
|
1947
1946
|
// verify required parameter 'slug' is not null or undefined
|
|
1948
1947
|
(0, common_1.assertParamExists)('getProductBySlug', 'slug', slug);
|
|
1949
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1950
|
-
(0, common_1.assertParamExists)('getProductBySlug', 'domain', domain);
|
|
1951
1948
|
const localVarPath = `/api/products/slug/{slug}`
|
|
1952
1949
|
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
1953
1950
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1959,6 +1956,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1959
1956
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1960
1957
|
const localVarHeaderParameter = {};
|
|
1961
1958
|
const localVarQueryParameter = {};
|
|
1959
|
+
if (companyId !== undefined) {
|
|
1960
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1961
|
+
}
|
|
1962
1962
|
if (domain !== undefined) {
|
|
1963
1963
|
localVarQueryParameter['domain'] = domain;
|
|
1964
1964
|
}
|
|
@@ -1972,7 +1972,6 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1972
1972
|
},
|
|
1973
1973
|
/**
|
|
1974
1974
|
*
|
|
1975
|
-
* @param {string} company
|
|
1976
1975
|
* @param {number} [page]
|
|
1977
1976
|
* @param {number} [itemsPerPage]
|
|
1978
1977
|
* @param {string} [search]
|
|
@@ -1981,6 +1980,8 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1981
1980
|
* @param {string} [dateField]
|
|
1982
1981
|
* @param {OrderEnum} [order]
|
|
1983
1982
|
* @param {string} [sort]
|
|
1983
|
+
* @param {string} [companyId]
|
|
1984
|
+
* @param {string} [domain]
|
|
1984
1985
|
* @param {string} [collections]
|
|
1985
1986
|
* @param {string} [category]
|
|
1986
1987
|
* @param {string} [brand]
|
|
@@ -1988,9 +1989,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
1988
1989
|
* @param {*} [options] Override http request option.
|
|
1989
1990
|
* @throws {RequiredError}
|
|
1990
1991
|
*/
|
|
1991
|
-
getProducts: async (
|
|
1992
|
-
// verify required parameter 'company' is not null or undefined
|
|
1993
|
-
(0, common_1.assertParamExists)('getProducts', 'company', company);
|
|
1992
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options = {}) => {
|
|
1994
1993
|
const localVarPath = `/api/products`;
|
|
1995
1994
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1996
1995
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2029,8 +2028,11 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2029
2028
|
if (sort !== undefined) {
|
|
2030
2029
|
localVarQueryParameter['sort'] = sort;
|
|
2031
2030
|
}
|
|
2032
|
-
if (
|
|
2033
|
-
localVarQueryParameter['
|
|
2031
|
+
if (companyId !== undefined) {
|
|
2032
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2033
|
+
}
|
|
2034
|
+
if (domain !== undefined) {
|
|
2035
|
+
localVarQueryParameter['domain'] = domain;
|
|
2034
2036
|
}
|
|
2035
2037
|
if (collections !== undefined) {
|
|
2036
2038
|
localVarQueryParameter['collections'] = collections;
|
|
@@ -2054,14 +2056,13 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2054
2056
|
},
|
|
2055
2057
|
/**
|
|
2056
2058
|
*
|
|
2057
|
-
* @param {string} company
|
|
2058
2059
|
* @param {string} search
|
|
2060
|
+
* @param {string} [companyId]
|
|
2061
|
+
* @param {string} [domain]
|
|
2059
2062
|
* @param {*} [options] Override http request option.
|
|
2060
2063
|
* @throws {RequiredError}
|
|
2061
2064
|
*/
|
|
2062
|
-
searchProducts: async (
|
|
2063
|
-
// verify required parameter 'company' is not null or undefined
|
|
2064
|
-
(0, common_1.assertParamExists)('searchProducts', 'company', company);
|
|
2065
|
+
searchProducts: async (search, companyId, domain, options = {}) => {
|
|
2065
2066
|
// verify required parameter 'search' is not null or undefined
|
|
2066
2067
|
(0, common_1.assertParamExists)('searchProducts', 'search', search);
|
|
2067
2068
|
const localVarPath = `/api/products/search`;
|
|
@@ -2074,12 +2075,15 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2074
2075
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2075
2076
|
const localVarHeaderParameter = {};
|
|
2076
2077
|
const localVarQueryParameter = {};
|
|
2077
|
-
if (company !== undefined) {
|
|
2078
|
-
localVarQueryParameter['company'] = company;
|
|
2079
|
-
}
|
|
2080
2078
|
if (search !== undefined) {
|
|
2081
2079
|
localVarQueryParameter['search'] = search;
|
|
2082
2080
|
}
|
|
2081
|
+
if (companyId !== undefined) {
|
|
2082
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2083
|
+
}
|
|
2084
|
+
if (domain !== undefined) {
|
|
2085
|
+
localVarQueryParameter['domain'] = domain;
|
|
2086
|
+
}
|
|
2083
2087
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2084
2088
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2085
2089
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2101,19 +2105,19 @@ const ProductApiFp = function (configuration) {
|
|
|
2101
2105
|
/**
|
|
2102
2106
|
*
|
|
2103
2107
|
* @param {string} slug
|
|
2104
|
-
* @param {string}
|
|
2108
|
+
* @param {string} [companyId]
|
|
2109
|
+
* @param {string} [domain]
|
|
2105
2110
|
* @param {*} [options] Override http request option.
|
|
2106
2111
|
* @throws {RequiredError}
|
|
2107
2112
|
*/
|
|
2108
|
-
async getProductBySlug(slug, domain, options) {
|
|
2109
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, domain, options);
|
|
2113
|
+
async getProductBySlug(slug, companyId, domain, options) {
|
|
2114
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, companyId, domain, options);
|
|
2110
2115
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2111
2116
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
|
|
2112
2117
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2113
2118
|
},
|
|
2114
2119
|
/**
|
|
2115
2120
|
*
|
|
2116
|
-
* @param {string} company
|
|
2117
2121
|
* @param {number} [page]
|
|
2118
2122
|
* @param {number} [itemsPerPage]
|
|
2119
2123
|
* @param {string} [search]
|
|
@@ -2122,6 +2126,8 @@ const ProductApiFp = function (configuration) {
|
|
|
2122
2126
|
* @param {string} [dateField]
|
|
2123
2127
|
* @param {OrderEnum} [order]
|
|
2124
2128
|
* @param {string} [sort]
|
|
2129
|
+
* @param {string} [companyId]
|
|
2130
|
+
* @param {string} [domain]
|
|
2125
2131
|
* @param {string} [collections]
|
|
2126
2132
|
* @param {string} [category]
|
|
2127
2133
|
* @param {string} [brand]
|
|
@@ -2129,21 +2135,22 @@ const ProductApiFp = function (configuration) {
|
|
|
2129
2135
|
* @param {*} [options] Override http request option.
|
|
2130
2136
|
* @throws {RequiredError}
|
|
2131
2137
|
*/
|
|
2132
|
-
async getProducts(
|
|
2133
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(
|
|
2138
|
+
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options) {
|
|
2139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options);
|
|
2134
2140
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2135
2141
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
2136
2142
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2137
2143
|
},
|
|
2138
2144
|
/**
|
|
2139
2145
|
*
|
|
2140
|
-
* @param {string} company
|
|
2141
2146
|
* @param {string} search
|
|
2147
|
+
* @param {string} [companyId]
|
|
2148
|
+
* @param {string} [domain]
|
|
2142
2149
|
* @param {*} [options] Override http request option.
|
|
2143
2150
|
* @throws {RequiredError}
|
|
2144
2151
|
*/
|
|
2145
|
-
async searchProducts(
|
|
2146
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(
|
|
2152
|
+
async searchProducts(search, companyId, domain, options) {
|
|
2153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
|
|
2147
2154
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2148
2155
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
|
|
2149
2156
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2165,7 +2172,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2165
2172
|
* @throws {RequiredError}
|
|
2166
2173
|
*/
|
|
2167
2174
|
getProductBySlug(requestParameters, options) {
|
|
2168
|
-
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2175
|
+
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2169
2176
|
},
|
|
2170
2177
|
/**
|
|
2171
2178
|
*
|
|
@@ -2173,8 +2180,8 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2173
2180
|
* @param {*} [options] Override http request option.
|
|
2174
2181
|
* @throws {RequiredError}
|
|
2175
2182
|
*/
|
|
2176
|
-
getProducts(requestParameters, options) {
|
|
2177
|
-
return localVarFp.getProducts(requestParameters.
|
|
2183
|
+
getProducts(requestParameters = {}, options) {
|
|
2184
|
+
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));
|
|
2178
2185
|
},
|
|
2179
2186
|
/**
|
|
2180
2187
|
*
|
|
@@ -2183,7 +2190,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2183
2190
|
* @throws {RequiredError}
|
|
2184
2191
|
*/
|
|
2185
2192
|
searchProducts(requestParameters, options) {
|
|
2186
|
-
return localVarFp.searchProducts(requestParameters.
|
|
2193
|
+
return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2187
2194
|
},
|
|
2188
2195
|
};
|
|
2189
2196
|
};
|
|
@@ -2203,7 +2210,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
2203
2210
|
* @memberof ProductApi
|
|
2204
2211
|
*/
|
|
2205
2212
|
getProductBySlug(requestParameters, options) {
|
|
2206
|
-
return (0, exports.ProductApiFp)(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2213
|
+
return (0, exports.ProductApiFp)(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2207
2214
|
}
|
|
2208
2215
|
/**
|
|
2209
2216
|
*
|
|
@@ -2212,8 +2219,8 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
2212
2219
|
* @throws {RequiredError}
|
|
2213
2220
|
* @memberof ProductApi
|
|
2214
2221
|
*/
|
|
2215
|
-
getProducts(requestParameters, options) {
|
|
2216
|
-
return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.
|
|
2222
|
+
getProducts(requestParameters = {}, options) {
|
|
2223
|
+
return (0, exports.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));
|
|
2217
2224
|
}
|
|
2218
2225
|
/**
|
|
2219
2226
|
*
|
|
@@ -2223,7 +2230,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
2223
2230
|
* @memberof ProductApi
|
|
2224
2231
|
*/
|
|
2225
2232
|
searchProducts(requestParameters, options) {
|
|
2226
|
-
return (0, exports.ProductApiFp)(this.configuration).searchProducts(requestParameters.
|
|
2233
|
+
return (0, exports.ProductApiFp)(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2227
2234
|
}
|
|
2228
2235
|
}
|
|
2229
2236
|
exports.ProductApi = ProductApi;
|