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,930 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AuthService = void 0;
|
|
13
|
+
const _ = require("lodash");
|
|
14
|
+
const { v4: uuidv4 } = require("uuid");
|
|
15
|
+
const common_1 = require("@nestjs/common");
|
|
16
|
+
const user_enum_1 = require("../users/user.enum");
|
|
17
|
+
const schema_1 = require("../common/utils/schema");
|
|
18
|
+
const auth_local_provider_1 = require("./providers/auth_local.provider");
|
|
19
|
+
const token_1 = require("../common/utils/token");
|
|
20
|
+
const api_key_layout_1 = require("../api_key/api_key.layout");
|
|
21
|
+
const constants_1 = require("../common/constants");
|
|
22
|
+
const redis_1 = require("../common/utils/redis");
|
|
23
|
+
const time_1 = require("../common/utils/time");
|
|
24
|
+
const authenticator_1 = require("../common/utils/authenticator");
|
|
25
|
+
const recaptcha_1 = require("../common/utils/recaptcha");
|
|
26
|
+
const otp_1 = require("../common/utils/otp");
|
|
27
|
+
const user_enum_2 = require("../users/user.enum");
|
|
28
|
+
const nestjs_cls_1 = require("nestjs-cls");
|
|
29
|
+
const audit_log_enum_1 = require("../audit_log/audit_log.enum");
|
|
30
|
+
const constants_2 = require("./constants");
|
|
31
|
+
const global_1 = require("../common/utils/global");
|
|
32
|
+
const entity_1 = require("../common/utils/entity");
|
|
33
|
+
const auth_otp_provider_1 = require("./providers/auth_otp.provider");
|
|
34
|
+
const external_module_1 = require("../common/utils/external_module");
|
|
35
|
+
let AuthService = class AuthService {
|
|
36
|
+
constructor(cls) {
|
|
37
|
+
this.cls = cls;
|
|
38
|
+
this._isCompanyEnabled = async (session) => {
|
|
39
|
+
const company = _.get(session, "profile.company.enabled", false);
|
|
40
|
+
const user_roles = _.get(session, "profile.roles", []);
|
|
41
|
+
let haveSystemAdmin = false;
|
|
42
|
+
const roles = await (0, global_1.getUserRoles)();
|
|
43
|
+
for (const userRole of user_roles || []) {
|
|
44
|
+
const role = roles.find(r => r._id.toString() === _.get(userRole, "id", userRole._id));
|
|
45
|
+
if (role.code === "system_admin") {
|
|
46
|
+
haveSystemAdmin = true;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (!company && !haveSystemAdmin) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
return true;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
async init() {
|
|
56
|
+
var _a, _b, _c, _d;
|
|
57
|
+
const providers = constants_1.CONST.CUSTOM_PROVIDERS.filter(p => p.module_code === constants_2.MODULE_CODE);
|
|
58
|
+
const blocks = ((_b = (_a = constants_1.CONST.SETTING_LAYOUTS.find(i => i.code === "security")) === null || _a === void 0 ? void 0 : _a.detail) === null || _b === void 0 ? void 0 : _b.blocks) ||
|
|
59
|
+
[];
|
|
60
|
+
for (let i = 0; i < providers.length; i++) {
|
|
61
|
+
const provider = providers[i];
|
|
62
|
+
const block = (_c = blocks === null || blocks === void 0 ? void 0 : blocks[4]) === null || _c === void 0 ? void 0 : _c.body;
|
|
63
|
+
const sourceKeyExists = block === null || block === void 0 ? void 0 : block.find(item => item.source_key === provider.code);
|
|
64
|
+
if (!sourceKeyExists) {
|
|
65
|
+
const customModule = (_d = constants_1.CONST.CUSTOM_MODULES_SETTINGS[provider.code]) === null || _d === void 0 ? void 0 : _d.layouts[0];
|
|
66
|
+
block.push(customModule);
|
|
67
|
+
const obj = new provider.provider(_.get(constants_1.CONST.AUTH_SETTINGS, provider.code));
|
|
68
|
+
await obj.createSystemField();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
await this._prepareSystem();
|
|
72
|
+
return `Auth Service`;
|
|
73
|
+
}
|
|
74
|
+
async _getProvider(providerCode) {
|
|
75
|
+
if (providerCode === "local") {
|
|
76
|
+
return new auth_local_provider_1.AuthLocalProvider(_.get(constants_1.CONST.AUTH_SETTINGS, "local"));
|
|
77
|
+
}
|
|
78
|
+
const provider = (0, external_module_1.getCustomProviderConfig)(constants_2.MODULE_CODE, providerCode, 'and');
|
|
79
|
+
if (_.isEmpty(provider)) {
|
|
80
|
+
throw new Error(`Provider ${providerCode} does not exists in system`);
|
|
81
|
+
}
|
|
82
|
+
const obj = new provider.provider(_.get(constants_1.CONST.AUTH_SETTINGS, providerCode));
|
|
83
|
+
return obj;
|
|
84
|
+
}
|
|
85
|
+
async _prepareSystem() {
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
87
|
+
const defaultLayout = api_key_layout_1.ApikeyLayout[0];
|
|
88
|
+
const apiKeyBlock = defaultLayout.detail.blocks;
|
|
89
|
+
const authProviders = constants_1.CONST.CUSTOM_PROVIDERS.filter(i => i.module_code === constants_2.MODULE_CODE);
|
|
90
|
+
let redirectOptions = [];
|
|
91
|
+
const authColumn = (_d = (_c = (_b = (_a = apiKeyBlock[4]) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.blocks) === null || _d === void 0 ? void 0 : _d[0];
|
|
92
|
+
for (const provider of authProviders) {
|
|
93
|
+
try {
|
|
94
|
+
if (provider === null || provider === void 0 ? void 0 : provider.external)
|
|
95
|
+
continue;
|
|
96
|
+
const authProvider = await this._getProvider(provider.code);
|
|
97
|
+
if (authProvider.getType() === "inherit_login") {
|
|
98
|
+
(_j = (_h = (_g = (_f = (_e = authColumn === null || authColumn === void 0 ? void 0 : authColumn.layout) === null || _e === void 0 ? void 0 : _e.fields) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g[1]) === null || _h === void 0 ? void 0 : _h.options) === null || _j === void 0 ? void 0 : _j.push(provider === null || provider === void 0 ? void 0 : provider.code);
|
|
99
|
+
}
|
|
100
|
+
if (authProvider.getType() === "redirect") {
|
|
101
|
+
redirectOptions.push(provider === null || provider === void 0 ? void 0 : provider.code);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
catch (error) { }
|
|
105
|
+
}
|
|
106
|
+
if ((_o = (_m = (_l = (_k = authColumn === null || authColumn === void 0 ? void 0 : authColumn.layout) === null || _k === void 0 ? void 0 : _k.fields) === null || _l === void 0 ? void 0 : _l[1]) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.options) {
|
|
107
|
+
authColumn.layout.fields[1][0].options = _.uniq(redirectOptions);
|
|
108
|
+
}
|
|
109
|
+
(0, entity_1.addSystemLayout)("api_key", defaultLayout);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
async _getUserProfileLocal(id) {
|
|
113
|
+
let user = await redis_1.redisCache.get(`USER_${id}`);
|
|
114
|
+
if (_.isEmpty(user)) {
|
|
115
|
+
user = await (0, schema_1.callGetInternalService)("user", id);
|
|
116
|
+
await redis_1.redisCache.set(`USER_${id}`, user);
|
|
117
|
+
}
|
|
118
|
+
return user;
|
|
119
|
+
}
|
|
120
|
+
_mergePermissions(oldPermission, newPermission, haveSystemAdmin) {
|
|
121
|
+
for (const newP of newPermission) {
|
|
122
|
+
const newPV = _.get(newP, "permission", "").toString();
|
|
123
|
+
if (newPV === user_enum_1.UserPermission.access_denied.toString()) {
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
const oldP = oldPermission.find(p => p.entity === _.get(newP, "entity.name"));
|
|
127
|
+
if (!oldP) {
|
|
128
|
+
if (_.get(newP, "entity.name") === "entity") {
|
|
129
|
+
oldPermission.push({
|
|
130
|
+
entity: _.get(newP, "entity.name"),
|
|
131
|
+
access: _.get(newP, "permission", "").toString(),
|
|
132
|
+
enable_fields: haveSystemAdmin
|
|
133
|
+
? true
|
|
134
|
+
: _.get(newP, "enable_fields", false),
|
|
135
|
+
enable_layouts: haveSystemAdmin
|
|
136
|
+
? true
|
|
137
|
+
: _.get(newP, "enable_layouts", false),
|
|
138
|
+
enable_custom_action: haveSystemAdmin
|
|
139
|
+
? true
|
|
140
|
+
: _.get(newP, "enable_custom_action", false),
|
|
141
|
+
enable_hooks: haveSystemAdmin
|
|
142
|
+
? true
|
|
143
|
+
: _.get(newP, "enable_hooks", false),
|
|
144
|
+
enable_workflows: haveSystemAdmin
|
|
145
|
+
? true
|
|
146
|
+
: _.get(newP, "enable_workflows", false),
|
|
147
|
+
enable_permission: haveSystemAdmin
|
|
148
|
+
? true
|
|
149
|
+
: _.get(newP, "enable_permission", false),
|
|
150
|
+
enable_external_source: haveSystemAdmin
|
|
151
|
+
? true
|
|
152
|
+
: _.get(newP, "enable_external_source", false)
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
oldPermission.push({
|
|
157
|
+
entity: _.get(newP, "entity.name"),
|
|
158
|
+
access: _.get(newP, "permission", "").toString()
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
const oldPV = _.get(oldP, "access");
|
|
164
|
+
const oldET = _.get(oldP, "entity");
|
|
165
|
+
if (oldET === "entity") {
|
|
166
|
+
const oldIndex = oldPermission.findIndex(p => p.entity === "entity");
|
|
167
|
+
if (oldIndex !== -1) {
|
|
168
|
+
oldPermission[oldIndex] = {
|
|
169
|
+
entity: oldET,
|
|
170
|
+
access: oldPV,
|
|
171
|
+
enable_fields: haveSystemAdmin
|
|
172
|
+
? true
|
|
173
|
+
: _.get(oldP, "enable_fields", false)
|
|
174
|
+
? true
|
|
175
|
+
: _.get(newP, "enable_fields", false),
|
|
176
|
+
enable_layouts: haveSystemAdmin
|
|
177
|
+
? true
|
|
178
|
+
: _.get(oldP, "enable_layouts", false)
|
|
179
|
+
? true
|
|
180
|
+
: _.get(newP, "enable_layouts", false),
|
|
181
|
+
enable_custom_action: haveSystemAdmin
|
|
182
|
+
? true
|
|
183
|
+
: _.get(oldP, "enable_custom_action", false)
|
|
184
|
+
? true
|
|
185
|
+
: _.get(newP, "enable_custom_action", false),
|
|
186
|
+
enable_hooks: haveSystemAdmin
|
|
187
|
+
? true
|
|
188
|
+
: _.get(oldP, "enable_hooks", false)
|
|
189
|
+
? true
|
|
190
|
+
: _.get(newP, "enable_hooks", false),
|
|
191
|
+
enable_workflows: haveSystemAdmin
|
|
192
|
+
? true
|
|
193
|
+
: _.get(oldP, "enable_workflows", false)
|
|
194
|
+
? true
|
|
195
|
+
: _.get(newP, "enable_workflows", false),
|
|
196
|
+
enable_permission: haveSystemAdmin
|
|
197
|
+
? true
|
|
198
|
+
: _.get(oldP, "enable_permission", false)
|
|
199
|
+
? true
|
|
200
|
+
: _.get(newP, "enable_permission", false),
|
|
201
|
+
enable_external_source: haveSystemAdmin
|
|
202
|
+
? true
|
|
203
|
+
: _.get(oldP, "enable_external_source", false)
|
|
204
|
+
? true
|
|
205
|
+
: _.get(newP, "enable_external_source", false)
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (oldPV === user_enum_1.UserPermission.full_access.toString()) {
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
if (oldPV === user_enum_1.UserPermission.supervisor.toString() &&
|
|
213
|
+
[
|
|
214
|
+
user_enum_1.UserPermission.creator.toString(),
|
|
215
|
+
user_enum_1.UserPermission.editor.toString(),
|
|
216
|
+
user_enum_1.UserPermission.viewer.toString()
|
|
217
|
+
].includes(newPV)) {
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
if (oldPV === user_enum_1.UserPermission.creator.toString() &&
|
|
221
|
+
[
|
|
222
|
+
user_enum_1.UserPermission.editor.toString(),
|
|
223
|
+
user_enum_1.UserPermission.viewer.toString()
|
|
224
|
+
].includes(newPV)) {
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
if (oldPV === user_enum_1.UserPermission.editor.toString() &&
|
|
228
|
+
newPV === user_enum_1.UserPermission.viewer.toString()) {
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
oldP.access = _.get(newP, "permission", "").toString();
|
|
232
|
+
}
|
|
233
|
+
return oldPermission;
|
|
234
|
+
}
|
|
235
|
+
async _getUserProfileAndPermissions(id) {
|
|
236
|
+
const profile = await this._getUserProfileLocal(id);
|
|
237
|
+
if (!["active", "recovery", "password_expired"].includes(profile.status.toString())) {
|
|
238
|
+
throw new common_1.HttpException(user_enum_2.UserErrorCode.UAP014, 401);
|
|
239
|
+
}
|
|
240
|
+
let roles = await (0, global_1.getUserRoles)();
|
|
241
|
+
let permissions = [];
|
|
242
|
+
for (const userRole of profile.roles || []) {
|
|
243
|
+
const haveSystemAdmin = (userRole === null || userRole === void 0 ? void 0 : userRole.code) === "system_admin";
|
|
244
|
+
const rolePermissions = _.get(roles.find(r => `${_.get(r, "_id")}` === `${_.get(userRole, "_id")}`), "permissions", []);
|
|
245
|
+
permissions = this._mergePermissions(permissions, rolePermissions, haveSystemAdmin);
|
|
246
|
+
}
|
|
247
|
+
return { profile, permissions };
|
|
248
|
+
}
|
|
249
|
+
async _verifySystemKey(appKey, secretKey) {
|
|
250
|
+
let apiKey = await redis_1.redisCache.get(`API_KEY_${appKey}`);
|
|
251
|
+
if (_.isEmpty(apiKey)) {
|
|
252
|
+
apiKey = await (0, schema_1.callFindInternalService)("api_key", undefined, {
|
|
253
|
+
app_key: appKey,
|
|
254
|
+
secret_key: secretKey
|
|
255
|
+
}, undefined);
|
|
256
|
+
await redis_1.redisCache.set(`API_KEY_${appKey}`, _.omit(apiKey, ["store_config", "general_config", "menu_config"]));
|
|
257
|
+
}
|
|
258
|
+
return apiKey
|
|
259
|
+
? _.omit(apiKey, ["store_config", "general_config", "menu_config"])
|
|
260
|
+
: false;
|
|
261
|
+
}
|
|
262
|
+
_validateUserTypePermission(user, apiKey) {
|
|
263
|
+
let usertType = _.get(apiKey, "user_type", []);
|
|
264
|
+
if (!_.isArray(usertType))
|
|
265
|
+
usertType = [];
|
|
266
|
+
return usertType.includes(user === null || user === void 0 ? void 0 : user.user_type.toString());
|
|
267
|
+
}
|
|
268
|
+
async _verifySingleSession(token, userId, apiKey) {
|
|
269
|
+
const request = this.cls.get("request");
|
|
270
|
+
if (!_.get(constants_1.CONST.AUTH_SETTINGS, "multiple_session", true)) {
|
|
271
|
+
const oldSession = await redis_1.redisSession.scan(`*::${userId}`);
|
|
272
|
+
for (const key of oldSession) {
|
|
273
|
+
if (key === `${token}::${userId}`)
|
|
274
|
+
continue;
|
|
275
|
+
const session = await redis_1.redisSession.get(key);
|
|
276
|
+
const channel = session === null || session === void 0 ? void 0 : session.channel;
|
|
277
|
+
const apiKeySessionTTL = _.get(apiKey, "session_ttl");
|
|
278
|
+
const tokenTTL = apiKeySessionTTL
|
|
279
|
+
? (0, time_1.convertOffsetToNumber)(apiKeySessionTTL)
|
|
280
|
+
: _.get(constants_1.CONST.AUTH_SETTINGS, `${channel}.expires_in`)
|
|
281
|
+
? (0, time_1.convertOffsetToNumber)(_.get(constants_1.CONST.AUTH_SETTINGS, `${channel}.expires_in`))
|
|
282
|
+
: 0;
|
|
283
|
+
session["expires"] = {
|
|
284
|
+
ip: _.get(request, "ip"),
|
|
285
|
+
date: new Date()
|
|
286
|
+
};
|
|
287
|
+
await redis_1.redisSession.set(key, session, tokenTTL);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
async _loginResult(token, userId, extra, channel, apiKey, need_authenticator, writeSuccessLogin) {
|
|
292
|
+
const session = await this._getUserProfileAndPermissions(userId);
|
|
293
|
+
if (!this._validateUserTypePermission(session.profile, apiKey)) {
|
|
294
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
295
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
296
|
+
action: "api_key_user_type_denine",
|
|
297
|
+
event_date: new Date(),
|
|
298
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
299
|
+
user: _.get(session, "profile"),
|
|
300
|
+
raw_data: {
|
|
301
|
+
app_key: apiKey.app_key
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
throw new common_1.HttpException("permission_denied", 401);
|
|
305
|
+
}
|
|
306
|
+
const companyEnabled = await this._isCompanyEnabled(session);
|
|
307
|
+
if (!companyEnabled) {
|
|
308
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
309
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
310
|
+
action: "company_disabled",
|
|
311
|
+
event_date: new Date(),
|
|
312
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
313
|
+
user: _.get(session, "profile")
|
|
314
|
+
});
|
|
315
|
+
throw new common_1.HttpException(user_enum_2.UserErrorCode.UAP016, 400);
|
|
316
|
+
}
|
|
317
|
+
const apiKeySessionTTL = _.get(apiKey, "session_ttl");
|
|
318
|
+
const channelExpiresIn = _.get(constants_1.CONST.AUTH_SETTINGS, `${channel}.expires_in`);
|
|
319
|
+
const tokenTTL = apiKeySessionTTL
|
|
320
|
+
? (0, time_1.convertOffsetToNumber)(apiKeySessionTTL)
|
|
321
|
+
: channelExpiresIn
|
|
322
|
+
? (0, time_1.convertOffsetToNumber)(channelExpiresIn)
|
|
323
|
+
: 0;
|
|
324
|
+
delete session.profile.roles;
|
|
325
|
+
await redis_1.redisSession.set(`${token}::${userId}`, {
|
|
326
|
+
user_id: userId,
|
|
327
|
+
channel,
|
|
328
|
+
extra,
|
|
329
|
+
need_authenticator
|
|
330
|
+
}, tokenTTL);
|
|
331
|
+
await this._verifySingleSession(token, userId, apiKey);
|
|
332
|
+
if (writeSuccessLogin) {
|
|
333
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
334
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
335
|
+
action: "success",
|
|
336
|
+
event_date: new Date(),
|
|
337
|
+
status: audit_log_enum_1.AuditLogStatus.successfully,
|
|
338
|
+
user: _.get(session, "profile")
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
return {
|
|
342
|
+
token,
|
|
343
|
+
profile: session.profile,
|
|
344
|
+
permissions: session.permissions,
|
|
345
|
+
expires: tokenTTL
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
async _loginAuthenticator(token, userId, extra, channel, apiKey) {
|
|
349
|
+
var _a, _b, _c, _d, _e;
|
|
350
|
+
const session = await this._getUserProfileAndPermissions(userId);
|
|
351
|
+
const loginMethods = _.get(apiKey, "allow_login_methods", ["password"]);
|
|
352
|
+
const needAuthenticator = loginMethods.includes("otp");
|
|
353
|
+
const otpString = uuidv4();
|
|
354
|
+
console.log({ extra });
|
|
355
|
+
await redis_1.redisSession.set(`${token}::${userId}`, {
|
|
356
|
+
user_id: userId,
|
|
357
|
+
channel,
|
|
358
|
+
extra,
|
|
359
|
+
need_authenticator: needAuthenticator,
|
|
360
|
+
token
|
|
361
|
+
});
|
|
362
|
+
await redis_1.redisSession.set(`${otpString}}`, { token });
|
|
363
|
+
let authData;
|
|
364
|
+
let defaultGateway = _.get(apiKey, "default_gateway");
|
|
365
|
+
defaultGateway = _.isArray(defaultGateway)
|
|
366
|
+
? defaultGateway[0]
|
|
367
|
+
: defaultGateway;
|
|
368
|
+
if (defaultGateway === "application" &&
|
|
369
|
+
!_.get(session.profile, "enable_authenticator")) {
|
|
370
|
+
authData = (0, authenticator_1.generateAuthentication)((_a = session.profile) === null || _a === void 0 ? void 0 : _a.username, (_b = session.profile) === null || _b === void 0 ? void 0 : _b._id, _.get(constants_1.CONST.AUTH_SETTINGS, "authenticator.app_name"));
|
|
371
|
+
await (0, schema_1.callUpdateInternalService)("user", {
|
|
372
|
+
id: (_c = session.profile) === null || _c === void 0 ? void 0 : _c._id,
|
|
373
|
+
first_name: (_d = session.profile) === null || _d === void 0 ? void 0 : _d.first_name,
|
|
374
|
+
last_name: (_e = session.profile) === null || _e === void 0 ? void 0 : _e.last_name,
|
|
375
|
+
enable_authenticator: true
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
if (defaultGateway === "sms" || defaultGateway === "email") {
|
|
379
|
+
try {
|
|
380
|
+
authData = await (0, otp_1.generateOtp)(_.get(session, "profile.id"), _.get(session, "profile.id"), _.get(session, "profile.email"), _.get(session, "profile.phone"), "authen", undefined, defaultGateway, undefined, undefined, `${_.get(session, "profile.first_name", "")} ${_.get(session, "profile.last_name", "")}`);
|
|
381
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
382
|
+
event: audit_log_enum_1.AuditLogEvent.send_otp,
|
|
383
|
+
action: "success",
|
|
384
|
+
event_date: new Date(),
|
|
385
|
+
status: audit_log_enum_1.AuditLogStatus.successfully,
|
|
386
|
+
user: _.get(session, "profile"),
|
|
387
|
+
raw_data: {
|
|
388
|
+
otp_code: authData === null || authData === void 0 ? void 0 : authData.otp,
|
|
389
|
+
ref_code: authData === null || authData === void 0 ? void 0 : authData.ref
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
catch (e) {
|
|
394
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
395
|
+
event: audit_log_enum_1.AuditLogEvent.send_otp,
|
|
396
|
+
action: "error",
|
|
397
|
+
event_date: new Date(),
|
|
398
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
399
|
+
user: _.get(session, "profile"),
|
|
400
|
+
raw_data: {
|
|
401
|
+
message: e === null || e === void 0 ? void 0 : e.message
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
throw e;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
return {
|
|
408
|
+
mfa_token: otpString,
|
|
409
|
+
need_authenticator: true,
|
|
410
|
+
qrcode_url: authData === null || authData === void 0 ? void 0 : authData.qrcode_url,
|
|
411
|
+
ref: authData === null || authData === void 0 ? void 0 : authData.ref,
|
|
412
|
+
default_gateway: defaultGateway
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
async login(appKey, secretKey, email, password, recaptchaToken) {
|
|
416
|
+
const request = this.cls.get("request");
|
|
417
|
+
try {
|
|
418
|
+
if (_.get(constants_1.CONST.AUTH_SETTINGS, "recaptcha.enable")) {
|
|
419
|
+
if (!recaptchaToken) {
|
|
420
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
421
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
422
|
+
action: "invalid_recaptcha_token",
|
|
423
|
+
event_date: new Date(),
|
|
424
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
425
|
+
user: {},
|
|
426
|
+
raw_data: {
|
|
427
|
+
username: email
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
431
|
+
}
|
|
432
|
+
const result = await (0, recaptcha_1.validateRecaptcha)(recaptchaToken, _.get(constants_1.CONST.AUTH_SETTINGS, "recaptcha.secret_key"), _.isEmpty(_.get(request, "headers.x-client-ip"))
|
|
433
|
+
? _.get(request, "headers.client-ip")
|
|
434
|
+
: _.get(request, "headers.x-client-ip")
|
|
435
|
+
.split(",")[0]
|
|
436
|
+
.replace("::ffff:", "")
|
|
437
|
+
.split(":")[0], _.get(constants_1.CONST.AUTH_SETTINGS, "recaptcha.capture_ip_address"));
|
|
438
|
+
if (!result) {
|
|
439
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
440
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
441
|
+
action: "invalid_recaptcha",
|
|
442
|
+
event_date: new Date(),
|
|
443
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
444
|
+
user: {},
|
|
445
|
+
raw_data: { username: email }
|
|
446
|
+
});
|
|
447
|
+
throw new common_1.HttpException("validate_recaptcha_failed", 500);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
const validSystemKey = await this._verifySystemKey(appKey, secretKey);
|
|
451
|
+
if (!validSystemKey) {
|
|
452
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
453
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
454
|
+
action: "invalid_api_key",
|
|
455
|
+
event_date: new Date(),
|
|
456
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
457
|
+
user: {},
|
|
458
|
+
raw_data: {
|
|
459
|
+
app_key: appKey,
|
|
460
|
+
username: email
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
464
|
+
}
|
|
465
|
+
let result;
|
|
466
|
+
const loginProvider = _.get(validSystemKey, "login_provider");
|
|
467
|
+
const loginMethods = _.get(validSystemKey, "allow_login_methods", [
|
|
468
|
+
"password"
|
|
469
|
+
]);
|
|
470
|
+
const needAuthenticator = loginMethods.includes("otp") && loginMethods.length > 1;
|
|
471
|
+
if (loginProvider && !_.isEmpty(loginProvider)) {
|
|
472
|
+
const providerCode = _.isArray(loginProvider)
|
|
473
|
+
? loginProvider[0]
|
|
474
|
+
: loginProvider;
|
|
475
|
+
const authProvider = await this._getProvider(providerCode);
|
|
476
|
+
if (authProvider.getType() !== "inherit_login") {
|
|
477
|
+
throw new Error(`Provider ${providerCode} does not exists in system`);
|
|
478
|
+
}
|
|
479
|
+
result = await authProvider.signin(appKey, secretKey, {
|
|
480
|
+
username: email,
|
|
481
|
+
password
|
|
482
|
+
});
|
|
483
|
+
if (result.success) {
|
|
484
|
+
return needAuthenticator
|
|
485
|
+
? await this._loginAuthenticator(result.token, result.user_id, {
|
|
486
|
+
app_key: appKey,
|
|
487
|
+
secret_key: secretKey,
|
|
488
|
+
user_agent: _.get(request, "headers.user-agent"),
|
|
489
|
+
client_ip: _.isEmpty(_.get(request, "headers.x-client-ip"))
|
|
490
|
+
? _.get(request, "headers.client-ip")
|
|
491
|
+
: _.get(request, "headers.x-client-ip")
|
|
492
|
+
.split(",")[0]
|
|
493
|
+
.replace("::ffff:", "")
|
|
494
|
+
.split(":")[0]
|
|
495
|
+
}, providerCode, validSystemKey)
|
|
496
|
+
: await this._loginResult(result.token, result.user_id, {
|
|
497
|
+
app_key: appKey,
|
|
498
|
+
secret_key: secretKey,
|
|
499
|
+
user_agent: _.get(request, "headers.user-agent"),
|
|
500
|
+
client_ip: _.isEmpty(_.get(request, "headers.x-client-ip"))
|
|
501
|
+
? _.get(request, "headers.client-ip")
|
|
502
|
+
: _.get(request, "headers.x-client-ip")
|
|
503
|
+
.split(",")[0]
|
|
504
|
+
.replace("::ffff:", "")
|
|
505
|
+
.split(":")[0]
|
|
506
|
+
}, providerCode, validSystemKey);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
if (!loginProvider || _.isEmpty(loginProvider)) {
|
|
510
|
+
const localProvider = new auth_local_provider_1.AuthLocalProvider(_.get(constants_1.CONST.AUTH_SETTINGS, "local"));
|
|
511
|
+
result = await localProvider.signin(appKey, secretKey, {
|
|
512
|
+
username: email,
|
|
513
|
+
password
|
|
514
|
+
});
|
|
515
|
+
if (result.success) {
|
|
516
|
+
return needAuthenticator
|
|
517
|
+
? await this._loginAuthenticator(result.token, result.user_id, Object.assign(Object.assign({}, result.extra), { user_agent: _.get(request, "headers.user-agent"), client_ip: _.isEmpty(_.get(request, "headers.x-client-ip"))
|
|
518
|
+
? _.get(request, "headers.client-ip")
|
|
519
|
+
: _.get(request, "headers.x-client-ip")
|
|
520
|
+
.split(",")[0]
|
|
521
|
+
.replace("::ffff:", "")
|
|
522
|
+
.split(":")[0] }), "local", validSystemKey)
|
|
523
|
+
: await this._loginResult(result.token, result.user_id, Object.assign(Object.assign({}, result.extra), { user_agent: _.get(request, "headers.user-agent"), client_ip: _.isEmpty(_.get(request, "headers.x-client-ip"))
|
|
524
|
+
? _.get(request, "headers.client-ip")
|
|
525
|
+
: _.get(request, "headers.x-client-ip")
|
|
526
|
+
.split(",")[0]
|
|
527
|
+
.replace("::ffff:", "")
|
|
528
|
+
.split(":")[0] }), "local", validSystemKey);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
throw new common_1.HttpException(result.message, 401);
|
|
532
|
+
}
|
|
533
|
+
catch (e) {
|
|
534
|
+
throw e;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
async loginOTP(appKey, secretKey, mobileNo, recaptchaToken) {
|
|
538
|
+
const request = this.cls.get("request");
|
|
539
|
+
try {
|
|
540
|
+
const validSystemKey = await this._verifySystemKey(appKey, secretKey);
|
|
541
|
+
if (!validSystemKey) {
|
|
542
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
543
|
+
}
|
|
544
|
+
if (_.get(constants_1.CONST.AUTH_SETTINGS, "recaptcha.enable")) {
|
|
545
|
+
if (!recaptchaToken) {
|
|
546
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
547
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
548
|
+
action: "invalid_recaptcha_token",
|
|
549
|
+
event_date: new Date(),
|
|
550
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
551
|
+
user: {},
|
|
552
|
+
raw_data: {
|
|
553
|
+
username: mobileNo
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
557
|
+
}
|
|
558
|
+
const result = await (0, recaptcha_1.validateRecaptcha)(recaptchaToken, _.get(constants_1.CONST.AUTH_SETTINGS, "recaptcha.secret_key"), _.get(request, "headers.client-ip"), _.get(constants_1.CONST.AUTH_SETTINGS, "recaptcha.capture_ip_address"));
|
|
559
|
+
if (!result) {
|
|
560
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
561
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
562
|
+
action: "invalid_recaptcha",
|
|
563
|
+
event_date: new Date(),
|
|
564
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
565
|
+
user: {},
|
|
566
|
+
raw_data: { username: mobileNo }
|
|
567
|
+
});
|
|
568
|
+
throw new common_1.HttpException("validate_recaptcha_failed", 500);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
let result;
|
|
572
|
+
const localProvider = new auth_otp_provider_1.AuthOtpProvider(_.get(constants_1.CONST.AUTH_SETTINGS, "local"));
|
|
573
|
+
result = await localProvider.signin(appKey, secretKey, {
|
|
574
|
+
mobileNo
|
|
575
|
+
});
|
|
576
|
+
if (!result.success) {
|
|
577
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
578
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
579
|
+
action: "invalid_email_or_mobile",
|
|
580
|
+
event_date: new Date(),
|
|
581
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
582
|
+
user: {},
|
|
583
|
+
raw_data: {
|
|
584
|
+
username: mobileNo
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
throw new common_1.HttpException("invalid_authentication_data", 500);
|
|
588
|
+
}
|
|
589
|
+
return await this._loginAuthenticator(result.token, result.user_id, Object.assign(Object.assign({}, result.extra), { user_agent: _.get(request, "headers.user-agent"), client_ip: _.isEmpty(_.get(request, "headers.x-client-ip"))
|
|
590
|
+
? _.get(request, "headers.client-ip")
|
|
591
|
+
: _.get(request, "headers.x-client-ip")
|
|
592
|
+
.split(",")[0]
|
|
593
|
+
.replace("::ffff:", "")
|
|
594
|
+
.split(":")[0] }), "local", validSystemKey);
|
|
595
|
+
}
|
|
596
|
+
catch (e) {
|
|
597
|
+
throw e;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
async callbackLogin(appKey, secretKey, channel, data) {
|
|
601
|
+
const request = this.cls.get("request");
|
|
602
|
+
try {
|
|
603
|
+
const validSystemKey = await this._verifySystemKey(appKey, secretKey);
|
|
604
|
+
if (!validSystemKey) {
|
|
605
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
606
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
607
|
+
action: "invalid_api_key",
|
|
608
|
+
event_date: new Date(),
|
|
609
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
610
|
+
user: {},
|
|
611
|
+
raw_data: {
|
|
612
|
+
app_key: appKey
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
616
|
+
}
|
|
617
|
+
let result;
|
|
618
|
+
const providerConfig = (0, external_module_1.getCustomProviderConfig)(constants_2.MODULE_CODE, channel, 'and');
|
|
619
|
+
if (providerConfig === null || providerConfig === void 0 ? void 0 : providerConfig.external) {
|
|
620
|
+
result = await (0, external_module_1.callExecuteExternalProviderModule)(constants_2.MODULE_CODE, channel, "signin", [appKey, secretKey, data], {
|
|
621
|
+
constructorArgs: _.get(constants_1.CONST.AUTH_SETTINGS, channel)
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
else {
|
|
625
|
+
const provider = await this._getProvider(channel);
|
|
626
|
+
result = await provider.signin(appKey, secretKey, data);
|
|
627
|
+
}
|
|
628
|
+
if (result) {
|
|
629
|
+
return await this._loginResult(result.token, result.user_id, Object.assign(Object.assign({}, result.extra), { user_agent: _.get(request, "headers.user-agent"), client_ip: _.isEmpty(_.get(request, "headers.x-client-ip"))
|
|
630
|
+
? _.get(request, "headers.client-ip")
|
|
631
|
+
: _.get(request, "headers.x-client-ip")
|
|
632
|
+
.split(",")[0]
|
|
633
|
+
.replace("::ffff:", "")
|
|
634
|
+
.split(":")[0] }), channel, validSystemKey, false, true);
|
|
635
|
+
}
|
|
636
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
637
|
+
}
|
|
638
|
+
catch (e) {
|
|
639
|
+
console.log(e);
|
|
640
|
+
throw e;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
async verify(token, extra, channel) {
|
|
644
|
+
try {
|
|
645
|
+
const providerConfig = (0, external_module_1.getCustomProviderConfig)(constants_2.MODULE_CODE, channel, 'and');
|
|
646
|
+
if (providerConfig === null || providerConfig === void 0 ? void 0 : providerConfig.external) {
|
|
647
|
+
await (0, external_module_1.callExecuteExternalProviderModule)(constants_2.MODULE_CODE, channel, "verify", [token, extra], {
|
|
648
|
+
constructorArgs: _.get(constants_1.CONST.AUTH_SETTINGS, channel)
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
else {
|
|
652
|
+
const provider = await this._getProvider(channel);
|
|
653
|
+
await provider.verify(token, extra);
|
|
654
|
+
}
|
|
655
|
+
return true;
|
|
656
|
+
}
|
|
657
|
+
catch (e) {
|
|
658
|
+
console.log(e);
|
|
659
|
+
throw e;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
async getProfile(token) {
|
|
663
|
+
const session = await redis_1.redisSession.getByPattern(token);
|
|
664
|
+
if (session === null || session === void 0 ? void 0 : session.need_authenticator) {
|
|
665
|
+
return {
|
|
666
|
+
need_authenticator: true
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
return await this._getUserProfileAndPermissions(session.user_id);
|
|
670
|
+
}
|
|
671
|
+
async verifyBasic(token) {
|
|
672
|
+
const { app_key, secret_key } = (0, token_1.decodeBasicToken)(token);
|
|
673
|
+
let apiKey = await redis_1.redisCache.get(`API_KEY_${app_key}`);
|
|
674
|
+
if (_.isEmpty(apiKey)) {
|
|
675
|
+
apiKey = await (0, schema_1.callFindInternalService)("api_key", undefined, {
|
|
676
|
+
app_key: app_key,
|
|
677
|
+
secret_key: secret_key,
|
|
678
|
+
enable: true
|
|
679
|
+
}, undefined);
|
|
680
|
+
await redis_1.redisCache.set(`API_KEY_${app_key}`, _.omit(apiKey, ["store_config", "general_config", "menu_config"]));
|
|
681
|
+
}
|
|
682
|
+
if ((apiKey === null || apiKey === void 0 ? void 0 : apiKey.secret_key) !== secret_key)
|
|
683
|
+
return null;
|
|
684
|
+
return apiKey;
|
|
685
|
+
}
|
|
686
|
+
async logout(token) {
|
|
687
|
+
const session = await redis_1.redisSession.getByPattern(token);
|
|
688
|
+
const profile = await this._getUserProfileLocal(session === null || session === void 0 ? void 0 : session.user_id);
|
|
689
|
+
const channel = session === null || session === void 0 ? void 0 : session.channel;
|
|
690
|
+
const providerConfig = (0, external_module_1.getCustomProviderConfig)(constants_2.MODULE_CODE, channel, 'and');
|
|
691
|
+
if (providerConfig === null || providerConfig === void 0 ? void 0 : providerConfig.external) {
|
|
692
|
+
await (0, external_module_1.callExecuteExternalProviderModule)(constants_2.MODULE_CODE, channel, "revoke", [token, session === null || session === void 0 ? void 0 : session.extra], {
|
|
693
|
+
constructorArgs: _.get(constants_1.CONST.AUTH_SETTINGS, channel)
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
else {
|
|
697
|
+
const provider = await this._getProvider(channel);
|
|
698
|
+
await provider.revoke(token, session === null || session === void 0 ? void 0 : session.extra);
|
|
699
|
+
}
|
|
700
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
701
|
+
event: audit_log_enum_1.AuditLogEvent.logout,
|
|
702
|
+
action: "success",
|
|
703
|
+
event_date: new Date(),
|
|
704
|
+
status: audit_log_enum_1.AuditLogStatus.successfully,
|
|
705
|
+
user: profile
|
|
706
|
+
});
|
|
707
|
+
return true;
|
|
708
|
+
}
|
|
709
|
+
async verifyAuthenticator(code, mfaToken, appKey, secretKey) {
|
|
710
|
+
const sessionMfa = await redis_1.redisSession.getByPattern(mfaToken);
|
|
711
|
+
const token = _.get(sessionMfa, "token");
|
|
712
|
+
if (!token) {
|
|
713
|
+
throw new common_1.HttpException("error_account_not_active", 401);
|
|
714
|
+
}
|
|
715
|
+
const session = await redis_1.redisSession.getByPattern(token);
|
|
716
|
+
const profile = await this._getUserProfileLocal(session === null || session === void 0 ? void 0 : session.user_id);
|
|
717
|
+
const request = this.cls.get("request");
|
|
718
|
+
const channel = session === null || session === void 0 ? void 0 : session.channel;
|
|
719
|
+
try {
|
|
720
|
+
const validSystemKey = await this._verifySystemKey(appKey, secretKey);
|
|
721
|
+
if (!validSystemKey) {
|
|
722
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
723
|
+
event: audit_log_enum_1.AuditLogEvent.login,
|
|
724
|
+
action: "invalid_api_key",
|
|
725
|
+
event_date: new Date(),
|
|
726
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
727
|
+
user: {},
|
|
728
|
+
raw_data: {
|
|
729
|
+
app_key: appKey,
|
|
730
|
+
username: profile === null || profile === void 0 ? void 0 : profile.email
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
734
|
+
}
|
|
735
|
+
let defaultGateway = _.get(validSystemKey, "default_gateway");
|
|
736
|
+
defaultGateway = _.isArray(defaultGateway)
|
|
737
|
+
? defaultGateway[0]
|
|
738
|
+
: defaultGateway;
|
|
739
|
+
if (defaultGateway === "application") {
|
|
740
|
+
const res = (0, authenticator_1.validateAuthentication)(code, session === null || session === void 0 ? void 0 : session.user_id);
|
|
741
|
+
if (!res) {
|
|
742
|
+
return {
|
|
743
|
+
need_authenticator: true
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
if (defaultGateway === "sms" || defaultGateway === "email") {
|
|
748
|
+
const res = await (0, otp_1.validateOtp)(session === null || session === void 0 ? void 0 : session.user_id, code);
|
|
749
|
+
if (!res) {
|
|
750
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
751
|
+
event: audit_log_enum_1.AuditLogEvent.wrong_otp,
|
|
752
|
+
action: "invalid_otp",
|
|
753
|
+
event_date: new Date(),
|
|
754
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
755
|
+
user: profile,
|
|
756
|
+
raw_data: {
|
|
757
|
+
otp_code: code
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
return {
|
|
761
|
+
need_authenticator: true
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
const resLogin = await this._loginResult(session.token, session.user_id, Object.assign(Object.assign({}, session.extra), { user_agent: _.get(request, "headers.user-agent"), client_ip: _.isEmpty(_.get(request, "headers.x-client-ip"))
|
|
766
|
+
? _.get(request, "headers.client-ip")
|
|
767
|
+
: _.get(request, "headers.x-client-ip")
|
|
768
|
+
.split(",")[0]
|
|
769
|
+
.replace("::ffff:", "")
|
|
770
|
+
.split(":")[0] }), channel, validSystemKey, false);
|
|
771
|
+
const res = await this._getUserProfileAndPermissions(session.user_id);
|
|
772
|
+
return Object.assign(Object.assign({}, res), resLogin);
|
|
773
|
+
}
|
|
774
|
+
catch (e) { }
|
|
775
|
+
}
|
|
776
|
+
async resendAuthenticator(authorization, template) {
|
|
777
|
+
if (!authorization) {
|
|
778
|
+
throw new common_1.HttpException("error_account_not_active", 401);
|
|
779
|
+
}
|
|
780
|
+
const sessionMfa = await redis_1.redisSession.getByPattern(authorization);
|
|
781
|
+
const token = _.get(sessionMfa, "token", authorization);
|
|
782
|
+
const session = await redis_1.redisSession.getByPattern(token);
|
|
783
|
+
const defaultGateway = _.get(constants_1.CONST.AUTH_SETTINGS, "authenticator.default_gateway");
|
|
784
|
+
if (!session) {
|
|
785
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
786
|
+
event: audit_log_enum_1.AuditLogEvent.resend_otp,
|
|
787
|
+
action: "invalid_session",
|
|
788
|
+
event_date: new Date(),
|
|
789
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
790
|
+
user: {}
|
|
791
|
+
});
|
|
792
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
793
|
+
}
|
|
794
|
+
const profile = await this._getUserProfileLocal(session === null || session === void 0 ? void 0 : session.user_id);
|
|
795
|
+
if (!_.get(constants_1.CONST.AUTH_SETTINGS, "authenticator.enable")) {
|
|
796
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
797
|
+
event: audit_log_enum_1.AuditLogEvent.resend_otp,
|
|
798
|
+
action: "authenticator_is_disabled",
|
|
799
|
+
event_date: new Date(),
|
|
800
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
801
|
+
user: profile
|
|
802
|
+
});
|
|
803
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
804
|
+
}
|
|
805
|
+
if (!session.need_authenticator) {
|
|
806
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
807
|
+
event: audit_log_enum_1.AuditLogEvent.resend_otp,
|
|
808
|
+
action: "not_need_authenticator",
|
|
809
|
+
event_date: new Date(),
|
|
810
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
811
|
+
user: profile
|
|
812
|
+
});
|
|
813
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
814
|
+
}
|
|
815
|
+
if (template === "application") {
|
|
816
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
817
|
+
event: audit_log_enum_1.AuditLogEvent.resend_otp,
|
|
818
|
+
action: "invalid_type",
|
|
819
|
+
event_date: new Date(),
|
|
820
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
821
|
+
user: profile
|
|
822
|
+
});
|
|
823
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
824
|
+
}
|
|
825
|
+
const user = await (0, schema_1.callGetInternalService)("user", session.user_id);
|
|
826
|
+
try {
|
|
827
|
+
const { otp, ref } = await (0, otp_1.generateOtp)(session === null || session === void 0 ? void 0 : session.user_id, session === null || session === void 0 ? void 0 : session.user_id, user.email, user === null || user === void 0 ? void 0 : user.phone, "authen", undefined, template, undefined, undefined, `${_.get(user, "first_name", "")} ${_.get(user, "last_name", "")}`);
|
|
828
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
829
|
+
event: audit_log_enum_1.AuditLogEvent.resend_otp,
|
|
830
|
+
action: "success",
|
|
831
|
+
event_date: new Date(),
|
|
832
|
+
status: audit_log_enum_1.AuditLogStatus.successfully,
|
|
833
|
+
user
|
|
834
|
+
});
|
|
835
|
+
return {
|
|
836
|
+
ref
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
catch (e) {
|
|
840
|
+
await (0, schema_1.callAddQueueInternal)("queue", "audit_log", {
|
|
841
|
+
event: audit_log_enum_1.AuditLogEvent.resend_otp,
|
|
842
|
+
action: "error",
|
|
843
|
+
event_date: new Date(),
|
|
844
|
+
status: audit_log_enum_1.AuditLogStatus.failed,
|
|
845
|
+
user,
|
|
846
|
+
raw_data: { message: e.message }
|
|
847
|
+
});
|
|
848
|
+
throw e;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
async requestOTP(appKey, secretKey, type, mobileNo, gateway) {
|
|
852
|
+
const validSystemKey = await this._verifySystemKey(appKey, secretKey);
|
|
853
|
+
if (!validSystemKey) {
|
|
854
|
+
throw new common_1.HttpException("invalid_authentication_data", 401);
|
|
855
|
+
}
|
|
856
|
+
const profile = await (0, schema_1.callFindInternalService)("user", "", {
|
|
857
|
+
$or: [{ phone: mobileNo }, { email: mobileNo }]
|
|
858
|
+
});
|
|
859
|
+
if (_.isEmpty(profile)) {
|
|
860
|
+
throw new common_1.HttpException(`This mobile no. ${mobileNo} doesn't exists in system`, 400);
|
|
861
|
+
}
|
|
862
|
+
if (type === "register" &&
|
|
863
|
+
!["staged", "provisioned"].includes(profile.status.toString())) {
|
|
864
|
+
throw new common_1.HttpException(`This mobile confrim registered in system already please contact admin`, 400);
|
|
865
|
+
}
|
|
866
|
+
if (type === "forgot_password" &&
|
|
867
|
+
!["active"].includes(profile.status.toString())) {
|
|
868
|
+
throw new common_1.HttpException(`Youur account is not active please contact admin`, 400);
|
|
869
|
+
}
|
|
870
|
+
const key = uuidv4();
|
|
871
|
+
const templateSms = _.get(constants_1.CONST.AUTH_SETTINGS, "activate_account.sms_template");
|
|
872
|
+
const defaultGateway = _.get(constants_1.CONST.AUTH_SETTINGS, "activate_account.default_gateway", "email");
|
|
873
|
+
const accountGateway = gateway ? gateway : defaultGateway;
|
|
874
|
+
const templateEmail = _.get(constants_1.CONST.AUTH_SETTINGS, "activate_account.email_template");
|
|
875
|
+
const result = await (0, otp_1.generateOtp)(key, profile.id, profile.email, mobileNo, type, undefined, accountGateway, templateSms, templateEmail, `${_.get(profile, "first_name", "")} ${_.get(profile, "last_name", "")}`);
|
|
876
|
+
return { otp_token: key, ref: result.ref };
|
|
877
|
+
}
|
|
878
|
+
async confirmOTP(otpToken, otpCode) {
|
|
879
|
+
const res = await (0, otp_1.validateOtp)(otpToken, otpCode);
|
|
880
|
+
const request = this.cls.get("request");
|
|
881
|
+
if (!res) {
|
|
882
|
+
throw new common_1.HttpException(`Invalid OTP code`, 400);
|
|
883
|
+
}
|
|
884
|
+
const profile = await (0, schema_1.callGetInternalService)("user", res.user_id);
|
|
885
|
+
return {
|
|
886
|
+
first_name: profile.first_name,
|
|
887
|
+
last_name: profile.last_name,
|
|
888
|
+
username: profile.username
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
async newPassword(otpToken, newPassword, confirmPassword) {
|
|
892
|
+
const res = await (0, otp_1.verifiedOtp)(otpToken);
|
|
893
|
+
if (!res) {
|
|
894
|
+
throw new common_1.HttpException(`OTP doesn't verifiy or sessioin expired`, 400);
|
|
895
|
+
}
|
|
896
|
+
await (0, schema_1.callInternalService)("user", "put", `new_password/${res.user_id}`, {
|
|
897
|
+
new_password: newPassword,
|
|
898
|
+
confirm_password: confirmPassword
|
|
899
|
+
});
|
|
900
|
+
return { status: true };
|
|
901
|
+
}
|
|
902
|
+
async forgotPassword(otpToken, newPassword, confirmPassword) {
|
|
903
|
+
const res = await (0, otp_1.verifiedOtp)(otpToken);
|
|
904
|
+
if (!res) {
|
|
905
|
+
throw new common_1.HttpException(`OTP doesn't verifiy or sessioin expired`, 400);
|
|
906
|
+
}
|
|
907
|
+
await (0, schema_1.callInternalService)("user", "put", `forgot_password/${res.user_id}`, {
|
|
908
|
+
new_password: newPassword,
|
|
909
|
+
confirm_password: confirmPassword
|
|
910
|
+
});
|
|
911
|
+
return { status: true };
|
|
912
|
+
}
|
|
913
|
+
async checkSession(req, token) {
|
|
914
|
+
const session = await redis_1.redisSession.getByPattern(token);
|
|
915
|
+
return {
|
|
916
|
+
req_user_agent: _.get(req, "headers.user-agent"),
|
|
917
|
+
req_x_client_ip: _.get(req, "headers.x-client-ip"),
|
|
918
|
+
req_x_client_ip_0: _.get(req, "headers.x-client-ip", "").split(",")[0],
|
|
919
|
+
req_client_ip: _.get(req, "headers.client-ip"),
|
|
920
|
+
session_agent: _.get(session, "extra.user_agent"),
|
|
921
|
+
session_client_ip: _.get(session, "extra.client_ip")
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
exports.AuthService = AuthService;
|
|
926
|
+
exports.AuthService = AuthService = __decorate([
|
|
927
|
+
(0, common_1.Injectable)(),
|
|
928
|
+
__metadata("design:paramtypes", [nestjs_cls_1.ClsService])
|
|
929
|
+
], AuthService);
|
|
930
|
+
//# sourceMappingURL=auth.service.js.map
|