@infisale-client/api 1.1.20 → 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 +1375 -535
- package/dist/api/api.js +200 -193
- package/dist/api/api.mjs +200 -193
- 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;
|
|
@@ -6076,7 +6076,6 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6076
6076
|
},
|
|
6077
6077
|
/**
|
|
6078
6078
|
*
|
|
6079
|
-
* @param {string} company
|
|
6080
6079
|
* @param {number} [page]
|
|
6081
6080
|
* @param {number} [itemsPerPage]
|
|
6082
6081
|
* @param {string} [search]
|
|
@@ -6085,15 +6084,14 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6085
6084
|
* @param {string} [dateField]
|
|
6086
6085
|
* @param {OrderEnum} [order]
|
|
6087
6086
|
* @param {string} [sort]
|
|
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 (
|
|
6095
|
-
// verify required parameter 'company' is not null or undefined
|
|
6096
|
-
(0, common_1.assertParamExists)('getPages', 'company', company);
|
|
6094
|
+
getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options = {}) => {
|
|
6097
6095
|
const localVarPath = `/api/pages`;
|
|
6098
6096
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6099
6097
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6132,8 +6130,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6132
6130
|
if (sort !== undefined) {
|
|
6133
6131
|
localVarQueryParameter['sort'] = sort;
|
|
6134
6132
|
}
|
|
6135
|
-
if (
|
|
6136
|
-
localVarQueryParameter['
|
|
6133
|
+
if (companyId !== undefined) {
|
|
6134
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6137
6135
|
}
|
|
6138
6136
|
if (domain !== undefined) {
|
|
6139
6137
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -6154,13 +6152,13 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6154
6152
|
},
|
|
6155
6153
|
/**
|
|
6156
6154
|
*
|
|
6157
|
-
* @param {string}
|
|
6155
|
+
* @param {string} companyId
|
|
6158
6156
|
* @param {*} [options] Override http request option.
|
|
6159
6157
|
* @throws {RequiredError}
|
|
6160
6158
|
*/
|
|
6161
|
-
getUniquePages: async (
|
|
6162
|
-
// verify required parameter '
|
|
6163
|
-
(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);
|
|
6164
6162
|
const localVarPath = `/api/pages/get/uniques`;
|
|
6165
6163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6166
6164
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6171,8 +6169,8 @@ const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6171
6169
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6172
6170
|
const localVarHeaderParameter = {};
|
|
6173
6171
|
const localVarQueryParameter = {};
|
|
6174
|
-
if (
|
|
6175
|
-
localVarQueryParameter['
|
|
6172
|
+
if (companyId !== undefined) {
|
|
6173
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6176
6174
|
}
|
|
6177
6175
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6178
6176
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6251,14 +6249,14 @@ const PageApiFp = function (configuration) {
|
|
|
6251
6249
|
},
|
|
6252
6250
|
/**
|
|
6253
6251
|
*
|
|
6254
|
-
* @param {string} [
|
|
6252
|
+
* @param {string} [companyId]
|
|
6255
6253
|
* @param {string} [domain]
|
|
6256
6254
|
* @param {Array<PageTypeEnum>} [type]
|
|
6257
6255
|
* @param {*} [options] Override http request option.
|
|
6258
6256
|
* @throws {RequiredError}
|
|
6259
6257
|
*/
|
|
6260
|
-
async getAllPages(
|
|
6261
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(
|
|
6258
|
+
async getAllPages(companyId, domain, type, options) {
|
|
6259
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, type, options);
|
|
6262
6260
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6263
6261
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
|
|
6264
6262
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6278,13 +6276,13 @@ const PageApiFp = function (configuration) {
|
|
|
6278
6276
|
/**
|
|
6279
6277
|
*
|
|
6280
6278
|
* @param {string} slug
|
|
6281
|
-
* @param {string} [
|
|
6279
|
+
* @param {string} [companyId]
|
|
6282
6280
|
* @param {string} [domain]
|
|
6283
6281
|
* @param {*} [options] Override http request option.
|
|
6284
6282
|
* @throws {RequiredError}
|
|
6285
6283
|
*/
|
|
6286
|
-
async getPageBySlug(slug,
|
|
6287
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug,
|
|
6284
|
+
async getPageBySlug(slug, companyId, domain, options) {
|
|
6285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug, companyId, domain, options);
|
|
6288
6286
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6289
6287
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageBySlug']?.[localVarOperationServerIndex]?.url;
|
|
6290
6288
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6292,20 +6290,19 @@ const PageApiFp = function (configuration) {
|
|
|
6292
6290
|
/**
|
|
6293
6291
|
*
|
|
6294
6292
|
* @param {string} type
|
|
6295
|
-
* @param {string} [
|
|
6293
|
+
* @param {string} [companyId]
|
|
6296
6294
|
* @param {string} [domain]
|
|
6297
6295
|
* @param {*} [options] Override http request option.
|
|
6298
6296
|
* @throws {RequiredError}
|
|
6299
6297
|
*/
|
|
6300
|
-
async getPageByType(type,
|
|
6301
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type,
|
|
6298
|
+
async getPageByType(type, companyId, domain, options) {
|
|
6299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
|
|
6302
6300
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6303
6301
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
|
|
6304
6302
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6305
6303
|
},
|
|
6306
6304
|
/**
|
|
6307
6305
|
*
|
|
6308
|
-
* @param {string} company
|
|
6309
6306
|
* @param {number} [page]
|
|
6310
6307
|
* @param {number} [itemsPerPage]
|
|
6311
6308
|
* @param {string} [search]
|
|
@@ -6314,26 +6311,27 @@ const PageApiFp = function (configuration) {
|
|
|
6314
6311
|
* @param {string} [dateField]
|
|
6315
6312
|
* @param {OrderEnum} [order]
|
|
6316
6313
|
* @param {string} [sort]
|
|
6314
|
+
* @param {string} [companyId]
|
|
6317
6315
|
* @param {string} [domain]
|
|
6318
6316
|
* @param {PageTypeEnum} [type]
|
|
6319
6317
|
* @param {ContentStatusEnum} [status]
|
|
6320
6318
|
* @param {*} [options] Override http request option.
|
|
6321
6319
|
* @throws {RequiredError}
|
|
6322
6320
|
*/
|
|
6323
|
-
async getPages(
|
|
6324
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(
|
|
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);
|
|
6325
6323
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6326
6324
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPages']?.[localVarOperationServerIndex]?.url;
|
|
6327
6325
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6328
6326
|
},
|
|
6329
6327
|
/**
|
|
6330
6328
|
*
|
|
6331
|
-
* @param {string}
|
|
6329
|
+
* @param {string} companyId
|
|
6332
6330
|
* @param {*} [options] Override http request option.
|
|
6333
6331
|
* @throws {RequiredError}
|
|
6334
6332
|
*/
|
|
6335
|
-
async getUniquePages(
|
|
6336
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUniquePages(
|
|
6333
|
+
async getUniquePages(companyId, options) {
|
|
6334
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUniquePages(companyId, options);
|
|
6337
6335
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6338
6336
|
const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getUniquePages']?.[localVarOperationServerIndex]?.url;
|
|
6339
6337
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6386,7 +6384,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6386
6384
|
* @throws {RequiredError}
|
|
6387
6385
|
*/
|
|
6388
6386
|
getAllPages(requestParameters = {}, options) {
|
|
6389
|
-
return localVarFp.getAllPages(requestParameters.
|
|
6387
|
+
return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
6390
6388
|
},
|
|
6391
6389
|
/**
|
|
6392
6390
|
*
|
|
@@ -6404,7 +6402,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6404
6402
|
* @throws {RequiredError}
|
|
6405
6403
|
*/
|
|
6406
6404
|
getPageBySlug(requestParameters, options) {
|
|
6407
|
-
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.
|
|
6405
|
+
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
6408
6406
|
},
|
|
6409
6407
|
/**
|
|
6410
6408
|
*
|
|
@@ -6413,7 +6411,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6413
6411
|
* @throws {RequiredError}
|
|
6414
6412
|
*/
|
|
6415
6413
|
getPageByType(requestParameters, options) {
|
|
6416
|
-
return localVarFp.getPageByType(requestParameters.type, requestParameters.
|
|
6414
|
+
return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
6417
6415
|
},
|
|
6418
6416
|
/**
|
|
6419
6417
|
*
|
|
@@ -6421,8 +6419,8 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6421
6419
|
* @param {*} [options] Override http request option.
|
|
6422
6420
|
* @throws {RequiredError}
|
|
6423
6421
|
*/
|
|
6424
|
-
getPages(requestParameters, options) {
|
|
6425
|
-
return localVarFp.getPages(requestParameters.
|
|
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.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
6426
6424
|
},
|
|
6427
6425
|
/**
|
|
6428
6426
|
*
|
|
@@ -6431,7 +6429,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6431
6429
|
* @throws {RequiredError}
|
|
6432
6430
|
*/
|
|
6433
6431
|
getUniquePages(requestParameters, options) {
|
|
6434
|
-
return localVarFp.getUniquePages(requestParameters.
|
|
6432
|
+
return localVarFp.getUniquePages(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
6435
6433
|
},
|
|
6436
6434
|
/**
|
|
6437
6435
|
*
|
|
@@ -6480,7 +6478,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6480
6478
|
* @memberof PageApi
|
|
6481
6479
|
*/
|
|
6482
6480
|
getAllPages(requestParameters = {}, options) {
|
|
6483
|
-
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));
|
|
6484
6482
|
}
|
|
6485
6483
|
/**
|
|
6486
6484
|
*
|
|
@@ -6500,7 +6498,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6500
6498
|
* @memberof PageApi
|
|
6501
6499
|
*/
|
|
6502
6500
|
getPageBySlug(requestParameters, options) {
|
|
6503
|
-
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));
|
|
6504
6502
|
}
|
|
6505
6503
|
/**
|
|
6506
6504
|
*
|
|
@@ -6510,7 +6508,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6510
6508
|
* @memberof PageApi
|
|
6511
6509
|
*/
|
|
6512
6510
|
getPageByType(requestParameters, options) {
|
|
6513
|
-
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));
|
|
6514
6512
|
}
|
|
6515
6513
|
/**
|
|
6516
6514
|
*
|
|
@@ -6519,8 +6517,8 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6519
6517
|
* @throws {RequiredError}
|
|
6520
6518
|
* @memberof PageApi
|
|
6521
6519
|
*/
|
|
6522
|
-
getPages(requestParameters, options) {
|
|
6523
|
-
return (0, exports.PageApiFp)(this.configuration).getPages(requestParameters.
|
|
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.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6524
6522
|
}
|
|
6525
6523
|
/**
|
|
6526
6524
|
*
|
|
@@ -6530,7 +6528,7 @@ class PageApi extends base_1.BaseAPI {
|
|
|
6530
6528
|
* @memberof PageApi
|
|
6531
6529
|
*/
|
|
6532
6530
|
getUniquePages(requestParameters, options) {
|
|
6533
|
-
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));
|
|
6534
6532
|
}
|
|
6535
6533
|
/**
|
|
6536
6534
|
*
|
|
@@ -6998,15 +6996,15 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
6998
6996
|
},
|
|
6999
6997
|
/**
|
|
7000
6998
|
*
|
|
7001
|
-
* @param {string}
|
|
6999
|
+
* @param {string} companyId
|
|
7002
7000
|
* @param {string} [search]
|
|
7003
7001
|
* @param {string} [template]
|
|
7004
7002
|
* @param {*} [options] Override http request option.
|
|
7005
7003
|
* @throws {RequiredError}
|
|
7006
7004
|
*/
|
|
7007
|
-
getAllProducts: async (
|
|
7008
|
-
// verify required parameter '
|
|
7009
|
-
(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);
|
|
7010
7008
|
const localVarPath = `/api/products/get/all`;
|
|
7011
7009
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7012
7010
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7017,8 +7015,8 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7017
7015
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7018
7016
|
const localVarHeaderParameter = {};
|
|
7019
7017
|
const localVarQueryParameter = {};
|
|
7020
|
-
if (
|
|
7021
|
-
localVarQueryParameter['
|
|
7018
|
+
if (companyId !== undefined) {
|
|
7019
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7022
7020
|
}
|
|
7023
7021
|
if (search !== undefined) {
|
|
7024
7022
|
localVarQueryParameter['search'] = search;
|
|
@@ -7036,13 +7034,13 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7036
7034
|
},
|
|
7037
7035
|
/**
|
|
7038
7036
|
*
|
|
7039
|
-
* @param {string}
|
|
7037
|
+
* @param {string} companyId
|
|
7040
7038
|
* @param {*} [options] Override http request option.
|
|
7041
7039
|
* @throws {RequiredError}
|
|
7042
7040
|
*/
|
|
7043
|
-
getFirstProduct: async (
|
|
7044
|
-
// verify required parameter '
|
|
7045
|
-
(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);
|
|
7046
7044
|
const localVarPath = `/api/products/get/first`;
|
|
7047
7045
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7048
7046
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7053,8 +7051,8 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7053
7051
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7054
7052
|
const localVarHeaderParameter = {};
|
|
7055
7053
|
const localVarQueryParameter = {};
|
|
7056
|
-
if (
|
|
7057
|
-
localVarQueryParameter['
|
|
7054
|
+
if (companyId !== undefined) {
|
|
7055
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7058
7056
|
}
|
|
7059
7057
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7060
7058
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -7095,15 +7093,14 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7095
7093
|
/**
|
|
7096
7094
|
*
|
|
7097
7095
|
* @param {string} slug
|
|
7098
|
-
* @param {string}
|
|
7096
|
+
* @param {string} [companyId]
|
|
7097
|
+
* @param {string} [domain]
|
|
7099
7098
|
* @param {*} [options] Override http request option.
|
|
7100
7099
|
* @throws {RequiredError}
|
|
7101
7100
|
*/
|
|
7102
|
-
getProductBySlug: async (slug, domain, options = {}) => {
|
|
7101
|
+
getProductBySlug: async (slug, companyId, domain, options = {}) => {
|
|
7103
7102
|
// verify required parameter 'slug' is not null or undefined
|
|
7104
7103
|
(0, common_1.assertParamExists)('getProductBySlug', 'slug', slug);
|
|
7105
|
-
// verify required parameter 'domain' is not null or undefined
|
|
7106
|
-
(0, common_1.assertParamExists)('getProductBySlug', 'domain', domain);
|
|
7107
7104
|
const localVarPath = `/api/products/slug/{slug}`
|
|
7108
7105
|
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
7109
7106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -7115,6 +7112,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7115
7112
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7116
7113
|
const localVarHeaderParameter = {};
|
|
7117
7114
|
const localVarQueryParameter = {};
|
|
7115
|
+
if (companyId !== undefined) {
|
|
7116
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7117
|
+
}
|
|
7118
7118
|
if (domain !== undefined) {
|
|
7119
7119
|
localVarQueryParameter['domain'] = domain;
|
|
7120
7120
|
}
|
|
@@ -7128,7 +7128,6 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7128
7128
|
},
|
|
7129
7129
|
/**
|
|
7130
7130
|
*
|
|
7131
|
-
* @param {string} company
|
|
7132
7131
|
* @param {number} [page]
|
|
7133
7132
|
* @param {number} [itemsPerPage]
|
|
7134
7133
|
* @param {string} [search]
|
|
@@ -7137,6 +7136,8 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7137
7136
|
* @param {string} [dateField]
|
|
7138
7137
|
* @param {OrderEnum} [order]
|
|
7139
7138
|
* @param {string} [sort]
|
|
7139
|
+
* @param {string} [companyId]
|
|
7140
|
+
* @param {string} [domain]
|
|
7140
7141
|
* @param {string} [collections]
|
|
7141
7142
|
* @param {string} [category]
|
|
7142
7143
|
* @param {string} [brand]
|
|
@@ -7144,9 +7145,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7144
7145
|
* @param {*} [options] Override http request option.
|
|
7145
7146
|
* @throws {RequiredError}
|
|
7146
7147
|
*/
|
|
7147
|
-
getProducts: async (
|
|
7148
|
-
// verify required parameter 'company' is not null or undefined
|
|
7149
|
-
(0, common_1.assertParamExists)('getProducts', 'company', company);
|
|
7148
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options = {}) => {
|
|
7150
7149
|
const localVarPath = `/api/products`;
|
|
7151
7150
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7152
7151
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7185,8 +7184,11 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7185
7184
|
if (sort !== undefined) {
|
|
7186
7185
|
localVarQueryParameter['sort'] = sort;
|
|
7187
7186
|
}
|
|
7188
|
-
if (
|
|
7189
|
-
localVarQueryParameter['
|
|
7187
|
+
if (companyId !== undefined) {
|
|
7188
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7189
|
+
}
|
|
7190
|
+
if (domain !== undefined) {
|
|
7191
|
+
localVarQueryParameter['domain'] = domain;
|
|
7190
7192
|
}
|
|
7191
7193
|
if (collections !== undefined) {
|
|
7192
7194
|
localVarQueryParameter['collections'] = collections;
|
|
@@ -7210,14 +7212,13 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7210
7212
|
},
|
|
7211
7213
|
/**
|
|
7212
7214
|
*
|
|
7213
|
-
* @param {string} company
|
|
7214
7215
|
* @param {string} search
|
|
7216
|
+
* @param {string} [companyId]
|
|
7217
|
+
* @param {string} [domain]
|
|
7215
7218
|
* @param {*} [options] Override http request option.
|
|
7216
7219
|
* @throws {RequiredError}
|
|
7217
7220
|
*/
|
|
7218
|
-
searchProducts: async (
|
|
7219
|
-
// verify required parameter 'company' is not null or undefined
|
|
7220
|
-
(0, common_1.assertParamExists)('searchProducts', 'company', company);
|
|
7221
|
+
searchProducts: async (search, companyId, domain, options = {}) => {
|
|
7221
7222
|
// verify required parameter 'search' is not null or undefined
|
|
7222
7223
|
(0, common_1.assertParamExists)('searchProducts', 'search', search);
|
|
7223
7224
|
const localVarPath = `/api/products/search`;
|
|
@@ -7230,12 +7231,15 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7230
7231
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7231
7232
|
const localVarHeaderParameter = {};
|
|
7232
7233
|
const localVarQueryParameter = {};
|
|
7233
|
-
if (company !== undefined) {
|
|
7234
|
-
localVarQueryParameter['company'] = company;
|
|
7235
|
-
}
|
|
7236
7234
|
if (search !== undefined) {
|
|
7237
7235
|
localVarQueryParameter['search'] = search;
|
|
7238
7236
|
}
|
|
7237
|
+
if (companyId !== undefined) {
|
|
7238
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7239
|
+
}
|
|
7240
|
+
if (domain !== undefined) {
|
|
7241
|
+
localVarQueryParameter['domain'] = domain;
|
|
7242
|
+
}
|
|
7239
7243
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7240
7244
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7241
7245
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -7313,26 +7317,26 @@ const ProductApiFp = function (configuration) {
|
|
|
7313
7317
|
},
|
|
7314
7318
|
/**
|
|
7315
7319
|
*
|
|
7316
|
-
* @param {string}
|
|
7320
|
+
* @param {string} companyId
|
|
7317
7321
|
* @param {string} [search]
|
|
7318
7322
|
* @param {string} [template]
|
|
7319
7323
|
* @param {*} [options] Override http request option.
|
|
7320
7324
|
* @throws {RequiredError}
|
|
7321
7325
|
*/
|
|
7322
|
-
async getAllProducts(
|
|
7323
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllProducts(
|
|
7326
|
+
async getAllProducts(companyId, search, template, options) {
|
|
7327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllProducts(companyId, search, template, options);
|
|
7324
7328
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7325
7329
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getAllProducts']?.[localVarOperationServerIndex]?.url;
|
|
7326
7330
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7327
7331
|
},
|
|
7328
7332
|
/**
|
|
7329
7333
|
*
|
|
7330
|
-
* @param {string}
|
|
7334
|
+
* @param {string} companyId
|
|
7331
7335
|
* @param {*} [options] Override http request option.
|
|
7332
7336
|
* @throws {RequiredError}
|
|
7333
7337
|
*/
|
|
7334
|
-
async getFirstProduct(
|
|
7335
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(
|
|
7338
|
+
async getFirstProduct(companyId, options) {
|
|
7339
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, options);
|
|
7336
7340
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7337
7341
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getFirstProduct']?.[localVarOperationServerIndex]?.url;
|
|
7338
7342
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7352,19 +7356,19 @@ const ProductApiFp = function (configuration) {
|
|
|
7352
7356
|
/**
|
|
7353
7357
|
*
|
|
7354
7358
|
* @param {string} slug
|
|
7355
|
-
* @param {string}
|
|
7359
|
+
* @param {string} [companyId]
|
|
7360
|
+
* @param {string} [domain]
|
|
7356
7361
|
* @param {*} [options] Override http request option.
|
|
7357
7362
|
* @throws {RequiredError}
|
|
7358
7363
|
*/
|
|
7359
|
-
async getProductBySlug(slug, domain, options) {
|
|
7360
|
-
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);
|
|
7361
7366
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7362
7367
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
|
|
7363
7368
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7364
7369
|
},
|
|
7365
7370
|
/**
|
|
7366
7371
|
*
|
|
7367
|
-
* @param {string} company
|
|
7368
7372
|
* @param {number} [page]
|
|
7369
7373
|
* @param {number} [itemsPerPage]
|
|
7370
7374
|
* @param {string} [search]
|
|
@@ -7373,6 +7377,8 @@ const ProductApiFp = function (configuration) {
|
|
|
7373
7377
|
* @param {string} [dateField]
|
|
7374
7378
|
* @param {OrderEnum} [order]
|
|
7375
7379
|
* @param {string} [sort]
|
|
7380
|
+
* @param {string} [companyId]
|
|
7381
|
+
* @param {string} [domain]
|
|
7376
7382
|
* @param {string} [collections]
|
|
7377
7383
|
* @param {string} [category]
|
|
7378
7384
|
* @param {string} [brand]
|
|
@@ -7380,21 +7386,22 @@ const ProductApiFp = function (configuration) {
|
|
|
7380
7386
|
* @param {*} [options] Override http request option.
|
|
7381
7387
|
* @throws {RequiredError}
|
|
7382
7388
|
*/
|
|
7383
|
-
async getProducts(
|
|
7384
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(
|
|
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);
|
|
7385
7391
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7386
7392
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
7387
7393
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7388
7394
|
},
|
|
7389
7395
|
/**
|
|
7390
7396
|
*
|
|
7391
|
-
* @param {string} company
|
|
7392
7397
|
* @param {string} search
|
|
7398
|
+
* @param {string} [companyId]
|
|
7399
|
+
* @param {string} [domain]
|
|
7393
7400
|
* @param {*} [options] Override http request option.
|
|
7394
7401
|
* @throws {RequiredError}
|
|
7395
7402
|
*/
|
|
7396
|
-
async searchProducts(
|
|
7397
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(
|
|
7403
|
+
async searchProducts(search, companyId, domain, options) {
|
|
7404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
|
|
7398
7405
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7399
7406
|
const localVarOperationServerBasePath = base_1.operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
|
|
7400
7407
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7447,7 +7454,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7447
7454
|
* @throws {RequiredError}
|
|
7448
7455
|
*/
|
|
7449
7456
|
getAllProducts(requestParameters, options) {
|
|
7450
|
-
return localVarFp.getAllProducts(requestParameters.
|
|
7457
|
+
return localVarFp.getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
7451
7458
|
},
|
|
7452
7459
|
/**
|
|
7453
7460
|
*
|
|
@@ -7456,7 +7463,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7456
7463
|
* @throws {RequiredError}
|
|
7457
7464
|
*/
|
|
7458
7465
|
getFirstProduct(requestParameters, options) {
|
|
7459
|
-
return localVarFp.getFirstProduct(requestParameters.
|
|
7466
|
+
return localVarFp.getFirstProduct(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
7460
7467
|
},
|
|
7461
7468
|
/**
|
|
7462
7469
|
*
|
|
@@ -7474,7 +7481,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7474
7481
|
* @throws {RequiredError}
|
|
7475
7482
|
*/
|
|
7476
7483
|
getProductBySlug(requestParameters, options) {
|
|
7477
|
-
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));
|
|
7478
7485
|
},
|
|
7479
7486
|
/**
|
|
7480
7487
|
*
|
|
@@ -7482,8 +7489,8 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7482
7489
|
* @param {*} [options] Override http request option.
|
|
7483
7490
|
* @throws {RequiredError}
|
|
7484
7491
|
*/
|
|
7485
|
-
getProducts(requestParameters, options) {
|
|
7486
|
-
return localVarFp.getProducts(requestParameters.
|
|
7492
|
+
getProducts(requestParameters = {}, options) {
|
|
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));
|
|
7487
7494
|
},
|
|
7488
7495
|
/**
|
|
7489
7496
|
*
|
|
@@ -7492,7 +7499,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7492
7499
|
* @throws {RequiredError}
|
|
7493
7500
|
*/
|
|
7494
7501
|
searchProducts(requestParameters, options) {
|
|
7495
|
-
return localVarFp.searchProducts(requestParameters.
|
|
7502
|
+
return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
7496
7503
|
},
|
|
7497
7504
|
/**
|
|
7498
7505
|
*
|
|
@@ -7541,7 +7548,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7541
7548
|
* @memberof ProductApi
|
|
7542
7549
|
*/
|
|
7543
7550
|
getAllProducts(requestParameters, options) {
|
|
7544
|
-
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));
|
|
7545
7552
|
}
|
|
7546
7553
|
/**
|
|
7547
7554
|
*
|
|
@@ -7551,7 +7558,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7551
7558
|
* @memberof ProductApi
|
|
7552
7559
|
*/
|
|
7553
7560
|
getFirstProduct(requestParameters, options) {
|
|
7554
|
-
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));
|
|
7555
7562
|
}
|
|
7556
7563
|
/**
|
|
7557
7564
|
*
|
|
@@ -7571,7 +7578,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7571
7578
|
* @memberof ProductApi
|
|
7572
7579
|
*/
|
|
7573
7580
|
getProductBySlug(requestParameters, options) {
|
|
7574
|
-
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));
|
|
7575
7582
|
}
|
|
7576
7583
|
/**
|
|
7577
7584
|
*
|
|
@@ -7580,8 +7587,8 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7580
7587
|
* @throws {RequiredError}
|
|
7581
7588
|
* @memberof ProductApi
|
|
7582
7589
|
*/
|
|
7583
|
-
getProducts(requestParameters, options) {
|
|
7584
|
-
return (0, exports.ProductApiFp)(this.configuration).getProducts(requestParameters.
|
|
7590
|
+
getProducts(requestParameters = {}, options) {
|
|
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));
|
|
7585
7592
|
}
|
|
7586
7593
|
/**
|
|
7587
7594
|
*
|
|
@@ -7591,7 +7598,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
7591
7598
|
* @memberof ProductApi
|
|
7592
7599
|
*/
|
|
7593
7600
|
searchProducts(requestParameters, options) {
|
|
7594
|
-
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));
|
|
7595
7602
|
}
|
|
7596
7603
|
/**
|
|
7597
7604
|
*
|
|
@@ -7670,15 +7677,15 @@ const TemplateApiAxiosParamCreator = function (configuration) {
|
|
|
7670
7677
|
},
|
|
7671
7678
|
/**
|
|
7672
7679
|
*
|
|
7673
|
-
* @param {string}
|
|
7680
|
+
* @param {string} companyId
|
|
7674
7681
|
* @param {TemplateTypeEnum} [type]
|
|
7675
7682
|
* @param {string} [search]
|
|
7676
7683
|
* @param {*} [options] Override http request option.
|
|
7677
7684
|
* @throws {RequiredError}
|
|
7678
7685
|
*/
|
|
7679
|
-
getTemplates: async (
|
|
7680
|
-
// verify required parameter '
|
|
7681
|
-
(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);
|
|
7682
7689
|
const localVarPath = `/api/templates`;
|
|
7683
7690
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7684
7691
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7689,8 +7696,8 @@ const TemplateApiAxiosParamCreator = function (configuration) {
|
|
|
7689
7696
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7690
7697
|
const localVarHeaderParameter = {};
|
|
7691
7698
|
const localVarQueryParameter = {};
|
|
7692
|
-
if (
|
|
7693
|
-
localVarQueryParameter['
|
|
7699
|
+
if (companyId !== undefined) {
|
|
7700
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7694
7701
|
}
|
|
7695
7702
|
if (type !== undefined) {
|
|
7696
7703
|
localVarQueryParameter['type'] = type;
|
|
@@ -7775,14 +7782,14 @@ const TemplateApiFp = function (configuration) {
|
|
|
7775
7782
|
},
|
|
7776
7783
|
/**
|
|
7777
7784
|
*
|
|
7778
|
-
* @param {string}
|
|
7785
|
+
* @param {string} companyId
|
|
7779
7786
|
* @param {TemplateTypeEnum} [type]
|
|
7780
7787
|
* @param {string} [search]
|
|
7781
7788
|
* @param {*} [options] Override http request option.
|
|
7782
7789
|
* @throws {RequiredError}
|
|
7783
7790
|
*/
|
|
7784
|
-
async getTemplates(
|
|
7785
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(
|
|
7791
|
+
async getTemplates(companyId, type, search, options) {
|
|
7792
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, options);
|
|
7786
7793
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7787
7794
|
const localVarOperationServerBasePath = base_1.operationServerMap['TemplateApi.getTemplates']?.[localVarOperationServerIndex]?.url;
|
|
7788
7795
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7835,7 +7842,7 @@ const TemplateApiFactory = function (configuration, basePath, axios) {
|
|
|
7835
7842
|
* @throws {RequiredError}
|
|
7836
7843
|
*/
|
|
7837
7844
|
getTemplates(requestParameters, options) {
|
|
7838
|
-
return localVarFp.getTemplates(requestParameters.
|
|
7845
|
+
return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
7839
7846
|
},
|
|
7840
7847
|
/**
|
|
7841
7848
|
*
|
|
@@ -7884,7 +7891,7 @@ class TemplateApi extends base_1.BaseAPI {
|
|
|
7884
7891
|
* @memberof TemplateApi
|
|
7885
7892
|
*/
|
|
7886
7893
|
getTemplates(requestParameters, options) {
|
|
7887
|
-
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));
|
|
7888
7895
|
}
|
|
7889
7896
|
/**
|
|
7890
7897
|
*
|