@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.mjs
CHANGED
|
@@ -1722,13 +1722,13 @@ export const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1722
1722
|
},
|
|
1723
1723
|
/**
|
|
1724
1724
|
*
|
|
1725
|
-
* @param {string}
|
|
1725
|
+
* @param {string} companyId
|
|
1726
1726
|
* @param {*} [options] Override http request option.
|
|
1727
1727
|
* @throws {RequiredError}
|
|
1728
1728
|
*/
|
|
1729
|
-
getAllBrands: async (
|
|
1730
|
-
// verify required parameter '
|
|
1731
|
-
assertParamExists('getAllBrands', '
|
|
1729
|
+
getAllBrands: async (companyId, options = {}) => {
|
|
1730
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
1731
|
+
assertParamExists('getAllBrands', 'companyId', companyId);
|
|
1732
1732
|
const localVarPath = `/api/brands/get/all`;
|
|
1733
1733
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1734
1734
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1739,8 +1739,8 @@ export const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1739
1739
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1740
1740
|
const localVarHeaderParameter = {};
|
|
1741
1741
|
const localVarQueryParameter = {};
|
|
1742
|
-
if (
|
|
1743
|
-
localVarQueryParameter['
|
|
1742
|
+
if (companyId !== undefined) {
|
|
1743
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1744
1744
|
}
|
|
1745
1745
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1746
1746
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1780,7 +1780,7 @@ export const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1780
1780
|
},
|
|
1781
1781
|
/**
|
|
1782
1782
|
*
|
|
1783
|
-
* @param {string}
|
|
1783
|
+
* @param {string} companyId
|
|
1784
1784
|
* @param {number} [page]
|
|
1785
1785
|
* @param {number} [itemsPerPage]
|
|
1786
1786
|
* @param {string} [search]
|
|
@@ -1793,9 +1793,9 @@ export const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1793
1793
|
* @param {*} [options] Override http request option.
|
|
1794
1794
|
* @throws {RequiredError}
|
|
1795
1795
|
*/
|
|
1796
|
-
getBrands: async (
|
|
1797
|
-
// verify required parameter '
|
|
1798
|
-
assertParamExists('getBrands', '
|
|
1796
|
+
getBrands: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
1797
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
1798
|
+
assertParamExists('getBrands', 'companyId', companyId);
|
|
1799
1799
|
const localVarPath = `/api/brands`;
|
|
1800
1800
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1801
1801
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1834,8 +1834,8 @@ export const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1834
1834
|
if (sort !== undefined) {
|
|
1835
1835
|
localVarQueryParameter['sort'] = sort;
|
|
1836
1836
|
}
|
|
1837
|
-
if (
|
|
1838
|
-
localVarQueryParameter['
|
|
1837
|
+
if (companyId !== undefined) {
|
|
1838
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1839
1839
|
}
|
|
1840
1840
|
if (status !== undefined) {
|
|
1841
1841
|
localVarQueryParameter['status'] = status;
|
|
@@ -1916,12 +1916,12 @@ export const BrandApiFp = function (configuration) {
|
|
|
1916
1916
|
},
|
|
1917
1917
|
/**
|
|
1918
1918
|
*
|
|
1919
|
-
* @param {string}
|
|
1919
|
+
* @param {string} companyId
|
|
1920
1920
|
* @param {*} [options] Override http request option.
|
|
1921
1921
|
* @throws {RequiredError}
|
|
1922
1922
|
*/
|
|
1923
|
-
async getAllBrands(
|
|
1924
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllBrands(
|
|
1923
|
+
async getAllBrands(companyId, options) {
|
|
1924
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllBrands(companyId, options);
|
|
1925
1925
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1926
1926
|
const localVarOperationServerBasePath = operationServerMap['BrandApi.getAllBrands']?.[localVarOperationServerIndex]?.url;
|
|
1927
1927
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1940,7 +1940,7 @@ export const BrandApiFp = function (configuration) {
|
|
|
1940
1940
|
},
|
|
1941
1941
|
/**
|
|
1942
1942
|
*
|
|
1943
|
-
* @param {string}
|
|
1943
|
+
* @param {string} companyId
|
|
1944
1944
|
* @param {number} [page]
|
|
1945
1945
|
* @param {number} [itemsPerPage]
|
|
1946
1946
|
* @param {string} [search]
|
|
@@ -1953,8 +1953,8 @@ export const BrandApiFp = function (configuration) {
|
|
|
1953
1953
|
* @param {*} [options] Override http request option.
|
|
1954
1954
|
* @throws {RequiredError}
|
|
1955
1955
|
*/
|
|
1956
|
-
async getBrands(
|
|
1957
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(
|
|
1956
|
+
async getBrands(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
1957
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
1958
1958
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1959
1959
|
const localVarOperationServerBasePath = operationServerMap['BrandApi.getBrands']?.[localVarOperationServerIndex]?.url;
|
|
1960
1960
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2006,7 +2006,7 @@ export const BrandApiFactory = function (configuration, basePath, axios) {
|
|
|
2006
2006
|
* @throws {RequiredError}
|
|
2007
2007
|
*/
|
|
2008
2008
|
getAllBrands(requestParameters, options) {
|
|
2009
|
-
return localVarFp.getAllBrands(requestParameters.
|
|
2009
|
+
return localVarFp.getAllBrands(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2010
2010
|
},
|
|
2011
2011
|
/**
|
|
2012
2012
|
*
|
|
@@ -2024,7 +2024,7 @@ export const BrandApiFactory = function (configuration, basePath, axios) {
|
|
|
2024
2024
|
* @throws {RequiredError}
|
|
2025
2025
|
*/
|
|
2026
2026
|
getBrands(requestParameters, options) {
|
|
2027
|
-
return localVarFp.getBrands(requestParameters.
|
|
2027
|
+
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));
|
|
2028
2028
|
},
|
|
2029
2029
|
/**
|
|
2030
2030
|
*
|
|
@@ -2072,7 +2072,7 @@ export class BrandApi extends BaseAPI {
|
|
|
2072
2072
|
* @memberof BrandApi
|
|
2073
2073
|
*/
|
|
2074
2074
|
getAllBrands(requestParameters, options) {
|
|
2075
|
-
return BrandApiFp(this.configuration).getAllBrands(requestParameters.
|
|
2075
|
+
return BrandApiFp(this.configuration).getAllBrands(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2076
2076
|
}
|
|
2077
2077
|
/**
|
|
2078
2078
|
*
|
|
@@ -2092,7 +2092,7 @@ export class BrandApi extends BaseAPI {
|
|
|
2092
2092
|
* @memberof BrandApi
|
|
2093
2093
|
*/
|
|
2094
2094
|
getBrands(requestParameters, options) {
|
|
2095
|
-
return BrandApiFp(this.configuration).getBrands(requestParameters.
|
|
2095
|
+
return 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));
|
|
2096
2096
|
}
|
|
2097
2097
|
/**
|
|
2098
2098
|
*
|
|
@@ -2170,13 +2170,13 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2170
2170
|
},
|
|
2171
2171
|
/**
|
|
2172
2172
|
*
|
|
2173
|
-
* @param {string}
|
|
2173
|
+
* @param {string} companyId
|
|
2174
2174
|
* @param {*} [options] Override http request option.
|
|
2175
2175
|
* @throws {RequiredError}
|
|
2176
2176
|
*/
|
|
2177
|
-
getAllCategories: async (
|
|
2178
|
-
// verify required parameter '
|
|
2179
|
-
assertParamExists('getAllCategories', '
|
|
2177
|
+
getAllCategories: async (companyId, options = {}) => {
|
|
2178
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2179
|
+
assertParamExists('getAllCategories', 'companyId', companyId);
|
|
2180
2180
|
const localVarPath = `/api/categories/get/all`;
|
|
2181
2181
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2182
2182
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2187,8 +2187,8 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2187
2187
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2188
2188
|
const localVarHeaderParameter = {};
|
|
2189
2189
|
const localVarQueryParameter = {};
|
|
2190
|
-
if (
|
|
2191
|
-
localVarQueryParameter['
|
|
2190
|
+
if (companyId !== undefined) {
|
|
2191
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2192
2192
|
}
|
|
2193
2193
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2194
2194
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2200,7 +2200,7 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2200
2200
|
},
|
|
2201
2201
|
/**
|
|
2202
2202
|
*
|
|
2203
|
-
* @param {string}
|
|
2203
|
+
* @param {string} companyId
|
|
2204
2204
|
* @param {number} [page]
|
|
2205
2205
|
* @param {number} [itemsPerPage]
|
|
2206
2206
|
* @param {string} [search]
|
|
@@ -2213,9 +2213,9 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2213
2213
|
* @param {*} [options] Override http request option.
|
|
2214
2214
|
* @throws {RequiredError}
|
|
2215
2215
|
*/
|
|
2216
|
-
getCategories: async (
|
|
2217
|
-
// verify required parameter '
|
|
2218
|
-
assertParamExists('getCategories', '
|
|
2216
|
+
getCategories: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
2217
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2218
|
+
assertParamExists('getCategories', 'companyId', companyId);
|
|
2219
2219
|
const localVarPath = `/api/categories`;
|
|
2220
2220
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2221
2221
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2254,8 +2254,8 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2254
2254
|
if (sort !== undefined) {
|
|
2255
2255
|
localVarQueryParameter['sort'] = sort;
|
|
2256
2256
|
}
|
|
2257
|
-
if (
|
|
2258
|
-
localVarQueryParameter['
|
|
2257
|
+
if (companyId !== undefined) {
|
|
2258
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2259
2259
|
}
|
|
2260
2260
|
if (status !== undefined) {
|
|
2261
2261
|
localVarQueryParameter['status'] = status;
|
|
@@ -2270,13 +2270,13 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2270
2270
|
},
|
|
2271
2271
|
/**
|
|
2272
2272
|
*
|
|
2273
|
-
* @param {string}
|
|
2273
|
+
* @param {string} companyId
|
|
2274
2274
|
* @param {*} [options] Override http request option.
|
|
2275
2275
|
* @throws {RequiredError}
|
|
2276
2276
|
*/
|
|
2277
|
-
getCategoryAttributes: async (
|
|
2278
|
-
// verify required parameter '
|
|
2279
|
-
assertParamExists('getCategoryAttributes', '
|
|
2277
|
+
getCategoryAttributes: async (companyId, options = {}) => {
|
|
2278
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
2279
|
+
assertParamExists('getCategoryAttributes', 'companyId', companyId);
|
|
2280
2280
|
const localVarPath = `/api/categories/get/attributes`;
|
|
2281
2281
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2282
2282
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2287,8 +2287,8 @@ export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2287
2287
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2288
2288
|
const localVarHeaderParameter = {};
|
|
2289
2289
|
const localVarQueryParameter = {};
|
|
2290
|
-
if (
|
|
2291
|
-
localVarQueryParameter['
|
|
2290
|
+
if (companyId !== undefined) {
|
|
2291
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
2292
2292
|
}
|
|
2293
2293
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2294
2294
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2394,19 +2394,19 @@ export const CategoryApiFp = function (configuration) {
|
|
|
2394
2394
|
},
|
|
2395
2395
|
/**
|
|
2396
2396
|
*
|
|
2397
|
-
* @param {string}
|
|
2397
|
+
* @param {string} companyId
|
|
2398
2398
|
* @param {*} [options] Override http request option.
|
|
2399
2399
|
* @throws {RequiredError}
|
|
2400
2400
|
*/
|
|
2401
|
-
async getAllCategories(
|
|
2402
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategories(
|
|
2401
|
+
async getAllCategories(companyId, options) {
|
|
2402
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCategories(companyId, options);
|
|
2403
2403
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2404
2404
|
const localVarOperationServerBasePath = operationServerMap['CategoryApi.getAllCategories']?.[localVarOperationServerIndex]?.url;
|
|
2405
2405
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2406
2406
|
},
|
|
2407
2407
|
/**
|
|
2408
2408
|
*
|
|
2409
|
-
* @param {string}
|
|
2409
|
+
* @param {string} companyId
|
|
2410
2410
|
* @param {number} [page]
|
|
2411
2411
|
* @param {number} [itemsPerPage]
|
|
2412
2412
|
* @param {string} [search]
|
|
@@ -2419,20 +2419,20 @@ export const CategoryApiFp = function (configuration) {
|
|
|
2419
2419
|
* @param {*} [options] Override http request option.
|
|
2420
2420
|
* @throws {RequiredError}
|
|
2421
2421
|
*/
|
|
2422
|
-
async getCategories(
|
|
2423
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(
|
|
2422
|
+
async getCategories(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
2423
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
2424
2424
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2425
2425
|
const localVarOperationServerBasePath = operationServerMap['CategoryApi.getCategories']?.[localVarOperationServerIndex]?.url;
|
|
2426
2426
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2427
2427
|
},
|
|
2428
2428
|
/**
|
|
2429
2429
|
*
|
|
2430
|
-
* @param {string}
|
|
2430
|
+
* @param {string} companyId
|
|
2431
2431
|
* @param {*} [options] Override http request option.
|
|
2432
2432
|
* @throws {RequiredError}
|
|
2433
2433
|
*/
|
|
2434
|
-
async getCategoryAttributes(
|
|
2435
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategoryAttributes(
|
|
2434
|
+
async getCategoryAttributes(companyId, options) {
|
|
2435
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategoryAttributes(companyId, options);
|
|
2436
2436
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2437
2437
|
const localVarOperationServerBasePath = operationServerMap['CategoryApi.getCategoryAttributes']?.[localVarOperationServerIndex]?.url;
|
|
2438
2438
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2496,7 +2496,7 @@ export const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2496
2496
|
* @throws {RequiredError}
|
|
2497
2497
|
*/
|
|
2498
2498
|
getAllCategories(requestParameters, options) {
|
|
2499
|
-
return localVarFp.getAllCategories(requestParameters.
|
|
2499
|
+
return localVarFp.getAllCategories(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2500
2500
|
},
|
|
2501
2501
|
/**
|
|
2502
2502
|
*
|
|
@@ -2505,7 +2505,7 @@ export const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2505
2505
|
* @throws {RequiredError}
|
|
2506
2506
|
*/
|
|
2507
2507
|
getCategories(requestParameters, options) {
|
|
2508
|
-
return localVarFp.getCategories(requestParameters.
|
|
2508
|
+
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));
|
|
2509
2509
|
},
|
|
2510
2510
|
/**
|
|
2511
2511
|
*
|
|
@@ -2514,7 +2514,7 @@ export const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2514
2514
|
* @throws {RequiredError}
|
|
2515
2515
|
*/
|
|
2516
2516
|
getCategoryAttributes(requestParameters, options) {
|
|
2517
|
-
return localVarFp.getCategoryAttributes(requestParameters.
|
|
2517
|
+
return localVarFp.getCategoryAttributes(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
2518
2518
|
},
|
|
2519
2519
|
/**
|
|
2520
2520
|
*
|
|
@@ -2571,7 +2571,7 @@ export class CategoryApi extends BaseAPI {
|
|
|
2571
2571
|
* @memberof CategoryApi
|
|
2572
2572
|
*/
|
|
2573
2573
|
getAllCategories(requestParameters, options) {
|
|
2574
|
-
return CategoryApiFp(this.configuration).getAllCategories(requestParameters.
|
|
2574
|
+
return CategoryApiFp(this.configuration).getAllCategories(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2575
2575
|
}
|
|
2576
2576
|
/**
|
|
2577
2577
|
*
|
|
@@ -2581,7 +2581,7 @@ export class CategoryApi extends BaseAPI {
|
|
|
2581
2581
|
* @memberof CategoryApi
|
|
2582
2582
|
*/
|
|
2583
2583
|
getCategories(requestParameters, options) {
|
|
2584
|
-
return CategoryApiFp(this.configuration).getCategories(requestParameters.
|
|
2584
|
+
return 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));
|
|
2585
2585
|
}
|
|
2586
2586
|
/**
|
|
2587
2587
|
*
|
|
@@ -2591,7 +2591,7 @@ export class CategoryApi extends BaseAPI {
|
|
|
2591
2591
|
* @memberof CategoryApi
|
|
2592
2592
|
*/
|
|
2593
2593
|
getCategoryAttributes(requestParameters, options) {
|
|
2594
|
-
return CategoryApiFp(this.configuration).getCategoryAttributes(requestParameters.
|
|
2594
|
+
return CategoryApiFp(this.configuration).getCategoryAttributes(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
2595
2595
|
}
|
|
2596
2596
|
/**
|
|
2597
2597
|
*
|
|
@@ -4649,7 +4649,7 @@ export const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4649
4649
|
},
|
|
4650
4650
|
/**
|
|
4651
4651
|
*
|
|
4652
|
-
* @param {string}
|
|
4652
|
+
* @param {string} companyId
|
|
4653
4653
|
* @param {number} [page]
|
|
4654
4654
|
* @param {number} [itemsPerPage]
|
|
4655
4655
|
* @param {string} [search]
|
|
@@ -4664,9 +4664,9 @@ export const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4664
4664
|
* @param {*} [options] Override http request option.
|
|
4665
4665
|
* @throws {RequiredError}
|
|
4666
4666
|
*/
|
|
4667
|
-
getFiles: async (
|
|
4668
|
-
// verify required parameter '
|
|
4669
|
-
assertParamExists('getFiles', '
|
|
4667
|
+
getFiles: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, keywords, type, status, options = {}) => {
|
|
4668
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4669
|
+
assertParamExists('getFiles', 'companyId', companyId);
|
|
4670
4670
|
const localVarPath = `/api/files`;
|
|
4671
4671
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4672
4672
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4705,8 +4705,8 @@ export const FileApiAxiosParamCreator = function (configuration) {
|
|
|
4705
4705
|
if (sort !== undefined) {
|
|
4706
4706
|
localVarQueryParameter['sort'] = sort;
|
|
4707
4707
|
}
|
|
4708
|
-
if (
|
|
4709
|
-
localVarQueryParameter['
|
|
4708
|
+
if (companyId !== undefined) {
|
|
4709
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
4710
4710
|
}
|
|
4711
4711
|
if (keywords) {
|
|
4712
4712
|
localVarQueryParameter['keywords'] = keywords;
|
|
@@ -4838,7 +4838,7 @@ export const FileApiFp = function (configuration) {
|
|
|
4838
4838
|
},
|
|
4839
4839
|
/**
|
|
4840
4840
|
*
|
|
4841
|
-
* @param {string}
|
|
4841
|
+
* @param {string} companyId
|
|
4842
4842
|
* @param {number} [page]
|
|
4843
4843
|
* @param {number} [itemsPerPage]
|
|
4844
4844
|
* @param {string} [search]
|
|
@@ -4853,8 +4853,8 @@ export const FileApiFp = function (configuration) {
|
|
|
4853
4853
|
* @param {*} [options] Override http request option.
|
|
4854
4854
|
* @throws {RequiredError}
|
|
4855
4855
|
*/
|
|
4856
|
-
async getFiles(
|
|
4857
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFiles(
|
|
4856
|
+
async getFiles(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, keywords, type, status, options) {
|
|
4857
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFiles(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, keywords, type, status, options);
|
|
4858
4858
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4859
4859
|
const localVarOperationServerBasePath = operationServerMap['FileApi.getFiles']?.[localVarOperationServerIndex]?.url;
|
|
4860
4860
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4920,7 +4920,7 @@ export const FileApiFactory = function (configuration, basePath, axios) {
|
|
|
4920
4920
|
* @throws {RequiredError}
|
|
4921
4921
|
*/
|
|
4922
4922
|
getFiles(requestParameters, options) {
|
|
4923
|
-
return localVarFp.getFiles(requestParameters.
|
|
4923
|
+
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));
|
|
4924
4924
|
},
|
|
4925
4925
|
/**
|
|
4926
4926
|
*
|
|
@@ -4977,7 +4977,7 @@ export class FileApi extends BaseAPI {
|
|
|
4977
4977
|
* @memberof FileApi
|
|
4978
4978
|
*/
|
|
4979
4979
|
getFiles(requestParameters, options) {
|
|
4980
|
-
return FileApiFp(this.configuration).getFiles(requestParameters.
|
|
4980
|
+
return 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));
|
|
4981
4981
|
}
|
|
4982
4982
|
/**
|
|
4983
4983
|
*
|
|
@@ -5073,12 +5073,12 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
|
5073
5073
|
* @param {OrderEnum} [order]
|
|
5074
5074
|
* @param {string} [sort]
|
|
5075
5075
|
* @param {string} [user]
|
|
5076
|
-
* @param {string} [
|
|
5076
|
+
* @param {string} [companyId]
|
|
5077
5077
|
* @param {NotificationStatusEnum} [status]
|
|
5078
5078
|
* @param {*} [options] Override http request option.
|
|
5079
5079
|
* @throws {RequiredError}
|
|
5080
5080
|
*/
|
|
5081
|
-
getNotifications: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user,
|
|
5081
|
+
getNotifications: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, companyId, status, options = {}) => {
|
|
5082
5082
|
const localVarPath = `/api/notifications`;
|
|
5083
5083
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5084
5084
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5120,8 +5120,8 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
|
5120
5120
|
if (user !== undefined) {
|
|
5121
5121
|
localVarQueryParameter['user'] = user;
|
|
5122
5122
|
}
|
|
5123
|
-
if (
|
|
5124
|
-
localVarQueryParameter['
|
|
5123
|
+
if (companyId !== undefined) {
|
|
5124
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
5125
5125
|
}
|
|
5126
5126
|
if (status !== undefined) {
|
|
5127
5127
|
localVarQueryParameter['status'] = status;
|
|
@@ -5230,13 +5230,13 @@ export const NotificationApiFp = function (configuration) {
|
|
|
5230
5230
|
* @param {OrderEnum} [order]
|
|
5231
5231
|
* @param {string} [sort]
|
|
5232
5232
|
* @param {string} [user]
|
|
5233
|
-
* @param {string} [
|
|
5233
|
+
* @param {string} [companyId]
|
|
5234
5234
|
* @param {NotificationStatusEnum} [status]
|
|
5235
5235
|
* @param {*} [options] Override http request option.
|
|
5236
5236
|
* @throws {RequiredError}
|
|
5237
5237
|
*/
|
|
5238
|
-
async getNotifications(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user,
|
|
5239
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getNotifications(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user,
|
|
5238
|
+
async getNotifications(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, companyId, status, options) {
|
|
5239
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNotifications(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, companyId, status, options);
|
|
5240
5240
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5241
5241
|
const localVarOperationServerBasePath = operationServerMap['NotificationApi.getNotifications']?.[localVarOperationServerIndex]?.url;
|
|
5242
5242
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5298,7 +5298,7 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
|
|
|
5298
5298
|
* @throws {RequiredError}
|
|
5299
5299
|
*/
|
|
5300
5300
|
getNotifications(requestParameters = {}, options) {
|
|
5301
|
-
return localVarFp.getNotifications(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.
|
|
5301
|
+
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));
|
|
5302
5302
|
},
|
|
5303
5303
|
/**
|
|
5304
5304
|
*
|
|
@@ -5354,7 +5354,7 @@ export class NotificationApi extends BaseAPI {
|
|
|
5354
5354
|
* @memberof NotificationApi
|
|
5355
5355
|
*/
|
|
5356
5356
|
getNotifications(requestParameters = {}, options) {
|
|
5357
|
-
return NotificationApiFp(this.configuration).getNotifications(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.
|
|
5357
|
+
return 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));
|
|
5358
5358
|
}
|
|
5359
5359
|
/**
|
|
5360
5360
|
*
|
|
@@ -5890,13 +5890,13 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
5890
5890
|
},
|
|
5891
5891
|
/**
|
|
5892
5892
|
*
|
|
5893
|
-
* @param {string} [
|
|
5893
|
+
* @param {string} [companyId]
|
|
5894
5894
|
* @param {string} [domain]
|
|
5895
5895
|
* @param {Array<PageTypeEnum>} [type]
|
|
5896
5896
|
* @param {*} [options] Override http request option.
|
|
5897
5897
|
* @throws {RequiredError}
|
|
5898
5898
|
*/
|
|
5899
|
-
getAllPages: async (
|
|
5899
|
+
getAllPages: async (companyId, domain, type, options = {}) => {
|
|
5900
5900
|
const localVarPath = `/api/pages/get/all`;
|
|
5901
5901
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5902
5902
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5907,8 +5907,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
5907
5907
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5908
5908
|
const localVarHeaderParameter = {};
|
|
5909
5909
|
const localVarQueryParameter = {};
|
|
5910
|
-
if (
|
|
5911
|
-
localVarQueryParameter['
|
|
5910
|
+
if (companyId !== undefined) {
|
|
5911
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
5912
5912
|
}
|
|
5913
5913
|
if (domain !== undefined) {
|
|
5914
5914
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -5955,12 +5955,12 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
5955
5955
|
/**
|
|
5956
5956
|
*
|
|
5957
5957
|
* @param {string} slug
|
|
5958
|
-
* @param {string} [
|
|
5958
|
+
* @param {string} [companyId]
|
|
5959
5959
|
* @param {string} [domain]
|
|
5960
5960
|
* @param {*} [options] Override http request option.
|
|
5961
5961
|
* @throws {RequiredError}
|
|
5962
5962
|
*/
|
|
5963
|
-
getPageBySlug: async (slug,
|
|
5963
|
+
getPageBySlug: async (slug, companyId, domain, options = {}) => {
|
|
5964
5964
|
// verify required parameter 'slug' is not null or undefined
|
|
5965
5965
|
assertParamExists('getPageBySlug', 'slug', slug);
|
|
5966
5966
|
const localVarPath = `/api/pages/slug/{slug}`
|
|
@@ -5974,8 +5974,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
5974
5974
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5975
5975
|
const localVarHeaderParameter = {};
|
|
5976
5976
|
const localVarQueryParameter = {};
|
|
5977
|
-
if (
|
|
5978
|
-
localVarQueryParameter['
|
|
5977
|
+
if (companyId !== undefined) {
|
|
5978
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
5979
5979
|
}
|
|
5980
5980
|
if (domain !== undefined) {
|
|
5981
5981
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -5991,12 +5991,12 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
5991
5991
|
/**
|
|
5992
5992
|
*
|
|
5993
5993
|
* @param {string} type
|
|
5994
|
-
* @param {string} [
|
|
5994
|
+
* @param {string} [companyId]
|
|
5995
5995
|
* @param {string} [domain]
|
|
5996
5996
|
* @param {*} [options] Override http request option.
|
|
5997
5997
|
* @throws {RequiredError}
|
|
5998
5998
|
*/
|
|
5999
|
-
getPageByType: async (type,
|
|
5999
|
+
getPageByType: async (type, companyId, domain, options = {}) => {
|
|
6000
6000
|
// verify required parameter 'type' is not null or undefined
|
|
6001
6001
|
assertParamExists('getPageByType', 'type', type);
|
|
6002
6002
|
const localVarPath = `/api/pages/type/{type}`
|
|
@@ -6010,8 +6010,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6010
6010
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6011
6011
|
const localVarHeaderParameter = {};
|
|
6012
6012
|
const localVarQueryParameter = {};
|
|
6013
|
-
if (
|
|
6014
|
-
localVarQueryParameter['
|
|
6013
|
+
if (companyId !== undefined) {
|
|
6014
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6015
6015
|
}
|
|
6016
6016
|
if (domain !== undefined) {
|
|
6017
6017
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -6034,14 +6034,14 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6034
6034
|
* @param {string} [dateField]
|
|
6035
6035
|
* @param {OrderEnum} [order]
|
|
6036
6036
|
* @param {string} [sort]
|
|
6037
|
-
* @param {string} [
|
|
6037
|
+
* @param {string} [companyId]
|
|
6038
6038
|
* @param {string} [domain]
|
|
6039
6039
|
* @param {PageTypeEnum} [type]
|
|
6040
6040
|
* @param {ContentStatusEnum} [status]
|
|
6041
6041
|
* @param {*} [options] Override http request option.
|
|
6042
6042
|
* @throws {RequiredError}
|
|
6043
6043
|
*/
|
|
6044
|
-
getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6044
|
+
getPages: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options = {}) => {
|
|
6045
6045
|
const localVarPath = `/api/pages`;
|
|
6046
6046
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6047
6047
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6080,8 +6080,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6080
6080
|
if (sort !== undefined) {
|
|
6081
6081
|
localVarQueryParameter['sort'] = sort;
|
|
6082
6082
|
}
|
|
6083
|
-
if (
|
|
6084
|
-
localVarQueryParameter['
|
|
6083
|
+
if (companyId !== undefined) {
|
|
6084
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6085
6085
|
}
|
|
6086
6086
|
if (domain !== undefined) {
|
|
6087
6087
|
localVarQueryParameter['domain'] = domain;
|
|
@@ -6102,13 +6102,13 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6102
6102
|
},
|
|
6103
6103
|
/**
|
|
6104
6104
|
*
|
|
6105
|
-
* @param {string}
|
|
6105
|
+
* @param {string} companyId
|
|
6106
6106
|
* @param {*} [options] Override http request option.
|
|
6107
6107
|
* @throws {RequiredError}
|
|
6108
6108
|
*/
|
|
6109
|
-
getUniquePages: async (
|
|
6110
|
-
// verify required parameter '
|
|
6111
|
-
assertParamExists('getUniquePages', '
|
|
6109
|
+
getUniquePages: async (companyId, options = {}) => {
|
|
6110
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
6111
|
+
assertParamExists('getUniquePages', 'companyId', companyId);
|
|
6112
6112
|
const localVarPath = `/api/pages/get/uniques`;
|
|
6113
6113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6114
6114
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6119,8 +6119,8 @@ export const PageApiAxiosParamCreator = function (configuration) {
|
|
|
6119
6119
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6120
6120
|
const localVarHeaderParameter = {};
|
|
6121
6121
|
const localVarQueryParameter = {};
|
|
6122
|
-
if (
|
|
6123
|
-
localVarQueryParameter['
|
|
6122
|
+
if (companyId !== undefined) {
|
|
6123
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6124
6124
|
}
|
|
6125
6125
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6126
6126
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -6198,14 +6198,14 @@ export const PageApiFp = function (configuration) {
|
|
|
6198
6198
|
},
|
|
6199
6199
|
/**
|
|
6200
6200
|
*
|
|
6201
|
-
* @param {string} [
|
|
6201
|
+
* @param {string} [companyId]
|
|
6202
6202
|
* @param {string} [domain]
|
|
6203
6203
|
* @param {Array<PageTypeEnum>} [type]
|
|
6204
6204
|
* @param {*} [options] Override http request option.
|
|
6205
6205
|
* @throws {RequiredError}
|
|
6206
6206
|
*/
|
|
6207
|
-
async getAllPages(
|
|
6208
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(
|
|
6207
|
+
async getAllPages(companyId, domain, type, options) {
|
|
6208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(companyId, domain, type, options);
|
|
6209
6209
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6210
6210
|
const localVarOperationServerBasePath = operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
|
|
6211
6211
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6225,13 +6225,13 @@ export const PageApiFp = function (configuration) {
|
|
|
6225
6225
|
/**
|
|
6226
6226
|
*
|
|
6227
6227
|
* @param {string} slug
|
|
6228
|
-
* @param {string} [
|
|
6228
|
+
* @param {string} [companyId]
|
|
6229
6229
|
* @param {string} [domain]
|
|
6230
6230
|
* @param {*} [options] Override http request option.
|
|
6231
6231
|
* @throws {RequiredError}
|
|
6232
6232
|
*/
|
|
6233
|
-
async getPageBySlug(slug,
|
|
6234
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug,
|
|
6233
|
+
async getPageBySlug(slug, companyId, domain, options) {
|
|
6234
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageBySlug(slug, companyId, domain, options);
|
|
6235
6235
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6236
6236
|
const localVarOperationServerBasePath = operationServerMap['PageApi.getPageBySlug']?.[localVarOperationServerIndex]?.url;
|
|
6237
6237
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6239,13 +6239,13 @@ export const PageApiFp = function (configuration) {
|
|
|
6239
6239
|
/**
|
|
6240
6240
|
*
|
|
6241
6241
|
* @param {string} type
|
|
6242
|
-
* @param {string} [
|
|
6242
|
+
* @param {string} [companyId]
|
|
6243
6243
|
* @param {string} [domain]
|
|
6244
6244
|
* @param {*} [options] Override http request option.
|
|
6245
6245
|
* @throws {RequiredError}
|
|
6246
6246
|
*/
|
|
6247
|
-
async getPageByType(type,
|
|
6248
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type,
|
|
6247
|
+
async getPageByType(type, companyId, domain, options) {
|
|
6248
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
|
|
6249
6249
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6250
6250
|
const localVarOperationServerBasePath = operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
|
|
6251
6251
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6260,27 +6260,27 @@ export const PageApiFp = function (configuration) {
|
|
|
6260
6260
|
* @param {string} [dateField]
|
|
6261
6261
|
* @param {OrderEnum} [order]
|
|
6262
6262
|
* @param {string} [sort]
|
|
6263
|
-
* @param {string} [
|
|
6263
|
+
* @param {string} [companyId]
|
|
6264
6264
|
* @param {string} [domain]
|
|
6265
6265
|
* @param {PageTypeEnum} [type]
|
|
6266
6266
|
* @param {ContentStatusEnum} [status]
|
|
6267
6267
|
* @param {*} [options] Override http request option.
|
|
6268
6268
|
* @throws {RequiredError}
|
|
6269
6269
|
*/
|
|
6270
|
-
async getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6271
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6270
|
+
async getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options) {
|
|
6271
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPages(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, type, status, options);
|
|
6272
6272
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6273
6273
|
const localVarOperationServerBasePath = operationServerMap['PageApi.getPages']?.[localVarOperationServerIndex]?.url;
|
|
6274
6274
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6275
6275
|
},
|
|
6276
6276
|
/**
|
|
6277
6277
|
*
|
|
6278
|
-
* @param {string}
|
|
6278
|
+
* @param {string} companyId
|
|
6279
6279
|
* @param {*} [options] Override http request option.
|
|
6280
6280
|
* @throws {RequiredError}
|
|
6281
6281
|
*/
|
|
6282
|
-
async getUniquePages(
|
|
6283
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUniquePages(
|
|
6282
|
+
async getUniquePages(companyId, options) {
|
|
6283
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUniquePages(companyId, options);
|
|
6284
6284
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6285
6285
|
const localVarOperationServerBasePath = operationServerMap['PageApi.getUniquePages']?.[localVarOperationServerIndex]?.url;
|
|
6286
6286
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6332,7 +6332,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6332
6332
|
* @throws {RequiredError}
|
|
6333
6333
|
*/
|
|
6334
6334
|
getAllPages(requestParameters = {}, options) {
|
|
6335
|
-
return localVarFp.getAllPages(requestParameters.
|
|
6335
|
+
return localVarFp.getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
6336
6336
|
},
|
|
6337
6337
|
/**
|
|
6338
6338
|
*
|
|
@@ -6350,7 +6350,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6350
6350
|
* @throws {RequiredError}
|
|
6351
6351
|
*/
|
|
6352
6352
|
getPageBySlug(requestParameters, options) {
|
|
6353
|
-
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.
|
|
6353
|
+
return localVarFp.getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
6354
6354
|
},
|
|
6355
6355
|
/**
|
|
6356
6356
|
*
|
|
@@ -6359,7 +6359,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6359
6359
|
* @throws {RequiredError}
|
|
6360
6360
|
*/
|
|
6361
6361
|
getPageByType(requestParameters, options) {
|
|
6362
|
-
return localVarFp.getPageByType(requestParameters.type, requestParameters.
|
|
6362
|
+
return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
6363
6363
|
},
|
|
6364
6364
|
/**
|
|
6365
6365
|
*
|
|
@@ -6368,7 +6368,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6368
6368
|
* @throws {RequiredError}
|
|
6369
6369
|
*/
|
|
6370
6370
|
getPages(requestParameters = {}, options) {
|
|
6371
|
-
return localVarFp.getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
6371
|
+
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));
|
|
6372
6372
|
},
|
|
6373
6373
|
/**
|
|
6374
6374
|
*
|
|
@@ -6377,7 +6377,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
|
|
|
6377
6377
|
* @throws {RequiredError}
|
|
6378
6378
|
*/
|
|
6379
6379
|
getUniquePages(requestParameters, options) {
|
|
6380
|
-
return localVarFp.getUniquePages(requestParameters.
|
|
6380
|
+
return localVarFp.getUniquePages(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
6381
6381
|
},
|
|
6382
6382
|
/**
|
|
6383
6383
|
*
|
|
@@ -6425,7 +6425,7 @@ export class PageApi extends BaseAPI {
|
|
|
6425
6425
|
* @memberof PageApi
|
|
6426
6426
|
*/
|
|
6427
6427
|
getAllPages(requestParameters = {}, options) {
|
|
6428
|
-
return PageApiFp(this.configuration).getAllPages(requestParameters.
|
|
6428
|
+
return PageApiFp(this.configuration).getAllPages(requestParameters.companyId, requestParameters.domain, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
6429
6429
|
}
|
|
6430
6430
|
/**
|
|
6431
6431
|
*
|
|
@@ -6445,7 +6445,7 @@ export class PageApi extends BaseAPI {
|
|
|
6445
6445
|
* @memberof PageApi
|
|
6446
6446
|
*/
|
|
6447
6447
|
getPageBySlug(requestParameters, options) {
|
|
6448
|
-
return PageApiFp(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.
|
|
6448
|
+
return PageApiFp(this.configuration).getPageBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
6449
6449
|
}
|
|
6450
6450
|
/**
|
|
6451
6451
|
*
|
|
@@ -6455,7 +6455,7 @@ export class PageApi extends BaseAPI {
|
|
|
6455
6455
|
* @memberof PageApi
|
|
6456
6456
|
*/
|
|
6457
6457
|
getPageByType(requestParameters, options) {
|
|
6458
|
-
return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.
|
|
6458
|
+
return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
6459
6459
|
}
|
|
6460
6460
|
/**
|
|
6461
6461
|
*
|
|
@@ -6465,7 +6465,7 @@ export class PageApi extends BaseAPI {
|
|
|
6465
6465
|
* @memberof PageApi
|
|
6466
6466
|
*/
|
|
6467
6467
|
getPages(requestParameters = {}, options) {
|
|
6468
|
-
return PageApiFp(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
6468
|
+
return PageApiFp(this.configuration).getPages(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.type, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6469
6469
|
}
|
|
6470
6470
|
/**
|
|
6471
6471
|
*
|
|
@@ -6475,7 +6475,7 @@ export class PageApi extends BaseAPI {
|
|
|
6475
6475
|
* @memberof PageApi
|
|
6476
6476
|
*/
|
|
6477
6477
|
getUniquePages(requestParameters, options) {
|
|
6478
|
-
return PageApiFp(this.configuration).getUniquePages(requestParameters.
|
|
6478
|
+
return PageApiFp(this.configuration).getUniquePages(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
6479
6479
|
}
|
|
6480
6480
|
/**
|
|
6481
6481
|
*
|
|
@@ -6938,15 +6938,15 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
6938
6938
|
},
|
|
6939
6939
|
/**
|
|
6940
6940
|
*
|
|
6941
|
-
* @param {string}
|
|
6941
|
+
* @param {string} companyId
|
|
6942
6942
|
* @param {string} [search]
|
|
6943
6943
|
* @param {string} [template]
|
|
6944
6944
|
* @param {*} [options] Override http request option.
|
|
6945
6945
|
* @throws {RequiredError}
|
|
6946
6946
|
*/
|
|
6947
|
-
getAllProducts: async (
|
|
6948
|
-
// verify required parameter '
|
|
6949
|
-
assertParamExists('getAllProducts', '
|
|
6947
|
+
getAllProducts: async (companyId, search, template, options = {}) => {
|
|
6948
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
6949
|
+
assertParamExists('getAllProducts', 'companyId', companyId);
|
|
6950
6950
|
const localVarPath = `/api/products/get/all`;
|
|
6951
6951
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6952
6952
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6957,8 +6957,8 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
6957
6957
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6958
6958
|
const localVarHeaderParameter = {};
|
|
6959
6959
|
const localVarQueryParameter = {};
|
|
6960
|
-
if (
|
|
6961
|
-
localVarQueryParameter['
|
|
6960
|
+
if (companyId !== undefined) {
|
|
6961
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6962
6962
|
}
|
|
6963
6963
|
if (search !== undefined) {
|
|
6964
6964
|
localVarQueryParameter['search'] = search;
|
|
@@ -6976,13 +6976,13 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
6976
6976
|
},
|
|
6977
6977
|
/**
|
|
6978
6978
|
*
|
|
6979
|
-
* @param {string}
|
|
6979
|
+
* @param {string} companyId
|
|
6980
6980
|
* @param {*} [options] Override http request option.
|
|
6981
6981
|
* @throws {RequiredError}
|
|
6982
6982
|
*/
|
|
6983
|
-
getFirstProduct: async (
|
|
6984
|
-
// verify required parameter '
|
|
6985
|
-
assertParamExists('getFirstProduct', '
|
|
6983
|
+
getFirstProduct: async (companyId, options = {}) => {
|
|
6984
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
6985
|
+
assertParamExists('getFirstProduct', 'companyId', companyId);
|
|
6986
6986
|
const localVarPath = `/api/products/get/first`;
|
|
6987
6987
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6988
6988
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6993,8 +6993,8 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
6993
6993
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6994
6994
|
const localVarHeaderParameter = {};
|
|
6995
6995
|
const localVarQueryParameter = {};
|
|
6996
|
-
if (
|
|
6997
|
-
localVarQueryParameter['
|
|
6996
|
+
if (companyId !== undefined) {
|
|
6997
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
6998
6998
|
}
|
|
6999
6999
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7000
7000
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -7035,15 +7035,14 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7035
7035
|
/**
|
|
7036
7036
|
*
|
|
7037
7037
|
* @param {string} slug
|
|
7038
|
-
* @param {string}
|
|
7038
|
+
* @param {string} [companyId]
|
|
7039
|
+
* @param {string} [domain]
|
|
7039
7040
|
* @param {*} [options] Override http request option.
|
|
7040
7041
|
* @throws {RequiredError}
|
|
7041
7042
|
*/
|
|
7042
|
-
getProductBySlug: async (slug, domain, options = {}) => {
|
|
7043
|
+
getProductBySlug: async (slug, companyId, domain, options = {}) => {
|
|
7043
7044
|
// verify required parameter 'slug' is not null or undefined
|
|
7044
7045
|
assertParamExists('getProductBySlug', 'slug', slug);
|
|
7045
|
-
// verify required parameter 'domain' is not null or undefined
|
|
7046
|
-
assertParamExists('getProductBySlug', 'domain', domain);
|
|
7047
7046
|
const localVarPath = `/api/products/slug/{slug}`
|
|
7048
7047
|
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
7049
7048
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -7055,6 +7054,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7055
7054
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7056
7055
|
const localVarHeaderParameter = {};
|
|
7057
7056
|
const localVarQueryParameter = {};
|
|
7057
|
+
if (companyId !== undefined) {
|
|
7058
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7059
|
+
}
|
|
7058
7060
|
if (domain !== undefined) {
|
|
7059
7061
|
localVarQueryParameter['domain'] = domain;
|
|
7060
7062
|
}
|
|
@@ -7076,7 +7078,8 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7076
7078
|
* @param {string} [dateField]
|
|
7077
7079
|
* @param {OrderEnum} [order]
|
|
7078
7080
|
* @param {string} [sort]
|
|
7079
|
-
* @param {string} [
|
|
7081
|
+
* @param {string} [companyId]
|
|
7082
|
+
* @param {string} [domain]
|
|
7080
7083
|
* @param {string} [collections]
|
|
7081
7084
|
* @param {string} [category]
|
|
7082
7085
|
* @param {string} [brand]
|
|
@@ -7084,7 +7087,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7084
7087
|
* @param {*} [options] Override http request option.
|
|
7085
7088
|
* @throws {RequiredError}
|
|
7086
7089
|
*/
|
|
7087
|
-
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
7090
|
+
getProducts: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options = {}) => {
|
|
7088
7091
|
const localVarPath = `/api/products`;
|
|
7089
7092
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7090
7093
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7123,8 +7126,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7123
7126
|
if (sort !== undefined) {
|
|
7124
7127
|
localVarQueryParameter['sort'] = sort;
|
|
7125
7128
|
}
|
|
7126
|
-
if (
|
|
7127
|
-
localVarQueryParameter['
|
|
7129
|
+
if (companyId !== undefined) {
|
|
7130
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7131
|
+
}
|
|
7132
|
+
if (domain !== undefined) {
|
|
7133
|
+
localVarQueryParameter['domain'] = domain;
|
|
7128
7134
|
}
|
|
7129
7135
|
if (collections !== undefined) {
|
|
7130
7136
|
localVarQueryParameter['collections'] = collections;
|
|
@@ -7148,14 +7154,13 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7148
7154
|
},
|
|
7149
7155
|
/**
|
|
7150
7156
|
*
|
|
7151
|
-
* @param {string} company
|
|
7152
7157
|
* @param {string} search
|
|
7158
|
+
* @param {string} [companyId]
|
|
7159
|
+
* @param {string} [domain]
|
|
7153
7160
|
* @param {*} [options] Override http request option.
|
|
7154
7161
|
* @throws {RequiredError}
|
|
7155
7162
|
*/
|
|
7156
|
-
searchProducts: async (
|
|
7157
|
-
// verify required parameter 'company' is not null or undefined
|
|
7158
|
-
assertParamExists('searchProducts', 'company', company);
|
|
7163
|
+
searchProducts: async (search, companyId, domain, options = {}) => {
|
|
7159
7164
|
// verify required parameter 'search' is not null or undefined
|
|
7160
7165
|
assertParamExists('searchProducts', 'search', search);
|
|
7161
7166
|
const localVarPath = `/api/products/search`;
|
|
@@ -7168,12 +7173,15 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
7168
7173
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7169
7174
|
const localVarHeaderParameter = {};
|
|
7170
7175
|
const localVarQueryParameter = {};
|
|
7171
|
-
if (company !== undefined) {
|
|
7172
|
-
localVarQueryParameter['company'] = company;
|
|
7173
|
-
}
|
|
7174
7176
|
if (search !== undefined) {
|
|
7175
7177
|
localVarQueryParameter['search'] = search;
|
|
7176
7178
|
}
|
|
7179
|
+
if (companyId !== undefined) {
|
|
7180
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7181
|
+
}
|
|
7182
|
+
if (domain !== undefined) {
|
|
7183
|
+
localVarQueryParameter['domain'] = domain;
|
|
7184
|
+
}
|
|
7177
7185
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7178
7186
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7179
7187
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -7250,26 +7258,26 @@ export const ProductApiFp = function (configuration) {
|
|
|
7250
7258
|
},
|
|
7251
7259
|
/**
|
|
7252
7260
|
*
|
|
7253
|
-
* @param {string}
|
|
7261
|
+
* @param {string} companyId
|
|
7254
7262
|
* @param {string} [search]
|
|
7255
7263
|
* @param {string} [template]
|
|
7256
7264
|
* @param {*} [options] Override http request option.
|
|
7257
7265
|
* @throws {RequiredError}
|
|
7258
7266
|
*/
|
|
7259
|
-
async getAllProducts(
|
|
7260
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllProducts(
|
|
7267
|
+
async getAllProducts(companyId, search, template, options) {
|
|
7268
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllProducts(companyId, search, template, options);
|
|
7261
7269
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7262
7270
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getAllProducts']?.[localVarOperationServerIndex]?.url;
|
|
7263
7271
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7264
7272
|
},
|
|
7265
7273
|
/**
|
|
7266
7274
|
*
|
|
7267
|
-
* @param {string}
|
|
7275
|
+
* @param {string} companyId
|
|
7268
7276
|
* @param {*} [options] Override http request option.
|
|
7269
7277
|
* @throws {RequiredError}
|
|
7270
7278
|
*/
|
|
7271
|
-
async getFirstProduct(
|
|
7272
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(
|
|
7279
|
+
async getFirstProduct(companyId, options) {
|
|
7280
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirstProduct(companyId, options);
|
|
7273
7281
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7274
7282
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getFirstProduct']?.[localVarOperationServerIndex]?.url;
|
|
7275
7283
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7289,12 +7297,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
7289
7297
|
/**
|
|
7290
7298
|
*
|
|
7291
7299
|
* @param {string} slug
|
|
7292
|
-
* @param {string}
|
|
7300
|
+
* @param {string} [companyId]
|
|
7301
|
+
* @param {string} [domain]
|
|
7293
7302
|
* @param {*} [options] Override http request option.
|
|
7294
7303
|
* @throws {RequiredError}
|
|
7295
7304
|
*/
|
|
7296
|
-
async getProductBySlug(slug, domain, options) {
|
|
7297
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, domain, options);
|
|
7305
|
+
async getProductBySlug(slug, companyId, domain, options) {
|
|
7306
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductBySlug(slug, companyId, domain, options);
|
|
7298
7307
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7299
7308
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProductBySlug']?.[localVarOperationServerIndex]?.url;
|
|
7300
7309
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7309,7 +7318,8 @@ export const ProductApiFp = function (configuration) {
|
|
|
7309
7318
|
* @param {string} [dateField]
|
|
7310
7319
|
* @param {OrderEnum} [order]
|
|
7311
7320
|
* @param {string} [sort]
|
|
7312
|
-
* @param {string} [
|
|
7321
|
+
* @param {string} [companyId]
|
|
7322
|
+
* @param {string} [domain]
|
|
7313
7323
|
* @param {string} [collections]
|
|
7314
7324
|
* @param {string} [category]
|
|
7315
7325
|
* @param {string} [brand]
|
|
@@ -7317,21 +7327,22 @@ export const ProductApiFp = function (configuration) {
|
|
|
7317
7327
|
* @param {*} [options] Override http request option.
|
|
7318
7328
|
* @throws {RequiredError}
|
|
7319
7329
|
*/
|
|
7320
|
-
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
7321
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
7330
|
+
async getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options) {
|
|
7331
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, collections, category, brand, status, options);
|
|
7322
7332
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7323
7333
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.getProducts']?.[localVarOperationServerIndex]?.url;
|
|
7324
7334
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7325
7335
|
},
|
|
7326
7336
|
/**
|
|
7327
7337
|
*
|
|
7328
|
-
* @param {string} company
|
|
7329
7338
|
* @param {string} search
|
|
7339
|
+
* @param {string} [companyId]
|
|
7340
|
+
* @param {string} [domain]
|
|
7330
7341
|
* @param {*} [options] Override http request option.
|
|
7331
7342
|
* @throws {RequiredError}
|
|
7332
7343
|
*/
|
|
7333
|
-
async searchProducts(
|
|
7334
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(
|
|
7344
|
+
async searchProducts(search, companyId, domain, options) {
|
|
7345
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(search, companyId, domain, options);
|
|
7335
7346
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7336
7347
|
const localVarOperationServerBasePath = operationServerMap['ProductApi.searchProducts']?.[localVarOperationServerIndex]?.url;
|
|
7337
7348
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7383,7 +7394,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7383
7394
|
* @throws {RequiredError}
|
|
7384
7395
|
*/
|
|
7385
7396
|
getAllProducts(requestParameters, options) {
|
|
7386
|
-
return localVarFp.getAllProducts(requestParameters.
|
|
7397
|
+
return localVarFp.getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(axios, basePath));
|
|
7387
7398
|
},
|
|
7388
7399
|
/**
|
|
7389
7400
|
*
|
|
@@ -7392,7 +7403,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7392
7403
|
* @throws {RequiredError}
|
|
7393
7404
|
*/
|
|
7394
7405
|
getFirstProduct(requestParameters, options) {
|
|
7395
|
-
return localVarFp.getFirstProduct(requestParameters.
|
|
7406
|
+
return localVarFp.getFirstProduct(requestParameters.companyId, options).then((request) => request(axios, basePath));
|
|
7396
7407
|
},
|
|
7397
7408
|
/**
|
|
7398
7409
|
*
|
|
@@ -7410,7 +7421,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7410
7421
|
* @throws {RequiredError}
|
|
7411
7422
|
*/
|
|
7412
7423
|
getProductBySlug(requestParameters, options) {
|
|
7413
|
-
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
7424
|
+
return localVarFp.getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
7414
7425
|
},
|
|
7415
7426
|
/**
|
|
7416
7427
|
*
|
|
@@ -7419,7 +7430,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7419
7430
|
* @throws {RequiredError}
|
|
7420
7431
|
*/
|
|
7421
7432
|
getProducts(requestParameters = {}, options) {
|
|
7422
|
-
return localVarFp.getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
7433
|
+
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));
|
|
7423
7434
|
},
|
|
7424
7435
|
/**
|
|
7425
7436
|
*
|
|
@@ -7428,7 +7439,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
7428
7439
|
* @throws {RequiredError}
|
|
7429
7440
|
*/
|
|
7430
7441
|
searchProducts(requestParameters, options) {
|
|
7431
|
-
return localVarFp.searchProducts(requestParameters.
|
|
7442
|
+
return localVarFp.searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
7432
7443
|
},
|
|
7433
7444
|
/**
|
|
7434
7445
|
*
|
|
@@ -7476,7 +7487,7 @@ export class ProductApi extends BaseAPI {
|
|
|
7476
7487
|
* @memberof ProductApi
|
|
7477
7488
|
*/
|
|
7478
7489
|
getAllProducts(requestParameters, options) {
|
|
7479
|
-
return ProductApiFp(this.configuration).getAllProducts(requestParameters.
|
|
7490
|
+
return ProductApiFp(this.configuration).getAllProducts(requestParameters.companyId, requestParameters.search, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
|
|
7480
7491
|
}
|
|
7481
7492
|
/**
|
|
7482
7493
|
*
|
|
@@ -7486,7 +7497,7 @@ export class ProductApi extends BaseAPI {
|
|
|
7486
7497
|
* @memberof ProductApi
|
|
7487
7498
|
*/
|
|
7488
7499
|
getFirstProduct(requestParameters, options) {
|
|
7489
|
-
return ProductApiFp(this.configuration).getFirstProduct(requestParameters.
|
|
7500
|
+
return ProductApiFp(this.configuration).getFirstProduct(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
|
|
7490
7501
|
}
|
|
7491
7502
|
/**
|
|
7492
7503
|
*
|
|
@@ -7506,7 +7517,7 @@ export class ProductApi extends BaseAPI {
|
|
|
7506
7517
|
* @memberof ProductApi
|
|
7507
7518
|
*/
|
|
7508
7519
|
getProductBySlug(requestParameters, options) {
|
|
7509
|
-
return ProductApiFp(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
7520
|
+
return ProductApiFp(this.configuration).getProductBySlug(requestParameters.slug, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
7510
7521
|
}
|
|
7511
7522
|
/**
|
|
7512
7523
|
*
|
|
@@ -7516,7 +7527,7 @@ export class ProductApi extends BaseAPI {
|
|
|
7516
7527
|
* @memberof ProductApi
|
|
7517
7528
|
*/
|
|
7518
7529
|
getProducts(requestParameters = {}, options) {
|
|
7519
|
-
return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
7530
|
+
return ProductApiFp(this.configuration).getProducts(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.collections, requestParameters.category, requestParameters.brand, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
7520
7531
|
}
|
|
7521
7532
|
/**
|
|
7522
7533
|
*
|
|
@@ -7526,7 +7537,7 @@ export class ProductApi extends BaseAPI {
|
|
|
7526
7537
|
* @memberof ProductApi
|
|
7527
7538
|
*/
|
|
7528
7539
|
searchProducts(requestParameters, options) {
|
|
7529
|
-
return ProductApiFp(this.configuration).searchProducts(requestParameters.
|
|
7540
|
+
return ProductApiFp(this.configuration).searchProducts(requestParameters.search, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
7530
7541
|
}
|
|
7531
7542
|
/**
|
|
7532
7543
|
*
|
|
@@ -7604,15 +7615,15 @@ export const TemplateApiAxiosParamCreator = function (configuration) {
|
|
|
7604
7615
|
},
|
|
7605
7616
|
/**
|
|
7606
7617
|
*
|
|
7607
|
-
* @param {string}
|
|
7618
|
+
* @param {string} companyId
|
|
7608
7619
|
* @param {TemplateTypeEnum} [type]
|
|
7609
7620
|
* @param {string} [search]
|
|
7610
7621
|
* @param {*} [options] Override http request option.
|
|
7611
7622
|
* @throws {RequiredError}
|
|
7612
7623
|
*/
|
|
7613
|
-
getTemplates: async (
|
|
7614
|
-
// verify required parameter '
|
|
7615
|
-
assertParamExists('getTemplates', '
|
|
7624
|
+
getTemplates: async (companyId, type, search, options = {}) => {
|
|
7625
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
7626
|
+
assertParamExists('getTemplates', 'companyId', companyId);
|
|
7616
7627
|
const localVarPath = `/api/templates`;
|
|
7617
7628
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7618
7629
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7623,8 +7634,8 @@ export const TemplateApiAxiosParamCreator = function (configuration) {
|
|
|
7623
7634
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7624
7635
|
const localVarHeaderParameter = {};
|
|
7625
7636
|
const localVarQueryParameter = {};
|
|
7626
|
-
if (
|
|
7627
|
-
localVarQueryParameter['
|
|
7637
|
+
if (companyId !== undefined) {
|
|
7638
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
7628
7639
|
}
|
|
7629
7640
|
if (type !== undefined) {
|
|
7630
7641
|
localVarQueryParameter['type'] = type;
|
|
@@ -7708,14 +7719,14 @@ export const TemplateApiFp = function (configuration) {
|
|
|
7708
7719
|
},
|
|
7709
7720
|
/**
|
|
7710
7721
|
*
|
|
7711
|
-
* @param {string}
|
|
7722
|
+
* @param {string} companyId
|
|
7712
7723
|
* @param {TemplateTypeEnum} [type]
|
|
7713
7724
|
* @param {string} [search]
|
|
7714
7725
|
* @param {*} [options] Override http request option.
|
|
7715
7726
|
* @throws {RequiredError}
|
|
7716
7727
|
*/
|
|
7717
|
-
async getTemplates(
|
|
7718
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(
|
|
7728
|
+
async getTemplates(companyId, type, search, options) {
|
|
7729
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, options);
|
|
7719
7730
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7720
7731
|
const localVarOperationServerBasePath = operationServerMap['TemplateApi.getTemplates']?.[localVarOperationServerIndex]?.url;
|
|
7721
7732
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7767,7 +7778,7 @@ export const TemplateApiFactory = function (configuration, basePath, axios) {
|
|
|
7767
7778
|
* @throws {RequiredError}
|
|
7768
7779
|
*/
|
|
7769
7780
|
getTemplates(requestParameters, options) {
|
|
7770
|
-
return localVarFp.getTemplates(requestParameters.
|
|
7781
|
+
return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
7771
7782
|
},
|
|
7772
7783
|
/**
|
|
7773
7784
|
*
|
|
@@ -7815,7 +7826,7 @@ export class TemplateApi extends BaseAPI {
|
|
|
7815
7826
|
* @memberof TemplateApi
|
|
7816
7827
|
*/
|
|
7817
7828
|
getTemplates(requestParameters, options) {
|
|
7818
|
-
return TemplateApiFp(this.configuration).getTemplates(requestParameters.
|
|
7829
|
+
return TemplateApiFp(this.configuration).getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
7819
7830
|
}
|
|
7820
7831
|
/**
|
|
7821
7832
|
*
|