@infisale-client/api 1.1.21 → 1.1.23
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 +765 -761
- package/dist/api/api.js +196 -185
- package/dist/api/api.mjs +196 -185
- package/package.json +2 -2
package/dist/api/api.js
CHANGED
|
@@ -1744,13 +1744,13 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1744
1744
|
},
|
|
1745
1745
|
/**
|
|
1746
1746
|
*
|
|
1747
|
-
* @param {string}
|
|
1747
|
+
* @param {string} companyId
|
|
1748
1748
|
* @param {*} [options] Override http request option.
|
|
1749
1749
|
* @throws {RequiredError}
|
|
1750
1750
|
*/
|
|
1751
|
-
getAllBrands: async (
|
|
1752
|
-
// verify required parameter '
|
|
1753
|
-
(0, common_1.assertParamExists)('getAllBrands', '
|
|
1751
|
+
getAllBrands: async (companyId, options = {}) => {
|
|
1752
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
1753
|
+
(0, common_1.assertParamExists)('getAllBrands', 'companyId', companyId);
|
|
1754
1754
|
const localVarPath = `/api/brands/get/all`;
|
|
1755
1755
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1756
1756
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1761,8 +1761,8 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1761
1761
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1762
1762
|
const localVarHeaderParameter = {};
|
|
1763
1763
|
const localVarQueryParameter = {};
|
|
1764
|
-
if (
|
|
1765
|
-
localVarQueryParameter['
|
|
1764
|
+
if (companyId !== undefined) {
|
|
1765
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1766
1766
|
}
|
|
1767
1767
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1768
1768
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1802,7 +1802,7 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1802
1802
|
},
|
|
1803
1803
|
/**
|
|
1804
1804
|
*
|
|
1805
|
-
* @param {string}
|
|
1805
|
+
* @param {string} companyId
|
|
1806
1806
|
* @param {number} [page]
|
|
1807
1807
|
* @param {number} [itemsPerPage]
|
|
1808
1808
|
* @param {string} [search]
|
|
@@ -1815,9 +1815,9 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1815
1815
|
* @param {*} [options] Override http request option.
|
|
1816
1816
|
* @throws {RequiredError}
|
|
1817
1817
|
*/
|
|
1818
|
-
getBrands: async (
|
|
1819
|
-
// verify required parameter '
|
|
1820
|
-
(0, common_1.assertParamExists)('getBrands', '
|
|
1818
|
+
getBrands: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
1819
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
1820
|
+
(0, common_1.assertParamExists)('getBrands', 'companyId', companyId);
|
|
1821
1821
|
const localVarPath = `/api/brands`;
|
|
1822
1822
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1823
1823
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1856,8 +1856,8 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1856
1856
|
if (sort !== undefined) {
|
|
1857
1857
|
localVarQueryParameter['sort'] = sort;
|
|
1858
1858
|
}
|
|
1859
|
-
if (
|
|
1860
|
-
localVarQueryParameter['
|
|
1859
|
+
if (companyId !== undefined) {
|
|
1860
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1861
1861
|
}
|
|
1862
1862
|
if (status !== undefined) {
|
|
1863
1863
|
localVarQueryParameter['status'] = status;
|
|
@@ -1939,12 +1939,12 @@ const BrandApiFp = function (configuration) {
|
|
|
1939
1939
|
},
|
|
1940
1940
|
/**
|
|
1941
1941
|
*
|
|
1942
|
-
* @param {string}
|
|
1942
|
+
* @param {string} companyId
|
|
1943
1943
|
* @param {*} [options] Override http request option.
|
|
1944
1944
|
* @throws {RequiredError}
|
|
1945
1945
|
*/
|
|
1946
|
-
async getAllBrands(
|
|
1947
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllBrands(
|
|
1946
|
+
async getAllBrands(companyId, options) {
|
|
1947
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllBrands(companyId, options);
|
|
1948
1948
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1949
1949
|
const localVarOperationServerBasePath = base_1.operationServerMap['BrandApi.getAllBrands']?.[localVarOperationServerIndex]?.url;
|
|
1950
1950
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1963,7 +1963,7 @@ const BrandApiFp = function (configuration) {
|
|
|
1963
1963
|
},
|
|
1964
1964
|
/**
|
|
1965
1965
|
*
|
|
1966
|
-
* @param {string}
|
|
1966
|
+
* @param {string} companyId
|
|
1967
1967
|
* @param {number} [page]
|
|
1968
1968
|
* @param {number} [itemsPerPage]
|
|
1969
1969
|
* @param {string} [search]
|
|
@@ -1976,8 +1976,8 @@ const BrandApiFp = function (configuration) {
|
|
|
1976
1976
|
* @param {*} [options] Override http request option.
|
|
1977
1977
|
* @throws {RequiredError}
|
|
1978
1978
|
*/
|
|
1979
|
-
async getBrands(
|
|
1980
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(
|
|
1979
|
+
async getBrands(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
1980
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
1981
1981
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1982
1982
|
const localVarOperationServerBasePath = base_1.operationServerMap['BrandApi.getBrands']?.[localVarOperationServerIndex]?.url;
|
|
1983
1983
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2030,7 +2030,7 @@ const BrandApiFactory = function (configuration, basePath, axios) {
|
|
|
2030
2030
|
* @throws {RequiredError}
|
|
2031
2031
|
*/
|
|
2032
2032
|
getAllBrands(requestParameters, options) {
|
|
2033
|
-
return localVarFp.getAllBrands(requestParameters.
|
|
2033
|
+
return localVarFp.getAllBrands(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2034
2034
|
},
|
|
2035
2035
|
/**
|
|
2036
2036
|
*
|
|
@@ -2048,7 +2048,7 @@ const BrandApiFactory = function (configuration, basePath, axios) {
|
|
|
2048
2048
|
* @throws {RequiredError}
|
|
2049
2049
|
*/
|
|
2050
2050
|
getBrands(requestParameters, options) {
|
|
2051
|
-
return localVarFp.getBrands(requestParameters.
|
|
2051
|
+
return localVarFp.getBrands(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2052
2052
|
},
|
|
2053
2053
|
/**
|
|
2054
2054
|
*
|
|
@@ -2097,7 +2097,7 @@ class BrandApi extends base_1.BaseAPI {
|
|
|
2097
2097
|
* @memberof BrandApi
|
|
2098
2098
|
*/
|
|
2099
2099
|
getAllBrands(requestParameters, options) {
|
|
2100
|
-
return (0, exports.BrandApiFp)(this.configuration).getAllBrands(requestParameters.
|
|
2100
|
+
return (0, exports.BrandApiFp)(this.configuration).getAllBrands(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2101
2101
|
}
|
|
2102
2102
|
/**
|
|
2103
2103
|
*
|
|
@@ -2117,7 +2117,7 @@ class BrandApi extends base_1.BaseAPI {
|
|
|
2117
2117
|
* @memberof BrandApi
|
|
2118
2118
|
*/
|
|
2119
2119
|
getBrands(requestParameters, options) {
|
|
2120
|
-
return (0, exports.BrandApiFp)(this.configuration).getBrands(requestParameters.
|
|
2120
|
+
return (0, exports.BrandApiFp)(this.configuration).getBrands(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2121
2121
|
}
|
|
2122
2122
|
/**
|
|
2123
2123
|
*
|
|
@@ -2196,13 +2196,13 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2196
2196
|
},
|
|
2197
2197
|
/**
|
|
2198
2198
|
*
|
|
2199
|
-
* @param {string}
|
|
2199
|
+
* @param {string} companyId
|
|
2200
2200
|
* @param {*} [options] Override http request option.
|
|
2201
2201
|
* @throws {RequiredError}
|
|
2202
2202
|
*/
|
|
2203
|
-
getAllCategories: async (
|
|
2204
|
-
// verify required parameter '
|
|
2205
|
-
(0, common_1.assertParamExists)('getAllCategories', '
|
|
2203
|
+
getAllCategories: async (companyId, options = {}) => {
|
|
2204
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2205
|
+
(0, common_1.assertParamExists)('getAllCategories', 'companyId', companyId);
|
|
2206
2206
|
const localVarPath = `/api/categories/get/all`;
|
|
2207
2207
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2208
2208
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2213,8 +2213,8 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2213
2213
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2214
2214
|
const localVarHeaderParameter = {};
|
|
2215
2215
|
const localVarQueryParameter = {};
|
|
2216
|
-
if (
|
|
2217
|
-
localVarQueryParameter['
|
|
2216
|
+
if (companyId !== undefined) {
|
|
2217
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2218
2218
|
}
|
|
2219
2219
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2220
2220
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2226,7 +2226,7 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2226
2226
|
},
|
|
2227
2227
|
/**
|
|
2228
2228
|
*
|
|
2229
|
-
* @param {string}
|
|
2229
|
+
* @param {string} companyId
|
|
2230
2230
|
* @param {number} [page]
|
|
2231
2231
|
* @param {number} [itemsPerPage]
|
|
2232
2232
|
* @param {string} [search]
|
|
@@ -2239,9 +2239,9 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2239
2239
|
* @param {*} [options] Override http request option.
|
|
2240
2240
|
* @throws {RequiredError}
|
|
2241
2241
|
*/
|
|
2242
|
-
getCategories: async (
|
|
2243
|
-
// verify required parameter '
|
|
2244
|
-
(0, common_1.assertParamExists)('getCategories', '
|
|
2242
|
+
getCategories: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
2243
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2244
|
+
(0, common_1.assertParamExists)('getCategories', 'companyId', companyId);
|
|
2245
2245
|
const localVarPath = `/api/categories`;
|
|
2246
2246
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2247
2247
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2280,8 +2280,8 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2280
2280
|
if (sort !== undefined) {
|
|
2281
2281
|
localVarQueryParameter['sort'] = sort;
|
|
2282
2282
|
}
|
|
2283
|
-
if (
|
|
2284
|
-
localVarQueryParameter['
|
|
2283
|
+
if (companyId !== undefined) {
|
|
2284
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2285
2285
|
}
|
|
2286
2286
|
if (status !== undefined) {
|
|
2287
2287
|
localVarQueryParameter['status'] = status;
|
|
@@ -2296,13 +2296,13 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2296
2296
|
},
|
|
2297
2297
|
/**
|
|
2298
2298
|
*
|
|
2299
|
-
* @param {string}
|
|
2299
|
+
* @param {string} companyId
|
|
2300
2300
|
* @param {*} [options] Override http request option.
|
|
2301
2301
|
* @throws {RequiredError}
|
|
2302
2302
|
*/
|
|
2303
|
-
getCategoryAttributes: async (
|
|
2304
|
-
// verify required parameter '
|
|
2305
|
-
(0, common_1.assertParamExists)('getCategoryAttributes', '
|
|
2303
|
+
getCategoryAttributes: async (companyId, options = {}) => {
|
|
2304
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2305
|
+
(0, common_1.assertParamExists)('getCategoryAttributes', 'companyId', companyId);
|
|
2306
2306
|
const localVarPath = `/api/categories/get/attributes`;
|
|
2307
2307
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2308
2308
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2313,8 +2313,8 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2313
2313
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2314
2314
|
const localVarHeaderParameter = {};
|
|
2315
2315
|
const localVarQueryParameter = {};
|
|
2316
|
-
if (
|
|
2317
|
-
localVarQueryParameter['
|
|
2316
|
+
if (companyId !== undefined) {
|
|
2317
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2318
2318
|
}
|
|
2319
2319
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2320
2320
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2421,19 +2421,19 @@ const CategoryApiFp = function (configuration) {
|
|
|
2421
2421
|
},
|
|
2422
2422
|
/**
|
|
2423
2423
|
*
|
|
2424
|
-
* @param {string}
|
|
2424
|
+
* @param {string} companyId
|
|
2425
2425
|
* @param {*} [options] Override http request option.
|
|
2426
2426
|
* @throws {RequiredError}
|
|
2427
2427
|
*/
|
|
2428
|
-
async getAllCategories(
|
|
2429
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategories(
|
|
2428
|
+
async getAllCategories(companyId, options) {
|
|
2429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategories(companyId, options);
|
|
2430
2430
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2431
2431
|
const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getAllCategories']?.[localVarOperationServerIndex]?.url;
|
|
2432
2432
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2433
2433
|
},
|
|
2434
2434
|
/**
|
|
2435
2435
|
*
|
|
2436
|
-
* @param {string}
|
|
2436
|
+
* @param {string} companyId
|
|
2437
2437
|
* @param {number} [page]
|
|
2438
2438
|
* @param {number} [itemsPerPage]
|
|
2439
2439
|
* @param {string} [search]
|
|
@@ -2446,20 +2446,20 @@ const CategoryApiFp = function (configuration) {
|
|
|
2446
2446
|
* @param {*} [options] Override http request option.
|
|
2447
2447
|
* @throws {RequiredError}
|
|
2448
2448
|
*/
|
|
2449
|
-
async getCategories(
|
|
2450
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(
|
|
2449
|
+
async getCategories(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
2450
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
2451
2451
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2452
2452
|
const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getCategories']?.[localVarOperationServerIndex]?.url;
|
|
2453
2453
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2454
2454
|
},
|
|
2455
2455
|
/**
|
|
2456
2456
|
*
|
|
2457
|
-
* @param {string}
|
|
2457
|
+
* @param {string} companyId
|
|
2458
2458
|
* @param {*} [options] Override http request option.
|
|
2459
2459
|
* @throws {RequiredError}
|
|
2460
2460
|
*/
|
|
2461
|
-
async getCategoryAttributes(
|
|
2462
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategoryAttributes(
|
|
2461
|
+
async getCategoryAttributes(companyId, options) {
|
|
2462
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategoryAttributes(companyId, options);
|
|
2463
2463
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2464
2464
|
const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getCategoryAttributes']?.[localVarOperationServerIndex]?.url;
|
|
2465
2465
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2524,7 +2524,7 @@ const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2524
2524
|
* @throws {RequiredError}
|
|
2525
2525
|
*/
|
|
2526
2526
|
getAllCategories(requestParameters, options) {
|
|
2527
|
-
return localVarFp.getAllCategories(requestParameters.
|
|
2527
|
+
return localVarFp.getAllCategories(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2528
2528
|
},
|
|
2529
2529
|
/**
|
|
2530
2530
|
*
|
|
@@ -2533,7 +2533,7 @@ const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2533
2533
|
* @throws {RequiredError}
|
|
2534
2534
|
*/
|
|
2535
2535
|
getCategories(requestParameters, options) {
|
|
2536
|
-
return localVarFp.getCategories(requestParameters.
|
|
2536
|
+
return localVarFp.getCategories(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2537
2537
|
},
|
|
2538
2538
|
/**
|
|
2539
2539
|
*
|
|
@@ -2542,7 +2542,7 @@ const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2542
2542
|
* @throws {RequiredError}
|
|
2543
2543
|
*/
|
|
2544
2544
|
getCategoryAttributes(requestParameters, options) {
|
|
2545
|
-
return localVarFp.getCategoryAttributes(requestParameters.
|
|
2545
|
+
return localVarFp.getCategoryAttributes(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2546
2546
|
},
|
|
2547
2547
|
/**
|
|
2548
2548
|
*
|
|
@@ -2600,7 +2600,7 @@ class CategoryApi extends base_1.BaseAPI {
|
|
|
2600
2600
|
* @memberof CategoryApi
|
|
2601
2601
|
*/
|
|
2602
2602
|
getAllCategories(requestParameters, options) {
|
|
2603
|
-
return (0, exports.CategoryApiFp)(this.configuration).getAllCategories(requestParameters.
|
|
2603
|
+
return (0, exports.CategoryApiFp)(this.configuration).getAllCategories(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2604
2604
|
}
|
|
2605
2605
|
/**
|
|
2606
2606
|
*
|
|
@@ -2610,7 +2610,7 @@ class CategoryApi extends base_1.BaseAPI {
|
|
|
2610
2610
|
* @memberof CategoryApi
|
|
2611
2611
|
*/
|
|
2612
2612
|
getCategories(requestParameters, options) {
|
|
2613
|
-
return (0, exports.CategoryApiFp)(this.configuration).getCategories(requestParameters.
|
|
2613
|
+
return (0, exports.CategoryApiFp)(this.configuration).getCategories(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2614
2614
|
}
|
|
2615
2615
|
/**
|
|
2616
2616
|
*
|
|
@@ -2620,7 +2620,7 @@ class CategoryApi extends base_1.BaseAPI {
|
|
|
2620
2620
|
* @memberof CategoryApi
|
|
2621
2621
|
*/
|
|
2622
2622
|
getCategoryAttributes(requestParameters, options) {
|
|
2623
|
-
return (0, exports.CategoryApiFp)(this.configuration).getCategoryAttributes(requestParameters.
|
|
2623
|
+
return (0, exports.CategoryApiFp)(this.configuration).getCategoryAttributes(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2624
2624
|
}
|
|
2625
2625
|
/**
|
|
2626
2626
|
*
|
|
@@ -4687,7 +4687,7 @@ const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4687
4687
|
},
|
|
4688
4688
|
/**
|
|
4689
4689
|
*
|
|
4690
|
-
* @param {string}
|
|
4690
|
+
* @param {string} companyId
|
|
4691
4691
|
* @param {number} [page]
|
|
4692
4692
|
* @param {number} [itemsPerPage]
|
|
4693
4693
|
* @param {string} [search]
|
|
@@ -4702,9 +4702,9 @@ const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4702
4702
|
* @param {*} [options] Override http request option.
|
|
4703
4703
|
* @throws {RequiredError}
|
|
4704
4704
|
*/
|
|
4705
|
-
getFiles: async (
|
|
4706
|
-
// verify required parameter '
|
|
4707
|
-
(0, common_1.assertParamExists)('getFiles', '
|
|
4705
|
+
getFiles: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, keywords, type, status, options = {}) => {
|
|
4706
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4707
|
+
(0, common_1.assertParamExists)('getFiles', 'companyId', companyId);
|
|
4708
4708
|
const localVarPath = `/api/files`;
|
|
4709
4709
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4710
4710
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4743,8 +4743,8 @@ const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4743
4743
|
if (sort !== undefined) {
|
|
4744
4744
|
localVarQueryParameter['sort'] = sort;
|
|
4745
4745
|
}
|
|
4746
|
-
if (
|
|
4747
|
-
localVarQueryParameter['
|
|
4746
|
+
if (companyId !== undefined) {
|
|
4747
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
4748
4748
|
}
|
|
4749
4749
|
if (keywords) {
|
|
4750
4750
|
localVarQueryParameter['keywords'] = keywords;
|
|
@@ -4877,7 +4877,7 @@ const FileApiFp = function (configuration) {
|
|
|
4877
4877
|
},
|
|
4878
4878
|
/**
|
|
4879
4879
|
*
|
|
4880
|
-
* @param {string}
|
|
4880
|
+
* @param {string} companyId
|
|
4881
4881
|
* @param {number} [page]
|
|
4882
4882
|
* @param {number} [itemsPerPage]
|
|
4883
4883
|
* @param {string} [search]
|
|
@@ -4892,8 +4892,8 @@ const FileApiFp = function (configuration) {
|
|
|
4892
4892
|
* @param {*} [options] Override http request option.
|
|
4893
4893
|
* @throws {RequiredError}
|
|
4894
4894
|
*/
|
|
4895
|
-
async getFiles(
|
|
4896
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFiles(
|
|
4895
|
+
async getFiles(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, keywords, type, status, options) {
|
|
4896
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFiles(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, keywords, type, status, options);
|
|
4897
4897
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4898
4898
|
const localVarOperationServerBasePath = base_1.operationServerMap['FileApi.getFiles']?.[localVarOperationServerIndex]?.url;
|
|
4899
4899
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4960,7 +4960,7 @@ const FileApiFactory = function (configuration, basePath, axios) {
|
|
|
4960
4960
|
* @throws {RequiredError}
|
|
4961
4961
|
*/
|
|
4962
4962
|
getFiles(requestParameters, options) {
|
|
4963
|
-
return localVarFp.getFiles(requestParameters.
|
|
4963
|
+
return localVarFp.getFiles(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.keywords, requestParameters.type, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
4964
4964
|
},
|
|
4965
4965
|
/**
|
|
4966
4966
|
*
|
|
@@ -5018,7 +5018,7 @@ class FileApi extends base_1.BaseAPI {
|
|
|
5018
5018
|
* @memberof FileApi
|
|
5019
5019
|
*/
|
|
5020
5020
|
getFiles(requestParameters, options) {
|
|
5021
|
-
return (0, exports.FileApiFp)(this.configuration).getFiles(requestParameters.
|
|
5021
|
+
return (0, exports.FileApiFp)(this.configuration).getFiles(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.keywords, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
5022
5022
|
}
|
|
5023
5023
|
/**
|
|
5024
5024
|
*
|
|
@@ -5115,12 +5115,12 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
|
5115
5115
|
* @param {OrderEnum} [order]
|
|
5116
5116
|
* @param {string} [sort]
|
|
5117
5117
|
* @param {string} [user]
|
|
5118
|
-
* @param {string} [
|
|
5118
|
+
* @param {string} [companyId]
|
|
5119
5119
|
* @param {NotificationStatusEnum} [status]
|
|
5120
5120
|
* @param {*} [options] Override http request option.
|
|
5121
5121
|
* @throws {RequiredError}
|
|
5122
5122
|
*/
|
|
5123
|
-
getNotifications: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user,
|
|
5123
|
+
getNotifications: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, companyId, status, options = {}) => {
|
|
5124
5124
|
const localVarPath = `/api/notifications`;
|
|
5125
5125
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5126
5126
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5162,8 +5162,8 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
|
5162
5162
|
if (user !== undefined) {
|
|
5163
5163
|
localVarQueryParameter['user'] = user;
|
|
5164
5164
|
}
|
|
5165
|
-
if (
|
|
5166
|
-
localVarQueryParameter['
|
|
5165
|
+
if (companyId !== undefined) {
|
|
5166
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
5167
5167
|
}
|
|
5168
5168
|
if (status !== undefined) {
|
|
5169
5169
|
localVarQueryParameter['status'] = status;
|
|
@@ -5273,13 +5273,13 @@ const NotificationApiFp = function (configuration) {
|
|
|
5273
5273
|
* @param {OrderEnum} [order]
|
|
5274
5274
|
* @param {string} [sort]
|
|
5275
5275
|
* @param {string} [user]
|
|
5276
|
-
* @param {string} [
|
|
5276
|
+
* @param {string} [companyId]
|
|
5277
5277
|
* @param {NotificationStatusEnum} [status]
|
|
5278
5278
|
* @param {*} [options] Override http request option.
|
|
5279
5279
|
* @throws {RequiredError}
|
|
5280
5280
|
*/
|
|
5281
|
-
async getNotifications(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user,
|
|
5282
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getNotifications(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user,
|
|
5281
|
+
async getNotifications(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, companyId, status, options) {
|
|
5282
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNotifications(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, companyId, status, options);
|
|
5283
5283
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5284
5284
|
const localVarOperationServerBasePath = base_1.operationServerMap['NotificationApi.getNotifications']?.[localVarOperationServerIndex]?.url;
|
|
5285
5285
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5342,7 +5342,7 @@ const NotificationApiFactory = function (configuration, basePath, axios) {
|
|
|
5342
5342
|
* @throws {RequiredError}
|
|
5343
5343
|
*/
|
|
5344
5344
|
getNotifications(requestParameters = {}, options) {
|
|
5345
|
-
return localVarFp.getNotifications(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.
|
|
5345
|
+
return localVarFp.getNotifications(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.companyId, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
5346
5346
|
},
|
|
5347
5347
|
/**
|
|
5348
5348
|
*
|
|
@@ -5399,7 +5399,7 @@ class NotificationApi extends base_1.BaseAPI {
|
|
|
5399
5399
|
* @memberof NotificationApi
|
|
5400
5400
|
*/
|
|
5401
5401
|
getNotifications(requestParameters = {}, options) {
|
|
5402
|
-
return (0, exports.NotificationApiFp)(this.configuration).getNotifications(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.
|
|
5402
|
+
return (0, exports.NotificationApiFp)(this.configuration).getNotifications(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.companyId, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
5403
5403
|
}
|
|
5404
5404
|
/**
|
|
5405
5405
|
*
|
|
@@ -5940,13 +5940,13 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
5940
5940
|
},
|
|
5941
5941
|
/**
|
|
5942
5942
|
*
|
|
5943
|
-
* @param {string} [
|
|
5943
|
+
* @param {string} [companyId]
|
|
5944
5944
|
* @param {string} [domain]
|
|
5945
5945
|
* @param {Array<PageTypeEnum>} [type]
|
|
5946
5946
|
* @param {*} [options] Override http request option.
|
|
5947
5947
|
* @throws {RequiredError}
|
|
5948
5948
|
*/
|
|
5949
|
-
getAllPages: async (
|
|
5949
|
+
getAllPages: async (companyId, domain, type, options = {}) => {
|
|
5950
5950
|
const localVarPath = `/api/pages/get/all`;
|
|
5951
5951
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5952
5952
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5957,8 +5957,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
5957
5957
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5958
5958
|
const localVarHeaderParameter = {};
|
|
5959
5959
|
const localVarQueryParameter = {};
|
|
5960
|
-
if (
|
|
5961
|
-
localVarQueryParameter['
|
|
5960
|
+
if (companyId !== undefined) {
|
|
5961
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
5962
5962
|
}
|
|
5963
5963
|
if (domain !== undefined) {
|
|
5964
5964
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -6005,12 +6005,12 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6005
6005
|
/**
|
|
6006
6006
|
*
|
|
6007
6007
|
* @param {string} slug
|
|
6008
|
-
* @param {string} [
|
|
6008
|
+
* @param {string} [companyId]
|
|
6009
6009
|
* @param {string} [domain]
|
|
6010
6010
|
* @param {*} [options] Override http request option.
|
|
6011
6011
|
* @throws {RequiredError}
|
|
6012
6012
|
*/
|
|
6013
|
-
getPageBySlug: async (slug,
|
|
6013
|
+
getPageBySlug: async (slug, companyId, domain, options = {}) => {
|
|
6014
6014
|
// verify required parameter 'slug' is not null or undefined
|
|
6015
6015
|
(0, common_1.assertParamExists)('getPageBySlug', 'slug', slug);
|
|
6016
6016
|
const localVarPath = `/api/pages/slug/{slug}`
|
|
@@ -6024,8 +6024,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6024
6024
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6025
6025
|
const localVarHeaderParameter = {};
|
|
6026
6026
|
const localVarQueryParameter = {};
|
|
6027
|
-
if (
|
|
6028
|
-
localVarQueryParameter['
|
|
6027
|
+
if (companyId !== undefined) {
|
|
6028
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6029
6029
|
}
|
|
6030
6030
|
if (domain !== undefined) {
|
|
6031
6031
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -6041,12 +6041,12 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6041
6041
|
/**
|
|
6042
6042
|
*
|
|
6043
6043
|
* @param {string} type
|
|
6044
|
-
* @param {string} [
|
|
6044
|
+
* @param {string} [companyId]
|
|
6045
6045
|
* @param {string} [domain]
|
|
6046
6046
|
* @param {*} [options] Override http request option.
|
|
6047
6047
|
* @throws {RequiredError}
|
|
6048
6048
|
*/
|
|
6049
|
-
getPageByType: async (type,
|
|
6049
|
+
getPageByType: async (type, companyId, domain, options = {}) => {
|
|
6050
6050
|
// verify required parameter 'type' is not null or undefined
|
|
6051
6051
|
(0, common_1.assertParamExists)('getPageByType', 'type', type);
|
|
6052
6052
|
const localVarPath = `/api/pages/type/{type}`
|
|
@@ -6060,8 +6060,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6060
6060
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6061
6061
|
const localVarHeaderParameter = {};
|
|
6062
6062
|
const localVarQueryParameter = {};
|
|
6063
|
-
if (
|
|
6064
|
-
localVarQueryParameter['
|
|
6063
|
+
if (companyId !== undefined) {
|
|
6064
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6065
6065
|
}
|
|
6066
6066
|
if (domain !== undefined) {
|
|
6067
6067
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -6084,14 +6084,14 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6084
6084
|
* @param {string} [dateField]
|
|
6085
6085
|
* @param {OrderEnum} [order]
|
|
6086
6086
|
* @param {string} [sort]
|
|
6087
|
-
* @param {string} [
|
|
6087
|
+
* @param {string} [companyId]
|
|
6088
6088
|
* @param {string} [domain]
|
|
6089
6089
|
* @param {PageTypeEnum} [type]
|
|
6090
6090
|
* @param {ContentStatusEnum} [status]
|
|
6091
6091
|
* @param {*} [options] Override http request option.
|
|
6092
6092
|
* @throws {RequiredError}
|
|
6093
6093
|
*/
|
|
6094
|
-
getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6094
|
+
getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options = {}) => {
|
|
6095
6095
|
const localVarPath = `/api/pages`;
|
|
6096
6096
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6097
6097
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6130,8 +6130,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6130
6130
|
if (sort !== undefined) {
|
|
6131
6131
|
localVarQueryParameter['sort'] = sort;
|
|
6132
6132
|
}
|
|
6133
|
-
if (
|
|
6134
|
-
localVarQueryParameter['
|
|
6133
|
+
if (companyId !== undefined) {
|
|
6134
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6135
6135
|
}
|
|
6136
6136
|
if (domain !== undefined) {
|
|
6137
6137
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -6152,13 +6152,13 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6152
6152
|
},
|
|
6153
6153
|
/**
|
|
6154
6154
|
*
|
|
6155
|
-
* @param {string}
|
|
6155
|
+
* @param {string} companyId
|
|
6156
6156
|
* @param {*} [options] Override http request option.
|
|
6157
6157
|
* @throws {RequiredError}
|
|
6158
6158
|
*/
|
|
6159
|
-
getUniquePages: async (
|
|
6160
|
-
// verify required parameter '
|
|
6161
|
-
(0, common_1.assertParamExists)('getUniquePages', '
|
|
6159
|
+
getUniquePages: async (companyId, options = {}) => {
|
|
6160
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
6161
|
+
(0, common_1.assertParamExists)('getUniquePages', 'companyId', companyId);
|
|
6162
6162
|
const localVarPath = `/api/pages/get/uniques`;
|
|
6163
6163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6164
6164
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6169,8 +6169,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6169
6169
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6170
6170
|
const localVarHeaderParameter = {};
|
|
6171
6171
|
const localVarQueryParameter = {};
|
|
6172
|
-
if (
|
|
6173
|
-
localVarQueryParameter['
|
|
6172
|
+
if (companyId !== undefined) {
|
|
6173
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6174
6174
|
}
|
|
6175
6175
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6176
6176
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6249,14 +6249,14 @@ const PageApiFp = function (configuration) {
|
|
|
6249
6249
|
},
|
|
6250
6250
|
/**
|
|
6251
6251
|
*
|
|
6252
|
-
* @param {string} [
|
|
6252
|
+
* @param {string} [companyId]
|
|
6253
6253
|
* @param {string} [domain]
|
|
6254
6254
|
* @param {Array<PageTypeEnum>} [type]
|
|
6255
6255
|
* @param {*} [options] Override http request option.
|
|
6256
6256
|
* @throws {RequiredError}
|
|
6257
6257
|
*/
|
|
6258
|
-
async getAllPages(
|
|
6259
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(
|
|
6258
|
+
async getAllPages(companyId, domain, type, options) {
|
|
6259
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, type, options);
|
|
6260
6260
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6261
6261
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
|
|
6262
6262
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6276,13 +6276,13 @@ const PageApiFp = function (configuration) {
|
|
|
6276
6276
|
/**
|
|
6277
6277
|
*
|
|
6278
6278
|
* @param {string} slug
|
|
6279
|
-
* @param {string} [
|
|
6279
|
+
* @param {string} [companyId]
|
|
6280
6280
|
* @param {string} [domain]
|
|
6281
6281
|
* @param {*} [options] Override http request option.
|
|
6282
6282
|
* @throws {RequiredError}
|
|
6283
6283
|
*/
|
|
6284
|
-
async getPageBySlug(slug,
|
|
6285
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug,
|
|
6284
|
+
async getPageBySlug(slug, companyId, domain, options) {
|
|
6285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug, companyId, domain, options);
|
|
6286
6286
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6287
6287
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageBySlug']?.[localVarOperationServerIndex]?.url;
|
|
6288
6288
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6290,13 +6290,13 @@ const PageApiFp = function (configuration) {
|
|
|
6290
6290
|
/**
|
|
6291
6291
|
*
|
|
6292
6292
|
* @param {string} type
|
|
6293
|
-
* @param {string} [
|
|
6293
|
+
* @param {string} [companyId]
|
|
6294
6294
|
* @param {string} [domain]
|
|
6295
6295
|
* @param {*} [options] Override http request option.
|
|
6296
6296
|
* @throws {RequiredError}
|
|
6297
6297
|
*/
|
|
6298
|
-
async getPageByType(type,
|
|
6299
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type,
|
|
6298
|
+
async getPageByType(type, companyId, domain, options) {
|
|
6299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
|
|
6300
6300
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6301
6301
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
|
|
6302
6302
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6311,27 +6311,27 @@ const PageApiFp = function (configuration) {
|
|
|
6311
6311
|
* @param {string} [dateField]
|
|
6312
6312
|
* @param {OrderEnum} [order]
|
|
6313
6313
|
* @param {string} [sort]
|
|
6314
|
-
* @param {string} [
|
|
6314
|
+
* @param {string} [companyId]
|
|
6315
6315
|
* @param {string} [domain]
|
|
6316
6316
|
* @param {PageTypeEnum} [type]
|
|
6317
6317
|
* @param {ContentStatusEnum} [status]
|
|
6318
6318
|
* @param {*} [options] Override http request option.
|
|
6319
6319
|
* @throws {RequiredError}
|
|
6320
6320
|
*/
|
|
6321
|
-
async getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6322
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6321
|
+
async getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options) {
|
|
6322
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options);
|
|
6323
6323
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6324
6324
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPages']?.[localVarOperationServerIndex]?.url;
|
|
6325
6325
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6326
6326
|
},
|
|
6327
6327
|
/**
|
|
6328
6328
|
*
|
|
6329
|
-
* @param {string}
|
|
6329
|
+
* @param {string} companyId
|
|
6330
6330
|
* @param {*} [options] Override http request option.
|
|
6331
6331
|
* @throws {RequiredError}
|
|
6332
6332
|
*/
|
|
6333
|
-
async getUniquePages(
|
|
6334
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUniquePages(
|
|
6333
|
+
async getUniquePages(companyId, options) {
|
|
6334
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUniquePages(companyId, options);
|
|
6335
6335
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6336
6336
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getUniquePages']?.[localVarOperationServerIndex]?.url;
|
|
6337
6337
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6384,7 +6384,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6384
6384
|
* @throws {RequiredError}
|
|
6385
6385
|
*/
|
|
6386
6386
|
getAllPages(requestParameters = {}, options) {
|
|
6387
|
-
return localVarFp.getAllPages(requestParameters.
|
|
6387
|
+
return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
6388
6388
|
},
|
|
6389
6389
|
/**
|
|
6390
6390
|
*
|
|
@@ -6402,7 +6402,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6402
6402
|
* @throws {RequiredError}
|
|
6403
6403
|
*/
|
|
6404
6404
|
getPageBySlug(requestParameters, options) {
|
|
6405
|
-
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.
|
|
6405
|
+
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
6406
6406
|
},
|
|
6407
6407
|
/**
|
|
6408
6408
|
*
|
|
@@ -6411,7 +6411,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6411
6411
|
* @throws {RequiredError}
|
|
6412
6412
|
*/
|
|
6413
6413
|
getPageByType(requestParameters, options) {
|
|
6414
|
-
return localVarFp.getPageByType(requestParameters.type, requestParameters.
|
|
6414
|
+
return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
6415
6415
|
},
|
|
6416
6416
|
/**
|
|
6417
6417
|
*
|
|
@@ -6420,7 +6420,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6420
6420
|
* @throws {RequiredError}
|
|
6421
6421
|
*/
|
|
6422
6422
|
getPages(requestParameters = {}, options) {
|
|
6423
|
-
return localVarFp.getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
6423
|
+
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));
|
|
6424
6424
|
},
|
|
6425
6425
|
/**
|
|
6426
6426
|
*
|
|
@@ -6429,7 +6429,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6429
6429
|
* @throws {RequiredError}
|
|
6430
6430
|
*/
|
|
6431
6431
|
getUniquePages(requestParameters, options) {
|
|
6432
|
-
return localVarFp.getUniquePages(requestParameters.
|
|
6432
|
+
return localVarFp.getUniquePages(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
6433
6433
|
},
|
|
6434
6434
|
/**
|
|
6435
6435
|
*
|
|
@@ -6478,7 +6478,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6478
6478
|
* @memberof PageApi
|
|
6479
6479
|
*/
|
|
6480
6480
|
getAllPages(requestParameters = {}, options) {
|
|
6481
|
-
return (0, exports.PageApiFp)(this.configuration).getAllPages(requestParameters.
|
|
6481
|
+
return (0, exports.PageApiFp)(this.configuration).getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
6482
6482
|
}
|
|
6483
6483
|
/**
|
|
6484
6484
|
*
|
|
@@ -6498,7 +6498,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6498
6498
|
* @memberof PageApi
|
|
6499
6499
|
*/
|
|
6500
6500
|
getPageBySlug(requestParameters, options) {
|
|
6501
|
-
return (0, exports.PageApiFp)(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.
|
|
6501
|
+
return (0, exports.PageApiFp)(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
6502
6502
|
}
|
|
6503
6503
|
/**
|
|
6504
6504
|
*
|
|
@@ -6508,7 +6508,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6508
6508
|
* @memberof PageApi
|
|
6509
6509
|
*/
|
|
6510
6510
|
getPageByType(requestParameters, options) {
|
|
6511
|
-
return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.
|
|
6511
|
+
return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
6512
6512
|
}
|
|
6513
6513
|
/**
|
|
6514
6514
|
*
|
|
@@ -6518,7 +6518,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6518
6518
|
* @memberof PageApi
|
|
6519
6519
|
*/
|
|
6520
6520
|
getPages(requestParameters = {}, options) {
|
|
6521
|
-
return (0, exports.PageApiFp)(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
6521
|
+
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));
|
|
6522
6522
|
}
|
|
6523
6523
|
/**
|
|
6524
6524
|
*
|
|
@@ -6528,7 +6528,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6528
6528
|
* @memberof PageApi
|
|
6529
6529
|
*/
|
|
6530
6530
|
getUniquePages(requestParameters, options) {
|
|
6531
|
-
return (0, exports.PageApiFp)(this.configuration).getUniquePages(requestParameters.
|
|
6531
|
+
return (0, exports.PageApiFp)(this.configuration).getUniquePages(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
6532
6532
|
}
|
|
6533
6533
|
/**
|
|
6534
6534
|
*
|
|
@@ -6996,15 +6996,15 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
6996
6996
|
},
|
|
6997
6997
|
/**
|
|
6998
6998
|
*
|
|
6999
|
-
* @param {string}
|
|
6999
|
+
* @param {string} companyId
|
|
7000
7000
|
* @param {string} [search]
|
|
7001
7001
|
* @param {string} [template]
|
|
7002
7002
|
* @param {*} [options] Override http request option.
|
|
7003
7003
|
* @throws {RequiredError}
|
|
7004
7004
|
*/
|
|
7005
|
-
getAllProducts: async (
|
|
7006
|
-
// verify required parameter '
|
|
7007
|
-
(0, common_1.assertParamExists)('getAllProducts', '
|
|
7005
|
+
getAllProducts: async (companyId, search, template, options = {}) => {
|
|
7006
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
7007
|
+
(0, common_1.assertParamExists)('getAllProducts', 'companyId', companyId);
|
|
7008
7008
|
const localVarPath = `/api/products/get/all`;
|
|
7009
7009
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7010
7010
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7015,8 +7015,8 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7015
7015
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7016
7016
|
const localVarHeaderParameter = {};
|
|
7017
7017
|
const localVarQueryParameter = {};
|
|
7018
|
-
if (
|
|
7019
|
-
localVarQueryParameter['
|
|
7018
|
+
if (companyId !== undefined) {
|
|
7019
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7020
7020
|
}
|
|
7021
7021
|
if (search !== undefined) {
|
|
7022
7022
|
localVarQueryParameter['search'] = search;
|
|
@@ -7034,13 +7034,13 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7034
7034
|
},
|
|
7035
7035
|
/**
|
|
7036
7036
|
*
|
|
7037
|
-
* @param {string}
|
|
7037
|
+
* @param {string} companyId
|
|
7038
7038
|
* @param {*} [options] Override http request option.
|
|
7039
7039
|
* @throws {RequiredError}
|
|
7040
7040
|
*/
|
|
7041
|
-
getFirstProduct: async (
|
|
7042
|
-
// verify required parameter '
|
|
7043
|
-
(0, common_1.assertParamExists)('getFirstProduct', '
|
|
7041
|
+
getFirstProduct: async (companyId, options = {}) => {
|
|
7042
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
7043
|
+
(0, common_1.assertParamExists)('getFirstProduct', 'companyId', companyId);
|
|
7044
7044
|
const localVarPath = `/api/products/get/first`;
|
|
7045
7045
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7046
7046
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7051,8 +7051,8 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7051
7051
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7052
7052
|
const localVarHeaderParameter = {};
|
|
7053
7053
|
const localVarQueryParameter = {};
|
|
7054
|
-
if (
|
|
7055
|
-
localVarQueryParameter['
|
|
7054
|
+
if (companyId !== undefined) {
|
|
7055
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7056
7056
|
}
|
|
7057
7057
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7058
7058
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -7093,15 +7093,14 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7093
7093
|
/**
|
|
7094
7094
|
*
|
|
7095
7095
|
* @param {string} slug
|
|
7096
|
-
* @param {string}
|
|
7096
|
+
* @param {string} [companyId]
|
|
7097
|
+
* @param {string} [domain]
|
|
7097
7098
|
* @param {*} [options] Override http request option.
|
|
7098
7099
|
* @throws {RequiredError}
|
|
7099
7100
|
*/
|
|
7100
|
-
getProductBySlug: async (slug, domain, options = {}) => {
|
|
7101
|
+
getProductBySlug: async (slug, companyId, domain, options = {}) => {
|
|
7101
7102
|
// verify required parameter 'slug' is not null or undefined
|
|
7102
7103
|
(0, common_1.assertParamExists)('getProductBySlug', 'slug', slug);
|
|
7103
|
-
// verify required parameter 'domain' is not null or undefined
|
|
7104
|
-
(0, common_1.assertParamExists)('getProductBySlug', 'domain', domain);
|
|
7105
7104
|
const localVarPath = `/api/products/slug/{slug}`
|
|
7106
7105
|
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
7107
7106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -7113,6 +7112,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7113
7112
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7114
7113
|
const localVarHeaderParameter = {};
|
|
7115
7114
|
const localVarQueryParameter = {};
|
|
7115
|
+
if (companyId !== undefined) {
|
|
7116
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7117
|
+
}
|
|
7116
7118
|
if (domain !== undefined) {
|
|
7117
7119
|
localVarQueryParameter['domain'] = domain;
|
|
7118
7120
|
}
|
|
@@ -7134,7 +7136,8 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7134
7136
|
* @param {string} [dateField]
|
|
7135
7137
|
* @param {OrderEnum} [order]
|
|
7136
7138
|
* @param {string} [sort]
|
|
7137
|
-
* @param {string} [
|
|
7139
|
+
* @param {string} [companyId]
|
|
7140
|
+
* @param {string} [domain]
|
|
7138
7141
|
* @param {string} [collections]
|
|
7139
7142
|
* @param {string} [category]
|
|
7140
7143
|
* @param {string} [brand]
|
|
@@ -7142,7 +7145,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7142
7145
|
* @param {*} [options] Override http request option.
|
|
7143
7146
|
* @throws {RequiredError}
|
|
7144
7147
|
*/
|
|
7145
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
7148
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options = {}) => {
|
|
7146
7149
|
const localVarPath = `/api/products`;
|
|
7147
7150
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7148
7151
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7181,8 +7184,11 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7181
7184
|
if (sort !== undefined) {
|
|
7182
7185
|
localVarQueryParameter['sort'] = sort;
|
|
7183
7186
|
}
|
|
7184
|
-
if (
|
|
7185
|
-
localVarQueryParameter['
|
|
7187
|
+
if (companyId !== undefined) {
|
|
7188
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7189
|
+
}
|
|
7190
|
+
if (domain !== undefined) {
|
|
7191
|
+
localVarQueryParameter['domain'] = domain;
|
|
7186
7192
|
}
|
|
7187
7193
|
if (collections !== undefined) {
|
|
7188
7194
|
localVarQueryParameter['collections'] = collections;
|
|
@@ -7206,14 +7212,13 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7206
7212
|
},
|
|
7207
7213
|
/**
|
|
7208
7214
|
*
|
|
7209
|
-
* @param {string} company
|
|
7210
7215
|
* @param {string} search
|
|
7216
|
+
* @param {string} [companyId]
|
|
7217
|
+
* @param {string} [domain]
|
|
7211
7218
|
* @param {*} [options] Override http request option.
|
|
7212
7219
|
* @throws {RequiredError}
|
|
7213
7220
|
*/
|
|
7214
|
-
searchProducts: async (
|
|
7215
|
-
// verify required parameter 'company' is not null or undefined
|
|
7216
|
-
(0, common_1.assertParamExists)('searchProducts', 'company', company);
|
|
7221
|
+
searchProducts: async (search, companyId, domain, options = {}) => {
|
|
7217
7222
|
// verify required parameter 'search' is not null or undefined
|
|
7218
7223
|
(0, common_1.assertParamExists)('searchProducts', 'search', search);
|
|
7219
7224
|
const localVarPath = `/api/products/search`;
|
|
@@ -7226,12 +7231,15 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7226
7231
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7227
7232
|
const localVarHeaderParameter = {};
|
|
7228
7233
|
const localVarQueryParameter = {};
|
|
7229
|
-
if (company !== undefined) {
|
|
7230
|
-
localVarQueryParameter['company'] = company;
|
|
7231
|
-
}
|
|
7232
7234
|
if (search !== undefined) {
|
|
7233
7235
|
localVarQueryParameter['search'] = search;
|
|
7234
7236
|
}
|
|
7237
|
+
if (companyId !== undefined) {
|
|
7238
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7239
|
+
}
|
|
7240
|
+
if (domain !== undefined) {
|
|
7241
|
+
localVarQueryParameter['domain'] = domain;
|
|
7242
|
+
}
|
|
7235
7243
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7236
7244
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7237
7245
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -7309,26 +7317,26 @@ const ProductApiFp = function (configuration) {
|
|
|
7309
7317
|
},
|
|
7310
7318
|
/**
|
|
7311
7319
|
*
|
|
7312
|
-
* @param {string}
|
|
7320
|
+
* @param {string} companyId
|
|
7313
7321
|
* @param {string} [search]
|
|
7314
7322
|
* @param {string} [template]
|
|
7315
7323
|
* @param {*} [options] Override http request option.
|
|
7316
7324
|
* @throws {RequiredError}
|
|
7317
7325
|
*/
|
|
7318
|
-
async getAllProducts(
|
|
7319
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllProducts(
|
|
7326
|
+
async getAllProducts(companyId, search, template, options) {
|
|
7327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllProducts(companyId, search, template, options);
|
|
7320
7328
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7321
7329
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getAllProducts']?.[localVarOperationServerIndex]?.url;
|
|
7322
7330
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7323
7331
|
},
|
|
7324
7332
|
/**
|
|
7325
7333
|
*
|
|
7326
|
-
* @param {string}
|
|
7334
|
+
* @param {string} companyId
|
|
7327
7335
|
* @param {*} [options] Override http request option.
|
|
7328
7336
|
* @throws {RequiredError}
|
|
7329
7337
|
*/
|
|
7330
|
-
async getFirstProduct(
|
|
7331
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(
|
|
7338
|
+
async getFirstProduct(companyId, options) {
|
|
7339
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, options);
|
|
7332
7340
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7333
7341
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getFirstProduct']?.[localVarOperationServerIndex]?.url;
|
|
7334
7342
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7348,12 +7356,13 @@ const ProductApiFp = function (configuration) {
|
|
|
7348
7356
|
/**
|
|
7349
7357
|
*
|
|
7350
7358
|
* @param {string} slug
|
|
7351
|
-
* @param {string}
|
|
7359
|
+
* @param {string} [companyId]
|
|
7360
|
+
* @param {string} [domain]
|
|
7352
7361
|
* @param {*} [options] Override http request option.
|
|
7353
7362
|
* @throws {RequiredError}
|
|
7354
7363
|
*/
|
|
7355
|
-
async getProductBySlug(slug, domain, options) {
|
|
7356
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, domain, options);
|
|
7364
|
+
async getProductBySlug(slug, companyId, domain, options) {
|
|
7365
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, companyId, domain, options);
|
|
7357
7366
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7358
7367
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
|
|
7359
7368
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7368,7 +7377,8 @@ const ProductApiFp = function (configuration) {
|
|
|
7368
7377
|
* @param {string} [dateField]
|
|
7369
7378
|
* @param {OrderEnum} [order]
|
|
7370
7379
|
* @param {string} [sort]
|
|
7371
|
-
* @param {string} [
|
|
7380
|
+
* @param {string} [companyId]
|
|
7381
|
+
* @param {string} [domain]
|
|
7372
7382
|
* @param {string} [collections]
|
|
7373
7383
|
* @param {string} [category]
|
|
7374
7384
|
* @param {string} [brand]
|
|
@@ -7376,21 +7386,22 @@ const ProductApiFp = function (configuration) {
|
|
|
7376
7386
|
* @param {*} [options] Override http request option.
|
|
7377
7387
|
* @throws {RequiredError}
|
|
7378
7388
|
*/
|
|
7379
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
7380
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
7389
|
+
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options) {
|
|
7390
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options);
|
|
7381
7391
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7382
7392
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
7383
7393
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7384
7394
|
},
|
|
7385
7395
|
/**
|
|
7386
7396
|
*
|
|
7387
|
-
* @param {string} company
|
|
7388
7397
|
* @param {string} search
|
|
7398
|
+
* @param {string} [companyId]
|
|
7399
|
+
* @param {string} [domain]
|
|
7389
7400
|
* @param {*} [options] Override http request option.
|
|
7390
7401
|
* @throws {RequiredError}
|
|
7391
7402
|
*/
|
|
7392
|
-
async searchProducts(
|
|
7393
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(
|
|
7403
|
+
async searchProducts(search, companyId, domain, options) {
|
|
7404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
|
|
7394
7405
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7395
7406
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
|
|
7396
7407
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7443,7 +7454,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7443
7454
|
* @throws {RequiredError}
|
|
7444
7455
|
*/
|
|
7445
7456
|
getAllProducts(requestParameters, options) {
|
|
7446
|
-
return localVarFp.getAllProducts(requestParameters.
|
|
7457
|
+
return localVarFp.getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
7447
7458
|
},
|
|
7448
7459
|
/**
|
|
7449
7460
|
*
|
|
@@ -7452,7 +7463,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7452
7463
|
* @throws {RequiredError}
|
|
7453
7464
|
*/
|
|
7454
7465
|
getFirstProduct(requestParameters, options) {
|
|
7455
|
-
return localVarFp.getFirstProduct(requestParameters.
|
|
7466
|
+
return localVarFp.getFirstProduct(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
7456
7467
|
},
|
|
7457
7468
|
/**
|
|
7458
7469
|
*
|
|
@@ -7470,7 +7481,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7470
7481
|
* @throws {RequiredError}
|
|
7471
7482
|
*/
|
|
7472
7483
|
getProductBySlug(requestParameters, options) {
|
|
7473
|
-
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
7484
|
+
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
7474
7485
|
},
|
|
7475
7486
|
/**
|
|
7476
7487
|
*
|
|
@@ -7479,7 +7490,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7479
7490
|
* @throws {RequiredError}
|
|
7480
7491
|
*/
|
|
7481
7492
|
getProducts(requestParameters = {}, options) {
|
|
7482
|
-
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
7493
|
+
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));
|
|
7483
7494
|
},
|
|
7484
7495
|
/**
|
|
7485
7496
|
*
|
|
@@ -7488,7 +7499,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7488
7499
|
* @throws {RequiredError}
|
|
7489
7500
|
*/
|
|
7490
7501
|
searchProducts(requestParameters, options) {
|
|
7491
|
-
return localVarFp.searchProducts(requestParameters.
|
|
7502
|
+
return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
7492
7503
|
},
|
|
7493
7504
|
/**
|
|
7494
7505
|
*
|
|
@@ -7537,7 +7548,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7537
7548
|
* @memberof ProductApi
|
|
7538
7549
|
*/
|
|
7539
7550
|
getAllProducts(requestParameters, options) {
|
|
7540
|
-
return (0, exports.ProductApiFp)(this.configuration).getAllProducts(requestParameters.
|
|
7551
|
+
return (0, exports.ProductApiFp)(this.configuration).getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
7541
7552
|
}
|
|
7542
7553
|
/**
|
|
7543
7554
|
*
|
|
@@ -7547,7 +7558,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7547
7558
|
* @memberof ProductApi
|
|
7548
7559
|
*/
|
|
7549
7560
|
getFirstProduct(requestParameters, options) {
|
|
7550
|
-
return (0, exports.ProductApiFp)(this.configuration).getFirstProduct(requestParameters.
|
|
7561
|
+
return (0, exports.ProductApiFp)(this.configuration).getFirstProduct(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
7551
7562
|
}
|
|
7552
7563
|
/**
|
|
7553
7564
|
*
|
|
@@ -7567,7 +7578,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7567
7578
|
* @memberof ProductApi
|
|
7568
7579
|
*/
|
|
7569
7580
|
getProductBySlug(requestParameters, options) {
|
|
7570
|
-
return (0, exports.ProductApiFp)(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
7581
|
+
return (0, exports.ProductApiFp)(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
7571
7582
|
}
|
|
7572
7583
|
/**
|
|
7573
7584
|
*
|
|
@@ -7577,7 +7588,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7577
7588
|
* @memberof ProductApi
|
|
7578
7589
|
*/
|
|
7579
7590
|
getProducts(requestParameters = {}, options) {
|
|
7580
|
-
return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
7591
|
+
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));
|
|
7581
7592
|
}
|
|
7582
7593
|
/**
|
|
7583
7594
|
*
|
|
@@ -7587,7 +7598,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7587
7598
|
* @memberof ProductApi
|
|
7588
7599
|
*/
|
|
7589
7600
|
searchProducts(requestParameters, options) {
|
|
7590
|
-
return (0, exports.ProductApiFp)(this.configuration).searchProducts(requestParameters.
|
|
7601
|
+
return (0, exports.ProductApiFp)(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
7591
7602
|
}
|
|
7592
7603
|
/**
|
|
7593
7604
|
*
|
|
@@ -7666,15 +7677,15 @@ const TemplateApiAxiosParamCreator = function (configuration) {
|
|
|
7666
7677
|
},
|
|
7667
7678
|
/**
|
|
7668
7679
|
*
|
|
7669
|
-
* @param {string}
|
|
7680
|
+
* @param {string} companyId
|
|
7670
7681
|
* @param {TemplateTypeEnum} [type]
|
|
7671
7682
|
* @param {string} [search]
|
|
7672
7683
|
* @param {*} [options] Override http request option.
|
|
7673
7684
|
* @throws {RequiredError}
|
|
7674
7685
|
*/
|
|
7675
|
-
getTemplates: async (
|
|
7676
|
-
// verify required parameter '
|
|
7677
|
-
(0, common_1.assertParamExists)('getTemplates', '
|
|
7686
|
+
getTemplates: async (companyId, type, search, options = {}) => {
|
|
7687
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
7688
|
+
(0, common_1.assertParamExists)('getTemplates', 'companyId', companyId);
|
|
7678
7689
|
const localVarPath = `/api/templates`;
|
|
7679
7690
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7680
7691
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7685,8 +7696,8 @@ const TemplateApiAxiosParamCreator = function (configuration) {
|
|
|
7685
7696
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7686
7697
|
const localVarHeaderParameter = {};
|
|
7687
7698
|
const localVarQueryParameter = {};
|
|
7688
|
-
if (
|
|
7689
|
-
localVarQueryParameter['
|
|
7699
|
+
if (companyId !== undefined) {
|
|
7700
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7690
7701
|
}
|
|
7691
7702
|
if (type !== undefined) {
|
|
7692
7703
|
localVarQueryParameter['type'] = type;
|
|
@@ -7771,14 +7782,14 @@ const TemplateApiFp = function (configuration) {
|
|
|
7771
7782
|
},
|
|
7772
7783
|
/**
|
|
7773
7784
|
*
|
|
7774
|
-
* @param {string}
|
|
7785
|
+
* @param {string} companyId
|
|
7775
7786
|
* @param {TemplateTypeEnum} [type]
|
|
7776
7787
|
* @param {string} [search]
|
|
7777
7788
|
* @param {*} [options] Override http request option.
|
|
7778
7789
|
* @throws {RequiredError}
|
|
7779
7790
|
*/
|
|
7780
|
-
async getTemplates(
|
|
7781
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(
|
|
7791
|
+
async getTemplates(companyId, type, search, options) {
|
|
7792
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, options);
|
|
7782
7793
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7783
7794
|
const localVarOperationServerBasePath = base_1.operationServerMap['TemplateApi.getTemplates']?.[localVarOperationServerIndex]?.url;
|
|
7784
7795
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7831,7 +7842,7 @@ const TemplateApiFactory = function (configuration, basePath, axios) {
|
|
|
7831
7842
|
* @throws {RequiredError}
|
|
7832
7843
|
*/
|
|
7833
7844
|
getTemplates(requestParameters, options) {
|
|
7834
|
-
return localVarFp.getTemplates(requestParameters.
|
|
7845
|
+
return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
7835
7846
|
},
|
|
7836
7847
|
/**
|
|
7837
7848
|
*
|
|
@@ -7880,7 +7891,7 @@ class TemplateApi extends base_1.BaseAPI {
|
|
|
7880
7891
|
* @memberof TemplateApi
|
|
7881
7892
|
*/
|
|
7882
7893
|
getTemplates(requestParameters, options) {
|
|
7883
|
-
return (0, exports.TemplateApiFp)(this.configuration).getTemplates(requestParameters.
|
|
7894
|
+
return (0, exports.TemplateApiFp)(this.configuration).getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
7884
7895
|
}
|
|
7885
7896
|
/**
|
|
7886
7897
|
*
|