@infisale-client/api 1.1.25 → 1.1.28
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 +601 -33
- package/dist/api/api.js +410 -24
- package/dist/api/api.mjs +405 -23
- package/package.json +4 -3
package/dist/api/api.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.ThemeTypeEnum = exports.TemplateTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PageTypeEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.GridTypeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = void 0;
|
|
20
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = void 0;
|
|
20
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = void 0;
|
|
21
21
|
const axios_1 = __importDefault(require("axios"));
|
|
22
22
|
// Some imports not used depending on template conditions
|
|
23
23
|
// @ts-ignore
|
|
@@ -492,7 +492,7 @@ exports.NavigationUrlTargetEnum = {
|
|
|
492
492
|
/**
|
|
493
493
|
*
|
|
494
494
|
* @export
|
|
495
|
-
* @enum {
|
|
495
|
+
* @enum {number}
|
|
496
496
|
*/
|
|
497
497
|
exports.NotificationMessageEnum = {
|
|
498
498
|
NUMBER_404: 404,
|
|
@@ -1067,6 +1067,34 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1067
1067
|
options: localVarRequestOptions,
|
|
1068
1068
|
};
|
|
1069
1069
|
},
|
|
1070
|
+
/**
|
|
1071
|
+
*
|
|
1072
|
+
* @param {string} code
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
*/
|
|
1076
|
+
verifyCode: async (code, options = {}) => {
|
|
1077
|
+
// verify required parameter 'code' is not null or undefined
|
|
1078
|
+
(0, common_1.assertParamExists)('verifyCode', 'code', code);
|
|
1079
|
+
const localVarPath = `/api/auth/verify-code/{code}`
|
|
1080
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
1081
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1082
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1083
|
+
let baseOptions;
|
|
1084
|
+
if (configuration) {
|
|
1085
|
+
baseOptions = configuration.baseOptions;
|
|
1086
|
+
}
|
|
1087
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1088
|
+
const localVarHeaderParameter = {};
|
|
1089
|
+
const localVarQueryParameter = {};
|
|
1090
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1092
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1093
|
+
return {
|
|
1094
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1095
|
+
options: localVarRequestOptions,
|
|
1096
|
+
};
|
|
1097
|
+
},
|
|
1070
1098
|
};
|
|
1071
1099
|
};
|
|
1072
1100
|
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
@@ -1168,6 +1196,18 @@ const AuthApiFp = function (configuration) {
|
|
|
1168
1196
|
const localVarOperationServerBasePath = base_1.operationServerMap['AuthApi.socialLogin']?.[localVarOperationServerIndex]?.url;
|
|
1169
1197
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1170
1198
|
},
|
|
1199
|
+
/**
|
|
1200
|
+
*
|
|
1201
|
+
* @param {string} code
|
|
1202
|
+
* @param {*} [options] Override http request option.
|
|
1203
|
+
* @throws {RequiredError}
|
|
1204
|
+
*/
|
|
1205
|
+
async verifyCode(code, options) {
|
|
1206
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyCode(code, options);
|
|
1207
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1208
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AuthApi.verifyCode']?.[localVarOperationServerIndex]?.url;
|
|
1209
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1210
|
+
},
|
|
1171
1211
|
};
|
|
1172
1212
|
};
|
|
1173
1213
|
exports.AuthApiFp = AuthApiFp;
|
|
@@ -1241,6 +1281,15 @@ const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1241
1281
|
socialLogin(requestParameters, options) {
|
|
1242
1282
|
return localVarFp.socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(axios, basePath));
|
|
1243
1283
|
},
|
|
1284
|
+
/**
|
|
1285
|
+
*
|
|
1286
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
1287
|
+
* @param {*} [options] Override http request option.
|
|
1288
|
+
* @throws {RequiredError}
|
|
1289
|
+
*/
|
|
1290
|
+
verifyCode(requestParameters, options) {
|
|
1291
|
+
return localVarFp.verifyCode(requestParameters.code, options).then((request) => request(axios, basePath));
|
|
1292
|
+
},
|
|
1244
1293
|
};
|
|
1245
1294
|
};
|
|
1246
1295
|
exports.AuthApiFactory = AuthApiFactory;
|
|
@@ -1321,6 +1370,16 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1321
1370
|
socialLogin(requestParameters, options) {
|
|
1322
1371
|
return (0, exports.AuthApiFp)(this.configuration).socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1323
1372
|
}
|
|
1373
|
+
/**
|
|
1374
|
+
*
|
|
1375
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
1376
|
+
* @param {*} [options] Override http request option.
|
|
1377
|
+
* @throws {RequiredError}
|
|
1378
|
+
* @memberof AuthApi
|
|
1379
|
+
*/
|
|
1380
|
+
verifyCode(requestParameters, options) {
|
|
1381
|
+
return (0, exports.AuthApiFp)(this.configuration).verifyCode(requestParameters.code, options).then((request) => request(this.axios, this.basePath));
|
|
1382
|
+
}
|
|
1324
1383
|
}
|
|
1325
1384
|
exports.AuthApi = AuthApi;
|
|
1326
1385
|
/**
|
|
@@ -1802,7 +1861,6 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1802
1861
|
},
|
|
1803
1862
|
/**
|
|
1804
1863
|
*
|
|
1805
|
-
* @param {string} companyId
|
|
1806
1864
|
* @param {number} [page]
|
|
1807
1865
|
* @param {number} [itemsPerPage]
|
|
1808
1866
|
* @param {string} [search]
|
|
@@ -1811,13 +1869,13 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1811
1869
|
* @param {string} [dateField]
|
|
1812
1870
|
* @param {OrderEnum} [order]
|
|
1813
1871
|
* @param {string} [sort]
|
|
1872
|
+
* @param {string} [companyId]
|
|
1873
|
+
* @param {string} [domain]
|
|
1814
1874
|
* @param {ContentStatusEnum} [status]
|
|
1815
1875
|
* @param {*} [options] Override http request option.
|
|
1816
1876
|
* @throws {RequiredError}
|
|
1817
1877
|
*/
|
|
1818
|
-
getBrands: async (
|
|
1819
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
1820
|
-
(0, common_1.assertParamExists)('getBrands', 'companyId', companyId);
|
|
1878
|
+
getBrands: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options = {}) => {
|
|
1821
1879
|
const localVarPath = `/api/brands`;
|
|
1822
1880
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1823
1881
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1859,6 +1917,9 @@ const BrandApiAxiosParamCreator = function (configuration) {
|
|
|
1859
1917
|
if (companyId !== undefined) {
|
|
1860
1918
|
localVarQueryParameter['company_id'] = companyId;
|
|
1861
1919
|
}
|
|
1920
|
+
if (domain !== undefined) {
|
|
1921
|
+
localVarQueryParameter['domain'] = domain;
|
|
1922
|
+
}
|
|
1862
1923
|
if (status !== undefined) {
|
|
1863
1924
|
localVarQueryParameter['status'] = status;
|
|
1864
1925
|
}
|
|
@@ -1963,7 +2024,6 @@ const BrandApiFp = function (configuration) {
|
|
|
1963
2024
|
},
|
|
1964
2025
|
/**
|
|
1965
2026
|
*
|
|
1966
|
-
* @param {string} companyId
|
|
1967
2027
|
* @param {number} [page]
|
|
1968
2028
|
* @param {number} [itemsPerPage]
|
|
1969
2029
|
* @param {string} [search]
|
|
@@ -1972,12 +2032,14 @@ const BrandApiFp = function (configuration) {
|
|
|
1972
2032
|
* @param {string} [dateField]
|
|
1973
2033
|
* @param {OrderEnum} [order]
|
|
1974
2034
|
* @param {string} [sort]
|
|
2035
|
+
* @param {string} [companyId]
|
|
2036
|
+
* @param {string} [domain]
|
|
1975
2037
|
* @param {ContentStatusEnum} [status]
|
|
1976
2038
|
* @param {*} [options] Override http request option.
|
|
1977
2039
|
* @throws {RequiredError}
|
|
1978
2040
|
*/
|
|
1979
|
-
async getBrands(
|
|
1980
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(
|
|
2041
|
+
async getBrands(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options) {
|
|
2042
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrands(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options);
|
|
1981
2043
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1982
2044
|
const localVarOperationServerBasePath = base_1.operationServerMap['BrandApi.getBrands']?.[localVarOperationServerIndex]?.url;
|
|
1983
2045
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2047,8 +2109,8 @@ const BrandApiFactory = function (configuration, basePath, axios) {
|
|
|
2047
2109
|
* @param {*} [options] Override http request option.
|
|
2048
2110
|
* @throws {RequiredError}
|
|
2049
2111
|
*/
|
|
2050
|
-
getBrands(requestParameters, options) {
|
|
2051
|
-
return localVarFp.getBrands(requestParameters.
|
|
2112
|
+
getBrands(requestParameters = {}, options) {
|
|
2113
|
+
return localVarFp.getBrands(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2052
2114
|
},
|
|
2053
2115
|
/**
|
|
2054
2116
|
*
|
|
@@ -2116,8 +2178,8 @@ class BrandApi extends base_1.BaseAPI {
|
|
|
2116
2178
|
* @throws {RequiredError}
|
|
2117
2179
|
* @memberof BrandApi
|
|
2118
2180
|
*/
|
|
2119
|
-
getBrands(requestParameters, options) {
|
|
2120
|
-
return (0, exports.BrandApiFp)(this.configuration).getBrands(requestParameters.
|
|
2181
|
+
getBrands(requestParameters = {}, options) {
|
|
2182
|
+
return (0, exports.BrandApiFp)(this.configuration).getBrands(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2121
2183
|
}
|
|
2122
2184
|
/**
|
|
2123
2185
|
*
|
|
@@ -2226,7 +2288,6 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2226
2288
|
},
|
|
2227
2289
|
/**
|
|
2228
2290
|
*
|
|
2229
|
-
* @param {string} companyId
|
|
2230
2291
|
* @param {number} [page]
|
|
2231
2292
|
* @param {number} [itemsPerPage]
|
|
2232
2293
|
* @param {string} [search]
|
|
@@ -2235,13 +2296,13 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2235
2296
|
* @param {string} [dateField]
|
|
2236
2297
|
* @param {OrderEnum} [order]
|
|
2237
2298
|
* @param {string} [sort]
|
|
2299
|
+
* @param {string} [companyId]
|
|
2300
|
+
* @param {string} [domain]
|
|
2238
2301
|
* @param {ContentStatusEnum} [status]
|
|
2239
2302
|
* @param {*} [options] Override http request option.
|
|
2240
2303
|
* @throws {RequiredError}
|
|
2241
2304
|
*/
|
|
2242
|
-
getCategories: async (
|
|
2243
|
-
// verify required parameter 'companyId' is not null or undefined
|
|
2244
|
-
(0, common_1.assertParamExists)('getCategories', 'companyId', companyId);
|
|
2305
|
+
getCategories: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options = {}) => {
|
|
2245
2306
|
const localVarPath = `/api/categories`;
|
|
2246
2307
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2247
2308
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2283,6 +2344,9 @@ const CategoryApiAxiosParamCreator = function (configuration) {
|
|
|
2283
2344
|
if (companyId !== undefined) {
|
|
2284
2345
|
localVarQueryParameter['company_id'] = companyId;
|
|
2285
2346
|
}
|
|
2347
|
+
if (domain !== undefined) {
|
|
2348
|
+
localVarQueryParameter['domain'] = domain;
|
|
2349
|
+
}
|
|
2286
2350
|
if (status !== undefined) {
|
|
2287
2351
|
localVarQueryParameter['status'] = status;
|
|
2288
2352
|
}
|
|
@@ -2433,7 +2497,6 @@ const CategoryApiFp = function (configuration) {
|
|
|
2433
2497
|
},
|
|
2434
2498
|
/**
|
|
2435
2499
|
*
|
|
2436
|
-
* @param {string} companyId
|
|
2437
2500
|
* @param {number} [page]
|
|
2438
2501
|
* @param {number} [itemsPerPage]
|
|
2439
2502
|
* @param {string} [search]
|
|
@@ -2442,12 +2505,14 @@ const CategoryApiFp = function (configuration) {
|
|
|
2442
2505
|
* @param {string} [dateField]
|
|
2443
2506
|
* @param {OrderEnum} [order]
|
|
2444
2507
|
* @param {string} [sort]
|
|
2508
|
+
* @param {string} [companyId]
|
|
2509
|
+
* @param {string} [domain]
|
|
2445
2510
|
* @param {ContentStatusEnum} [status]
|
|
2446
2511
|
* @param {*} [options] Override http request option.
|
|
2447
2512
|
* @throws {RequiredError}
|
|
2448
2513
|
*/
|
|
2449
|
-
async getCategories(
|
|
2450
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(
|
|
2514
|
+
async getCategories(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options) {
|
|
2515
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategories(page, itemsPerPage, search, startDate, endDate, dateField, order, sort, companyId, domain, status, options);
|
|
2451
2516
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2452
2517
|
const localVarOperationServerBasePath = base_1.operationServerMap['CategoryApi.getCategories']?.[localVarOperationServerIndex]?.url;
|
|
2453
2518
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2532,8 +2597,8 @@ const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
|
2532
2597
|
* @param {*} [options] Override http request option.
|
|
2533
2598
|
* @throws {RequiredError}
|
|
2534
2599
|
*/
|
|
2535
|
-
getCategories(requestParameters, options) {
|
|
2536
|
-
return localVarFp.getCategories(requestParameters.
|
|
2600
|
+
getCategories(requestParameters = {}, options) {
|
|
2601
|
+
return localVarFp.getCategories(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2537
2602
|
},
|
|
2538
2603
|
/**
|
|
2539
2604
|
*
|
|
@@ -2609,8 +2674,8 @@ class CategoryApi extends base_1.BaseAPI {
|
|
|
2609
2674
|
* @throws {RequiredError}
|
|
2610
2675
|
* @memberof CategoryApi
|
|
2611
2676
|
*/
|
|
2612
|
-
getCategories(requestParameters, options) {
|
|
2613
|
-
return (0, exports.CategoryApiFp)(this.configuration).getCategories(requestParameters.
|
|
2677
|
+
getCategories(requestParameters = {}, options) {
|
|
2678
|
+
return (0, exports.CategoryApiFp)(this.configuration).getCategories(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.companyId, requestParameters.domain, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2614
2679
|
}
|
|
2615
2680
|
/**
|
|
2616
2681
|
*
|
|
@@ -4623,6 +4688,327 @@ class CompanyApi extends base_1.BaseAPI {
|
|
|
4623
4688
|
}
|
|
4624
4689
|
}
|
|
4625
4690
|
exports.CompanyApi = CompanyApi;
|
|
4691
|
+
/**
|
|
4692
|
+
* ContactFormApi - axios parameter creator
|
|
4693
|
+
* @export
|
|
4694
|
+
*/
|
|
4695
|
+
const ContactFormApiAxiosParamCreator = function (configuration) {
|
|
4696
|
+
return {
|
|
4697
|
+
/**
|
|
4698
|
+
*
|
|
4699
|
+
* @param {IContactFormPostRequest} iContactFormPostRequest
|
|
4700
|
+
* @param {*} [options] Override http request option.
|
|
4701
|
+
* @throws {RequiredError}
|
|
4702
|
+
*/
|
|
4703
|
+
createContactForm: async (iContactFormPostRequest, options = {}) => {
|
|
4704
|
+
// verify required parameter 'iContactFormPostRequest' is not null or undefined
|
|
4705
|
+
(0, common_1.assertParamExists)('createContactForm', 'iContactFormPostRequest', iContactFormPostRequest);
|
|
4706
|
+
const localVarPath = `/api/contact-forms`;
|
|
4707
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4708
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4709
|
+
let baseOptions;
|
|
4710
|
+
if (configuration) {
|
|
4711
|
+
baseOptions = configuration.baseOptions;
|
|
4712
|
+
}
|
|
4713
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4714
|
+
const localVarHeaderParameter = {};
|
|
4715
|
+
const localVarQueryParameter = {};
|
|
4716
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4717
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4718
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4719
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4720
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iContactFormPostRequest, localVarRequestOptions, configuration);
|
|
4721
|
+
return {
|
|
4722
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4723
|
+
options: localVarRequestOptions,
|
|
4724
|
+
};
|
|
4725
|
+
},
|
|
4726
|
+
/**
|
|
4727
|
+
*
|
|
4728
|
+
* @param {string} id
|
|
4729
|
+
* @param {*} [options] Override http request option.
|
|
4730
|
+
* @throws {RequiredError}
|
|
4731
|
+
*/
|
|
4732
|
+
deleteContactForm: async (id, options = {}) => {
|
|
4733
|
+
// verify required parameter 'id' is not null or undefined
|
|
4734
|
+
(0, common_1.assertParamExists)('deleteContactForm', 'id', id);
|
|
4735
|
+
const localVarPath = `/api/contact-forms/{id}`
|
|
4736
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4738
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4739
|
+
let baseOptions;
|
|
4740
|
+
if (configuration) {
|
|
4741
|
+
baseOptions = configuration.baseOptions;
|
|
4742
|
+
}
|
|
4743
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
4744
|
+
const localVarHeaderParameter = {};
|
|
4745
|
+
const localVarQueryParameter = {};
|
|
4746
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4747
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4748
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4749
|
+
return {
|
|
4750
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4751
|
+
options: localVarRequestOptions,
|
|
4752
|
+
};
|
|
4753
|
+
},
|
|
4754
|
+
/**
|
|
4755
|
+
*
|
|
4756
|
+
* @param {string} id
|
|
4757
|
+
* @param {*} [options] Override http request option.
|
|
4758
|
+
* @throws {RequiredError}
|
|
4759
|
+
*/
|
|
4760
|
+
getContactFormById: async (id, options = {}) => {
|
|
4761
|
+
// verify required parameter 'id' is not null or undefined
|
|
4762
|
+
(0, common_1.assertParamExists)('getContactFormById', 'id', id);
|
|
4763
|
+
const localVarPath = `/api/contact-forms/{id}`
|
|
4764
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4765
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4766
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4767
|
+
let baseOptions;
|
|
4768
|
+
if (configuration) {
|
|
4769
|
+
baseOptions = configuration.baseOptions;
|
|
4770
|
+
}
|
|
4771
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4772
|
+
const localVarHeaderParameter = {};
|
|
4773
|
+
const localVarQueryParameter = {};
|
|
4774
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4775
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4776
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4777
|
+
return {
|
|
4778
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4779
|
+
options: localVarRequestOptions,
|
|
4780
|
+
};
|
|
4781
|
+
},
|
|
4782
|
+
/**
|
|
4783
|
+
*
|
|
4784
|
+
* @param {string} companyId
|
|
4785
|
+
* @param {number} [page]
|
|
4786
|
+
* @param {number} [itemsPerPage]
|
|
4787
|
+
* @param {string} [search]
|
|
4788
|
+
* @param {string} [startDate]
|
|
4789
|
+
* @param {string} [endDate]
|
|
4790
|
+
* @param {string} [dateField]
|
|
4791
|
+
* @param {OrderEnum} [order]
|
|
4792
|
+
* @param {string} [sort]
|
|
4793
|
+
* @param {*} [options] Override http request option.
|
|
4794
|
+
* @throws {RequiredError}
|
|
4795
|
+
*/
|
|
4796
|
+
getContactForms: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options = {}) => {
|
|
4797
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
4798
|
+
(0, common_1.assertParamExists)('getContactForms', 'companyId', companyId);
|
|
4799
|
+
const localVarPath = `/api/contact-forms`;
|
|
4800
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4801
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4802
|
+
let baseOptions;
|
|
4803
|
+
if (configuration) {
|
|
4804
|
+
baseOptions = configuration.baseOptions;
|
|
4805
|
+
}
|
|
4806
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4807
|
+
const localVarHeaderParameter = {};
|
|
4808
|
+
const localVarQueryParameter = {};
|
|
4809
|
+
if (page !== undefined) {
|
|
4810
|
+
localVarQueryParameter['page'] = page;
|
|
4811
|
+
}
|
|
4812
|
+
if (itemsPerPage !== undefined) {
|
|
4813
|
+
localVarQueryParameter['itemsPerPage'] = itemsPerPage;
|
|
4814
|
+
}
|
|
4815
|
+
if (search !== undefined) {
|
|
4816
|
+
localVarQueryParameter['search'] = search;
|
|
4817
|
+
}
|
|
4818
|
+
if (startDate !== undefined) {
|
|
4819
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
4820
|
+
startDate.toISOString() :
|
|
4821
|
+
startDate;
|
|
4822
|
+
}
|
|
4823
|
+
if (endDate !== undefined) {
|
|
4824
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
4825
|
+
endDate.toISOString() :
|
|
4826
|
+
endDate;
|
|
4827
|
+
}
|
|
4828
|
+
if (dateField !== undefined) {
|
|
4829
|
+
localVarQueryParameter['dateField'] = dateField;
|
|
4830
|
+
}
|
|
4831
|
+
if (order !== undefined) {
|
|
4832
|
+
localVarQueryParameter['order'] = order;
|
|
4833
|
+
}
|
|
4834
|
+
if (sort !== undefined) {
|
|
4835
|
+
localVarQueryParameter['sort'] = sort;
|
|
4836
|
+
}
|
|
4837
|
+
if (companyId !== undefined) {
|
|
4838
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
4839
|
+
}
|
|
4840
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4841
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4842
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4843
|
+
return {
|
|
4844
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4845
|
+
options: localVarRequestOptions,
|
|
4846
|
+
};
|
|
4847
|
+
},
|
|
4848
|
+
};
|
|
4849
|
+
};
|
|
4850
|
+
exports.ContactFormApiAxiosParamCreator = ContactFormApiAxiosParamCreator;
|
|
4851
|
+
/**
|
|
4852
|
+
* ContactFormApi - functional programming interface
|
|
4853
|
+
* @export
|
|
4854
|
+
*/
|
|
4855
|
+
const ContactFormApiFp = function (configuration) {
|
|
4856
|
+
const localVarAxiosParamCreator = (0, exports.ContactFormApiAxiosParamCreator)(configuration);
|
|
4857
|
+
return {
|
|
4858
|
+
/**
|
|
4859
|
+
*
|
|
4860
|
+
* @param {IContactFormPostRequest} iContactFormPostRequest
|
|
4861
|
+
* @param {*} [options] Override http request option.
|
|
4862
|
+
* @throws {RequiredError}
|
|
4863
|
+
*/
|
|
4864
|
+
async createContactForm(iContactFormPostRequest, options) {
|
|
4865
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createContactForm(iContactFormPostRequest, options);
|
|
4866
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4867
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ContactFormApi.createContactForm']?.[localVarOperationServerIndex]?.url;
|
|
4868
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4869
|
+
},
|
|
4870
|
+
/**
|
|
4871
|
+
*
|
|
4872
|
+
* @param {string} id
|
|
4873
|
+
* @param {*} [options] Override http request option.
|
|
4874
|
+
* @throws {RequiredError}
|
|
4875
|
+
*/
|
|
4876
|
+
async deleteContactForm(id, options) {
|
|
4877
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteContactForm(id, options);
|
|
4878
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4879
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ContactFormApi.deleteContactForm']?.[localVarOperationServerIndex]?.url;
|
|
4880
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4881
|
+
},
|
|
4882
|
+
/**
|
|
4883
|
+
*
|
|
4884
|
+
* @param {string} id
|
|
4885
|
+
* @param {*} [options] Override http request option.
|
|
4886
|
+
* @throws {RequiredError}
|
|
4887
|
+
*/
|
|
4888
|
+
async getContactFormById(id, options) {
|
|
4889
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContactFormById(id, options);
|
|
4890
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4891
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ContactFormApi.getContactFormById']?.[localVarOperationServerIndex]?.url;
|
|
4892
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4893
|
+
},
|
|
4894
|
+
/**
|
|
4895
|
+
*
|
|
4896
|
+
* @param {string} companyId
|
|
4897
|
+
* @param {number} [page]
|
|
4898
|
+
* @param {number} [itemsPerPage]
|
|
4899
|
+
* @param {string} [search]
|
|
4900
|
+
* @param {string} [startDate]
|
|
4901
|
+
* @param {string} [endDate]
|
|
4902
|
+
* @param {string} [dateField]
|
|
4903
|
+
* @param {OrderEnum} [order]
|
|
4904
|
+
* @param {string} [sort]
|
|
4905
|
+
* @param {*} [options] Override http request option.
|
|
4906
|
+
* @throws {RequiredError}
|
|
4907
|
+
*/
|
|
4908
|
+
async getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options) {
|
|
4909
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContactForms(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options);
|
|
4910
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4911
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ContactFormApi.getContactForms']?.[localVarOperationServerIndex]?.url;
|
|
4912
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4913
|
+
},
|
|
4914
|
+
};
|
|
4915
|
+
};
|
|
4916
|
+
exports.ContactFormApiFp = ContactFormApiFp;
|
|
4917
|
+
/**
|
|
4918
|
+
* ContactFormApi - factory interface
|
|
4919
|
+
* @export
|
|
4920
|
+
*/
|
|
4921
|
+
const ContactFormApiFactory = function (configuration, basePath, axios) {
|
|
4922
|
+
const localVarFp = (0, exports.ContactFormApiFp)(configuration);
|
|
4923
|
+
return {
|
|
4924
|
+
/**
|
|
4925
|
+
*
|
|
4926
|
+
* @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
|
|
4927
|
+
* @param {*} [options] Override http request option.
|
|
4928
|
+
* @throws {RequiredError}
|
|
4929
|
+
*/
|
|
4930
|
+
createContactForm(requestParameters, options) {
|
|
4931
|
+
return localVarFp.createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(axios, basePath));
|
|
4932
|
+
},
|
|
4933
|
+
/**
|
|
4934
|
+
*
|
|
4935
|
+
* @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
|
|
4936
|
+
* @param {*} [options] Override http request option.
|
|
4937
|
+
* @throws {RequiredError}
|
|
4938
|
+
*/
|
|
4939
|
+
deleteContactForm(requestParameters, options) {
|
|
4940
|
+
return localVarFp.deleteContactForm(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4941
|
+
},
|
|
4942
|
+
/**
|
|
4943
|
+
*
|
|
4944
|
+
* @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
|
|
4945
|
+
* @param {*} [options] Override http request option.
|
|
4946
|
+
* @throws {RequiredError}
|
|
4947
|
+
*/
|
|
4948
|
+
getContactFormById(requestParameters, options) {
|
|
4949
|
+
return localVarFp.getContactFormById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4950
|
+
},
|
|
4951
|
+
/**
|
|
4952
|
+
*
|
|
4953
|
+
* @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
|
|
4954
|
+
* @param {*} [options] Override http request option.
|
|
4955
|
+
* @throws {RequiredError}
|
|
4956
|
+
*/
|
|
4957
|
+
getContactForms(requestParameters, options) {
|
|
4958
|
+
return localVarFp.getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(axios, basePath));
|
|
4959
|
+
},
|
|
4960
|
+
};
|
|
4961
|
+
};
|
|
4962
|
+
exports.ContactFormApiFactory = ContactFormApiFactory;
|
|
4963
|
+
/**
|
|
4964
|
+
* ContactFormApi - object-oriented interface
|
|
4965
|
+
* @export
|
|
4966
|
+
* @class ContactFormApi
|
|
4967
|
+
* @extends {BaseAPI}
|
|
4968
|
+
*/
|
|
4969
|
+
class ContactFormApi extends base_1.BaseAPI {
|
|
4970
|
+
/**
|
|
4971
|
+
*
|
|
4972
|
+
* @param {ContactFormApiCreateContactFormRequest} requestParameters Request parameters.
|
|
4973
|
+
* @param {*} [options] Override http request option.
|
|
4974
|
+
* @throws {RequiredError}
|
|
4975
|
+
* @memberof ContactFormApi
|
|
4976
|
+
*/
|
|
4977
|
+
createContactForm(requestParameters, options) {
|
|
4978
|
+
return (0, exports.ContactFormApiFp)(this.configuration).createContactForm(requestParameters.iContactFormPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4979
|
+
}
|
|
4980
|
+
/**
|
|
4981
|
+
*
|
|
4982
|
+
* @param {ContactFormApiDeleteContactFormRequest} requestParameters Request parameters.
|
|
4983
|
+
* @param {*} [options] Override http request option.
|
|
4984
|
+
* @throws {RequiredError}
|
|
4985
|
+
* @memberof ContactFormApi
|
|
4986
|
+
*/
|
|
4987
|
+
deleteContactForm(requestParameters, options) {
|
|
4988
|
+
return (0, exports.ContactFormApiFp)(this.configuration).deleteContactForm(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4989
|
+
}
|
|
4990
|
+
/**
|
|
4991
|
+
*
|
|
4992
|
+
* @param {ContactFormApiGetContactFormByIdRequest} requestParameters Request parameters.
|
|
4993
|
+
* @param {*} [options] Override http request option.
|
|
4994
|
+
* @throws {RequiredError}
|
|
4995
|
+
* @memberof ContactFormApi
|
|
4996
|
+
*/
|
|
4997
|
+
getContactFormById(requestParameters, options) {
|
|
4998
|
+
return (0, exports.ContactFormApiFp)(this.configuration).getContactFormById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4999
|
+
}
|
|
5000
|
+
/**
|
|
5001
|
+
*
|
|
5002
|
+
* @param {ContactFormApiGetContactFormsRequest} requestParameters Request parameters.
|
|
5003
|
+
* @param {*} [options] Override http request option.
|
|
5004
|
+
* @throws {RequiredError}
|
|
5005
|
+
* @memberof ContactFormApi
|
|
5006
|
+
*/
|
|
5007
|
+
getContactForms(requestParameters, options) {
|
|
5008
|
+
return (0, exports.ContactFormApiFp)(this.configuration).getContactForms(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
|
|
5009
|
+
}
|
|
5010
|
+
}
|
|
5011
|
+
exports.ContactFormApi = ContactFormApi;
|
|
4626
5012
|
/**
|
|
4627
5013
|
* FileApi - axios parameter creator
|
|
4628
5014
|
* @export
|