acomm-core-lib 2.6.2
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/README.md +75 -0
- package/dist/package.json +125 -0
- package/dist/src/app.controller.d.ts +8 -0
- package/dist/src/app.controller.js +69 -0
- package/dist/src/app.controller.js.map +1 -0
- package/dist/src/app.module.d.ts +2 -0
- package/dist/src/app.module.js +151 -0
- package/dist/src/app.module.js.map +1 -0
- package/dist/src/app.service.d.ts +5 -0
- package/dist/src/app.service.js +30 -0
- package/dist/src/app.service.js.map +1 -0
- package/dist/src/app_cluster.service.d.ts +3 -0
- package/dist/src/app_cluster.service.js +64 -0
- package/dist/src/app_cluster.service.js.map +1 -0
- package/dist/src/core/activity_log/activity_log.enum.d.ts +31 -0
- package/dist/src/core/activity_log/activity_log.enum.js +38 -0
- package/dist/src/core/activity_log/activity_log.enum.js.map +1 -0
- package/dist/src/core/activity_log/activity_log.layout.d.ts +2 -0
- package/dist/src/core/activity_log/activity_log.layout.js +331 -0
- package/dist/src/core/activity_log/activity_log.layout.js.map +1 -0
- package/dist/src/core/activity_log/activity_log.module.d.ts +2 -0
- package/dist/src/core/activity_log/activity_log.module.js +39 -0
- package/dist/src/core/activity_log/activity_log.module.js.map +1 -0
- package/dist/src/core/activity_log/activity_log.schema.d.ts +24 -0
- package/dist/src/core/activity_log/activity_log.schema.js +117 -0
- package/dist/src/core/activity_log/activity_log.schema.js.map +1 -0
- package/dist/src/core/activity_log/activity_log.service.d.ts +14 -0
- package/dist/src/core/activity_log/activity_log.service.js +58 -0
- package/dist/src/core/activity_log/activity_log.service.js.map +1 -0
- package/dist/src/core/address/address.enum.d.ts +8 -0
- package/dist/src/core/address/address.enum.js +13 -0
- package/dist/src/core/address/address.enum.js.map +1 -0
- package/dist/src/core/address/address.layout.d.ts +7 -0
- package/dist/src/core/address/address.layout.js +1297 -0
- package/dist/src/core/address/address.layout.js.map +1 -0
- package/dist/src/core/address/address.module.d.ts +2 -0
- package/dist/src/core/address/address.module.js +87 -0
- package/dist/src/core/address/address.module.js.map +1 -0
- package/dist/src/core/address/address.schema.d.ts +69 -0
- package/dist/src/core/address/address.schema.js +267 -0
- package/dist/src/core/address/address.schema.js.map +1 -0
- package/dist/src/core/address/address.service.d.ts +49 -0
- package/dist/src/core/address/address.service.js +171 -0
- package/dist/src/core/address/address.service.js.map +1 -0
- package/dist/src/core/address/data/country.json +1484 -0
- package/dist/src/core/address/data/time_zone.json +1702 -0
- package/dist/src/core/api_key/api_key.constant.d.ts +29 -0
- package/dist/src/core/api_key/api_key.constant.js +34 -0
- package/dist/src/core/api_key/api_key.constant.js.map +1 -0
- package/dist/src/core/api_key/api_key.controller.d.ts +8 -0
- package/dist/src/core/api_key/api_key.controller.js +60 -0
- package/dist/src/core/api_key/api_key.controller.js.map +1 -0
- package/dist/src/core/api_key/api_key.enum.d.ts +5 -0
- package/dist/src/core/api_key/api_key.enum.js +10 -0
- package/dist/src/core/api_key/api_key.enum.js.map +1 -0
- package/dist/src/core/api_key/api_key.layout.d.ts +2 -0
- package/dist/src/core/api_key/api_key.layout.js +1133 -0
- package/dist/src/core/api_key/api_key.layout.js.map +1 -0
- package/dist/src/core/api_key/api_key.module.d.ts +2 -0
- package/dist/src/core/api_key/api_key.module.js +40 -0
- package/dist/src/core/api_key/api_key.module.js.map +1 -0
- package/dist/src/core/api_key/api_key.schema.d.ts +42 -0
- package/dist/src/core/api_key/api_key.schema.js +189 -0
- package/dist/src/core/api_key/api_key.schema.js.map +1 -0
- package/dist/src/core/api_key/api_key.service.d.ts +23 -0
- package/dist/src/core/api_key/api_key.service.js +278 -0
- package/dist/src/core/api_key/api_key.service.js.map +1 -0
- package/dist/src/core/attachment/attachment.config.d.ts +4 -0
- package/dist/src/core/attachment/attachment.config.js +8 -0
- package/dist/src/core/attachment/attachment.config.js.map +1 -0
- package/dist/src/core/attachment/attachment.controller.d.ts +15 -0
- package/dist/src/core/attachment/attachment.controller.js +141 -0
- package/dist/src/core/attachment/attachment.controller.js.map +1 -0
- package/dist/src/core/attachment/attachment.enum.d.ts +22 -0
- package/dist/src/core/attachment/attachment.enum.js +28 -0
- package/dist/src/core/attachment/attachment.enum.js.map +1 -0
- package/dist/src/core/attachment/attachment.layout.d.ts +2 -0
- package/dist/src/core/attachment/attachment.layout.js +100 -0
- package/dist/src/core/attachment/attachment.layout.js.map +1 -0
- package/dist/src/core/attachment/attachment.module.d.ts +2 -0
- package/dist/src/core/attachment/attachment.module.js +42 -0
- package/dist/src/core/attachment/attachment.module.js.map +1 -0
- package/dist/src/core/attachment/attachment.schema.d.ts +26 -0
- package/dist/src/core/attachment/attachment.schema.js +131 -0
- package/dist/src/core/attachment/attachment.schema.js.map +1 -0
- package/dist/src/core/attachment/attachment.service.d.ts +38 -0
- package/dist/src/core/attachment/attachment.service.js +417 -0
- package/dist/src/core/attachment/attachment.service.js.map +1 -0
- package/dist/src/core/attachment/providers/local.provider.d.ts +14 -0
- package/dist/src/core/attachment/providers/local.provider.js +71 -0
- package/dist/src/core/attachment/providers/local.provider.js.map +1 -0
- package/dist/src/core/attachment/providers/provider.base.d.ts +6 -0
- package/dist/src/core/attachment/providers/provider.base.js +16 -0
- package/dist/src/core/attachment/providers/provider.base.js.map +1 -0
- package/dist/src/core/attachment/providers/provider.interface.d.ts +5 -0
- package/dist/src/core/attachment/providers/provider.interface.js +3 -0
- package/dist/src/core/attachment/providers/provider.interface.js.map +1 -0
- package/dist/src/core/audit_log/audit_log.enum.d.ts +48 -0
- package/dist/src/core/audit_log/audit_log.enum.js +54 -0
- package/dist/src/core/audit_log/audit_log.enum.js.map +1 -0
- package/dist/src/core/audit_log/audit_log.layout.d.ts +2 -0
- package/dist/src/core/audit_log/audit_log.layout.js +372 -0
- package/dist/src/core/audit_log/audit_log.layout.js.map +1 -0
- package/dist/src/core/audit_log/audit_log.module.d.ts +2 -0
- package/dist/src/core/audit_log/audit_log.module.js +39 -0
- package/dist/src/core/audit_log/audit_log.module.js.map +1 -0
- package/dist/src/core/audit_log/audit_log.schema.d.ts +14 -0
- package/dist/src/core/audit_log/audit_log.schema.js +67 -0
- package/dist/src/core/audit_log/audit_log.schema.js.map +1 -0
- package/dist/src/core/audit_log/audit_log.service.d.ts +14 -0
- package/dist/src/core/audit_log/audit_log.service.js +68 -0
- package/dist/src/core/audit_log/audit_log.service.js.map +1 -0
- package/dist/src/core/auth/auth.controller.d.ts +22 -0
- package/dist/src/core/auth/auth.controller.js +266 -0
- package/dist/src/core/auth/auth.controller.js.map +1 -0
- package/dist/src/core/auth/auth.module.d.ts +2 -0
- package/dist/src/core/auth/auth.module.js +37 -0
- package/dist/src/core/auth/auth.module.js.map +1 -0
- package/dist/src/core/auth/auth.service.d.ts +87 -0
- package/dist/src/core/auth/auth.service.js +930 -0
- package/dist/src/core/auth/auth.service.js.map +1 -0
- package/dist/src/core/auth/constants.d.ts +7 -0
- package/dist/src/core/auth/constants.js +9 -0
- package/dist/src/core/auth/constants.js.map +1 -0
- package/dist/src/core/auth/guards/basic.guard.d.ts +1 -0
- package/dist/src/core/auth/guards/basic.guard.js +7 -0
- package/dist/src/core/auth/guards/basic.guard.js.map +1 -0
- package/dist/src/core/auth/guards/jwt_auth.guard.d.ts +19 -0
- package/dist/src/core/auth/guards/jwt_auth.guard.js +526 -0
- package/dist/src/core/auth/guards/jwt_auth.guard.js.map +1 -0
- package/dist/src/core/auth/guards/public.guard.d.ts +1 -0
- package/dist/src/core/auth/guards/public.guard.js +7 -0
- package/dist/src/core/auth/guards/public.guard.js.map +1 -0
- package/dist/src/core/auth/providers/auth_local.provider.d.ts +13 -0
- package/dist/src/core/auth/providers/auth_local.provider.js +75 -0
- package/dist/src/core/auth/providers/auth_local.provider.js.map +1 -0
- package/dist/src/core/auth/providers/auth_otp.provider.d.ts +13 -0
- package/dist/src/core/auth/providers/auth_otp.provider.js +77 -0
- package/dist/src/core/auth/providers/auth_otp.provider.js.map +1 -0
- package/dist/src/core/auth/providers/auth_provider.interface.d.ts +12 -0
- package/dist/src/core/auth/providers/auth_provider.interface.js +3 -0
- package/dist/src/core/auth/providers/auth_provider.interface.js.map +1 -0
- package/dist/src/core/auth/providers/base_auth.provider.d.ts +7 -0
- package/dist/src/core/auth/providers/base_auth.provider.js +25 -0
- package/dist/src/core/auth/providers/base_auth.provider.js.map +1 -0
- package/dist/src/core/auth/strategies/jwt.strategy.d.ts +6 -0
- package/dist/src/core/auth/strategies/jwt.strategy.js +37 -0
- package/dist/src/core/auth/strategies/jwt.strategy.js.map +1 -0
- package/dist/src/core/cache/cache.controller.d.ts +13 -0
- package/dist/src/core/cache/cache.controller.js +67 -0
- package/dist/src/core/cache/cache.controller.js.map +1 -0
- package/dist/src/core/cache/cache.decorator.d.ts +1 -0
- package/dist/src/core/cache/cache.decorator.js +7 -0
- package/dist/src/core/cache/cache.decorator.js.map +1 -0
- package/dist/src/core/cache/cache.interceptor.d.ts +8 -0
- package/dist/src/core/cache/cache.interceptor.js +57 -0
- package/dist/src/core/cache/cache.interceptor.js.map +1 -0
- package/dist/src/core/cache/cache.module.d.ts +2 -0
- package/dist/src/core/cache/cache.module.js +29 -0
- package/dist/src/core/cache/cache.module.js.map +1 -0
- package/dist/src/core/cache/cache.service.d.ts +15 -0
- package/dist/src/core/cache/cache.service.js +60 -0
- package/dist/src/core/cache/cache.service.js.map +1 -0
- package/dist/src/core/cache/cache.utils.d.ts +12 -0
- package/dist/src/core/cache/cache.utils.js +116 -0
- package/dist/src/core/cache/cache.utils.js.map +1 -0
- package/dist/src/core/comment_data/comment_data.controller.d.ts +8 -0
- package/dist/src/core/comment_data/comment_data.controller.js +56 -0
- package/dist/src/core/comment_data/comment_data.controller.js.map +1 -0
- package/dist/src/core/comment_data/comment_data.layout.d.ts +2 -0
- package/dist/src/core/comment_data/comment_data.layout.js +274 -0
- package/dist/src/core/comment_data/comment_data.layout.js.map +1 -0
- package/dist/src/core/comment_data/comment_data.module.d.ts +2 -0
- package/dist/src/core/comment_data/comment_data.module.js +40 -0
- package/dist/src/core/comment_data/comment_data.module.js.map +1 -0
- package/dist/src/core/comment_data/comment_data.schema.d.ts +13 -0
- package/dist/src/core/comment_data/comment_data.schema.js +53 -0
- package/dist/src/core/comment_data/comment_data.schema.js.map +1 -0
- package/dist/src/core/comment_data/comment_data.service.d.ts +15 -0
- package/dist/src/core/comment_data/comment_data.service.js +63 -0
- package/dist/src/core/comment_data/comment_data.service.js.map +1 -0
- package/dist/src/core/common/base/base.controller.d.ts +42 -0
- package/dist/src/core/common/base/base.controller.js +440 -0
- package/dist/src/core/common/base/base.controller.js.map +1 -0
- package/dist/src/core/common/base/base.schema.d.ts +12 -0
- package/dist/src/core/common/base/base.schema.js +61 -0
- package/dist/src/core/common/base/base.schema.js.map +1 -0
- package/dist/src/core/common/base/base.service.d.ts +87 -0
- package/dist/src/core/common/base/base.service.js +1218 -0
- package/dist/src/core/common/base/base.service.js.map +1 -0
- package/dist/src/core/common/base/base_external_data_source.provider.d.ts +18 -0
- package/dist/src/core/common/base/base_external_data_source.provider.js +50 -0
- package/dist/src/core/common/base/base_external_data_source.provider.js.map +1 -0
- package/dist/src/core/common/base/base_log.controller.d.ts +7 -0
- package/dist/src/core/common/base/base_log.controller.js +35 -0
- package/dist/src/core/common/base/base_log.controller.js.map +1 -0
- package/dist/src/core/common/base/base_log.service.d.ts +13 -0
- package/dist/src/core/common/base/base_log.service.js +142 -0
- package/dist/src/core/common/base/base_log.service.js.map +1 -0
- package/dist/src/core/common/base/base_module.controller.d.ts +9 -0
- package/dist/src/core/common/base/base_module.controller.js +63 -0
- package/dist/src/core/common/base/base_module.controller.js.map +1 -0
- package/dist/src/core/common/base/base_module.service.d.ts +20 -0
- package/dist/src/core/common/base/base_module.service.js +56 -0
- package/dist/src/core/common/base/base_module.service.js.map +1 -0
- package/dist/src/core/common/constants.d.ts +57 -0
- package/dist/src/core/common/constants.js +98 -0
- package/dist/src/core/common/constants.js.map +1 -0
- package/dist/src/core/common/decorator/safe_params.decorator.d.ts +1 -0
- package/dist/src/core/common/decorator/safe_params.decorator.js +11 -0
- package/dist/src/core/common/decorator/safe_params.decorator.js.map +1 -0
- package/dist/src/core/common/dto/search_query.dto.d.ts +6 -0
- package/dist/src/core/common/dto/search_query.dto.js +7 -0
- package/dist/src/core/common/dto/search_query.dto.js.map +1 -0
- package/dist/src/core/common/dto/search_result.dto.d.ts +7 -0
- package/dist/src/core/common/dto/search_result.dto.js +7 -0
- package/dist/src/core/common/dto/search_result.dto.js.map +1 -0
- package/dist/src/core/common/filter/all_exception.filter.d.ts +4 -0
- package/dist/src/core/common/filter/all_exception.filter.js +31 -0
- package/dist/src/core/common/filter/all_exception.filter.js.map +1 -0
- package/dist/src/core/common/function/andConditions.d.ts +12 -0
- package/dist/src/core/common/function/andConditions.js +17 -0
- package/dist/src/core/common/function/andConditions.js.map +1 -0
- package/dist/src/core/common/function/autoGenerateO2M.d.ts +14 -0
- package/dist/src/core/common/function/autoGenerateO2M.js +57 -0
- package/dist/src/core/common/function/autoGenerateO2M.js.map +1 -0
- package/dist/src/core/common/function/cleanData.d.ts +9 -0
- package/dist/src/core/common/function/cleanData.js +23 -0
- package/dist/src/core/common/function/cleanData.js.map +1 -0
- package/dist/src/core/common/function/convertArrayObjToField.d.ts +17 -0
- package/dist/src/core/common/function/convertArrayObjToField.js +23 -0
- package/dist/src/core/common/function/convertArrayObjToField.js.map +1 -0
- package/dist/src/core/common/function/convertArrayToO2M.d.ts +13 -0
- package/dist/src/core/common/function/convertArrayToO2M.js +23 -0
- package/dist/src/core/common/function/convertArrayToO2M.js.map +1 -0
- package/dist/src/core/common/function/convertArrayToOption.d.ts +12 -0
- package/dist/src/core/common/function/convertArrayToOption.js +34 -0
- package/dist/src/core/common/function/convertArrayToOption.js.map +1 -0
- package/dist/src/core/common/function/convertAttributeArray.d.ts +12 -0
- package/dist/src/core/common/function/convertAttributeArray.js +29 -0
- package/dist/src/core/common/function/convertAttributeArray.js.map +1 -0
- package/dist/src/core/common/function/convertDate.d.ts +17 -0
- package/dist/src/core/common/function/convertDate.js +39 -0
- package/dist/src/core/common/function/convertDate.js.map +1 -0
- package/dist/src/core/common/function/convertImage.d.ts +17 -0
- package/dist/src/core/common/function/convertImage.js +18 -0
- package/dist/src/core/common/function/convertImage.js.map +1 -0
- package/dist/src/core/common/function/convertJSONAttrToO2M.d.ts +14 -0
- package/dist/src/core/common/function/convertJSONAttrToO2M.js +79 -0
- package/dist/src/core/common/function/convertJSONAttrToO2M.js.map +1 -0
- package/dist/src/core/common/function/convertStringDate.d.ts +12 -0
- package/dist/src/core/common/function/convertStringDate.js +23 -0
- package/dist/src/core/common/function/convertStringDate.js.map +1 -0
- package/dist/src/core/common/function/convertTime.d.ts +12 -0
- package/dist/src/core/common/function/convertTime.js +41 -0
- package/dist/src/core/common/function/convertTime.js.map +1 -0
- package/dist/src/core/common/function/convertTimestampToDate.d.ts +13 -0
- package/dist/src/core/common/function/convertTimestampToDate.js +14 -0
- package/dist/src/core/common/function/convertTimestampToDate.js.map +1 -0
- package/dist/src/core/common/function/convertToJSONStructure.d.ts +12 -0
- package/dist/src/core/common/function/convertToJSONStructure.js +23 -0
- package/dist/src/core/common/function/convertToJSONStructure.js.map +1 -0
- package/dist/src/core/common/function/convertXMLArray.d.ts +12 -0
- package/dist/src/core/common/function/convertXMLArray.js +81 -0
- package/dist/src/core/common/function/convertXMLArray.js.map +1 -0
- package/dist/src/core/common/function/convertXMLObject.d.ts +12 -0
- package/dist/src/core/common/function/convertXMLObject.js +62 -0
- package/dist/src/core/common/function/convertXMLObject.js.map +1 -0
- package/dist/src/core/common/function/currency.d.ts +12 -0
- package/dist/src/core/common/function/currency.js +49 -0
- package/dist/src/core/common/function/currency.js.map +1 -0
- package/dist/src/core/common/function/currentDate.d.ts +12 -0
- package/dist/src/core/common/function/currentDate.js +34 -0
- package/dist/src/core/common/function/currentDate.js.map +1 -0
- package/dist/src/core/common/function/customSplit.d.ts +12 -0
- package/dist/src/core/common/function/customSplit.js +21 -0
- package/dist/src/core/common/function/customSplit.js.map +1 -0
- package/dist/src/core/common/function/dateIso.d.ts +13 -0
- package/dist/src/core/common/function/dateIso.js +19 -0
- package/dist/src/core/common/function/dateIso.js.map +1 -0
- package/dist/src/core/common/function/defaultType.json +23 -0
- package/dist/src/core/common/function/findData.d.ts +12 -0
- package/dist/src/core/common/function/findData.js +33 -0
- package/dist/src/core/common/function/findData.js.map +1 -0
- package/dist/src/core/common/function/findKeyValueArray.d.ts +12 -0
- package/dist/src/core/common/function/findKeyValueArray.js +29 -0
- package/dist/src/core/common/function/findKeyValueArray.js.map +1 -0
- package/dist/src/core/common/function/formatDate.d.ts +12 -0
- package/dist/src/core/common/function/formatDate.js +34 -0
- package/dist/src/core/common/function/formatDate.js.map +1 -0
- package/dist/src/core/common/function/freeStyle.d.ts +9 -0
- package/dist/src/core/common/function/freeStyle.js +13 -0
- package/dist/src/core/common/function/freeStyle.js.map +1 -0
- package/dist/src/core/common/function/generateBarcode.d.ts +17 -0
- package/dist/src/core/common/function/generateBarcode.js +34 -0
- package/dist/src/core/common/function/generateBarcode.js.map +1 -0
- package/dist/src/core/common/function/generateFilters.d.ts +12 -0
- package/dist/src/core/common/function/generateFilters.js +18 -0
- package/dist/src/core/common/function/generateFilters.js.map +1 -0
- package/dist/src/core/common/function/generateUUID.d.ts +9 -0
- package/dist/src/core/common/function/generateUUID.js +14 -0
- package/dist/src/core/common/function/generateUUID.js.map +1 -0
- package/dist/src/core/common/function/get.d.ts +17 -0
- package/dist/src/core/common/function/get.js +28 -0
- package/dist/src/core/common/function/get.js.map +1 -0
- package/dist/src/core/common/function/getCompany.d.ts +14 -0
- package/dist/src/core/common/function/getCompany.js +26 -0
- package/dist/src/core/common/function/getCompany.js.map +1 -0
- package/dist/src/core/common/function/getCurrentCollapseData.d.ts +13 -0
- package/dist/src/core/common/function/getCurrentCollapseData.js +22 -0
- package/dist/src/core/common/function/getCurrentCollapseData.js.map +1 -0
- package/dist/src/core/common/function/getCurrentDate.d.ts +12 -0
- package/dist/src/core/common/function/getCurrentDate.js +16 -0
- package/dist/src/core/common/function/getCurrentDate.js.map +1 -0
- package/dist/src/core/common/function/getCurrentFilters.d.ts +9 -0
- package/dist/src/core/common/function/getCurrentFilters.js +14 -0
- package/dist/src/core/common/function/getCurrentFilters.js.map +1 -0
- package/dist/src/core/common/function/getCurrentForm.d.ts +12 -0
- package/dist/src/core/common/function/getCurrentForm.js +18 -0
- package/dist/src/core/common/function/getCurrentForm.js.map +1 -0
- package/dist/src/core/common/function/getCurrentId.d.ts +9 -0
- package/dist/src/core/common/function/getCurrentId.js +14 -0
- package/dist/src/core/common/function/getCurrentId.js.map +1 -0
- package/dist/src/core/common/function/getCurrentIndexData.d.ts +12 -0
- package/dist/src/core/common/function/getCurrentIndexData.js +18 -0
- package/dist/src/core/common/function/getCurrentIndexData.js.map +1 -0
- package/dist/src/core/common/function/getDocument.d.ts +13 -0
- package/dist/src/core/common/function/getDocument.js +16 -0
- package/dist/src/core/common/function/getDocument.js.map +1 -0
- package/dist/src/core/common/function/getEndExportdate.d.ts +17 -0
- package/dist/src/core/common/function/getEndExportdate.js +32 -0
- package/dist/src/core/common/function/getEndExportdate.js.map +1 -0
- package/dist/src/core/common/function/getEntityId.d.ts +12 -0
- package/dist/src/core/common/function/getEntityId.js +15 -0
- package/dist/src/core/common/function/getEntityId.js.map +1 -0
- package/dist/src/core/common/function/getEntityRecord.d.ts +12 -0
- package/dist/src/core/common/function/getEntityRecord.js +42 -0
- package/dist/src/core/common/function/getEntityRecord.js.map +1 -0
- package/dist/src/core/common/function/getErrors.d.ts +12 -0
- package/dist/src/core/common/function/getErrors.js +17 -0
- package/dist/src/core/common/function/getErrors.js.map +1 -0
- package/dist/src/core/common/function/getGlobalSetting.d.ts +12 -0
- package/dist/src/core/common/function/getGlobalSetting.js +21 -0
- package/dist/src/core/common/function/getGlobalSetting.js.map +1 -0
- package/dist/src/core/common/function/getHeaders.d.ts +13 -0
- package/dist/src/core/common/function/getHeaders.js +28 -0
- package/dist/src/core/common/function/getHeaders.js.map +1 -0
- package/dist/src/core/common/function/getJSONData.d.ts +13 -0
- package/dist/src/core/common/function/getJSONData.js +17 -0
- package/dist/src/core/common/function/getJSONData.js.map +1 -0
- package/dist/src/core/common/function/getJSONKeys.d.ts +17 -0
- package/dist/src/core/common/function/getJSONKeys.js +24 -0
- package/dist/src/core/common/function/getJSONKeys.js.map +1 -0
- package/dist/src/core/common/function/getMimeType.d.ts +12 -0
- package/dist/src/core/common/function/getMimeType.js +20 -0
- package/dist/src/core/common/function/getMimeType.js.map +1 -0
- package/dist/src/core/common/function/getNameFromUrl.d.ts +12 -0
- package/dist/src/core/common/function/getNameFromUrl.js +19 -0
- package/dist/src/core/common/function/getNameFromUrl.js.map +1 -0
- package/dist/src/core/common/function/getObjectData.d.ts +12 -0
- package/dist/src/core/common/function/getObjectData.js +27 -0
- package/dist/src/core/common/function/getObjectData.js.map +1 -0
- package/dist/src/core/common/function/getOptionFromApi.d.ts +17 -0
- package/dist/src/core/common/function/getOptionFromApi.js +24 -0
- package/dist/src/core/common/function/getOptionFromApi.js.map +1 -0
- package/dist/src/core/common/function/getOptions.d.ts +12 -0
- package/dist/src/core/common/function/getOptions.js +18 -0
- package/dist/src/core/common/function/getOptions.js.map +1 -0
- package/dist/src/core/common/function/getOriginalData.d.ts +17 -0
- package/dist/src/core/common/function/getOriginalData.js +18 -0
- package/dist/src/core/common/function/getOriginalData.js.map +1 -0
- package/dist/src/core/common/function/getParentData.d.ts +13 -0
- package/dist/src/core/common/function/getParentData.js +14 -0
- package/dist/src/core/common/function/getParentData.js.map +1 -0
- package/dist/src/core/common/function/getProfile.d.ts +13 -0
- package/dist/src/core/common/function/getProfile.js +30 -0
- package/dist/src/core/common/function/getProfile.js.map +1 -0
- package/dist/src/core/common/function/getProfileImage.d.ts +9 -0
- package/dist/src/core/common/function/getProfileImage.js +20 -0
- package/dist/src/core/common/function/getProfileImage.js.map +1 -0
- package/dist/src/core/common/function/getRawData.d.ts +12 -0
- package/dist/src/core/common/function/getRawData.js +17 -0
- package/dist/src/core/common/function/getRawData.js.map +1 -0
- package/dist/src/core/common/function/getRequestData.d.ts +11 -0
- package/dist/src/core/common/function/getRequestData.js +16 -0
- package/dist/src/core/common/function/getRequestData.js.map +1 -0
- package/dist/src/core/common/function/getRequestStatus.d.ts +9 -0
- package/dist/src/core/common/function/getRequestStatus.js +14 -0
- package/dist/src/core/common/function/getRequestStatus.js.map +1 -0
- package/dist/src/core/common/function/getResponse.d.ts +12 -0
- package/dist/src/core/common/function/getResponse.js +17 -0
- package/dist/src/core/common/function/getResponse.js.map +1 -0
- package/dist/src/core/common/function/getResult.d.ts +12 -0
- package/dist/src/core/common/function/getResult.js +17 -0
- package/dist/src/core/common/function/getResult.js.map +1 -0
- package/dist/src/core/common/function/getRunningNumber.d.ts +12 -0
- package/dist/src/core/common/function/getRunningNumber.js +19 -0
- package/dist/src/core/common/function/getRunningNumber.js.map +1 -0
- package/dist/src/core/common/function/getSetting.d.ts +12 -0
- package/dist/src/core/common/function/getSetting.js +17 -0
- package/dist/src/core/common/function/getSetting.js.map +1 -0
- package/dist/src/core/common/function/getStartExportdate.d.ts +17 -0
- package/dist/src/core/common/function/getStartExportdate.js +34 -0
- package/dist/src/core/common/function/getStartExportdate.js.map +1 -0
- package/dist/src/core/common/function/getTableColumn.d.ts +13 -0
- package/dist/src/core/common/function/getTableColumn.js +57 -0
- package/dist/src/core/common/function/getTableColumn.js.map +1 -0
- package/dist/src/core/common/function/getTimeLogs.d.ts +12 -0
- package/dist/src/core/common/function/getTimeLogs.js +17 -0
- package/dist/src/core/common/function/getTimeLogs.js.map +1 -0
- package/dist/src/core/common/function/hideString.d.ts +12 -0
- package/dist/src/core/common/function/hideString.js +27 -0
- package/dist/src/core/common/function/hideString.js.map +1 -0
- package/dist/src/core/common/function/ifConditions.d.ts +12 -0
- package/dist/src/core/common/function/ifConditions.js +27 -0
- package/dist/src/core/common/function/ifConditions.js.map +1 -0
- package/dist/src/core/common/function/isEmpty.d.ts +12 -0
- package/dist/src/core/common/function/isEmpty.js +18 -0
- package/dist/src/core/common/function/isEmpty.js.map +1 -0
- package/dist/src/core/common/function/jsonArray.d.ts +12 -0
- package/dist/src/core/common/function/jsonArray.js +22 -0
- package/dist/src/core/common/function/jsonArray.js.map +1 -0
- package/dist/src/core/common/function/last.d.ts +17 -0
- package/dist/src/core/common/function/last.js +25 -0
- package/dist/src/core/common/function/last.js.map +1 -0
- package/dist/src/core/common/function/leftString.d.ts +12 -0
- package/dist/src/core/common/function/leftString.js +20 -0
- package/dist/src/core/common/function/leftString.js.map +1 -0
- package/dist/src/core/common/function/length.d.ts +13 -0
- package/dist/src/core/common/function/length.js +21 -0
- package/dist/src/core/common/function/length.js.map +1 -0
- package/dist/src/core/common/function/mapping.d.ts +1185 -0
- package/dist/src/core/common/function/mapping.js +206 -0
- package/dist/src/core/common/function/mapping.js.map +1 -0
- package/dist/src/core/common/function/multiply.d.ts +13 -0
- package/dist/src/core/common/function/multiply.js +17 -0
- package/dist/src/core/common/function/multiply.js.map +1 -0
- package/dist/src/core/common/function/negativeValue.d.ts +13 -0
- package/dist/src/core/common/function/negativeValue.js +23 -0
- package/dist/src/core/common/function/negativeValue.js.map +1 -0
- package/dist/src/core/common/function/notConditions.d.ts +12 -0
- package/dist/src/core/common/function/notConditions.js +17 -0
- package/dist/src/core/common/function/notConditions.js.map +1 -0
- package/dist/src/core/common/function/numberInWord.d.ts +17 -0
- package/dist/src/core/common/function/numberInWord.js +34 -0
- package/dist/src/core/common/function/numberInWord.js.map +1 -0
- package/dist/src/core/common/function/objectId.d.ts +13 -0
- package/dist/src/core/common/function/objectId.js +16 -0
- package/dist/src/core/common/function/objectId.js.map +1 -0
- package/dist/src/core/common/function/orConditions.d.ts +12 -0
- package/dist/src/core/common/function/orConditions.js +17 -0
- package/dist/src/core/common/function/orConditions.js.map +1 -0
- package/dist/src/core/common/function/padStart.d.ts +17 -0
- package/dist/src/core/common/function/padStart.js +18 -0
- package/dist/src/core/common/function/padStart.js.map +1 -0
- package/dist/src/core/common/function/random.d.ts +12 -0
- package/dist/src/core/common/function/random.js +29 -0
- package/dist/src/core/common/function/random.js.map +1 -0
- package/dist/src/core/common/function/randomBytes.d.ts +12 -0
- package/dist/src/core/common/function/randomBytes.js +17 -0
- package/dist/src/core/common/function/randomBytes.js.map +1 -0
- package/dist/src/core/common/function/replaceString.d.ts +12 -0
- package/dist/src/core/common/function/replaceString.js +22 -0
- package/dist/src/core/common/function/replaceString.js.map +1 -0
- package/dist/src/core/common/function/rightString.d.ts +12 -0
- package/dist/src/core/common/function/rightString.js +20 -0
- package/dist/src/core/common/function/rightString.js.map +1 -0
- package/dist/src/core/common/function/round.d.ts +12 -0
- package/dist/src/core/common/function/round.js +23 -0
- package/dist/src/core/common/function/round.js.map +1 -0
- package/dist/src/core/common/function/runningNumber.d.ts +12 -0
- package/dist/src/core/common/function/runningNumber.js +26 -0
- package/dist/src/core/common/function/runningNumber.js.map +1 -0
- package/dist/src/core/common/function/subString.d.ts +12 -0
- package/dist/src/core/common/function/subString.js +19 -0
- package/dist/src/core/common/function/subString.js.map +1 -0
- package/dist/src/core/common/function/sumBy.d.ts +13 -0
- package/dist/src/core/common/function/sumBy.js +24 -0
- package/dist/src/core/common/function/sumBy.js.map +1 -0
- package/dist/src/core/common/function/sumData.d.ts +13 -0
- package/dist/src/core/common/function/sumData.js +28 -0
- package/dist/src/core/common/function/sumData.js.map +1 -0
- package/dist/src/core/common/function/sumIf.d.ts +13 -0
- package/dist/src/core/common/function/sumIf.js +26 -0
- package/dist/src/core/common/function/sumIf.js.map +1 -0
- package/dist/src/core/common/function/sumValue.d.ts +12 -0
- package/dist/src/core/common/function/sumValue.js +26 -0
- package/dist/src/core/common/function/sumValue.js.map +1 -0
- package/dist/src/core/common/function/toBoolean.d.ts +12 -0
- package/dist/src/core/common/function/toBoolean.js +23 -0
- package/dist/src/core/common/function/toBoolean.js.map +1 -0
- package/dist/src/core/common/function/toCamelCase.d.ts +13 -0
- package/dist/src/core/common/function/toCamelCase.js +16 -0
- package/dist/src/core/common/function/toCamelCase.js.map +1 -0
- package/dist/src/core/common/function/toFloat.d.ts +17 -0
- package/dist/src/core/common/function/toFloat.js +25 -0
- package/dist/src/core/common/function/toFloat.js.map +1 -0
- package/dist/src/core/common/function/toInt.d.ts +12 -0
- package/dist/src/core/common/function/toInt.js +20 -0
- package/dist/src/core/common/function/toInt.js.map +1 -0
- package/dist/src/core/common/function/toJson.d.ts +13 -0
- package/dist/src/core/common/function/toJson.js +16 -0
- package/dist/src/core/common/function/toJson.js.map +1 -0
- package/dist/src/core/common/function/toLowerCase.d.ts +13 -0
- package/dist/src/core/common/function/toLowerCase.js +16 -0
- package/dist/src/core/common/function/toLowerCase.js.map +1 -0
- package/dist/src/core/common/function/toPascalCase.d.ts +13 -0
- package/dist/src/core/common/function/toPascalCase.js +16 -0
- package/dist/src/core/common/function/toPascalCase.js.map +1 -0
- package/dist/src/core/common/function/toSnakeCase.d.ts +13 -0
- package/dist/src/core/common/function/toSnakeCase.js +16 -0
- package/dist/src/core/common/function/toSnakeCase.js.map +1 -0
- package/dist/src/core/common/function/toString.d.ts +12 -0
- package/dist/src/core/common/function/toString.js +25 -0
- package/dist/src/core/common/function/toString.js.map +1 -0
- package/dist/src/core/common/function/toUpperCase.d.ts +13 -0
- package/dist/src/core/common/function/toUpperCase.js +16 -0
- package/dist/src/core/common/function/toUpperCase.js.map +1 -0
- package/dist/src/core/common/function/translateOption.d.ts +17 -0
- package/dist/src/core/common/function/translateOption.js +55 -0
- package/dist/src/core/common/function/translateOption.js.map +1 -0
- package/dist/src/core/common/function/uploadImageFromUrl.d.ts +13 -0
- package/dist/src/core/common/function/uploadImageFromUrl.js +18 -0
- package/dist/src/core/common/function/uploadImageFromUrl.js.map +1 -0
- package/dist/src/core/common/interceptors/external.interceptor.d.ts +9 -0
- package/dist/src/core/common/interceptors/external.interceptor.js +113 -0
- package/dist/src/core/common/interceptors/external.interceptor.js.map +1 -0
- package/dist/src/core/common/interceptors/filter.interceptor.d.ts +8 -0
- package/dist/src/core/common/interceptors/filter.interceptor.js +192 -0
- package/dist/src/core/common/interceptors/filter.interceptor.js.map +1 -0
- package/dist/src/core/common/interface/external_data_source.interface.d.ts +16 -0
- package/dist/src/core/common/interface/external_data_source.interface.js +3 -0
- package/dist/src/core/common/interface/external_data_source.interface.js.map +1 -0
- package/dist/src/core/common/interface/module_setting.interface.d.ts +6 -0
- package/dist/src/core/common/interface/module_setting.interface.js +3 -0
- package/dist/src/core/common/interface/module_setting.interface.js.map +1 -0
- package/dist/src/core/common/utils/attachment.d.ts +5 -0
- package/dist/src/core/common/utils/attachment.js +50 -0
- package/dist/src/core/common/utils/attachment.js.map +1 -0
- package/dist/src/core/common/utils/authenticator.d.ts +5 -0
- package/dist/src/core/common/utils/authenticator.js +30 -0
- package/dist/src/core/common/utils/authenticator.js.map +1 -0
- package/dist/src/core/common/utils/build_search.d.ts +11 -0
- package/dist/src/core/common/utils/build_search.js +459 -0
- package/dist/src/core/common/utils/build_search.js.map +1 -0
- package/dist/src/core/common/utils/bull_queue.d.ts +24 -0
- package/dist/src/core/common/utils/bull_queue.js +156 -0
- package/dist/src/core/common/utils/bull_queue.js.map +1 -0
- package/dist/src/core/common/utils/chart.d.ts +12 -0
- package/dist/src/core/common/utils/chart.js +201 -0
- package/dist/src/core/common/utils/chart.js.map +1 -0
- package/dist/src/core/common/utils/common.d.ts +4 -0
- package/dist/src/core/common/utils/common.js +56 -0
- package/dist/src/core/common/utils/common.js.map +1 -0
- package/dist/src/core/common/utils/date.d.ts +7 -0
- package/dist/src/core/common/utils/date.js +97 -0
- package/dist/src/core/common/utils/date.js.map +1 -0
- package/dist/src/core/common/utils/decimal2Json.d.ts +4 -0
- package/dist/src/core/common/utils/decimal2Json.js +131 -0
- package/dist/src/core/common/utils/decimal2Json.js.map +1 -0
- package/dist/src/core/common/utils/diff.d.ts +3 -0
- package/dist/src/core/common/utils/diff.js +81 -0
- package/dist/src/core/common/utils/diff.js.map +1 -0
- package/dist/src/core/common/utils/entity.d.ts +13 -0
- package/dist/src/core/common/utils/entity.js +119 -0
- package/dist/src/core/common/utils/entity.js.map +1 -0
- package/dist/src/core/common/utils/eval.d.ts +3 -0
- package/dist/src/core/common/utils/eval.js +30 -0
- package/dist/src/core/common/utils/eval.js.map +1 -0
- package/dist/src/core/common/utils/example.d.ts +3 -0
- package/dist/src/core/common/utils/example.js +152 -0
- package/dist/src/core/common/utils/example.js.map +1 -0
- package/dist/src/core/common/utils/executions.d.ts +3 -0
- package/dist/src/core/common/utils/executions.js +73 -0
- package/dist/src/core/common/utils/executions.js.map +1 -0
- package/dist/src/core/common/utils/external_data.d.ts +2 -0
- package/dist/src/core/common/utils/external_data.js +20 -0
- package/dist/src/core/common/utils/external_data.js.map +1 -0
- package/dist/src/core/common/utils/external_module.d.ts +12 -0
- package/dist/src/core/common/utils/external_module.js +203 -0
- package/dist/src/core/common/utils/external_module.js.map +1 -0
- package/dist/src/core/common/utils/file.d.ts +6 -0
- package/dist/src/core/common/utils/file.js +80 -0
- package/dist/src/core/common/utils/file.js.map +1 -0
- package/dist/src/core/common/utils/form.d.ts +4 -0
- package/dist/src/core/common/utils/form.js +21 -0
- package/dist/src/core/common/utils/form.js.map +1 -0
- package/dist/src/core/common/utils/func.d.ts +17 -0
- package/dist/src/core/common/utils/func.js +314 -0
- package/dist/src/core/common/utils/func.js.map +1 -0
- package/dist/src/core/common/utils/global.d.ts +6 -0
- package/dist/src/core/common/utils/global.js +72 -0
- package/dist/src/core/common/utils/global.js.map +1 -0
- package/dist/src/core/common/utils/hook.d.ts +5 -0
- package/dist/src/core/common/utils/hook.js +188 -0
- package/dist/src/core/common/utils/hook.js.map +1 -0
- package/dist/src/core/common/utils/initial.d.ts +4 -0
- package/dist/src/core/common/utils/initial.js +318 -0
- package/dist/src/core/common/utils/initial.js.map +1 -0
- package/dist/src/core/common/utils/layout.d.ts +7 -0
- package/dist/src/core/common/utils/layout.js +160 -0
- package/dist/src/core/common/utils/layout.js.map +1 -0
- package/dist/src/core/common/utils/masking.d.ts +3 -0
- package/dist/src/core/common/utils/masking.js +55 -0
- package/dist/src/core/common/utils/masking.js.map +1 -0
- package/dist/src/core/common/utils/math.d.ts +2 -0
- package/dist/src/core/common/utils/math.js +8 -0
- package/dist/src/core/common/utils/math.js.map +1 -0
- package/dist/src/core/common/utils/media.d.ts +70 -0
- package/dist/src/core/common/utils/media.js +90 -0
- package/dist/src/core/common/utils/media.js.map +1 -0
- package/dist/src/core/common/utils/mongo.d.ts +4 -0
- package/dist/src/core/common/utils/mongo.js +891 -0
- package/dist/src/core/common/utils/mongo.js.map +1 -0
- package/dist/src/core/common/utils/mongoose.d.ts +2 -0
- package/dist/src/core/common/utils/mongoose.js +152 -0
- package/dist/src/core/common/utils/mongoose.js.map +1 -0
- package/dist/src/core/common/utils/ocr.d.ts +1 -0
- package/dist/src/core/common/utils/ocr.js +35 -0
- package/dist/src/core/common/utils/ocr.js.map +1 -0
- package/dist/src/core/common/utils/otp.d.ts +16 -0
- package/dist/src/core/common/utils/otp.js +103 -0
- package/dist/src/core/common/utils/otp.js.map +1 -0
- package/dist/src/core/common/utils/permission.d.ts +5 -0
- package/dist/src/core/common/utils/permission.js +122 -0
- package/dist/src/core/common/utils/permission.js.map +1 -0
- package/dist/src/core/common/utils/random.d.ts +2 -0
- package/dist/src/core/common/utils/random.js +14 -0
- package/dist/src/core/common/utils/random.js.map +1 -0
- package/dist/src/core/common/utils/recaptcha.d.ts +1 -0
- package/dist/src/core/common/utils/recaptcha.js +21 -0
- package/dist/src/core/common/utils/recaptcha.js.map +1 -0
- package/dist/src/core/common/utils/redis.d.ts +31 -0
- package/dist/src/core/common/utils/redis.js +261 -0
- package/dist/src/core/common/utils/redis.js.map +1 -0
- package/dist/src/core/common/utils/regex.d.ts +1 -0
- package/dist/src/core/common/utils/regex.js +8 -0
- package/dist/src/core/common/utils/regex.js.map +1 -0
- package/dist/src/core/common/utils/replace.d.ts +5 -0
- package/dist/src/core/common/utils/replace.js +84 -0
- package/dist/src/core/common/utils/replace.js.map +1 -0
- package/dist/src/core/common/utils/request.d.ts +5 -0
- package/dist/src/core/common/utils/request.js +82 -0
- package/dist/src/core/common/utils/request.js.map +1 -0
- package/dist/src/core/common/utils/retry.d.ts +1 -0
- package/dist/src/core/common/utils/retry.js +30 -0
- package/dist/src/core/common/utils/retry.js.map +1 -0
- package/dist/src/core/common/utils/rewrite_url.d.ts +4 -0
- package/dist/src/core/common/utils/rewrite_url.js +18 -0
- package/dist/src/core/common/utils/rewrite_url.js.map +1 -0
- package/dist/src/core/common/utils/running.d.ts +1 -0
- package/dist/src/core/common/utils/running.js +46 -0
- package/dist/src/core/common/utils/running.js.map +1 -0
- package/dist/src/core/common/utils/schedule.d.ts +1 -0
- package/dist/src/core/common/utils/schedule.js +15 -0
- package/dist/src/core/common/utils/schedule.js.map +1 -0
- package/dist/src/core/common/utils/schema.d.ts +65 -0
- package/dist/src/core/common/utils/schema.js +2629 -0
- package/dist/src/core/common/utils/schema.js.map +1 -0
- package/dist/src/core/common/utils/sleep.d.ts +2 -0
- package/dist/src/core/common/utils/sleep.js +8 -0
- package/dist/src/core/common/utils/sleep.js.map +1 -0
- package/dist/src/core/common/utils/template.d.ts +2 -0
- package/dist/src/core/common/utils/template.js +169 -0
- package/dist/src/core/common/utils/template.js.map +1 -0
- package/dist/src/core/common/utils/text_search.d.ts +27 -0
- package/dist/src/core/common/utils/text_search.js +237 -0
- package/dist/src/core/common/utils/text_search.js.map +1 -0
- package/dist/src/core/common/utils/time.d.ts +1 -0
- package/dist/src/core/common/utils/time.js +17 -0
- package/dist/src/core/common/utils/time.js.map +1 -0
- package/dist/src/core/common/utils/token.d.ts +5 -0
- package/dist/src/core/common/utils/token.js +13 -0
- package/dist/src/core/common/utils/token.js.map +1 -0
- package/dist/src/core/common/utils/transform.d.ts +8 -0
- package/dist/src/core/common/utils/transform.js +409 -0
- package/dist/src/core/common/utils/transform.js.map +1 -0
- package/dist/src/core/common/utils/translate.d.ts +5 -0
- package/dist/src/core/common/utils/translate.js +73 -0
- package/dist/src/core/common/utils/translate.js.map +1 -0
- package/dist/src/core/common/utils/validate.d.ts +6 -0
- package/dist/src/core/common/utils/validate.js +323 -0
- package/dist/src/core/common/utils/validate.js.map +1 -0
- package/dist/src/core/company/company.constant.d.ts +9 -0
- package/dist/src/core/company/company.constant.js +13 -0
- package/dist/src/core/company/company.constant.js.map +1 -0
- package/dist/src/core/company/company.layout.d.ts +2 -0
- package/dist/src/core/company/company.layout.js +507 -0
- package/dist/src/core/company/company.layout.js.map +1 -0
- package/dist/src/core/company/company.module.d.ts +2 -0
- package/dist/src/core/company/company.module.js +40 -0
- package/dist/src/core/company/company.module.js.map +1 -0
- package/dist/src/core/company/company.schema.d.ts +25 -0
- package/dist/src/core/company/company.schema.js +137 -0
- package/dist/src/core/company/company.schema.js.map +1 -0
- package/dist/src/core/company/company.service.d.ts +22 -0
- package/dist/src/core/company/company.service.js +140 -0
- package/dist/src/core/company/company.service.js.map +1 -0
- package/dist/src/core/config/attachment.d.ts +15 -0
- package/dist/src/core/config/attachment.js +35 -0
- package/dist/src/core/config/attachment.js.map +1 -0
- package/dist/src/core/config/auth.d.ts +4 -0
- package/dist/src/core/config/auth.js +6 -0
- package/dist/src/core/config/auth.js.map +1 -0
- package/dist/src/core/config/cache.d.ts +5 -0
- package/dist/src/core/config/cache.js +7 -0
- package/dist/src/core/config/cache.js.map +1 -0
- package/dist/src/core/config/mongodb.d.ts +4 -0
- package/dist/src/core/config/mongodb.js +6 -0
- package/dist/src/core/config/mongodb.js.map +1 -0
- package/dist/src/core/config/queue.d.ts +4 -0
- package/dist/src/core/config/queue.js +6 -0
- package/dist/src/core/config/queue.js.map +1 -0
- package/dist/src/core/config/schedule_action.d.ts +5 -0
- package/dist/src/core/config/schedule_action.js +7 -0
- package/dist/src/core/config/schedule_action.js.map +1 -0
- package/dist/src/core/core.controller.d.ts +51 -0
- package/dist/src/core/core.controller.js +555 -0
- package/dist/src/core/core.controller.js.map +1 -0
- package/dist/src/core/core.module.d.ts +2 -0
- package/dist/src/core/core.module.js +101 -0
- package/dist/src/core/core.module.js.map +1 -0
- package/dist/src/core/core.service.d.ts +121 -0
- package/dist/src/core/core.service.js +716 -0
- package/dist/src/core/core.service.js.map +1 -0
- package/dist/src/core/currency/currency.layout.d.ts +2 -0
- package/dist/src/core/currency/currency.layout.js +194 -0
- package/dist/src/core/currency/currency.layout.js.map +1 -0
- package/dist/src/core/currency/currency.module.d.ts +2 -0
- package/dist/src/core/currency/currency.module.js +38 -0
- package/dist/src/core/currency/currency.module.js.map +1 -0
- package/dist/src/core/currency/currency.schema.d.ts +9 -0
- package/dist/src/core/currency/currency.schema.js +30 -0
- package/dist/src/core/currency/currency.schema.js.map +1 -0
- package/dist/src/core/currency/currency.service.d.ts +13 -0
- package/dist/src/core/currency/currency.service.js +55 -0
- package/dist/src/core/currency/currency.service.js.map +1 -0
- package/dist/src/core/currency/data/currency.json +646 -0
- package/dist/src/core/custom_function/custom_function.controller.d.ts +7 -0
- package/dist/src/core/custom_function/custom_function.controller.js +50 -0
- package/dist/src/core/custom_function/custom_function.controller.js.map +1 -0
- package/dist/src/core/custom_function/custom_function.enum.d.ts +22 -0
- package/dist/src/core/custom_function/custom_function.enum.js +28 -0
- package/dist/src/core/custom_function/custom_function.enum.js.map +1 -0
- package/dist/src/core/custom_function/custom_function.layout.d.ts +2 -0
- package/dist/src/core/custom_function/custom_function.layout.js +521 -0
- package/dist/src/core/custom_function/custom_function.layout.js.map +1 -0
- package/dist/src/core/custom_function/custom_function.module.d.ts +2 -0
- package/dist/src/core/custom_function/custom_function.module.js +41 -0
- package/dist/src/core/custom_function/custom_function.module.js.map +1 -0
- package/dist/src/core/custom_function/custom_function.schema.d.ts +15 -0
- package/dist/src/core/custom_function/custom_function.schema.js +68 -0
- package/dist/src/core/custom_function/custom_function.schema.js.map +1 -0
- package/dist/src/core/custom_function/custom_function.service.d.ts +18 -0
- package/dist/src/core/custom_function/custom_function.service.js +116 -0
- package/dist/src/core/custom_function/custom_function.service.js.map +1 -0
- package/dist/src/core/database/database.constant.d.ts +35 -0
- package/dist/src/core/database/database.constant.js +218 -0
- package/dist/src/core/database/database.constant.js.map +1 -0
- package/dist/src/core/database/database.controller.d.ts +8 -0
- package/dist/src/core/database/database.controller.js +56 -0
- package/dist/src/core/database/database.controller.js.map +1 -0
- package/dist/src/core/database/database.module.d.ts +2 -0
- package/dist/src/core/database/database.module.js +24 -0
- package/dist/src/core/database/database.module.js.map +1 -0
- package/dist/src/core/database/database.service.d.ts +13 -0
- package/dist/src/core/database/database.service.js +184 -0
- package/dist/src/core/database/database.service.js.map +1 -0
- package/dist/src/core/deploy/deploy.action.d.ts +3 -0
- package/dist/src/core/deploy/deploy.action.js +82 -0
- package/dist/src/core/deploy/deploy.action.js.map +1 -0
- package/dist/src/core/deploy/deploy.controller.d.ts +7 -0
- package/dist/src/core/deploy/deploy.controller.js +53 -0
- package/dist/src/core/deploy/deploy.controller.js.map +1 -0
- package/dist/src/core/deploy/deploy.enum.d.ts +5 -0
- package/dist/src/core/deploy/deploy.enum.js +10 -0
- package/dist/src/core/deploy/deploy.enum.js.map +1 -0
- package/dist/src/core/deploy/deploy.layout.d.ts +4 -0
- package/dist/src/core/deploy/deploy.layout.js +1110 -0
- package/dist/src/core/deploy/deploy.layout.js.map +1 -0
- package/dist/src/core/deploy/deploy.module.d.ts +2 -0
- package/dist/src/core/deploy/deploy.module.js +57 -0
- package/dist/src/core/deploy/deploy.module.js.map +1 -0
- package/dist/src/core/deploy/deploy.schema.d.ts +28 -0
- package/dist/src/core/deploy/deploy.schema.js +111 -0
- package/dist/src/core/deploy/deploy.schema.js.map +1 -0
- package/dist/src/core/deploy/deploy.service.d.ts +38 -0
- package/dist/src/core/deploy/deploy.service.js +557 -0
- package/dist/src/core/deploy/deploy.service.js.map +1 -0
- package/dist/src/core/deploy/log/deploy_log.schema.d.ts +20 -0
- package/dist/src/core/deploy/log/deploy_log.schema.js +90 -0
- package/dist/src/core/deploy/log/deploy_log.schema.js.map +1 -0
- package/dist/src/core/deploy/log/deploy_log.service.d.ts +12 -0
- package/dist/src/core/deploy/log/deploy_log.service.js +44 -0
- package/dist/src/core/deploy/log/deploy_log.service.js.map +1 -0
- package/dist/src/core/entities/entities.controller.d.ts +69 -0
- package/dist/src/core/entities/entities.controller.js +801 -0
- package/dist/src/core/entities/entities.controller.js.map +1 -0
- package/dist/src/core/entities/entities.module.d.ts +2 -0
- package/dist/src/core/entities/entities.module.js +38 -0
- package/dist/src/core/entities/entities.module.js.map +1 -0
- package/dist/src/core/entities/entities.service.d.ts +71 -0
- package/dist/src/core/entities/entities.service.js +2271 -0
- package/dist/src/core/entities/entities.service.js.map +1 -0
- package/dist/src/core/entities/entity.enum.d.ts +33 -0
- package/dist/src/core/entities/entity.enum.js +44 -0
- package/dist/src/core/entities/entity.enum.js.map +1 -0
- package/dist/src/core/entities/entity.schema.d.ts +357 -0
- package/dist/src/core/entities/entity.schema.js +1460 -0
- package/dist/src/core/entities/entity.schema.js.map +1 -0
- package/dist/src/core/entities/provider/data_permission.base.d.ts +4 -0
- package/dist/src/core/entities/provider/data_permission.base.js +10 -0
- package/dist/src/core/entities/provider/data_permission.base.js.map +1 -0
- package/dist/src/core/entities/provider/data_permission.interface.d.ts +3 -0
- package/dist/src/core/entities/provider/data_permission.interface.js +3 -0
- package/dist/src/core/entities/provider/data_permission.interface.js.map +1 -0
- package/dist/src/core/execution_log/execution_log.enum.d.ts +4 -0
- package/dist/src/core/execution_log/execution_log.enum.js +9 -0
- package/dist/src/core/execution_log/execution_log.enum.js.map +1 -0
- package/dist/src/core/execution_log/execution_log.layout.d.ts +2 -0
- package/dist/src/core/execution_log/execution_log.layout.js +226 -0
- package/dist/src/core/execution_log/execution_log.layout.js.map +1 -0
- package/dist/src/core/execution_log/execution_log.module.d.ts +2 -0
- package/dist/src/core/execution_log/execution_log.module.js +39 -0
- package/dist/src/core/execution_log/execution_log.module.js.map +1 -0
- package/dist/src/core/execution_log/execution_log.schema.d.ts +13 -0
- package/dist/src/core/execution_log/execution_log.schema.js +58 -0
- package/dist/src/core/execution_log/execution_log.schema.js.map +1 -0
- package/dist/src/core/execution_log/execution_log.service.d.ts +12 -0
- package/dist/src/core/execution_log/execution_log.service.js +47 -0
- package/dist/src/core/execution_log/execution_log.service.js.map +1 -0
- package/dist/src/core/external_provider/external_provider.controller.d.ts +6 -0
- package/dist/src/core/external_provider/external_provider.controller.js +41 -0
- package/dist/src/core/external_provider/external_provider.controller.js.map +1 -0
- package/dist/src/core/external_provider/external_provider.module.d.ts +2 -0
- package/dist/src/core/external_provider/external_provider.module.js +29 -0
- package/dist/src/core/external_provider/external_provider.module.js.map +1 -0
- package/dist/src/core/external_provider/external_provider.service.d.ts +18 -0
- package/dist/src/core/external_provider/external_provider.service.js +32 -0
- package/dist/src/core/external_provider/external_provider.service.js.map +1 -0
- package/dist/src/core/guards/csrf.guard.d.ts +9 -0
- package/dist/src/core/guards/csrf.guard.js +57 -0
- package/dist/src/core/guards/csrf.guard.js.map +1 -0
- package/dist/src/core/import_export/import_export.controller.d.ts +28 -0
- package/dist/src/core/import_export/import_export.controller.js +201 -0
- package/dist/src/core/import_export/import_export.controller.js.map +1 -0
- package/dist/src/core/import_export/import_export.enum.d.ts +24 -0
- package/dist/src/core/import_export/import_export.enum.js +32 -0
- package/dist/src/core/import_export/import_export.enum.js.map +1 -0
- package/dist/src/core/import_export/import_export.hook.d.ts +16 -0
- package/dist/src/core/import_export/import_export.hook.js +24 -0
- package/dist/src/core/import_export/import_export.hook.js.map +1 -0
- package/dist/src/core/import_export/import_export.layout.d.ts +2 -0
- package/dist/src/core/import_export/import_export.layout.js +2059 -0
- package/dist/src/core/import_export/import_export.layout.js.map +1 -0
- package/dist/src/core/import_export/import_export.module.d.ts +2 -0
- package/dist/src/core/import_export/import_export.module.js +51 -0
- package/dist/src/core/import_export/import_export.module.js.map +1 -0
- package/dist/src/core/import_export/import_export.schema.d.ts +40 -0
- package/dist/src/core/import_export/import_export.schema.js +175 -0
- package/dist/src/core/import_export/import_export.schema.js.map +1 -0
- package/dist/src/core/import_export/import_export.service.d.ts +94 -0
- package/dist/src/core/import_export/import_export.service.js +2723 -0
- package/dist/src/core/import_export/import_export.service.js.map +1 -0
- package/dist/src/core/import_export/import_export.utils.d.ts +3 -0
- package/dist/src/core/import_export/import_export.utils.js +21 -0
- package/dist/src/core/import_export/import_export.utils.js.map +1 -0
- package/dist/src/core/import_export/log/import_export_log.layout.d.ts +2 -0
- package/dist/src/core/import_export/log/import_export_log.layout.js +423 -0
- package/dist/src/core/import_export/log/import_export_log.layout.js.map +1 -0
- package/dist/src/core/import_export/log/import_export_log.schema.d.ts +23 -0
- package/dist/src/core/import_export/log/import_export_log.schema.js +131 -0
- package/dist/src/core/import_export/log/import_export_log.schema.js.map +1 -0
- package/dist/src/core/import_export/log/import_export_log.service.d.ts +12 -0
- package/dist/src/core/import_export/log/import_export_log.service.js +49 -0
- package/dist/src/core/import_export/log/import_export_log.service.js.map +1 -0
- package/dist/src/core/import_export/provider/export.provider.d.ts +8 -0
- package/dist/src/core/import_export/provider/export.provider.js +244 -0
- package/dist/src/core/import_export/provider/export.provider.js.map +1 -0
- package/dist/src/core/import_export/provider/import.provider.d.ts +8 -0
- package/dist/src/core/import_export/provider/import.provider.js +238 -0
- package/dist/src/core/import_export/provider/import.provider.js.map +1 -0
- package/dist/src/core/import_export/provider/provider.base.d.ts +8 -0
- package/dist/src/core/import_export/provider/provider.base.js +19 -0
- package/dist/src/core/import_export/provider/provider.base.js.map +1 -0
- package/dist/src/core/import_export/provider/provider.interface.d.ts +6 -0
- package/dist/src/core/import_export/provider/provider.interface.js +3 -0
- package/dist/src/core/import_export/provider/provider.interface.js.map +1 -0
- package/dist/src/core/index.d.ts +271 -0
- package/dist/src/core/index.js +668 -0
- package/dist/src/core/index.js.map +1 -0
- package/dist/src/core/language/langauge.constant.d.ts +9 -0
- package/dist/src/core/language/langauge.constant.js +13 -0
- package/dist/src/core/language/langauge.constant.js.map +1 -0
- package/dist/src/core/language/langauge.enum.d.ts +4 -0
- package/dist/src/core/language/langauge.enum.js +9 -0
- package/dist/src/core/language/langauge.enum.js.map +1 -0
- package/dist/src/core/language/language.controller.d.ts +6 -0
- package/dist/src/core/language/language.controller.js +36 -0
- package/dist/src/core/language/language.controller.js.map +1 -0
- package/dist/src/core/language/language.hook.d.ts +13 -0
- package/dist/src/core/language/language.hook.js +36 -0
- package/dist/src/core/language/language.hook.js.map +1 -0
- package/dist/src/core/language/language.layout.d.ts +2 -0
- package/dist/src/core/language/language.layout.js +299 -0
- package/dist/src/core/language/language.layout.js.map +1 -0
- package/dist/src/core/language/language.module.d.ts +2 -0
- package/dist/src/core/language/language.module.js +42 -0
- package/dist/src/core/language/language.module.js.map +1 -0
- package/dist/src/core/language/language.schema.d.ts +13 -0
- package/dist/src/core/language/language.schema.js +57 -0
- package/dist/src/core/language/language.schema.js.map +1 -0
- package/dist/src/core/language/language.service.d.ts +14 -0
- package/dist/src/core/language/language.service.js +76 -0
- package/dist/src/core/language/language.service.js.map +1 -0
- package/dist/src/core/layout/chart_widget/chart_widget.controller.d.ts +7 -0
- package/dist/src/core/layout/chart_widget/chart_widget.controller.js +54 -0
- package/dist/src/core/layout/chart_widget/chart_widget.controller.js.map +1 -0
- package/dist/src/core/layout/chart_widget/chart_widget.service.d.ts +36 -0
- package/dist/src/core/layout/chart_widget/chart_widget.service.js +1355 -0
- package/dist/src/core/layout/chart_widget/chart_widget.service.js.map +1 -0
- package/dist/src/core/layout/layout.constant.d.ts +17 -0
- package/dist/src/core/layout/layout.constant.js +23 -0
- package/dist/src/core/layout/layout.constant.js.map +1 -0
- package/dist/src/core/layout/layout.module.d.ts +2 -0
- package/dist/src/core/layout/layout.module.js +43 -0
- package/dist/src/core/layout/layout.module.js.map +1 -0
- package/dist/src/core/layout/share_widget/share_widget.layout.d.ts +2 -0
- package/dist/src/core/layout/share_widget/share_widget.layout.js +5 -0
- package/dist/src/core/layout/share_widget/share_widget.layout.js.map +1 -0
- package/dist/src/core/layout/share_widget/share_widget.schema.d.ts +14 -0
- package/dist/src/core/layout/share_widget/share_widget.schema.js +80 -0
- package/dist/src/core/layout/share_widget/share_widget.schema.js.map +1 -0
- package/dist/src/core/layout/share_widget/share_widget.service.d.ts +19 -0
- package/dist/src/core/layout/share_widget/share_widget.service.js +110 -0
- package/dist/src/core/layout/share_widget/share_widget.service.js.map +1 -0
- package/dist/src/core/mail/log/mail_log.layout.d.ts +2 -0
- package/dist/src/core/mail/log/mail_log.layout.js +697 -0
- package/dist/src/core/mail/log/mail_log.layout.js.map +1 -0
- package/dist/src/core/mail/log/mail_log.schema.d.ts +21 -0
- package/dist/src/core/mail/log/mail_log.schema.js +94 -0
- package/dist/src/core/mail/log/mail_log.schema.js.map +1 -0
- package/dist/src/core/mail/log/mail_log.service.d.ts +12 -0
- package/dist/src/core/mail/log/mail_log.service.js +49 -0
- package/dist/src/core/mail/log/mail_log.service.js.map +1 -0
- package/dist/src/core/mail/mail.controller.d.ts +7 -0
- package/dist/src/core/mail/mail.controller.js +50 -0
- package/dist/src/core/mail/mail.controller.js.map +1 -0
- package/dist/src/core/mail/mail.custom_actions.d.ts +27 -0
- package/dist/src/core/mail/mail.custom_actions.js +35 -0
- package/dist/src/core/mail/mail.custom_actions.js.map +1 -0
- package/dist/src/core/mail/mail.enum.d.ts +3 -0
- package/dist/src/core/mail/mail.enum.js +8 -0
- package/dist/src/core/mail/mail.enum.js.map +1 -0
- package/dist/src/core/mail/mail.hook.d.ts +15 -0
- package/dist/src/core/mail/mail.hook.js +23 -0
- package/dist/src/core/mail/mail.hook.js.map +1 -0
- package/dist/src/core/mail/mail.layout.d.ts +2 -0
- package/dist/src/core/mail/mail.layout.js +653 -0
- package/dist/src/core/mail/mail.layout.js.map +1 -0
- package/dist/src/core/mail/mail.module.d.ts +2 -0
- package/dist/src/core/mail/mail.module.js +50 -0
- package/dist/src/core/mail/mail.module.js.map +1 -0
- package/dist/src/core/mail/mail.schema.d.ts +24 -0
- package/dist/src/core/mail/mail.schema.js +106 -0
- package/dist/src/core/mail/mail.schema.js.map +1 -0
- package/dist/src/core/mail/mail.service.d.ts +19 -0
- package/dist/src/core/mail/mail.service.js +193 -0
- package/dist/src/core/mail/mail.service.js.map +1 -0
- package/dist/src/core/map_location/map_location.layout.d.ts +2 -0
- package/dist/src/core/map_location/map_location.layout.js +102 -0
- package/dist/src/core/map_location/map_location.layout.js.map +1 -0
- package/dist/src/core/map_location/map_location.schema.d.ts +10 -0
- package/dist/src/core/map_location/map_location.schema.js +46 -0
- package/dist/src/core/map_location/map_location.schema.js.map +1 -0
- package/dist/src/core/map_location/map_location.service.d.ts +12 -0
- package/dist/src/core/map_location/map_location.service.js +44 -0
- package/dist/src/core/map_location/map_location.service.js.map +1 -0
- package/dist/src/core/map_location/map_locatioon.module.d.ts +2 -0
- package/dist/src/core/map_location/map_locatioon.module.js +38 -0
- package/dist/src/core/map_location/map_locatioon.module.js.map +1 -0
- package/dist/src/core/middlewares/request.middleware.d.ts +2 -0
- package/dist/src/core/middlewares/request.middleware.js +11 -0
- package/dist/src/core/middlewares/request.middleware.js.map +1 -0
- package/dist/src/core/notification/log/log.layout.d.ts +2 -0
- package/dist/src/core/notification/log/log.layout.js +19 -0
- package/dist/src/core/notification/log/log.layout.js.map +1 -0
- package/dist/src/core/notification/log/log.schema.d.ts +23 -0
- package/dist/src/core/notification/log/log.schema.js +94 -0
- package/dist/src/core/notification/log/log.schema.js.map +1 -0
- package/dist/src/core/notification/log/log.service.d.ts +12 -0
- package/dist/src/core/notification/log/log.service.js +45 -0
- package/dist/src/core/notification/log/log.service.js.map +1 -0
- package/dist/src/core/notification/message/message.controller.d.ts +6 -0
- package/dist/src/core/notification/message/message.controller.js +36 -0
- package/dist/src/core/notification/message/message.controller.js.map +1 -0
- package/dist/src/core/notification/message/message.custom_action.d.ts +15 -0
- package/dist/src/core/notification/message/message.custom_action.js +21 -0
- package/dist/src/core/notification/message/message.custom_action.js.map +1 -0
- package/dist/src/core/notification/message/message.layout.d.ts +2 -0
- package/dist/src/core/notification/message/message.layout.js +732 -0
- package/dist/src/core/notification/message/message.layout.js.map +1 -0
- package/dist/src/core/notification/message/message.schema.d.ts +22 -0
- package/dist/src/core/notification/message/message.schema.js +97 -0
- package/dist/src/core/notification/message/message.schema.js.map +1 -0
- package/dist/src/core/notification/message/message.service.d.ts +23 -0
- package/dist/src/core/notification/message/message.service.js +203 -0
- package/dist/src/core/notification/message/message.service.js.map +1 -0
- package/dist/src/core/notification/message/message.workflow.d.ts +2 -0
- package/dist/src/core/notification/message/message.workflow.js +455 -0
- package/dist/src/core/notification/message/message.workflow.js.map +1 -0
- package/dist/src/core/notification/message_queue/message_queue.controller.d.ts +6 -0
- package/dist/src/core/notification/message_queue/message_queue.controller.js +36 -0
- package/dist/src/core/notification/message_queue/message_queue.controller.js.map +1 -0
- package/dist/src/core/notification/message_queue/message_queue.layout.d.ts +2 -0
- package/dist/src/core/notification/message_queue/message_queue.layout.js +5 -0
- package/dist/src/core/notification/message_queue/message_queue.layout.js.map +1 -0
- package/dist/src/core/notification/message_queue/message_queue.schema.d.ts +17 -0
- package/dist/src/core/notification/message_queue/message_queue.schema.js +63 -0
- package/dist/src/core/notification/message_queue/message_queue.schema.js.map +1 -0
- package/dist/src/core/notification/message_queue/message_queue.service.d.ts +16 -0
- package/dist/src/core/notification/message_queue/message_queue.service.js +151 -0
- package/dist/src/core/notification/message_queue/message_queue.service.js.map +1 -0
- package/dist/src/core/notification/notification.constant.d.ts +8 -0
- package/dist/src/core/notification/notification.constant.js +13 -0
- package/dist/src/core/notification/notification.constant.js.map +1 -0
- package/dist/src/core/notification/notification.module.d.ts +2 -0
- package/dist/src/core/notification/notification.module.js +85 -0
- package/dist/src/core/notification/notification.module.js.map +1 -0
- package/dist/src/core/notification/subscription /subscription.controller.d.ts +7 -0
- package/dist/src/core/notification/subscription /subscription.controller.js +51 -0
- package/dist/src/core/notification/subscription /subscription.controller.js.map +1 -0
- package/dist/src/core/notification/subscription /subscription.layout.d.ts +2 -0
- package/dist/src/core/notification/subscription /subscription.layout.js +5 -0
- package/dist/src/core/notification/subscription /subscription.layout.js.map +1 -0
- package/dist/src/core/notification/subscription /subscription.schema.d.ts +11 -0
- package/dist/src/core/notification/subscription /subscription.schema.js +48 -0
- package/dist/src/core/notification/subscription /subscription.schema.js.map +1 -0
- package/dist/src/core/notification/subscription /subscription.service.d.ts +14 -0
- package/dist/src/core/notification/subscription /subscription.service.js +82 -0
- package/dist/src/core/notification/subscription /subscription.service.js.map +1 -0
- package/dist/src/core/pipeline/job/job.controller.d.ts +8 -0
- package/dist/src/core/pipeline/job/job.controller.js +59 -0
- package/dist/src/core/pipeline/job/job.controller.js.map +1 -0
- package/dist/src/core/pipeline/job/job.layout.d.ts +2 -0
- package/dist/src/core/pipeline/job/job.layout.js +5 -0
- package/dist/src/core/pipeline/job/job.layout.js.map +1 -0
- package/dist/src/core/pipeline/job/job.schema.d.ts +16 -0
- package/dist/src/core/pipeline/job/job.schema.js +80 -0
- package/dist/src/core/pipeline/job/job.schema.js.map +1 -0
- package/dist/src/core/pipeline/job/job.service.d.ts +21 -0
- package/dist/src/core/pipeline/job/job.service.js +259 -0
- package/dist/src/core/pipeline/job/job.service.js.map +1 -0
- package/dist/src/core/pipeline/log/log.layout.d.ts +2 -0
- package/dist/src/core/pipeline/log/log.layout.js +276 -0
- package/dist/src/core/pipeline/log/log.layout.js.map +1 -0
- package/dist/src/core/pipeline/log/log.schema.d.ts +20 -0
- package/dist/src/core/pipeline/log/log.schema.js +93 -0
- package/dist/src/core/pipeline/log/log.schema.js.map +1 -0
- package/dist/src/core/pipeline/log/log.service.d.ts +12 -0
- package/dist/src/core/pipeline/log/log.service.js +48 -0
- package/dist/src/core/pipeline/log/log.service.js.map +1 -0
- package/dist/src/core/pipeline/pipeline.controller.d.ts +6 -0
- package/dist/src/core/pipeline/pipeline.controller.js +41 -0
- package/dist/src/core/pipeline/pipeline.controller.js.map +1 -0
- package/dist/src/core/pipeline/pipeline.dto.d.ts +5 -0
- package/dist/src/core/pipeline/pipeline.dto.js +7 -0
- package/dist/src/core/pipeline/pipeline.dto.js.map +1 -0
- package/dist/src/core/pipeline/pipeline.enum.d.ts +16 -0
- package/dist/src/core/pipeline/pipeline.enum.js +23 -0
- package/dist/src/core/pipeline/pipeline.enum.js.map +1 -0
- package/dist/src/core/pipeline/pipeline.layout.d.ts +2 -0
- package/dist/src/core/pipeline/pipeline.layout.js +625 -0
- package/dist/src/core/pipeline/pipeline.layout.js.map +1 -0
- package/dist/src/core/pipeline/pipeline.module.d.ts +2 -0
- package/dist/src/core/pipeline/pipeline.module.js +59 -0
- package/dist/src/core/pipeline/pipeline.module.js.map +1 -0
- package/dist/src/core/pipeline/pipeline.schema.d.ts +11 -0
- package/dist/src/core/pipeline/pipeline.schema.js +39 -0
- package/dist/src/core/pipeline/pipeline.schema.js.map +1 -0
- package/dist/src/core/pipeline/pipeline.service.d.ts +21 -0
- package/dist/src/core/pipeline/pipeline.service.js +282 -0
- package/dist/src/core/pipeline/pipeline.service.js.map +1 -0
- package/dist/src/core/pipeline/pipeline.utils.d.ts +1 -0
- package/dist/src/core/pipeline/pipeline.utils.js +30 -0
- package/dist/src/core/pipeline/pipeline.utils.js.map +1 -0
- package/dist/src/core/pipeline/provider/base_pipeline.provider.d.ts +8 -0
- package/dist/src/core/pipeline/provider/base_pipeline.provider.js +16 -0
- package/dist/src/core/pipeline/provider/base_pipeline.provider.js.map +1 -0
- package/dist/src/core/pipeline/provider/pipeline.interface.d.ts +6 -0
- package/dist/src/core/pipeline/provider/pipeline.interface.js +3 -0
- package/dist/src/core/pipeline/provider/pipeline.interface.js.map +1 -0
- package/dist/src/core/queue/queue.controller.d.ts +21 -0
- package/dist/src/core/queue/queue.controller.js +99 -0
- package/dist/src/core/queue/queue.controller.js.map +1 -0
- package/dist/src/core/queue/queue.module.d.ts +4 -0
- package/dist/src/core/queue/queue.module.js +200 -0
- package/dist/src/core/queue/queue.module.js.map +1 -0
- package/dist/src/core/queue/queue.processor.d.ts +46 -0
- package/dist/src/core/queue/queue.processor.js +461 -0
- package/dist/src/core/queue/queue.processor.js.map +1 -0
- package/dist/src/core/queue/queue.service.d.ts +19 -0
- package/dist/src/core/queue/queue.service.js +73 -0
- package/dist/src/core/queue/queue.service.js.map +1 -0
- package/dist/src/core/reason/reason.layout.d.ts +4 -0
- package/dist/src/core/reason/reason.layout.js +579 -0
- package/dist/src/core/reason/reason.layout.js.map +1 -0
- package/dist/src/core/reason/reason.module.d.ts +2 -0
- package/dist/src/core/reason/reason.module.js +52 -0
- package/dist/src/core/reason/reason.module.js.map +1 -0
- package/dist/src/core/reason/reason.schema.d.ts +31 -0
- package/dist/src/core/reason/reason.schema.js +119 -0
- package/dist/src/core/reason/reason.schema.js.map +1 -0
- package/dist/src/core/reason/reason.service.d.ts +26 -0
- package/dist/src/core/reason/reason.service.js +82 -0
- package/dist/src/core/reason/reason.service.js.map +1 -0
- package/dist/src/core/redis/redis.constant.d.ts +2 -0
- package/dist/src/core/redis/redis.constant.js +6 -0
- package/dist/src/core/redis/redis.constant.js.map +1 -0
- package/dist/src/core/redis/redis.controller.d.ts +9 -0
- package/dist/src/core/redis/redis.controller.js +72 -0
- package/dist/src/core/redis/redis.controller.js.map +1 -0
- package/dist/src/core/redis/redis.module.d.ts +2 -0
- package/dist/src/core/redis/redis.module.js +24 -0
- package/dist/src/core/redis/redis.module.js.map +1 -0
- package/dist/src/core/redis/redis.service.d.ts +12 -0
- package/dist/src/core/redis/redis.service.js +145 -0
- package/dist/src/core/redis/redis.service.js.map +1 -0
- package/dist/src/core/rewrite_url/provider/provider.base.d.ts +7 -0
- package/dist/src/core/rewrite_url/provider/provider.base.js +12 -0
- package/dist/src/core/rewrite_url/provider/provider.base.js.map +1 -0
- package/dist/src/core/rewrite_url/provider/provider.interface.d.ts +9 -0
- package/dist/src/core/rewrite_url/provider/provider.interface.js +3 -0
- package/dist/src/core/rewrite_url/provider/provider.interface.js.map +1 -0
- package/dist/src/core/rewrite_url/rewrite_url.constant.d.ts +1 -0
- package/dist/src/core/rewrite_url/rewrite_url.constant.js +5 -0
- package/dist/src/core/rewrite_url/rewrite_url.constant.js.map +1 -0
- package/dist/src/core/rewrite_url/rewrite_url.controller.d.ts +7 -0
- package/dist/src/core/rewrite_url/rewrite_url.controller.js +52 -0
- package/dist/src/core/rewrite_url/rewrite_url.controller.js.map +1 -0
- package/dist/src/core/rewrite_url/rewrite_url.module.d.ts +2 -0
- package/dist/src/core/rewrite_url/rewrite_url.module.js +26 -0
- package/dist/src/core/rewrite_url/rewrite_url.module.js.map +1 -0
- package/dist/src/core/rewrite_url/rewrite_url.service.d.ts +10 -0
- package/dist/src/core/rewrite_url/rewrite_url.service.js +103 -0
- package/dist/src/core/rewrite_url/rewrite_url.service.js.map +1 -0
- package/dist/src/core/schedule_action/log/schedule_log.layout.d.ts +2 -0
- package/dist/src/core/schedule_action/log/schedule_log.layout.js +458 -0
- package/dist/src/core/schedule_action/log/schedule_log.layout.js.map +1 -0
- package/dist/src/core/schedule_action/log/schedule_log.schema.d.ts +15 -0
- package/dist/src/core/schedule_action/log/schedule_log.schema.js +70 -0
- package/dist/src/core/schedule_action/log/schedule_log.schema.js.map +1 -0
- package/dist/src/core/schedule_action/log/schedule_log.service.d.ts +12 -0
- package/dist/src/core/schedule_action/log/schedule_log.service.js +49 -0
- package/dist/src/core/schedule_action/log/schedule_log.service.js.map +1 -0
- package/dist/src/core/schedule_action/schedule_action.controller.d.ts +14 -0
- package/dist/src/core/schedule_action/schedule_action.controller.js +103 -0
- package/dist/src/core/schedule_action/schedule_action.controller.js.map +1 -0
- package/dist/src/core/schedule_action/schedule_action.enum.d.ts +12 -0
- package/dist/src/core/schedule_action/schedule_action.enum.js +19 -0
- package/dist/src/core/schedule_action/schedule_action.enum.js.map +1 -0
- package/dist/src/core/schedule_action/schedule_action.hook.d.ts +11 -0
- package/dist/src/core/schedule_action/schedule_action.hook.js +19 -0
- package/dist/src/core/schedule_action/schedule_action.hook.js.map +1 -0
- package/dist/src/core/schedule_action/schedule_action.layout.d.ts +2 -0
- package/dist/src/core/schedule_action/schedule_action.layout.js +615 -0
- package/dist/src/core/schedule_action/schedule_action.layout.js.map +1 -0
- package/dist/src/core/schedule_action/schedule_action.module.d.ts +2 -0
- package/dist/src/core/schedule_action/schedule_action.module.js +65 -0
- package/dist/src/core/schedule_action/schedule_action.module.js.map +1 -0
- package/dist/src/core/schedule_action/schedule_action.schema.d.ts +30 -0
- package/dist/src/core/schedule_action/schedule_action.schema.js +139 -0
- package/dist/src/core/schedule_action/schedule_action.schema.js.map +1 -0
- package/dist/src/core/schedule_action/schedule_action.service.d.ts +30 -0
- package/dist/src/core/schedule_action/schedule_action.service.js +319 -0
- package/dist/src/core/schedule_action/schedule_action.service.js.map +1 -0
- package/dist/src/core/schedule_action/schedule_action_cron.service.d.ts +17 -0
- package/dist/src/core/schedule_action/schedule_action_cron.service.js +222 -0
- package/dist/src/core/schedule_action/schedule_action_cron.service.js.map +1 -0
- package/dist/src/core/search_text/reindex_search_text/reindex_search_text.schema.d.ts +11 -0
- package/dist/src/core/search_text/reindex_search_text/reindex_search_text.schema.js +40 -0
- package/dist/src/core/search_text/reindex_search_text/reindex_search_text.schema.js.map +1 -0
- package/dist/src/core/search_text/reindex_search_text/reindex_search_text.service.d.ts +14 -0
- package/dist/src/core/search_text/reindex_search_text/reindex_search_text.service.js +74 -0
- package/dist/src/core/search_text/reindex_search_text/reindex_search_text.service.js.map +1 -0
- package/dist/src/core/search_text/search_text.controller.d.ts +8 -0
- package/dist/src/core/search_text/search_text.controller.js +57 -0
- package/dist/src/core/search_text/search_text.controller.js.map +1 -0
- package/dist/src/core/search_text/search_text.module.d.ts +2 -0
- package/dist/src/core/search_text/search_text.module.js +51 -0
- package/dist/src/core/search_text/search_text.module.js.map +1 -0
- package/dist/src/core/search_text/search_text.schema.d.ts +10 -0
- package/dist/src/core/search_text/search_text.schema.js +38 -0
- package/dist/src/core/search_text/search_text.schema.js.map +1 -0
- package/dist/src/core/search_text/search_text.service.d.ts +30 -0
- package/dist/src/core/search_text/search_text.service.js +295 -0
- package/dist/src/core/search_text/search_text.service.js.map +1 -0
- package/dist/src/core/setting/dto/auth_setting.dto.d.ts +43 -0
- package/dist/src/core/setting/dto/auth_setting.dto.js +151 -0
- package/dist/src/core/setting/dto/auth_setting.dto.js.map +1 -0
- package/dist/src/core/setting/dto/es_setting.dto.d.ts +3 -0
- package/dist/src/core/setting/dto/es_setting.dto.js +21 -0
- package/dist/src/core/setting/dto/es_setting.dto.js.map +1 -0
- package/dist/src/core/setting/dto/general_setting.dto.d.ts +10 -0
- package/dist/src/core/setting/dto/general_setting.dto.js +49 -0
- package/dist/src/core/setting/dto/general_setting.dto.js.map +1 -0
- package/dist/src/core/setting/dto/layout_setting.dto.d.ts +5 -0
- package/dist/src/core/setting/dto/layout_setting.dto.js +29 -0
- package/dist/src/core/setting/dto/layout_setting.dto.js.map +1 -0
- package/dist/src/core/setting/dto/log_setting.dto.d.ts +17 -0
- package/dist/src/core/setting/dto/log_setting.dto.js +57 -0
- package/dist/src/core/setting/dto/log_setting.dto.js.map +1 -0
- package/dist/src/core/setting/dto/login_method.dto.d.ts +4 -0
- package/dist/src/core/setting/dto/login_method.dto.js +25 -0
- package/dist/src/core/setting/dto/login_method.dto.js.map +1 -0
- package/dist/src/core/setting/dto/media_setting.dto.d.ts +29 -0
- package/dist/src/core/setting/dto/media_setting.dto.js +43 -0
- package/dist/src/core/setting/dto/media_setting.dto.js.map +1 -0
- package/dist/src/core/setting/dto/menu_setting.dto.d.ts +17 -0
- package/dist/src/core/setting/dto/menu_setting.dto.js +76 -0
- package/dist/src/core/setting/dto/menu_setting.dto.js.map +1 -0
- package/dist/src/core/setting/dto/queue_setting.dto.d.ts +3 -0
- package/dist/src/core/setting/dto/queue_setting.dto.js +21 -0
- package/dist/src/core/setting/dto/queue_setting.dto.js.map +1 -0
- package/dist/src/core/setting/dto/schedule_setting.dto.d.ts +5 -0
- package/dist/src/core/setting/dto/schedule_setting.dto.js +29 -0
- package/dist/src/core/setting/dto/schedule_setting.dto.js.map +1 -0
- package/dist/src/core/setting/dto/swagger_setting.dto.d.ts +5 -0
- package/dist/src/core/setting/dto/swagger_setting.dto.js +29 -0
- package/dist/src/core/setting/dto/swagger_setting.dto.js.map +1 -0
- package/dist/src/core/setting/setting.constant.d.ts +309 -0
- package/dist/src/core/setting/setting.constant.js +650 -0
- package/dist/src/core/setting/setting.constant.js.map +1 -0
- package/dist/src/core/setting/setting.controller.d.ts +54 -0
- package/dist/src/core/setting/setting.controller.js +487 -0
- package/dist/src/core/setting/setting.controller.js.map +1 -0
- package/dist/src/core/setting/setting.module.d.ts +2 -0
- package/dist/src/core/setting/setting.module.js +40 -0
- package/dist/src/core/setting/setting.module.js.map +1 -0
- package/dist/src/core/setting/setting.schema.d.ts +10 -0
- package/dist/src/core/setting/setting.schema.js +35 -0
- package/dist/src/core/setting/setting.schema.js.map +1 -0
- package/dist/src/core/setting/setting.service.d.ts +76 -0
- package/dist/src/core/setting/setting.service.js +1378 -0
- package/dist/src/core/setting/setting.service.js.map +1 -0
- package/dist/src/core/shortly/shortly.constant.d.ts +5 -0
- package/dist/src/core/shortly/shortly.constant.js +10 -0
- package/dist/src/core/shortly/shortly.constant.js.map +1 -0
- package/dist/src/core/shortly/shortly.module.d.ts +2 -0
- package/dist/src/core/shortly/shortly.module.js +42 -0
- package/dist/src/core/shortly/shortly.module.js.map +1 -0
- package/dist/src/core/shortly/url/url.controller.d.ts +6 -0
- package/dist/src/core/shortly/url/url.controller.js +41 -0
- package/dist/src/core/shortly/url/url.controller.js.map +1 -0
- package/dist/src/core/shortly/url/url.layout.d.ts +2 -0
- package/dist/src/core/shortly/url/url.layout.js +486 -0
- package/dist/src/core/shortly/url/url.layout.js.map +1 -0
- package/dist/src/core/shortly/url/url.schema.d.ts +15 -0
- package/dist/src/core/shortly/url/url.schema.js +69 -0
- package/dist/src/core/shortly/url/url.schema.js.map +1 -0
- package/dist/src/core/shortly/url/url.service.d.ts +16 -0
- package/dist/src/core/shortly/url/url.service.js +108 -0
- package/dist/src/core/shortly/url/url.service.js.map +1 -0
- package/dist/src/core/sms/log/sms_log.layout.d.ts +2 -0
- package/dist/src/core/sms/log/sms_log.layout.js +668 -0
- package/dist/src/core/sms/log/sms_log.layout.js.map +1 -0
- package/dist/src/core/sms/log/sms_log.schema.d.ts +27 -0
- package/dist/src/core/sms/log/sms_log.schema.js +115 -0
- package/dist/src/core/sms/log/sms_log.schema.js.map +1 -0
- package/dist/src/core/sms/log/sms_log.service.d.ts +14 -0
- package/dist/src/core/sms/log/sms_log.service.js +70 -0
- package/dist/src/core/sms/log/sms_log.service.js.map +1 -0
- package/dist/src/core/sms/sms.controller.d.ts +6 -0
- package/dist/src/core/sms/sms.controller.js +41 -0
- package/dist/src/core/sms/sms.controller.js.map +1 -0
- package/dist/src/core/sms/sms.enum.d.ts +12 -0
- package/dist/src/core/sms/sms.enum.js +19 -0
- package/dist/src/core/sms/sms.enum.js.map +1 -0
- package/dist/src/core/sms/sms.layout.d.ts +2 -0
- package/dist/src/core/sms/sms.layout.js +766 -0
- package/dist/src/core/sms/sms.layout.js.map +1 -0
- package/dist/src/core/sms/sms.module.d.ts +2 -0
- package/dist/src/core/sms/sms.module.js +49 -0
- package/dist/src/core/sms/sms.module.js.map +1 -0
- package/dist/src/core/sms/sms.schema.d.ts +24 -0
- package/dist/src/core/sms/sms.schema.js +107 -0
- package/dist/src/core/sms/sms.schema.js.map +1 -0
- package/dist/src/core/sms/sms.service.d.ts +16 -0
- package/dist/src/core/sms/sms.service.js +272 -0
- package/dist/src/core/sms/sms.service.js.map +1 -0
- package/dist/src/core/template/data/templates.json +192 -0
- package/dist/src/core/template/log/print_log.enum.d.ts +5 -0
- package/dist/src/core/template/log/print_log.enum.js +10 -0
- package/dist/src/core/template/log/print_log.enum.js.map +1 -0
- package/dist/src/core/template/log/print_log.layout.d.ts +2 -0
- package/dist/src/core/template/log/print_log.layout.js +483 -0
- package/dist/src/core/template/log/print_log.layout.js.map +1 -0
- package/dist/src/core/template/log/print_log.schema.d.ts +18 -0
- package/dist/src/core/template/log/print_log.schema.js +104 -0
- package/dist/src/core/template/log/print_log.schema.js.map +1 -0
- package/dist/src/core/template/log/print_log.service.d.ts +12 -0
- package/dist/src/core/template/log/print_log.service.js +49 -0
- package/dist/src/core/template/log/print_log.service.js.map +1 -0
- package/dist/src/core/template/provider/base_template.provider.d.ts +9 -0
- package/dist/src/core/template/provider/base_template.provider.js +22 -0
- package/dist/src/core/template/provider/base_template.provider.js.map +1 -0
- package/dist/src/core/template/provider/email.provider.d.ts +8 -0
- package/dist/src/core/template/provider/email.provider.js +155 -0
- package/dist/src/core/template/provider/email.provider.js.map +1 -0
- package/dist/src/core/template/provider/sms.provider.d.ts +8 -0
- package/dist/src/core/template/provider/sms.provider.js +93 -0
- package/dist/src/core/template/provider/sms.provider.js.map +1 -0
- package/dist/src/core/template/provider/template.interface.d.ts +7 -0
- package/dist/src/core/template/provider/template.interface.js +3 -0
- package/dist/src/core/template/provider/template.interface.js.map +1 -0
- package/dist/src/core/template/provider/template_email.provider.d.ts +8 -0
- package/dist/src/core/template/provider/template_email.provider.js +472 -0
- package/dist/src/core/template/provider/template_email.provider.js.map +1 -0
- package/dist/src/core/template/provider/template_print.provider.d.ts +9 -0
- package/dist/src/core/template/provider/template_print.provider.js +1114 -0
- package/dist/src/core/template/provider/template_print.provider.js.map +1 -0
- package/dist/src/core/template/provider/template_sms.provider.d.ts +8 -0
- package/dist/src/core/template/provider/template_sms.provider.js +453 -0
- package/dist/src/core/template/provider/template_sms.provider.js.map +1 -0
- package/dist/src/core/template/template.controller.d.ts +15 -0
- package/dist/src/core/template/template.controller.js +140 -0
- package/dist/src/core/template/template.controller.js.map +1 -0
- package/dist/src/core/template/template.enum.d.ts +34 -0
- package/dist/src/core/template/template.enum.js +43 -0
- package/dist/src/core/template/template.enum.js.map +1 -0
- package/dist/src/core/template/template.hook.d.ts +18 -0
- package/dist/src/core/template/template.hook.js +26 -0
- package/dist/src/core/template/template.hook.js.map +1 -0
- package/dist/src/core/template/template.layout.d.ts +2 -0
- package/dist/src/core/template/template.layout.js +399 -0
- package/dist/src/core/template/template.layout.js.map +1 -0
- package/dist/src/core/template/template.module.d.ts +2 -0
- package/dist/src/core/template/template.module.js +49 -0
- package/dist/src/core/template/template.module.js.map +1 -0
- package/dist/src/core/template/template.schema.d.ts +57 -0
- package/dist/src/core/template/template.schema.js +265 -0
- package/dist/src/core/template/template.schema.js.map +1 -0
- package/dist/src/core/template/template.service.d.ts +49 -0
- package/dist/src/core/template/template.service.js +900 -0
- package/dist/src/core/template/template.service.js.map +1 -0
- package/dist/src/core/template/template.utils.d.ts +25 -0
- package/dist/src/core/template/template.utils.js +292 -0
- package/dist/src/core/template/template.utils.js.map +1 -0
- package/dist/src/core/translate/translate.controller.d.ts +8 -0
- package/dist/src/core/translate/translate.controller.js +74 -0
- package/dist/src/core/translate/translate.controller.js.map +1 -0
- package/dist/src/core/translate/translate.enum.d.ts +5 -0
- package/dist/src/core/translate/translate.enum.js +10 -0
- package/dist/src/core/translate/translate.enum.js.map +1 -0
- package/dist/src/core/translate/translate.hook.d.ts +13 -0
- package/dist/src/core/translate/translate.hook.js +21 -0
- package/dist/src/core/translate/translate.hook.js.map +1 -0
- package/dist/src/core/translate/translate.json +2011 -0
- package/dist/src/core/translate/translate.layout.d.ts +2 -0
- package/dist/src/core/translate/translate.layout.js +95 -0
- package/dist/src/core/translate/translate.layout.js.map +1 -0
- package/dist/src/core/translate/translate.module.d.ts +2 -0
- package/dist/src/core/translate/translate.module.js +42 -0
- package/dist/src/core/translate/translate.module.js.map +1 -0
- package/dist/src/core/translate/translate.schema.d.ts +16 -0
- package/dist/src/core/translate/translate.schema.js +76 -0
- package/dist/src/core/translate/translate.schema.js.map +1 -0
- package/dist/src/core/translate/translate.service.d.ts +17 -0
- package/dist/src/core/translate/translate.service.js +139 -0
- package/dist/src/core/translate/translate.service.js.map +1 -0
- package/dist/src/core/users/user.config.d.ts +4 -0
- package/dist/src/core/users/user.config.js +8 -0
- package/dist/src/core/users/user.config.js.map +1 -0
- package/dist/src/core/users/user.constant.d.ts +4 -0
- package/dist/src/core/users/user.constant.js +36 -0
- package/dist/src/core/users/user.constant.js.map +1 -0
- package/dist/src/core/users/user.controller.d.ts +33 -0
- package/dist/src/core/users/user.controller.js +292 -0
- package/dist/src/core/users/user.controller.js.map +1 -0
- package/dist/src/core/users/user.enum.d.ts +40 -0
- package/dist/src/core/users/user.enum.js +48 -0
- package/dist/src/core/users/user.enum.js.map +1 -0
- package/dist/src/core/users/user.hook.d.ts +25 -0
- package/dist/src/core/users/user.hook.js +36 -0
- package/dist/src/core/users/user.hook.js.map +1 -0
- package/dist/src/core/users/user.layout.d.ts +4 -0
- package/dist/src/core/users/user.layout.js +2333 -0
- package/dist/src/core/users/user.layout.js.map +1 -0
- package/dist/src/core/users/user.module.d.ts +2 -0
- package/dist/src/core/users/user.module.js +77 -0
- package/dist/src/core/users/user.module.js.map +1 -0
- package/dist/src/core/users/user.permission.d.ts +2 -0
- package/dist/src/core/users/user.permission.js +10 -0
- package/dist/src/core/users/user.permission.js.map +1 -0
- package/dist/src/core/users/user.schema.d.ts +73 -0
- package/dist/src/core/users/user.schema.js +316 -0
- package/dist/src/core/users/user.schema.js.map +1 -0
- package/dist/src/core/users/user.service.d.ts +100 -0
- package/dist/src/core/users/user.service.js +1551 -0
- package/dist/src/core/users/user.service.js.map +1 -0
- package/dist/src/core/version_data/version_data.module.d.ts +2 -0
- package/dist/src/core/version_data/version_data.module.js +38 -0
- package/dist/src/core/version_data/version_data.module.js.map +1 -0
- package/dist/src/core/version_data/version_data.schema.d.ts +13 -0
- package/dist/src/core/version_data/version_data.schema.js +55 -0
- package/dist/src/core/version_data/version_data.schema.js.map +1 -0
- package/dist/src/core/version_data/version_data.service.d.ts +12 -0
- package/dist/src/core/version_data/version_data.service.js +43 -0
- package/dist/src/core/version_data/version_data.service.js.map +1 -0
- package/dist/src/core/widget/widget.controller.d.ts +6 -0
- package/dist/src/core/widget/widget.controller.js +42 -0
- package/dist/src/core/widget/widget.controller.js.map +1 -0
- package/dist/src/core/widget/widget.enum.d.ts +19 -0
- package/dist/src/core/widget/widget.enum.js +25 -0
- package/dist/src/core/widget/widget.enum.js.map +1 -0
- package/dist/src/core/widget/widget.module.d.ts +2 -0
- package/dist/src/core/widget/widget.module.js +40 -0
- package/dist/src/core/widget/widget.module.js.map +1 -0
- package/dist/src/core/widget/widget.schema.d.ts +21 -0
- package/dist/src/core/widget/widget.schema.js +94 -0
- package/dist/src/core/widget/widget.schema.js.map +1 -0
- package/dist/src/core/widget/widget.service.d.ts +15 -0
- package/dist/src/core/widget/widget.service.js +370 -0
- package/dist/src/core/widget/widget.service.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +5 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/main.js +235 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/modules/index.d.ts +1 -0
- package/dist/src/modules/index.js +6 -0
- package/dist/src/modules/index.js.map +1 -0
- package/dist/src/modules/modules.d.ts +3 -0
- package/dist/src/modules/modules.js +8 -0
- package/dist/src/modules/modules.js.map +1 -0
- package/dist/src/private.controller.d.ts +6 -0
- package/dist/src/private.controller.js +44 -0
- package/dist/src/private.controller.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/typings/node/index.d.ts +4 -0
- package/dist/typings/node/index.js +1 -0
- package/dist/typings/node/index.js.map +1 -0
- package/package.json +116 -0
|
@@ -0,0 +1,1378 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SettingService = void 0;
|
|
16
|
+
const _ = require("lodash");
|
|
17
|
+
const mongoose = require("mongoose");
|
|
18
|
+
const uuid_1 = require("uuid");
|
|
19
|
+
const bson_1 = require("bson");
|
|
20
|
+
const common_1 = require("@nestjs/common");
|
|
21
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
22
|
+
const schema_1 = require("../common/utils/schema");
|
|
23
|
+
const translate_enum_1 = require("../translate/translate.enum");
|
|
24
|
+
const user_enum_1 = require("../users/user.enum");
|
|
25
|
+
const setting_constant_1 = require("./setting.constant");
|
|
26
|
+
const decimal2Json_1 = require("../common/utils/decimal2Json");
|
|
27
|
+
const translate_1 = require("../common/utils/translate");
|
|
28
|
+
const constants_1 = require("../common/constants");
|
|
29
|
+
const redis_1 = require("../common/utils/redis");
|
|
30
|
+
const permission_1 = require("../common/utils/permission");
|
|
31
|
+
const nestjs_cls_1 = require("nestjs-cls");
|
|
32
|
+
const path_1 = require("path");
|
|
33
|
+
const entity_1 = require("../common/utils/entity");
|
|
34
|
+
const global_1 = require("../common/utils/global");
|
|
35
|
+
const external_module_1 = require("../common/utils/external_module");
|
|
36
|
+
const versionData = require((0, path_1.resolve)("version.json"));
|
|
37
|
+
const version = `${versionData.major}.${versionData.minor}.${versionData.patch}`;
|
|
38
|
+
const packageJson = require((0, path_1.resolve)("package.json"));
|
|
39
|
+
const softwareVersion = packageJson === null || packageJson === void 0 ? void 0 : packageJson.version;
|
|
40
|
+
const libVersion = _.get(packageJson, "dependencies.@shopstack/cc-core-lib") || "-";
|
|
41
|
+
const GOOGLE_SCOPES = [
|
|
42
|
+
"https://www.googleapis.com/auth/userinfo.profile",
|
|
43
|
+
"https://www.googleapis.com/auth/userinfo.email"
|
|
44
|
+
];
|
|
45
|
+
const DEFAULT_SYSTEM_AUTH_SETTING = {
|
|
46
|
+
local: {
|
|
47
|
+
enable: true
|
|
48
|
+
},
|
|
49
|
+
cognito: {
|
|
50
|
+
enable: true
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const DEFAULT_KEY_FILE = [
|
|
54
|
+
{
|
|
55
|
+
key: "global.default_profile",
|
|
56
|
+
path_file: "system/global_setting/profile"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
key: "login.logo",
|
|
60
|
+
path_file: "system/general_setting/logo"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
key: "login.background_image",
|
|
64
|
+
path_file: "system/general_setting/bg"
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
let SettingService = class SettingService {
|
|
68
|
+
constructor(cls, model) {
|
|
69
|
+
this.cls = cls;
|
|
70
|
+
this.model = model;
|
|
71
|
+
this._checkRestriction = async (items, roles) => {
|
|
72
|
+
const result = [];
|
|
73
|
+
for (const item of items) {
|
|
74
|
+
if (item.entity_name && item.layout) {
|
|
75
|
+
let entity;
|
|
76
|
+
try {
|
|
77
|
+
entity = await (0, schema_1.loadEntity)(item.entity_name);
|
|
78
|
+
}
|
|
79
|
+
catch (e) { }
|
|
80
|
+
if (!entity)
|
|
81
|
+
continue;
|
|
82
|
+
const layout = (entity.layouts || []).find(i => i.code === item.layout);
|
|
83
|
+
const restricts = _.get(layout, "restriction", []);
|
|
84
|
+
if (!_.isEmpty(restricts) &&
|
|
85
|
+
_.isEmpty(_.intersection(restricts, roles))) {
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if (_.get(item, "submenu.length", 0) > 0) {
|
|
90
|
+
item["submenu"] = await this._checkRestriction(item.submenu, roles);
|
|
91
|
+
}
|
|
92
|
+
result.push(item);
|
|
93
|
+
}
|
|
94
|
+
return result;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
async _initialSetting() {
|
|
98
|
+
(0, entity_1.initSetting)(setting_constant_1.INIT_GENERAL_SETTING);
|
|
99
|
+
const auth = JSON.parse(JSON.stringify(await this.model
|
|
100
|
+
.findOne({ code: "auth" })
|
|
101
|
+
.lean()
|
|
102
|
+
.exec()));
|
|
103
|
+
(0, entity_1.initSetting)(setting_constant_1.INIT_AUTH_SETTING);
|
|
104
|
+
constants_1.CONST.AUTH_SETTINGS = _.isEmpty(auth)
|
|
105
|
+
? setting_constant_1.INIT_AUTH_SETTING.values
|
|
106
|
+
: auth.values;
|
|
107
|
+
(0, entity_1.initSetting)(setting_constant_1.INIT_MEDIA_SETTING);
|
|
108
|
+
const media = JSON.parse(JSON.stringify(await this.model
|
|
109
|
+
.findOne({ code: "media" })
|
|
110
|
+
.lean()
|
|
111
|
+
.exec()));
|
|
112
|
+
const provider = _.get(media, "values.provider", setting_constant_1.INIT_MEDIA_SETTING.values.provider);
|
|
113
|
+
constants_1.CONST.MEDIA_SETTING = {
|
|
114
|
+
provider,
|
|
115
|
+
allow_extension_file: _.get(media, "values.allow_extension_file", setting_constant_1.INIT_MEDIA_SETTING.values.allow_extension_file),
|
|
116
|
+
allow_image_extension_file: _.get(media, "values.allow_image_extension_file", setting_constant_1.INIT_MEDIA_SETTING.values.allow_image_extension_file),
|
|
117
|
+
limit_file_size: _.get(media, "values.limit_file_size", setting_constant_1.INIT_MEDIA_SETTING.values.limit_file_size),
|
|
118
|
+
api_domain: _.get(media, "values.api_domain", setting_constant_1.INIT_MEDIA_SETTING.values.api_domain)
|
|
119
|
+
};
|
|
120
|
+
(0, entity_1.initSetting)(setting_constant_1.INIT_MENU_SETTING);
|
|
121
|
+
constants_1.CONST.LOG_ENTITY.push(...setting_constant_1.INIT_LOG_ENTITY);
|
|
122
|
+
(0, entity_1.initSetting)(setting_constant_1.INIT_LOG_SETTING);
|
|
123
|
+
const schedule = JSON.parse(JSON.stringify(await this.model
|
|
124
|
+
.findOne({ code: "schedule" })
|
|
125
|
+
.lean()
|
|
126
|
+
.exec()));
|
|
127
|
+
constants_1.CONST.SCHEDULE_SETTINGS = _.get(schedule, "values", setting_constant_1.INIT_SCHEDULE_SETTING.values);
|
|
128
|
+
(0, entity_1.initSetting)(setting_constant_1.INIT_SCHEDULE_SETTING);
|
|
129
|
+
}
|
|
130
|
+
async _settingApiVersion() {
|
|
131
|
+
const mongoUrl = process.env.MONGODB_URI.split("/");
|
|
132
|
+
const mongoDB = mongoUrl[mongoUrl.length - 1];
|
|
133
|
+
const startTime = await redis_1.redisCache.get("START_TIME");
|
|
134
|
+
const apiVersion = {
|
|
135
|
+
api_version: [
|
|
136
|
+
{
|
|
137
|
+
version: version,
|
|
138
|
+
deploy_date: startTime,
|
|
139
|
+
software_version: softwareVersion,
|
|
140
|
+
lib_version: libVersion,
|
|
141
|
+
node_version: process.version.slice(1),
|
|
142
|
+
node_env: process.env.NODE_ENV,
|
|
143
|
+
loop_back_ip: process.env.LOOP_BACK_IP,
|
|
144
|
+
mongo_db: mongoDB,
|
|
145
|
+
session_redis_url: process.env.SESSION_REDIS_URL,
|
|
146
|
+
cache_redis_url: process.env.CACHE_REDIS_URL,
|
|
147
|
+
queue_redis_url: process.env.QUEUE_REDIS_URL,
|
|
148
|
+
max_worker: process.env.MAX_WORKER,
|
|
149
|
+
queue_concurrency: process.env.QUEUE_CONCURRENCY
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
};
|
|
153
|
+
return await this.setAbout(apiVersion);
|
|
154
|
+
}
|
|
155
|
+
async init() {
|
|
156
|
+
await this._initialSetting();
|
|
157
|
+
return `[Setting Module] setting`;
|
|
158
|
+
}
|
|
159
|
+
async load() {
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
_checkPermission(allow_setting, code) {
|
|
163
|
+
const request = this.cls.get("request");
|
|
164
|
+
const permissonTab = _.get(request, "permisson_tab.system", {});
|
|
165
|
+
if (allow_setting || !request || (0, permission_1.isInternal)(request)) {
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
const fullAcess = _.get(request, "permissions", []).find(p => p.entity === "*");
|
|
169
|
+
if (fullAcess) {
|
|
170
|
+
return true;
|
|
171
|
+
}
|
|
172
|
+
const fullAccess = _.get(request, "permissions", []).find(p => p.entity === "entity" && p.access === user_enum_1.UserPermission.full_access);
|
|
173
|
+
if (!fullAccess) {
|
|
174
|
+
if (["menu", "general"].includes(code) &&
|
|
175
|
+
permissonTab.manage_theme_layout) {
|
|
176
|
+
return true;
|
|
177
|
+
}
|
|
178
|
+
throw new common_1.HttpException(`Access denied`, 401);
|
|
179
|
+
}
|
|
180
|
+
return true;
|
|
181
|
+
}
|
|
182
|
+
async updateVersion() {
|
|
183
|
+
return this._settingApiVersion();
|
|
184
|
+
}
|
|
185
|
+
async getCacheSetting() {
|
|
186
|
+
this._checkPermission();
|
|
187
|
+
const query = { code: "cache" };
|
|
188
|
+
const doc = await this.model.findOne(query).exec();
|
|
189
|
+
const res = (doc === null || doc === void 0 ? void 0 : doc.values) || {};
|
|
190
|
+
const modules = [];
|
|
191
|
+
for (const key in constants_1.CONST.CACHE_MODULES) {
|
|
192
|
+
const exists = ((res === null || res === void 0 ? void 0 : res.modules) || []).find(i => i.name === key);
|
|
193
|
+
modules.push({
|
|
194
|
+
name: key,
|
|
195
|
+
enabled: (exists === null || exists === void 0 ? void 0 : exists.enabled) || false,
|
|
196
|
+
ttl: (exists === null || exists === void 0 ? void 0 : exists.ttl) || 15,
|
|
197
|
+
warmup_list: (exists === null || exists === void 0 ? void 0 : exists.warmup_list) || []
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
res["modules"] = modules;
|
|
201
|
+
return res;
|
|
202
|
+
}
|
|
203
|
+
async setCacheSetting(dto) {
|
|
204
|
+
this._checkPermission();
|
|
205
|
+
const query = { code: "cache" };
|
|
206
|
+
let doc = await this.model
|
|
207
|
+
.findOne(query)
|
|
208
|
+
.lean()
|
|
209
|
+
.exec();
|
|
210
|
+
let result;
|
|
211
|
+
if (!doc) {
|
|
212
|
+
const dataModel = new this.model({
|
|
213
|
+
code: `cache`,
|
|
214
|
+
name: `Cache settings`,
|
|
215
|
+
values: dto
|
|
216
|
+
});
|
|
217
|
+
result = await dataModel.save();
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
doc.values = dto;
|
|
221
|
+
result = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
222
|
+
new: true
|
|
223
|
+
})).toObject();
|
|
224
|
+
}
|
|
225
|
+
return result === null || result === void 0 ? void 0 : result.values;
|
|
226
|
+
}
|
|
227
|
+
async getExtend(key) {
|
|
228
|
+
this._checkPermission();
|
|
229
|
+
const query = { code: `extend_${key}` };
|
|
230
|
+
const doc = await this.model
|
|
231
|
+
.findOne(query)
|
|
232
|
+
.lean()
|
|
233
|
+
.exec();
|
|
234
|
+
(0, decimal2Json_1.decimal2Json)(doc);
|
|
235
|
+
return _.get(doc, "values", {});
|
|
236
|
+
}
|
|
237
|
+
async setExtend(key, data) {
|
|
238
|
+
this._checkPermission();
|
|
239
|
+
const query = { code: `extend_${key}` };
|
|
240
|
+
let doc = await this.model
|
|
241
|
+
.findOne(query)
|
|
242
|
+
.lean()
|
|
243
|
+
.exec();
|
|
244
|
+
(0, decimal2Json_1.decimal2Json)(doc);
|
|
245
|
+
let result;
|
|
246
|
+
if (!doc) {
|
|
247
|
+
const dataModel = new this.model({
|
|
248
|
+
code: `extend_${key}`,
|
|
249
|
+
name: `${key} settings`,
|
|
250
|
+
values: data
|
|
251
|
+
});
|
|
252
|
+
result = await dataModel.save();
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
doc.values = data;
|
|
256
|
+
result = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
257
|
+
new: true
|
|
258
|
+
})).toObject();
|
|
259
|
+
}
|
|
260
|
+
return result.values;
|
|
261
|
+
}
|
|
262
|
+
async _populateLayoutOnMenu(data) {
|
|
263
|
+
for (const i of data) {
|
|
264
|
+
if (_.get(i, "menu.length", 0) > 0) {
|
|
265
|
+
await this._populateLayoutOnMenu(i.menu);
|
|
266
|
+
}
|
|
267
|
+
if (_.get(i, "submenu.length", 0) > 0) {
|
|
268
|
+
await this._populateLayoutOnMenu(i.submenu);
|
|
269
|
+
}
|
|
270
|
+
if (!_.isEmpty(i.entity_name)) {
|
|
271
|
+
const entity = await (0, schema_1.loadEntity)(i.entity_name);
|
|
272
|
+
const entityLayout = _.get(entity, "layouts", []).find(layout => layout.code === _.get(i, "layout", "default"));
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
async getMenuManage(allow_setting) {
|
|
277
|
+
const request = this.cls.get("request");
|
|
278
|
+
const permissonTab = _.get(request, "permisson_tab.system", {});
|
|
279
|
+
this._checkPermission(allow_setting || (permissonTab === null || permissonTab === void 0 ? void 0 : permissonTab.manage_theme_layout));
|
|
280
|
+
const query = { code: "menu" };
|
|
281
|
+
const doc = await this.model.findOne(query).exec();
|
|
282
|
+
let data = doc.values;
|
|
283
|
+
await this._populateLayoutOnMenu(data);
|
|
284
|
+
const permissions = _.get(request, "permissions", []).map(p => p.entity);
|
|
285
|
+
if (permissions.length === 0) {
|
|
286
|
+
return [];
|
|
287
|
+
}
|
|
288
|
+
if (!_.get(data, "0.api_key")) {
|
|
289
|
+
data = [{ api_key: null, allow_setting: true, menu: data }];
|
|
290
|
+
}
|
|
291
|
+
const apiKeys = await (0, schema_1.callListInternalService)("api_key", "", { enable: true }, undefined);
|
|
292
|
+
const result = [];
|
|
293
|
+
const defaultApiKey = apiKeys.rows.find(i => i.system);
|
|
294
|
+
let defaultMenu = data.find(i => i.api_key === defaultApiKey.id);
|
|
295
|
+
for (const apiKey of apiKeys.rows) {
|
|
296
|
+
const isDefault = defaultApiKey.id === apiKey.id;
|
|
297
|
+
result.push({
|
|
298
|
+
api_key: _.omit(apiKey, ["store_config"]),
|
|
299
|
+
allow_setting: isDefault,
|
|
300
|
+
menu: _.isEmpty(apiKey.menu_config)
|
|
301
|
+
? _.get(defaultMenu, "menu", [])
|
|
302
|
+
: apiKey.menu_config
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
return result;
|
|
306
|
+
}
|
|
307
|
+
async getMenu() {
|
|
308
|
+
const request = this.cls.get("request");
|
|
309
|
+
if (_.isEmpty(_.get(request, "profile"))) {
|
|
310
|
+
throw new common_1.HttpException(`Access denied to menu`, 403);
|
|
311
|
+
}
|
|
312
|
+
const menu = await this.getMenuManage(true);
|
|
313
|
+
let result = [];
|
|
314
|
+
let userMenu = menu.find(i => `${_.get(i, "api_key._id")}` === _.get(request, "api_key._id"));
|
|
315
|
+
if (!userMenu) {
|
|
316
|
+
userMenu = menu.find(i => i.api_key === null);
|
|
317
|
+
}
|
|
318
|
+
const roleCodes = _.map(_.get(request, "profile.roles", []), r => r.code);
|
|
319
|
+
const _checkRestricRoles = (menu) => {
|
|
320
|
+
const result = [];
|
|
321
|
+
for (const m of menu) {
|
|
322
|
+
const restrictRoles = m.restrict_roles || [];
|
|
323
|
+
if (!_.isEmpty(restrictRoles) &&
|
|
324
|
+
_.isEmpty(_.intersection(restrictRoles, roleCodes)))
|
|
325
|
+
continue;
|
|
326
|
+
if (!_.isEmpty(m["submenu"])) {
|
|
327
|
+
m["submenu"] = _checkRestricRoles(m["submenu"]);
|
|
328
|
+
}
|
|
329
|
+
if (!m["entity_name"] && _.isEmpty(m["submenu"]) && !m["module"])
|
|
330
|
+
continue;
|
|
331
|
+
result.push(m);
|
|
332
|
+
}
|
|
333
|
+
return result;
|
|
334
|
+
};
|
|
335
|
+
result = _checkRestricRoles(userMenu["menu"]);
|
|
336
|
+
result = await this._checkRestriction(result, roleCodes);
|
|
337
|
+
const fullAccess = _.get(request, "permissions", []).find(p => p.entity === "entity" && p.access === user_enum_1.UserPermission.full_access);
|
|
338
|
+
const permissions = _.get(request, "permissions", []).map(p => p.entity);
|
|
339
|
+
const _getMenuBaseOnPermission = (menu) => {
|
|
340
|
+
const result = [];
|
|
341
|
+
for (const m of menu) {
|
|
342
|
+
if (m.entity_name &&
|
|
343
|
+
(permissions.includes(m.entity_name) || fullAccess)) {
|
|
344
|
+
result.push(m);
|
|
345
|
+
}
|
|
346
|
+
if (m.module && !fullAccess) {
|
|
347
|
+
if (!(m === null || m === void 0 ? void 0 : m.permission_key))
|
|
348
|
+
continue;
|
|
349
|
+
const permissionKey = m.permission_key.replace(`${m.module}_`, "");
|
|
350
|
+
const havePermission = _.get(request, `permisson_tab.module.${m.module}.${permissionKey}`);
|
|
351
|
+
if (havePermission) {
|
|
352
|
+
result.push(m);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
if (m.module && fullAccess) {
|
|
356
|
+
result.push(m);
|
|
357
|
+
}
|
|
358
|
+
if (!_.isEmpty(m.submenu)) {
|
|
359
|
+
const submenu = _getMenuBaseOnPermission(m.submenu);
|
|
360
|
+
if (!_.isEmpty(submenu)) {
|
|
361
|
+
m.submenu = submenu;
|
|
362
|
+
result.push(m);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
return result;
|
|
367
|
+
};
|
|
368
|
+
result = _getMenuBaseOnPermission(result);
|
|
369
|
+
const _checkPermissionEntitiesMenu = (permisson_entities) => {
|
|
370
|
+
let isShowEntities = false;
|
|
371
|
+
for (const key of Object.keys(permisson_entities)) {
|
|
372
|
+
if (!["monitor", "setting"].includes(key)) {
|
|
373
|
+
if (permisson_entities[key]) {
|
|
374
|
+
isShowEntities = true;
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return isShowEntities;
|
|
380
|
+
};
|
|
381
|
+
const _checkPermissionSystemMenu = (menu, permisson, fullAccess, permisson_entities) => {
|
|
382
|
+
const showEntities = _checkPermissionEntitiesMenu(permisson_entities);
|
|
383
|
+
if (!fullAccess)
|
|
384
|
+
return [];
|
|
385
|
+
const result = [];
|
|
386
|
+
for (const m of menu) {
|
|
387
|
+
if (m.name === "modules") {
|
|
388
|
+
continue;
|
|
389
|
+
}
|
|
390
|
+
if (setting_constant_1.MENU_MONITORING_FULL.includes(m.name) &&
|
|
391
|
+
!fullAccess &&
|
|
392
|
+
!(permisson_entities === null || permisson_entities === void 0 ? void 0 : permisson_entities.monitor))
|
|
393
|
+
continue;
|
|
394
|
+
if (setting_constant_1.MENU_ENTITIES_FULL.includes(m.entity_name || m.module) &&
|
|
395
|
+
!fullAccess &&
|
|
396
|
+
!showEntities)
|
|
397
|
+
continue;
|
|
398
|
+
if (setting_constant_1.MENU_SETTING_ENTITY.includes(m.entity_name) &&
|
|
399
|
+
!permisson[`manage_${m.entity_name}`])
|
|
400
|
+
continue;
|
|
401
|
+
if (["files", "trash"].includes(m.entity_name) &&
|
|
402
|
+
!permisson.manage_storage)
|
|
403
|
+
continue;
|
|
404
|
+
if (["reason_master"].includes(m.entity_name) &&
|
|
405
|
+
!permisson.manage_reason)
|
|
406
|
+
continue;
|
|
407
|
+
if (["notification_message"].includes(m.entity_name) &&
|
|
408
|
+
!permisson.manage_notification) {
|
|
409
|
+
continue;
|
|
410
|
+
}
|
|
411
|
+
if (["shortly_url"].includes(m.entity_name) &&
|
|
412
|
+
!permisson.manage_shortly_url) {
|
|
413
|
+
continue;
|
|
414
|
+
}
|
|
415
|
+
if (["pipeline", "pipeline_job"].includes(m.entity_name) &&
|
|
416
|
+
!permisson.manage_pipeline) {
|
|
417
|
+
continue;
|
|
418
|
+
}
|
|
419
|
+
if (["theme_layout"].includes(m.name) &&
|
|
420
|
+
!permisson.manage_theme_layout) {
|
|
421
|
+
continue;
|
|
422
|
+
}
|
|
423
|
+
if (["custom_function"].includes(m.name) &&
|
|
424
|
+
!permisson.manage_custom_function) {
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
if (!_.isEmpty(m["submenu"])) {
|
|
428
|
+
m["submenu"] = _checkPermissionSystemMenu(m["submenu"], permisson, fullAccess, permisson_entities);
|
|
429
|
+
if (_.isEmpty(m["submenu"]))
|
|
430
|
+
continue;
|
|
431
|
+
}
|
|
432
|
+
result.push(m);
|
|
433
|
+
}
|
|
434
|
+
return result;
|
|
435
|
+
};
|
|
436
|
+
const _checkPermissionModulesMenu = (menu, permisson, fullAccess) => {
|
|
437
|
+
const request = this.cls.get("request");
|
|
438
|
+
const result = [];
|
|
439
|
+
for (const m of menu) {
|
|
440
|
+
if (!m.permission_key && (m.module || m.entity_name) && !fullAccess)
|
|
441
|
+
continue;
|
|
442
|
+
if (m.permission_key && !permisson[m.permission_key])
|
|
443
|
+
continue;
|
|
444
|
+
if (m.submenu && _.isEmpty(m["submenu"]))
|
|
445
|
+
continue;
|
|
446
|
+
if (!_.isEmpty(m["submenu"])) {
|
|
447
|
+
m["submenu"] = _checkPermissionModulesMenu(m["submenu"], permisson, fullAccess);
|
|
448
|
+
if (_.isEmpty(m["submenu"]))
|
|
449
|
+
continue;
|
|
450
|
+
}
|
|
451
|
+
result.push(m);
|
|
452
|
+
}
|
|
453
|
+
return result;
|
|
454
|
+
};
|
|
455
|
+
const isSystemAdmin = _.get(request, "profile.roles", []).some(i => i.code === "system_admin");
|
|
456
|
+
if (userMenu.allow_setting) {
|
|
457
|
+
let submenu = _.cloneDeep(constants_1.CONST.CUSTOM_MODULES_MENU);
|
|
458
|
+
if (!isSystemAdmin) {
|
|
459
|
+
const permissonTabModule = _.get(request, "permisson_tab.module", {});
|
|
460
|
+
const permissionKey = {};
|
|
461
|
+
for (const module of Object.keys(permissonTabModule)) {
|
|
462
|
+
for (const key of Object.keys(permissonTabModule[module])) {
|
|
463
|
+
permissionKey[`${module}_${key}`] = permissonTabModule[module][key];
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
submenu = _checkPermissionModulesMenu(_.cloneDeep(constants_1.CONST.CUSTOM_MODULES_MENU), permissionKey, fullAccess);
|
|
467
|
+
}
|
|
468
|
+
if (!_.isEmpty(submenu)) {
|
|
469
|
+
const uniqueSubmenu = _.uniqBy(submenu, "module_code");
|
|
470
|
+
result.push({
|
|
471
|
+
name: "Modules",
|
|
472
|
+
icon: "Settings",
|
|
473
|
+
submenu: [
|
|
474
|
+
{
|
|
475
|
+
name: "Menu Modules",
|
|
476
|
+
icon: "Settings",
|
|
477
|
+
label: "Menu Modules",
|
|
478
|
+
submenu: uniqueSubmenu
|
|
479
|
+
}
|
|
480
|
+
]
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
result = (0, translate_1.translateMenu)(result, _.get(request, "headers.accept-language"));
|
|
485
|
+
const permisson_entities = _.get(request, "permisson_entities", {});
|
|
486
|
+
if (userMenu.allow_setting) {
|
|
487
|
+
let menuSetting = _.cloneDeep(setting_constant_1.MENU_SETTING);
|
|
488
|
+
if (!isSystemAdmin) {
|
|
489
|
+
const permissonTabSystem = _.get(request, "permisson_tab.system", {});
|
|
490
|
+
menuSetting = _checkPermissionSystemMenu(menuSetting, permissonTabSystem, fullAccess, permisson_entities);
|
|
491
|
+
}
|
|
492
|
+
if (!_.isEmpty(menuSetting)) {
|
|
493
|
+
result.push({
|
|
494
|
+
name: "Setting",
|
|
495
|
+
icon: "Settings",
|
|
496
|
+
label: "setting",
|
|
497
|
+
submenu: menuSetting
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
return result;
|
|
502
|
+
}
|
|
503
|
+
async setMenu(dto) {
|
|
504
|
+
const request = this.cls.get("request");
|
|
505
|
+
this._checkPermission(false, "menu");
|
|
506
|
+
const query = { code: "menu" };
|
|
507
|
+
const doc = await (await this.model.findOne(query)).toObject();
|
|
508
|
+
const values = doc.values.filter(i => i.api_key);
|
|
509
|
+
for (const item of dto) {
|
|
510
|
+
const isExists = values.findIndex(i => `${i.api_key}` === _.get(item, "api_key"));
|
|
511
|
+
if (isExists >= 0) {
|
|
512
|
+
values[isExists] = item;
|
|
513
|
+
}
|
|
514
|
+
else {
|
|
515
|
+
values.push(item);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
doc.values = values;
|
|
519
|
+
const data = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
520
|
+
new: true
|
|
521
|
+
})).toObject();
|
|
522
|
+
const menuSettings = _.get(request, "permissions", []).find(p => p.entity === "entity" && p.access === user_enum_1.UserPermission.full_access);
|
|
523
|
+
const apiKeys = await (0, schema_1.callListInternalService)("api_key", "", { enable: true }, undefined, "-store_config, -general_config, -menu_config");
|
|
524
|
+
const result = [];
|
|
525
|
+
for (const apiKey of apiKeys.rows) {
|
|
526
|
+
let menu = data.values.find(i => i.api_key === apiKey._id.toString());
|
|
527
|
+
if (!menu && apiKey.system) {
|
|
528
|
+
menu = data.values.find(i => i.api_key === null);
|
|
529
|
+
}
|
|
530
|
+
result.push({
|
|
531
|
+
api_key: apiKey,
|
|
532
|
+
allow_setting: _.get(menu, "allow_setting", false),
|
|
533
|
+
menu: _.get(menu, "menu", [])
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
return result;
|
|
537
|
+
}
|
|
538
|
+
async getLayout() {
|
|
539
|
+
this._checkPermission();
|
|
540
|
+
const query = { code: "layout" };
|
|
541
|
+
const doc = await this.model.findOne(query).exec();
|
|
542
|
+
return doc.values;
|
|
543
|
+
}
|
|
544
|
+
async setLayout(dto) {
|
|
545
|
+
this._checkPermission();
|
|
546
|
+
const query = { code: "layout" };
|
|
547
|
+
const doc = await (await this.model.findOne(query)).toObject();
|
|
548
|
+
doc.values = dto;
|
|
549
|
+
const result = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
550
|
+
new: true
|
|
551
|
+
})).toObject();
|
|
552
|
+
return result.values;
|
|
553
|
+
}
|
|
554
|
+
async getMedia() {
|
|
555
|
+
const query = { code: "media" };
|
|
556
|
+
const doc = await this.model.findOne(query).exec();
|
|
557
|
+
return _.get(doc, "values", {});
|
|
558
|
+
}
|
|
559
|
+
async setMedia(dto) {
|
|
560
|
+
this._checkPermission();
|
|
561
|
+
const valueMedia = await this.getMedia();
|
|
562
|
+
dto.provider = _.get(dto, "provider", "").toString();
|
|
563
|
+
for (const key in dto) {
|
|
564
|
+
_.set(valueMedia, `${key}`, _.get(dto, `${key}`));
|
|
565
|
+
}
|
|
566
|
+
const result = await this.model.findOneAndUpdate({ code: "media" }, {
|
|
567
|
+
code: "media",
|
|
568
|
+
name: "Media",
|
|
569
|
+
values: valueMedia
|
|
570
|
+
}, {
|
|
571
|
+
new: true,
|
|
572
|
+
upsert: true
|
|
573
|
+
});
|
|
574
|
+
_.set(valueMedia, 'host.local', `${valueMedia === null || valueMedia === void 0 ? void 0 : valueMedia.api_domain}/public`);
|
|
575
|
+
constants_1.CONST.MEDIA_SETTING = Object.assign(Object.assign({}, constants_1.CONST.MEDIA_SETTING), valueMedia);
|
|
576
|
+
const doc = {
|
|
577
|
+
event: constants_1.MEDIA_REFRESH,
|
|
578
|
+
_system: constants_1.CONST.SYSTEM_NAME,
|
|
579
|
+
_unique: constants_1.CONST.UNIQUE,
|
|
580
|
+
data: constants_1.CONST.MEDIA_SETTING
|
|
581
|
+
};
|
|
582
|
+
const buff = (0, bson_1.serialize)(doc);
|
|
583
|
+
const message = buff.toString("base64");
|
|
584
|
+
redis_1.redisPublisher.publish(constants_1.EVENT_TRIGGER, message);
|
|
585
|
+
return result.values;
|
|
586
|
+
}
|
|
587
|
+
async getTranslate() {
|
|
588
|
+
const request = this.cls.get("request");
|
|
589
|
+
const translates = await (0, global_1.getAllTranslates)();
|
|
590
|
+
return (translates[`${_.get(request, "api_key._id")}__${_.get(request, "headers.accept-language", "en-US")}`] || {});
|
|
591
|
+
}
|
|
592
|
+
async setTranslate(dto) {
|
|
593
|
+
this._checkPermission();
|
|
594
|
+
dto.type = translate_enum_1.TranslateType.system;
|
|
595
|
+
const data = await (0, schema_1.callListInternalService)("translate", "", {
|
|
596
|
+
type: "system",
|
|
597
|
+
language: _.get(dto, "language.id", "")
|
|
598
|
+
});
|
|
599
|
+
let result;
|
|
600
|
+
const translate = _.get(data, "rows[0]");
|
|
601
|
+
if (translate) {
|
|
602
|
+
dto.id = translate.id;
|
|
603
|
+
result = await (0, schema_1.callUpdateInternalService)("translate", dto);
|
|
604
|
+
}
|
|
605
|
+
else {
|
|
606
|
+
result = await (0, schema_1.callCreateInternalService)("translate", dto);
|
|
607
|
+
}
|
|
608
|
+
const doc = {
|
|
609
|
+
event: constants_1.TRANSLATE_REFRESH,
|
|
610
|
+
_system: constants_1.CONST.SYSTEM_NAME,
|
|
611
|
+
_unique: constants_1.CONST.UNIQUE,
|
|
612
|
+
data: {}
|
|
613
|
+
};
|
|
614
|
+
const buff = (0, bson_1.serialize)(doc);
|
|
615
|
+
const message = buff.toString("base64");
|
|
616
|
+
redis_1.redisPublisher.publish(constants_1.EVENT_TRIGGER, message);
|
|
617
|
+
return result;
|
|
618
|
+
}
|
|
619
|
+
async getDefaultTranslate() {
|
|
620
|
+
const defaultApiKey = await (0, schema_1.callFindInternalService)("api_key", "", {
|
|
621
|
+
is_default: true
|
|
622
|
+
});
|
|
623
|
+
const result = await (0, schema_1.callListInternalService)("translate", "", {
|
|
624
|
+
api_key: defaultApiKey.id
|
|
625
|
+
});
|
|
626
|
+
return result;
|
|
627
|
+
}
|
|
628
|
+
async setDefaultTranslate(dto) {
|
|
629
|
+
this._checkPermission();
|
|
630
|
+
dto.type = translate_enum_1.TranslateType.system;
|
|
631
|
+
const defaultApiKey = await (0, schema_1.callFindInternalService)("api_key", "", {
|
|
632
|
+
is_default: true
|
|
633
|
+
});
|
|
634
|
+
const data = await (0, schema_1.callListInternalService)("translate", "", {
|
|
635
|
+
api_key: defaultApiKey.id,
|
|
636
|
+
type: "system",
|
|
637
|
+
language: _.get(dto, "language.id", "")
|
|
638
|
+
});
|
|
639
|
+
let result;
|
|
640
|
+
const translate = _.get(data, "rows[0]");
|
|
641
|
+
if (translate) {
|
|
642
|
+
dto.id = translate.id;
|
|
643
|
+
dto.api_key = { id: defaultApiKey.id };
|
|
644
|
+
result = await (0, schema_1.callUpdateInternalService)("translate", dto);
|
|
645
|
+
}
|
|
646
|
+
else {
|
|
647
|
+
dto.api_key = { id: defaultApiKey.id };
|
|
648
|
+
result = await (0, schema_1.callCreateInternalService)("translate", dto);
|
|
649
|
+
}
|
|
650
|
+
const doc = {
|
|
651
|
+
event: constants_1.TRANSLATE_REFRESH,
|
|
652
|
+
_system: constants_1.CONST.SYSTEM_NAME,
|
|
653
|
+
_unique: constants_1.CONST.UNIQUE,
|
|
654
|
+
data: {}
|
|
655
|
+
};
|
|
656
|
+
const buff = (0, bson_1.serialize)(doc);
|
|
657
|
+
const message = buff.toString("base64");
|
|
658
|
+
redis_1.redisPublisher.publish(constants_1.EVENT_TRIGGER, message);
|
|
659
|
+
return result;
|
|
660
|
+
}
|
|
661
|
+
async getAuth() {
|
|
662
|
+
this._checkPermission();
|
|
663
|
+
const query = { code: "auth" };
|
|
664
|
+
const doc = await this.model.findOne(query).exec();
|
|
665
|
+
if (!_.get(doc, "values.authenticator.type")) {
|
|
666
|
+
_.set(doc, "values.authenticator.type", "application");
|
|
667
|
+
}
|
|
668
|
+
return _.get(doc, "values", {});
|
|
669
|
+
}
|
|
670
|
+
async setAuth(dto) {
|
|
671
|
+
const value = await this.getAuth();
|
|
672
|
+
const valueAuth = _.merge(value, dto);
|
|
673
|
+
const query = { code: "auth" };
|
|
674
|
+
let doc = await this.model
|
|
675
|
+
.findOne(query)
|
|
676
|
+
.lean()
|
|
677
|
+
.exec();
|
|
678
|
+
let result;
|
|
679
|
+
if (!doc) {
|
|
680
|
+
const dataModel = new this.model({
|
|
681
|
+
code: "api_key",
|
|
682
|
+
name: "Api Key Setting",
|
|
683
|
+
values: valueAuth
|
|
684
|
+
});
|
|
685
|
+
result = await dataModel.save();
|
|
686
|
+
}
|
|
687
|
+
else {
|
|
688
|
+
doc.values = valueAuth;
|
|
689
|
+
result = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
690
|
+
new: true
|
|
691
|
+
})).toObject();
|
|
692
|
+
}
|
|
693
|
+
constants_1.CONST.AUTH_SETTINGS = result.values;
|
|
694
|
+
const refreshData = {
|
|
695
|
+
event: constants_1.AUTH_REFRESH,
|
|
696
|
+
_system: constants_1.CONST.SYSTEM_NAME,
|
|
697
|
+
_unique: constants_1.CONST.UNIQUE,
|
|
698
|
+
data: result.values
|
|
699
|
+
};
|
|
700
|
+
const buff = (0, bson_1.serialize)(refreshData);
|
|
701
|
+
const message = buff.toString("base64");
|
|
702
|
+
redis_1.redisPublisher.publish(constants_1.EVENT_TRIGGER, message);
|
|
703
|
+
return result.values;
|
|
704
|
+
}
|
|
705
|
+
async allowLoginMethods(domain) {
|
|
706
|
+
const request = this.cls.get("request");
|
|
707
|
+
const apiProviders = _.get(request, "api_key.allow_provider_redirect", []);
|
|
708
|
+
let setting2FA = {};
|
|
709
|
+
const __getLocalLoginMethod = () => {
|
|
710
|
+
if (!_.isEmpty(_.get(request, "api_key.allow_login_methods"))) {
|
|
711
|
+
const apiALM = _.get(request, "api_key.allow_login_methods", []);
|
|
712
|
+
return apiALM.length === 0 || apiALM.length > 1
|
|
713
|
+
? "password"
|
|
714
|
+
: apiALM.toString();
|
|
715
|
+
}
|
|
716
|
+
return "password";
|
|
717
|
+
};
|
|
718
|
+
const __getDefaultGateway = () => {
|
|
719
|
+
var _a;
|
|
720
|
+
if (!_.isEmpty(_.get(request, "api_key.default_gateway"))) {
|
|
721
|
+
return _.get(request, "api_key.default_gateway", "").toString();
|
|
722
|
+
}
|
|
723
|
+
if (setting2FA.type === "otp" && setting2FA.enable) {
|
|
724
|
+
return (_a = setting2FA.default_gateway) === null || _a === void 0 ? void 0 : _a.toString();
|
|
725
|
+
}
|
|
726
|
+
return undefined;
|
|
727
|
+
};
|
|
728
|
+
const query = { code: "auth" };
|
|
729
|
+
const doc = await this.model.findOne(query).exec();
|
|
730
|
+
const values = _.get(doc, "values", {});
|
|
731
|
+
const providers = constants_1.CONST.CUSTOM_PROVIDERS.filter(p => p.module_code === "auth").filter(p => p.provider_type !== "inherit_login");
|
|
732
|
+
const result = [];
|
|
733
|
+
const stepRegistration = _.get(request, "api_key.step_registration", []);
|
|
734
|
+
const allowRegistration = _.get(request, "api_key.allow_registration", false);
|
|
735
|
+
result.push({
|
|
736
|
+
code: "registration",
|
|
737
|
+
allow_registration: allowRegistration,
|
|
738
|
+
step_registration: stepRegistration
|
|
739
|
+
});
|
|
740
|
+
for (const k of Object.keys(values)) {
|
|
741
|
+
const v = values[k];
|
|
742
|
+
if (k === "authenticator") {
|
|
743
|
+
setting2FA = v;
|
|
744
|
+
continue;
|
|
745
|
+
}
|
|
746
|
+
if (!v.enable && k !== "activate_account")
|
|
747
|
+
continue;
|
|
748
|
+
if (!v.send_email && k === "activate_account")
|
|
749
|
+
continue;
|
|
750
|
+
if (k === "recaptcha") {
|
|
751
|
+
result.push({
|
|
752
|
+
code: k,
|
|
753
|
+
version: v.version,
|
|
754
|
+
site_key: v.site_key
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
else if (k === "local") {
|
|
758
|
+
result.push({
|
|
759
|
+
code: k,
|
|
760
|
+
remember: v === null || v === void 0 ? void 0 : v.remember,
|
|
761
|
+
change_expired_password_form: v.change_expired_password_form,
|
|
762
|
+
login_method: __getLocalLoginMethod(),
|
|
763
|
+
default_gateway: __getDefaultGateway()
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
else if (k === "activate_account") {
|
|
767
|
+
result.push({
|
|
768
|
+
code: k,
|
|
769
|
+
send_email: v === null || v === void 0 ? void 0 : v.send_email,
|
|
770
|
+
default_gateway: v === null || v === void 0 ? void 0 : v.default_gateway
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
else {
|
|
774
|
+
if (!_.isEmpty(apiProviders) && !apiProviders.includes(k))
|
|
775
|
+
continue;
|
|
776
|
+
const provider = providers.find(i => i.code === k);
|
|
777
|
+
if (_.isUndefined(provider))
|
|
778
|
+
continue;
|
|
779
|
+
if (provider === null || provider === void 0 ? void 0 : provider.external) {
|
|
780
|
+
const config = await (0, external_module_1.callExecuteExternalProviderModule)("auth", k, "getConfig", [{
|
|
781
|
+
settings: _.get(constants_1.CONST.AUTH_SETTINGS, provider.code),
|
|
782
|
+
domain
|
|
783
|
+
}]);
|
|
784
|
+
if (config && config.type !== "inherit_login") {
|
|
785
|
+
provider["domain"] = domain;
|
|
786
|
+
result.push(config);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
else {
|
|
790
|
+
const obj = new provider.provider(_.get(constants_1.CONST.AUTH_SETTINGS, provider.code));
|
|
791
|
+
if (obj.getType() !== "inherit_login") {
|
|
792
|
+
provider["domain"] = domain;
|
|
793
|
+
const config = await obj.getConfig(provider);
|
|
794
|
+
result.push(config);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
return result;
|
|
800
|
+
}
|
|
801
|
+
async getImportExport() {
|
|
802
|
+
const general = await this.getGeneral();
|
|
803
|
+
const import_export = _.get(general, "import_export_setting", {});
|
|
804
|
+
return { import_export_setting: import_export };
|
|
805
|
+
}
|
|
806
|
+
async setImportExport(dto) {
|
|
807
|
+
const import_export = _.get(dto, "import_export_setting", {});
|
|
808
|
+
const resGeneral = await this.setGeneral({
|
|
809
|
+
import_export_setting: import_export
|
|
810
|
+
});
|
|
811
|
+
return {
|
|
812
|
+
import_export_setting: resGeneral
|
|
813
|
+
};
|
|
814
|
+
}
|
|
815
|
+
async getLogs() {
|
|
816
|
+
const log = await this.getLog();
|
|
817
|
+
return {
|
|
818
|
+
log
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
async setLogs(dto) {
|
|
822
|
+
const log = _.get(dto, "log", {});
|
|
823
|
+
const resLog = await this.setLog(log);
|
|
824
|
+
return {
|
|
825
|
+
log: resLog
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
async getGeneral() {
|
|
829
|
+
const query = { code: "general" };
|
|
830
|
+
const doc = await this.model.findOne(query).exec();
|
|
831
|
+
let value = _.get(doc, "values", {});
|
|
832
|
+
const request = this.cls.get("request");
|
|
833
|
+
if (!_.isEmpty(_.get(request, "api_key.id"))) {
|
|
834
|
+
const apiKey = await (0, schema_1.callGetInternalService)("api_key", _.get(request, "api_key.id"));
|
|
835
|
+
if (!_.isEmpty(apiKey.general_config)) {
|
|
836
|
+
value = _.merge(value, apiKey.general_config);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
constants_1.CONST.SETTING_GENERAL = value;
|
|
840
|
+
return value;
|
|
841
|
+
}
|
|
842
|
+
async converFileGeneral(dto) {
|
|
843
|
+
const oldData = _.cloneDeep(dto);
|
|
844
|
+
for (let index = 0; index < DEFAULT_KEY_FILE.length; index++) {
|
|
845
|
+
const defaultFile = DEFAULT_KEY_FILE[index];
|
|
846
|
+
const key = _.get(defaultFile, "key");
|
|
847
|
+
const pathFile = _.get(defaultFile, "path_file");
|
|
848
|
+
const dataFile = _.get(oldData, key);
|
|
849
|
+
let imageUrl;
|
|
850
|
+
if (dataFile && !_.isEmpty(dataFile) && _.isArray(dataFile)) {
|
|
851
|
+
for (const data of dataFile) {
|
|
852
|
+
if (data.image_url) {
|
|
853
|
+
_.set(oldData, key, data.image_url);
|
|
854
|
+
continue;
|
|
855
|
+
}
|
|
856
|
+
if (data.file_url) {
|
|
857
|
+
_.set(oldData, key, data.file_url);
|
|
858
|
+
continue;
|
|
859
|
+
}
|
|
860
|
+
if (data === null || data === void 0 ? void 0 : data.upload_data) {
|
|
861
|
+
if (data.upload_data.startsWith("http")) {
|
|
862
|
+
imageUrl = data.upload_data;
|
|
863
|
+
continue;
|
|
864
|
+
}
|
|
865
|
+
const params = {
|
|
866
|
+
data: data.upload_data,
|
|
867
|
+
field_type: "file",
|
|
868
|
+
path: pathFile,
|
|
869
|
+
is_public: true
|
|
870
|
+
};
|
|
871
|
+
if (data.name) {
|
|
872
|
+
params["name"] = data.name;
|
|
873
|
+
}
|
|
874
|
+
const res = await (0, schema_1.callUploadImageInternal)(params);
|
|
875
|
+
imageUrl = _.get(res, "file_url", "");
|
|
876
|
+
}
|
|
877
|
+
_.set(oldData, key, imageUrl);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
return oldData;
|
|
882
|
+
}
|
|
883
|
+
async setGeneral(dto) {
|
|
884
|
+
this._checkPermission(false, "general");
|
|
885
|
+
dto = await this.converFileGeneral(dto);
|
|
886
|
+
const query = { code: "general" };
|
|
887
|
+
let doc = await this.model
|
|
888
|
+
.findOne(query)
|
|
889
|
+
.lean()
|
|
890
|
+
.exec();
|
|
891
|
+
let result;
|
|
892
|
+
if (!doc) {
|
|
893
|
+
const dataModel = new this.model({
|
|
894
|
+
code: "general",
|
|
895
|
+
name: "General Setting",
|
|
896
|
+
values: dto
|
|
897
|
+
});
|
|
898
|
+
result = await dataModel.save();
|
|
899
|
+
}
|
|
900
|
+
else {
|
|
901
|
+
for (const key of Object.keys(dto)) {
|
|
902
|
+
doc.values[key] = Object.assign(Object.assign({}, doc.values[key]), dto[key]);
|
|
903
|
+
}
|
|
904
|
+
result = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
905
|
+
new: true
|
|
906
|
+
})).toObject();
|
|
907
|
+
}
|
|
908
|
+
constants_1.CONST.SETTING_GENERAL = result.values;
|
|
909
|
+
return result.values;
|
|
910
|
+
}
|
|
911
|
+
async getLog() {
|
|
912
|
+
this._checkPermission();
|
|
913
|
+
const query = { code: "log" };
|
|
914
|
+
const doc = await this.model.findOne(query).exec();
|
|
915
|
+
return _.get(doc, "values", {});
|
|
916
|
+
}
|
|
917
|
+
async setLog(dto) {
|
|
918
|
+
this._checkPermission();
|
|
919
|
+
const query = { code: "log" };
|
|
920
|
+
let doc = await this.model
|
|
921
|
+
.findOne(query)
|
|
922
|
+
.lean()
|
|
923
|
+
.exec();
|
|
924
|
+
let result;
|
|
925
|
+
if (!doc) {
|
|
926
|
+
const dataModel = new this.model({
|
|
927
|
+
code: "log",
|
|
928
|
+
name: "Log Setting",
|
|
929
|
+
values: dto
|
|
930
|
+
});
|
|
931
|
+
result = await dataModel.save();
|
|
932
|
+
}
|
|
933
|
+
else {
|
|
934
|
+
doc.values = dto;
|
|
935
|
+
result = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
936
|
+
new: true
|
|
937
|
+
})).toObject();
|
|
938
|
+
}
|
|
939
|
+
return result.values;
|
|
940
|
+
}
|
|
941
|
+
async getLogEntity() {
|
|
942
|
+
return _.uniqBy(constants_1.CONST.LOG_ENTITY, "entity");
|
|
943
|
+
}
|
|
944
|
+
async getAbout() {
|
|
945
|
+
this._checkPermission();
|
|
946
|
+
const version = await redis_1.redisCache.get("VERSION");
|
|
947
|
+
const apiVersions = _.get(version, "api_version", []);
|
|
948
|
+
if (!_.isEmpty(apiVersions)) {
|
|
949
|
+
apiVersions.forEach(apiVersion => {
|
|
950
|
+
apiVersion.session_redis_url = this._hideUrlPassword(apiVersion.session_redis_url);
|
|
951
|
+
apiVersion.cache_redis_url = this._hideUrlPassword(apiVersion.cache_redis_url);
|
|
952
|
+
apiVersion.queue_redis_url = this._hideUrlPassword(apiVersion.queue_redis_url);
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
return version || {};
|
|
956
|
+
}
|
|
957
|
+
_hideUrlPassword(url) {
|
|
958
|
+
if (!url)
|
|
959
|
+
return url;
|
|
960
|
+
const urlObj = new URL(url);
|
|
961
|
+
if (urlObj === null || urlObj === void 0 ? void 0 : urlObj.password) {
|
|
962
|
+
urlObj.password = "****";
|
|
963
|
+
}
|
|
964
|
+
return urlObj.toString();
|
|
965
|
+
}
|
|
966
|
+
async setAbout(dto) {
|
|
967
|
+
const version = (await redis_1.redisCache.get("VERSION")) || {};
|
|
968
|
+
if (_.has(dto, "admin_version")) {
|
|
969
|
+
_.set(version, "admin_version", dto.admin_version);
|
|
970
|
+
}
|
|
971
|
+
else {
|
|
972
|
+
_.set(version, "api_version", dto.api_version);
|
|
973
|
+
}
|
|
974
|
+
await redis_1.redisCache.set("VERSION", version);
|
|
975
|
+
return version;
|
|
976
|
+
}
|
|
977
|
+
async getSchedule() {
|
|
978
|
+
this._checkPermission();
|
|
979
|
+
const query = { code: "schedule" };
|
|
980
|
+
const doc = await this.model.findOne(query).exec();
|
|
981
|
+
const data = await redis_1.redisCache.get("SCHEDULE_ACTION");
|
|
982
|
+
_.set(doc, "values.status", _.get(data, "status"));
|
|
983
|
+
_.set(doc, "values.last_execute_time", _.get(data, "last_execute_time"));
|
|
984
|
+
return _.get(doc, "values", {});
|
|
985
|
+
}
|
|
986
|
+
async setSchedule(dto) {
|
|
987
|
+
this._checkPermission();
|
|
988
|
+
const query = { code: "schedule" };
|
|
989
|
+
let doc = await this.model
|
|
990
|
+
.findOne(query)
|
|
991
|
+
.lean()
|
|
992
|
+
.exec();
|
|
993
|
+
let result;
|
|
994
|
+
if (!doc) {
|
|
995
|
+
const dataModel = new this.model({
|
|
996
|
+
code: "schedule",
|
|
997
|
+
name: "Schedule Setting",
|
|
998
|
+
values: { enabled: dto.enabled }
|
|
999
|
+
});
|
|
1000
|
+
result = await dataModel.save();
|
|
1001
|
+
}
|
|
1002
|
+
else {
|
|
1003
|
+
doc.values = { enabled: dto.enabled };
|
|
1004
|
+
result = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
1005
|
+
new: true
|
|
1006
|
+
})).toObject();
|
|
1007
|
+
}
|
|
1008
|
+
constants_1.CONST.SCHEDULE_SETTINGS = result.values;
|
|
1009
|
+
const msg = {
|
|
1010
|
+
event: constants_1.SCHEDULE_REFRESH,
|
|
1011
|
+
_system: constants_1.CONST.SYSTEM_NAME,
|
|
1012
|
+
_unique: constants_1.CONST.UNIQUE,
|
|
1013
|
+
data: constants_1.CONST.SCHEDULE_SETTINGS
|
|
1014
|
+
};
|
|
1015
|
+
const buff = (0, bson_1.serialize)(msg);
|
|
1016
|
+
const message = buff.toString("base64");
|
|
1017
|
+
redis_1.redisPublisher.publish(constants_1.EVENT_TRIGGER, message);
|
|
1018
|
+
return result.values;
|
|
1019
|
+
}
|
|
1020
|
+
async getEs() {
|
|
1021
|
+
this._checkPermission();
|
|
1022
|
+
const query = { code: "es" };
|
|
1023
|
+
const doc = await this.model.findOne(query).exec();
|
|
1024
|
+
return _.get(doc, "values", {});
|
|
1025
|
+
}
|
|
1026
|
+
async setEs(dto) {
|
|
1027
|
+
this._checkPermission();
|
|
1028
|
+
const query = { code: "es" };
|
|
1029
|
+
let doc = await this.model
|
|
1030
|
+
.findOne(query)
|
|
1031
|
+
.lean()
|
|
1032
|
+
.exec();
|
|
1033
|
+
let result;
|
|
1034
|
+
if (!doc) {
|
|
1035
|
+
const dataModel = new this.model({
|
|
1036
|
+
code: "es",
|
|
1037
|
+
name: "Es Settings",
|
|
1038
|
+
values: dto
|
|
1039
|
+
});
|
|
1040
|
+
result = await dataModel.save();
|
|
1041
|
+
}
|
|
1042
|
+
else {
|
|
1043
|
+
doc.values = dto;
|
|
1044
|
+
result = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
1045
|
+
new: true
|
|
1046
|
+
})).toObject();
|
|
1047
|
+
}
|
|
1048
|
+
return result.values;
|
|
1049
|
+
}
|
|
1050
|
+
async getQueue() {
|
|
1051
|
+
this._checkPermission();
|
|
1052
|
+
const query = { code: "queue" };
|
|
1053
|
+
const doc = await this.model.findOne(query).exec();
|
|
1054
|
+
return _.get(doc, "values", {});
|
|
1055
|
+
}
|
|
1056
|
+
async setQueue(dto) {
|
|
1057
|
+
this._checkPermission();
|
|
1058
|
+
const query = { code: "queue" };
|
|
1059
|
+
let doc = await this.model
|
|
1060
|
+
.findOne(query)
|
|
1061
|
+
.lean()
|
|
1062
|
+
.exec();
|
|
1063
|
+
let result;
|
|
1064
|
+
if (!doc) {
|
|
1065
|
+
const dataModel = new this.model({
|
|
1066
|
+
code: "queue",
|
|
1067
|
+
name: "Queue Setting",
|
|
1068
|
+
values: dto
|
|
1069
|
+
});
|
|
1070
|
+
result = await dataModel.save();
|
|
1071
|
+
}
|
|
1072
|
+
else {
|
|
1073
|
+
doc.values = dto;
|
|
1074
|
+
result = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
1075
|
+
new: true
|
|
1076
|
+
})).toObject();
|
|
1077
|
+
}
|
|
1078
|
+
return result.values;
|
|
1079
|
+
}
|
|
1080
|
+
async getModuleSettings(code, layout) {
|
|
1081
|
+
if (!constants_1.CONST.CUSTOM_MODULES_SETTINGS[code]) {
|
|
1082
|
+
throw new Error(`Module ${code} code deosn't exists in system`);
|
|
1083
|
+
}
|
|
1084
|
+
const query = { code: `module_${code}` };
|
|
1085
|
+
const doc = await this.model
|
|
1086
|
+
.findOne(query)
|
|
1087
|
+
.lean()
|
|
1088
|
+
.exec();
|
|
1089
|
+
(0, decimal2Json_1.decimal2Json)(doc);
|
|
1090
|
+
return _.get(doc, `values`, {});
|
|
1091
|
+
}
|
|
1092
|
+
async setModuleSettings(code, layout, data) {
|
|
1093
|
+
if (!constants_1.CONST.CUSTOM_MODULES_SETTINGS[code]) {
|
|
1094
|
+
throw new Error(`Module ${code} code deosn't exists in system`);
|
|
1095
|
+
}
|
|
1096
|
+
const query = { code: `module_${code}` };
|
|
1097
|
+
let doc = await this.model
|
|
1098
|
+
.findOne(query)
|
|
1099
|
+
.lean()
|
|
1100
|
+
.exec();
|
|
1101
|
+
(0, decimal2Json_1.decimal2Json)(doc);
|
|
1102
|
+
let result;
|
|
1103
|
+
if (!doc) {
|
|
1104
|
+
const dataModel = new this.model({
|
|
1105
|
+
code: `module_${code}`,
|
|
1106
|
+
name: `${constants_1.CONST.CUSTOM_MODULES_SETTINGS[code].name}`,
|
|
1107
|
+
values: data
|
|
1108
|
+
});
|
|
1109
|
+
result = await dataModel.save();
|
|
1110
|
+
}
|
|
1111
|
+
else {
|
|
1112
|
+
doc.values = _.assign(doc.values, data);
|
|
1113
|
+
result = (await this.model.findOneAndUpdate({ _id: doc._id }, doc, {
|
|
1114
|
+
new: true
|
|
1115
|
+
})).toObject();
|
|
1116
|
+
}
|
|
1117
|
+
return result.values;
|
|
1118
|
+
}
|
|
1119
|
+
async getSettingsData(code) {
|
|
1120
|
+
this._checkPermission(false, code);
|
|
1121
|
+
if (code === "general") {
|
|
1122
|
+
return this.getGeneral();
|
|
1123
|
+
}
|
|
1124
|
+
if (code === "media") {
|
|
1125
|
+
return this.getMedia();
|
|
1126
|
+
}
|
|
1127
|
+
if (code === "auth") {
|
|
1128
|
+
return this.getAuth();
|
|
1129
|
+
}
|
|
1130
|
+
if (code === "schedule") {
|
|
1131
|
+
return this.getSchedule();
|
|
1132
|
+
}
|
|
1133
|
+
if (code === "log") {
|
|
1134
|
+
return this.getLog();
|
|
1135
|
+
}
|
|
1136
|
+
if (code === "about") {
|
|
1137
|
+
return this.getAbout();
|
|
1138
|
+
}
|
|
1139
|
+
if (code === "cache") {
|
|
1140
|
+
return this.getCacheSetting();
|
|
1141
|
+
}
|
|
1142
|
+
if (code === "es") {
|
|
1143
|
+
return this.getEs();
|
|
1144
|
+
}
|
|
1145
|
+
if (code === "import_export") {
|
|
1146
|
+
return this.getImportExport();
|
|
1147
|
+
}
|
|
1148
|
+
if (code === "logs") {
|
|
1149
|
+
return this.getLogs();
|
|
1150
|
+
}
|
|
1151
|
+
if (code === "queue") {
|
|
1152
|
+
return this.getQueue();
|
|
1153
|
+
}
|
|
1154
|
+
throw new Error(`Setting ${code} code deosn't exists in system`);
|
|
1155
|
+
}
|
|
1156
|
+
async updateSettingsData(code, data) {
|
|
1157
|
+
this._checkPermission(false, "general");
|
|
1158
|
+
if (code === "general") {
|
|
1159
|
+
return this.setGeneral(data);
|
|
1160
|
+
}
|
|
1161
|
+
if (code === "media") {
|
|
1162
|
+
return this.setMedia(data);
|
|
1163
|
+
}
|
|
1164
|
+
if (code === "auth") {
|
|
1165
|
+
return this.setAuth(data);
|
|
1166
|
+
}
|
|
1167
|
+
if (code === "schedule") {
|
|
1168
|
+
return this.setSchedule(data);
|
|
1169
|
+
}
|
|
1170
|
+
if (code === "log") {
|
|
1171
|
+
return this.setLog(data);
|
|
1172
|
+
}
|
|
1173
|
+
if (code === "es") {
|
|
1174
|
+
return this.setEs(data);
|
|
1175
|
+
}
|
|
1176
|
+
if (code === "cache") {
|
|
1177
|
+
return this.setCacheSetting(data);
|
|
1178
|
+
}
|
|
1179
|
+
if (code === "import_export") {
|
|
1180
|
+
return this.setImportExport(data);
|
|
1181
|
+
}
|
|
1182
|
+
if (code === "logs") {
|
|
1183
|
+
return this.setLogs(data);
|
|
1184
|
+
}
|
|
1185
|
+
if (code === "queue") {
|
|
1186
|
+
return this.setQueue(data);
|
|
1187
|
+
}
|
|
1188
|
+
throw new Error(`Setting ${code} code deosn't exists in system`);
|
|
1189
|
+
}
|
|
1190
|
+
async initRefresh() {
|
|
1191
|
+
for (const data of constants_1.CONST.INIT_REFRESH_SETTING_STACK) {
|
|
1192
|
+
const setting = await this.model
|
|
1193
|
+
.findOne({ code: data.code })
|
|
1194
|
+
.lean()
|
|
1195
|
+
.exec();
|
|
1196
|
+
if (_.isEmpty(setting)) {
|
|
1197
|
+
const dataModel = new this.model(data);
|
|
1198
|
+
await dataModel.save();
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
_getExternalDataSourceProvider(source) {
|
|
1203
|
+
const provider = this._getExternalProvider(source);
|
|
1204
|
+
const obj = new provider.provider();
|
|
1205
|
+
return obj;
|
|
1206
|
+
}
|
|
1207
|
+
_getExternalProvider(providerCode) {
|
|
1208
|
+
const provider = constants_1.CONST.CUSTOM_PROVIDERS.find(p => p.module_code === "external_data_source" && p.code === providerCode);
|
|
1209
|
+
if (_.isEmpty(provider)) {
|
|
1210
|
+
throw new Error(`Provide ${providerCode} does not exists in system`);
|
|
1211
|
+
}
|
|
1212
|
+
return provider;
|
|
1213
|
+
}
|
|
1214
|
+
async listExternalDataSource() {
|
|
1215
|
+
let external = _.reduce(constants_1.CONST.CUSTOM_PROVIDERS.filter(p => p.module_code === "external_data_source"), (r, v) => {
|
|
1216
|
+
r.push(_.omit(v, ["provider"]));
|
|
1217
|
+
return r;
|
|
1218
|
+
}, []);
|
|
1219
|
+
external = _.sortBy(external, ["name"]);
|
|
1220
|
+
const result = [{ code: "none", name: "None" }, ...external];
|
|
1221
|
+
return result;
|
|
1222
|
+
}
|
|
1223
|
+
async listExternalDataSourceConnector(source) {
|
|
1224
|
+
if (source === "none")
|
|
1225
|
+
return [];
|
|
1226
|
+
let result;
|
|
1227
|
+
const provider = this._getExternalProvider(source);
|
|
1228
|
+
if (provider === null || provider === void 0 ? void 0 : provider.external) {
|
|
1229
|
+
result = await (0, external_module_1.callExecuteExternalProviderModule)("external_data_source", source, "connector", []);
|
|
1230
|
+
}
|
|
1231
|
+
else {
|
|
1232
|
+
const providerClass = this._getExternalDataSourceProvider(source);
|
|
1233
|
+
result = await providerClass.connector();
|
|
1234
|
+
}
|
|
1235
|
+
return result;
|
|
1236
|
+
}
|
|
1237
|
+
fomatLogLabel(entityName) {
|
|
1238
|
+
const parts = entityName.split("_");
|
|
1239
|
+
if ((parts === null || parts === void 0 ? void 0 : parts.length) === 3)
|
|
1240
|
+
return `${parts[0].charAt(0).toUpperCase() +
|
|
1241
|
+
parts[0].slice(1)}/${parts[1].charAt(0).toUpperCase() +
|
|
1242
|
+
parts[1].slice(1)}`;
|
|
1243
|
+
return `${parts[0].charAt(0).toUpperCase() + parts[0].slice(1)}`;
|
|
1244
|
+
}
|
|
1245
|
+
async addLogsLayout(blocks) {
|
|
1246
|
+
constants_1.CONST.LOG_ENTITY.forEach(log => {
|
|
1247
|
+
const entityName = _.get(log, "entity");
|
|
1248
|
+
const enabledKey = `standard_component_switch_${(0, uuid_1.v4)()}`;
|
|
1249
|
+
const archiveKey = `standard_component_switch_${(0, uuid_1.v4)()}`;
|
|
1250
|
+
const retentionKey = `standard_component_switch_${(0, uuid_1.v4)()}`;
|
|
1251
|
+
const label = this.fomatLogLabel(entityName);
|
|
1252
|
+
blocks.push({
|
|
1253
|
+
key: (0, uuid_1.v4)(),
|
|
1254
|
+
type: "column",
|
|
1255
|
+
layout: {
|
|
1256
|
+
num_of_col: 3,
|
|
1257
|
+
fields: [
|
|
1258
|
+
[
|
|
1259
|
+
{
|
|
1260
|
+
field: "switch",
|
|
1261
|
+
type: "standard_component",
|
|
1262
|
+
unique_key: enabledKey,
|
|
1263
|
+
key: `log.${entityName}.enabled`,
|
|
1264
|
+
label: `Enabled Perge ${label} Log`,
|
|
1265
|
+
default_value: false,
|
|
1266
|
+
link_type: "key",
|
|
1267
|
+
yes_label: "Yes",
|
|
1268
|
+
no_label: "No",
|
|
1269
|
+
trigger: [
|
|
1270
|
+
{
|
|
1271
|
+
field: archiveKey,
|
|
1272
|
+
method: "show",
|
|
1273
|
+
value: `\${ log.${entityName}.enabled }`
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
field: retentionKey,
|
|
1277
|
+
method: "show",
|
|
1278
|
+
value: `\${ log.${entityName}.enabled }`
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
field: retentionKey,
|
|
1282
|
+
method: "required",
|
|
1283
|
+
value: `\${ log.${entityName}.enabled }`
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
field: archiveKey,
|
|
1287
|
+
method: "force_assign",
|
|
1288
|
+
value: `\${ log.${entityName}.enabled } === false ? false : \${ log.${entityName}.archive }`
|
|
1289
|
+
}
|
|
1290
|
+
],
|
|
1291
|
+
_translates: {
|
|
1292
|
+
"en-US": {
|
|
1293
|
+
label: `Enabled Perge ${label} Log`,
|
|
1294
|
+
placeholder: "",
|
|
1295
|
+
description: ""
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
],
|
|
1300
|
+
[
|
|
1301
|
+
{
|
|
1302
|
+
field: "switch",
|
|
1303
|
+
type: "standard_component",
|
|
1304
|
+
unique_key: archiveKey,
|
|
1305
|
+
key: `log.${entityName}.archive`,
|
|
1306
|
+
label: "Archive Log",
|
|
1307
|
+
default_value: false,
|
|
1308
|
+
link_type: "key",
|
|
1309
|
+
yes_label: "Yes",
|
|
1310
|
+
no_label: "No",
|
|
1311
|
+
trigger: [],
|
|
1312
|
+
_translates: {
|
|
1313
|
+
"en-US": {
|
|
1314
|
+
label: "Archive Log",
|
|
1315
|
+
placeholder: "",
|
|
1316
|
+
description: ""
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
],
|
|
1321
|
+
[
|
|
1322
|
+
{
|
|
1323
|
+
field: "input_number",
|
|
1324
|
+
type: "standard_component",
|
|
1325
|
+
unique_key: retentionKey,
|
|
1326
|
+
key: `log.${entityName}.x_day`,
|
|
1327
|
+
label: "Log Retention",
|
|
1328
|
+
link_type: "key",
|
|
1329
|
+
min_value: 1,
|
|
1330
|
+
suffix: "days",
|
|
1331
|
+
trigger: [],
|
|
1332
|
+
_translates: {
|
|
1333
|
+
"en-US": {
|
|
1334
|
+
label: "Log Retention",
|
|
1335
|
+
placeholder: "",
|
|
1336
|
+
description: ""
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1339
|
+
decimal_place: 0
|
|
1340
|
+
}
|
|
1341
|
+
]
|
|
1342
|
+
]
|
|
1343
|
+
}
|
|
1344
|
+
});
|
|
1345
|
+
});
|
|
1346
|
+
}
|
|
1347
|
+
async getExternalModuleSettings() {
|
|
1348
|
+
const externalModuleCodes = _.map(constants_1.CONST.CUSTOM_MODULES_MENU, "module_code");
|
|
1349
|
+
const customModuleMenu = constants_1.CONST.CUSTOM_MODULES_MENU;
|
|
1350
|
+
const settingLayouts = constants_1.CONST.SETTING_LAYOUTS;
|
|
1351
|
+
const customProvider = constants_1.CONST.CUSTOM_PROVIDERS.filter(p => externalModuleCodes.includes(p.code)).map(p => (Object.assign(Object.assign({}, p), { external: true, domain: constants_1.CONST.INTERNAL_DOMAIN })));
|
|
1352
|
+
const customExternalSchema = _.pickBy(constants_1.CONST.SCHEMAS_STACK, (_, key) => {
|
|
1353
|
+
return externalModuleCodes.some(code => key.startsWith(code));
|
|
1354
|
+
});
|
|
1355
|
+
const customModulePermissions = constants_1.CONST.CUSTOM_MODULES_PERMISSIONS;
|
|
1356
|
+
const customModulePermissionsLayout = constants_1.CONST.CUSTOM_MODULES_PERMISSIONS_LAYOUT;
|
|
1357
|
+
const customModuleMediaSettings = constants_1.CONST.MEDIA_SETTING;
|
|
1358
|
+
return {
|
|
1359
|
+
customModuleMenu: customModuleMenu,
|
|
1360
|
+
settingLayouts: settingLayouts,
|
|
1361
|
+
customProvider: customProvider,
|
|
1362
|
+
customModulePermissions: customModulePermissions,
|
|
1363
|
+
customModulePermissionsLayout: customModulePermissionsLayout,
|
|
1364
|
+
customModuleMediaSettings: customModuleMediaSettings,
|
|
1365
|
+
customExternalSchema: customExternalSchema
|
|
1366
|
+
};
|
|
1367
|
+
}
|
|
1368
|
+
async aggregateFunctions() {
|
|
1369
|
+
return _.sortBy(constants_1.CONST.AGGREGATE_FUNCTIONS, ["name"]);
|
|
1370
|
+
}
|
|
1371
|
+
};
|
|
1372
|
+
exports.SettingService = SettingService;
|
|
1373
|
+
exports.SettingService = SettingService = __decorate([
|
|
1374
|
+
(0, common_1.Injectable)(),
|
|
1375
|
+
__param(1, (0, mongoose_1.InjectModel)(`_setting`)),
|
|
1376
|
+
__metadata("design:paramtypes", [nestjs_cls_1.ClsService, mongoose.Model])
|
|
1377
|
+
], SettingService);
|
|
1378
|
+
//# sourceMappingURL=setting.service.js.map
|