rez_core 3.1.40 → 3.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.controller.d.ts +6 -0
- package/dist/app.controller.js +34 -0
- package/dist/app.controller.js.map +1 -0
- package/dist/app.module.d.ts +2 -0
- package/dist/app.module.js +62 -0
- package/dist/app.module.js.map +1 -0
- package/dist/app.service.d.ts +3 -0
- package/dist/app.service.js +20 -0
- package/dist/app.service.js.map +1 -0
- package/dist/config/config.module.d.ts +2 -0
- package/dist/config/config.module.js +29 -0
- package/dist/config/config.module.js.map +1 -0
- package/dist/config/database.config.d.ts +7 -0
- package/dist/config/database.config.js +39 -0
- package/dist/config/database.config.js.map +1 -0
- package/dist/constant/global.constant.d.ts +50 -0
- package/dist/constant/global.constant.js +54 -0
- package/dist/constant/global.constant.js.map +1 -0
- package/dist/core.module.d.ts +4 -0
- package/dist/core.module.js +79 -0
- package/dist/core.module.js.map +1 -0
- package/dist/decorators/roles.decorator.d.ts +1 -0
- package/dist/decorators/roles.decorator.js +7 -0
- package/dist/decorators/roles.decorator.js.map +1 -0
- package/dist/dtos/response.d.ts +5 -0
- package/dist/dtos/response.dto.d.ts +5 -0
- package/dist/dtos/response.dto.js +3 -0
- package/dist/dtos/response.dto.js.map +1 -0
- package/dist/dtos/response.js +3 -0
- package/dist/dtos/response.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +25 -0
- package/dist/main.js.map +1 -0
- package/dist/module/auth/auth.module.d.ts +2 -0
- package/dist/module/auth/auth.module.js +57 -0
- package/dist/module/auth/auth.module.js.map +1 -0
- package/dist/module/auth/controller/auth.controller.d.ts +8 -0
- package/dist/module/auth/controller/auth.controller.js +51 -0
- package/dist/module/auth/controller/auth.controller.js.map +1 -0
- package/dist/module/auth/guards/google-auth.guard.d.ts +6 -0
- package/dist/module/auth/guards/google-auth.guard.js +21 -0
- package/dist/module/auth/guards/google-auth.guard.js.map +1 -0
- package/dist/module/auth/guards/jwt.guard.d.ts +10 -0
- package/dist/module/auth/guards/jwt.guard.js +36 -0
- package/dist/module/auth/guards/jwt.guard.js.map +1 -0
- package/dist/module/auth/guards/role.guard.d.ts +9 -0
- package/dist/module/auth/guards/role.guard.js +59 -0
- package/dist/module/auth/guards/role.guard.js.map +1 -0
- package/dist/module/auth/services/auth.service.d.ts +14 -0
- package/dist/module/auth/services/auth.service.js +39 -0
- package/dist/module/auth/services/auth.service.js.map +1 -0
- package/dist/module/auth/services/jwt.service.d.ts +6 -0
- package/dist/module/auth/services/jwt.service.js +28 -0
- package/dist/module/auth/services/jwt.service.js.map +1 -0
- package/dist/module/auth/strategies/google.strategy.d.ts +10 -0
- package/dist/module/auth/strategies/google.strategy.js +59 -0
- package/dist/module/auth/strategies/google.strategy.js.map +1 -0
- package/dist/module/auth/strategies/jwt.strategy.d.ts +19 -0
- package/dist/module/auth/strategies/jwt.strategy.js +46 -0
- package/dist/module/auth/strategies/jwt.strategy.js.map +1 -0
- package/dist/module/auth/strategies/local.strategy.d.ts +7 -0
- package/dist/module/auth/strategies/local.strategy.js +30 -0
- package/dist/module/auth/strategies/local.strategy.js.map +1 -0
- package/dist/module/dashboard/controller/dashboard.controller.d.ts +33 -0
- package/dist/module/dashboard/controller/dashboard.controller.js +55 -0
- package/dist/module/dashboard/controller/dashboard.controller.js.map +1 -0
- package/dist/module/dashboard/dashboard.module.d.ts +2 -0
- package/dist/module/dashboard/dashboard.module.js +34 -0
- package/dist/module/dashboard/dashboard.module.js.map +1 -0
- package/dist/module/dashboard/entity/dashboard_page_data.entity.d.ts +10 -0
- package/dist/module/dashboard/entity/dashboard_page_data.entity.js +50 -0
- package/dist/module/dashboard/entity/dashboard_page_data.entity.js.map +1 -0
- package/dist/module/dashboard/entity/widget_master.entity.d.ts +7 -0
- package/dist/module/dashboard/entity/widget_master.entity.js +38 -0
- package/dist/module/dashboard/entity/widget_master.entity.js.map +1 -0
- package/dist/module/dashboard/repository/dashboard.repository.d.ts +10 -0
- package/dist/module/dashboard/repository/dashboard.repository.js +50 -0
- package/dist/module/dashboard/repository/dashboard.repository.js.map +1 -0
- package/dist/module/dashboard/service/dashboard.service.d.ts +35 -0
- package/dist/module/dashboard/service/dashboard.service.js +62 -0
- package/dist/module/dashboard/service/dashboard.service.js.map +1 -0
- package/dist/module/dev/dev.module.d.ts +2 -0
- package/dist/module/dev/dev.module.js +25 -0
- package/dist/module/dev/dev.module.js.map +1 -0
- package/dist/module/dev/service/dev.service.d.ts +5 -0
- package/dist/module/dev/service/dev.service.js +25 -0
- package/dist/module/dev/service/dev.service.js.map +1 -0
- package/dist/module/enterprise/controller/organization.controller.d.ts +14 -0
- package/dist/module/enterprise/controller/organization.controller.js +59 -0
- package/dist/module/enterprise/controller/organization.controller.js.map +1 -0
- package/dist/module/enterprise/enterprise.module.d.ts +2 -0
- package/dist/module/enterprise/enterprise.module.js +43 -0
- package/dist/module/enterprise/enterprise.module.js.map +1 -0
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +13 -0
- package/dist/module/enterprise/entity/enterprise.entity.js +64 -0
- package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +5 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +32 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -0
- package/dist/module/enterprise/entity/organization.entity.d.ts +30 -0
- package/dist/module/enterprise/entity/organization.entity.js +136 -0
- package/dist/module/enterprise/entity/organization.entity.js.map +1 -0
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +8 -0
- package/dist/module/enterprise/repository/enterprise.repository.js +48 -0
- package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -0
- package/dist/module/enterprise/repository/organization.repository.d.ts +8 -0
- package/dist/module/enterprise/repository/organization.repository.js +41 -0
- package/dist/module/enterprise/repository/organization.repository.js.map +1 -0
- package/dist/module/enterprise/repository/school.repository.d.ts +8 -0
- package/dist/module/enterprise/repository/school.repository.js +245 -0
- package/dist/module/enterprise/repository/school.repository.js.map +1 -0
- package/dist/module/enterprise/service/brand.service.d.ts +3 -0
- package/dist/module/enterprise/service/brand.service.js +18 -0
- package/dist/module/enterprise/service/brand.service.js.map +1 -0
- package/dist/module/enterprise/service/enterprise.service.d.ts +8 -0
- package/dist/module/enterprise/service/enterprise.service.js +31 -0
- package/dist/module/enterprise/service/enterprise.service.js.map +1 -0
- package/dist/module/enterprise/service/organization-app-mapping.service.d.ts +2 -0
- package/dist/module/enterprise/service/organization-app-mapping.service.js +17 -0
- package/dist/module/enterprise/service/organization-app-mapping.service.js.map +1 -0
- package/dist/module/enterprise/service/organization.service.d.ts +19 -0
- package/dist/module/enterprise/service/organization.service.js +121 -0
- package/dist/module/enterprise/service/organization.service.js.map +1 -0
- package/dist/module/filter/controller/filter.controller.d.ts +39 -0
- package/dist/module/filter/controller/filter.controller.js +91 -0
- package/dist/module/filter/controller/filter.controller.js.map +1 -0
- package/dist/module/filter/dto/filter-request.dto.d.ts +35 -0
- package/dist/module/filter/dto/filter-request.dto.js +3 -0
- package/dist/module/filter/dto/filter-request.dto.js.map +1 -0
- package/dist/module/filter/entity/saved-filter-detail.entity.d.ts +14 -0
- package/dist/module/filter/entity/saved-filter-detail.entity.js +67 -0
- package/dist/module/filter/entity/saved-filter-detail.entity.js.map +1 -0
- package/dist/module/filter/entity/saved-filter-master.entity.d.ts +8 -0
- package/dist/module/filter/entity/saved-filter-master.entity.js +43 -0
- package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -0
- package/dist/module/filter/filter.module.d.ts +2 -0
- package/dist/module/filter/filter.module.js +44 -0
- package/dist/module/filter/filter.module.js.map +1 -0
- package/dist/module/filter/repository/saved-filter.repository.d.ts +38 -0
- package/dist/module/filter/repository/saved-filter.repository.js +144 -0
- package/dist/module/filter/repository/saved-filter.repository.js.map +1 -0
- package/dist/module/filter/service/filter-evaluator.service.d.ts +9 -0
- package/dist/module/filter/service/filter-evaluator.service.js +62 -0
- package/dist/module/filter/service/filter-evaluator.service.js.map +1 -0
- package/dist/module/filter/service/filter.service.d.ts +66 -0
- package/dist/module/filter/service/filter.service.js +641 -0
- package/dist/module/filter/service/filter.service.js.map +1 -0
- package/dist/module/filter/service/saved-filter.service.d.ts +30 -0
- package/dist/module/filter/service/saved-filter.service.js +125 -0
- package/dist/module/filter/service/saved-filter.service.js.map +1 -0
- package/dist/module/ics/controller/ics.controller.d.ts +8 -0
- package/dist/module/ics/controller/ics.controller.js +45 -0
- package/dist/module/ics/controller/ics.controller.js.map +1 -0
- package/dist/module/ics/dto/ics.dto.d.ts +17 -0
- package/dist/module/ics/dto/ics.dto.js +73 -0
- package/dist/module/ics/dto/ics.dto.js.map +1 -0
- package/dist/module/ics/ics.module.d.ts +2 -0
- package/dist/module/ics/ics.module.js +26 -0
- package/dist/module/ics/ics.module.js.map +1 -0
- package/dist/module/ics/service/ics.service.d.ts +4 -0
- package/dist/module/ics/service/ics.service.js +61 -0
- package/dist/module/ics/service/ics.service.js.map +1 -0
- package/dist/module/integration/controller/calender-event.controller.d.ts +7 -0
- package/dist/module/integration/controller/calender-event.controller.js +51 -0
- package/dist/module/integration/controller/calender-event.controller.js.map +1 -0
- package/dist/module/integration/controller/integration.controller.d.ts +139 -0
- package/dist/module/integration/controller/integration.controller.js +540 -0
- package/dist/module/integration/controller/integration.controller.js.map +1 -0
- package/dist/module/integration/controller/wrapper.controller.d.ts +23 -0
- package/dist/module/integration/controller/wrapper.controller.js +56 -0
- package/dist/module/integration/controller/wrapper.controller.js.map +1 -0
- package/dist/module/integration/dto/create-config.dto.d.ts +208 -0
- package/dist/module/integration/dto/create-config.dto.js +461 -0
- package/dist/module/integration/dto/create-config.dto.js.map +1 -0
- package/dist/module/integration/entity/integration-config.entity.d.ts +54 -0
- package/dist/module/integration/entity/integration-config.entity.js +78 -0
- package/dist/module/integration/entity/integration-config.entity.js.map +1 -0
- package/dist/module/integration/entity/integration-ivr-mapper.entity.d.ts +6 -0
- package/dist/module/integration/entity/integration-ivr-mapper.entity.js +33 -0
- package/dist/module/integration/entity/integration-ivr-mapper.entity.js.map +1 -0
- package/dist/module/integration/entity/integration-source.entity.d.ts +7 -0
- package/dist/module/integration/entity/integration-source.entity.js +37 -0
- package/dist/module/integration/entity/integration-source.entity.js.map +1 -0
- package/dist/module/integration/entity/user-integration.entity.d.ts +23 -0
- package/dist/module/integration/entity/user-integration.entity.js +70 -0
- package/dist/module/integration/entity/user-integration.entity.js.map +1 -0
- package/dist/module/integration/examples/usage.example.d.ts +16 -0
- package/dist/module/integration/examples/usage.example.js +217 -0
- package/dist/module/integration/examples/usage.example.js.map +1 -0
- package/dist/module/integration/factories/base.factory.d.ts +9 -0
- package/dist/module/integration/factories/base.factory.js +3 -0
- package/dist/module/integration/factories/base.factory.js.map +1 -0
- package/dist/module/integration/factories/email.factory.d.ts +17 -0
- package/dist/module/integration/factories/email.factory.js +55 -0
- package/dist/module/integration/factories/email.factory.js.map +1 -0
- package/dist/module/integration/factories/integration.factory.d.ts +33 -0
- package/dist/module/integration/factories/integration.factory.js +104 -0
- package/dist/module/integration/factories/integration.factory.js.map +1 -0
- package/dist/module/integration/factories/sms.factory.d.ts +17 -0
- package/dist/module/integration/factories/sms.factory.js +58 -0
- package/dist/module/integration/factories/sms.factory.js.map +1 -0
- package/dist/module/integration/factories/telephone.factory.d.ts +15 -0
- package/dist/module/integration/factories/telephone.factory.js +49 -0
- package/dist/module/integration/factories/telephone.factory.js.map +1 -0
- package/dist/module/integration/factories/whatsapp.factory.d.ts +19 -0
- package/dist/module/integration/factories/whatsapp.factory.js +63 -0
- package/dist/module/integration/factories/whatsapp.factory.js.map +1 -0
- package/dist/module/integration/integration.module.d.ts +2 -0
- package/dist/module/integration/integration.module.js +87 -0
- package/dist/module/integration/integration.module.js.map +1 -0
- package/dist/module/integration/service/calendar-event.service.d.ts +8 -0
- package/dist/module/integration/service/calendar-event.service.js +101 -0
- package/dist/module/integration/service/calendar-event.service.js.map +1 -0
- package/dist/module/integration/service/integration-queue.service.d.ts +40 -0
- package/dist/module/integration/service/integration-queue.service.js +147 -0
- package/dist/module/integration/service/integration-queue.service.js.map +1 -0
- package/dist/module/integration/service/integration.service.d.ts +165 -0
- package/dist/module/integration/service/integration.service.js +1362 -0
- package/dist/module/integration/service/integration.service.js.map +1 -0
- package/dist/module/integration/service/oauth.service.d.ts +18 -0
- package/dist/module/integration/service/oauth.service.js +190 -0
- package/dist/module/integration/service/oauth.service.js.map +1 -0
- package/dist/module/integration/service/wrapper.service.d.ts +32 -0
- package/dist/module/integration/service/wrapper.service.js +253 -0
- package/dist/module/integration/service/wrapper.service.js.map +1 -0
- package/dist/module/integration/strategies/email/gmail-api.strategy.d.ts +13 -0
- package/dist/module/integration/strategies/email/gmail-api.strategy.js +198 -0
- package/dist/module/integration/strategies/email/gmail-api.strategy.js.map +1 -0
- package/dist/module/integration/strategies/email/outlook-api.strategy.d.ts +5 -0
- package/dist/module/integration/strategies/email/outlook-api.strategy.js +44 -0
- package/dist/module/integration/strategies/email/outlook-api.strategy.js.map +1 -0
- package/dist/module/integration/strategies/email/outlook.strategy.d.ts +5 -0
- package/dist/module/integration/strategies/email/outlook.strategy.js +64 -0
- package/dist/module/integration/strategies/email/outlook.strategy.js.map +1 -0
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.d.ts +22 -0
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.js +203 -0
- package/dist/module/integration/strategies/email/sendgrid-api.strategy.js.map +1 -0
- package/dist/module/integration/strategies/integration.strategy.d.ts +30 -0
- package/dist/module/integration/strategies/integration.strategy.js +40 -0
- package/dist/module/integration/strategies/integration.strategy.js.map +1 -0
- package/dist/module/integration/strategies/sms/gupshup-sms.strategy.d.ts +9 -0
- package/dist/module/integration/strategies/sms/gupshup-sms.strategy.js +104 -0
- package/dist/module/integration/strategies/sms/gupshup-sms.strategy.js.map +1 -0
- package/dist/module/integration/strategies/sms/msg91-sms.strategy.d.ts +9 -0
- package/dist/module/integration/strategies/sms/msg91-sms.strategy.js +113 -0
- package/dist/module/integration/strategies/sms/msg91-sms.strategy.js.map +1 -0
- package/dist/module/integration/strategies/sms/tubelight-sms.strategy.d.ts +9 -0
- package/dist/module/integration/strategies/sms/tubelight-sms.strategy.js +109 -0
- package/dist/module/integration/strategies/sms/tubelight-sms.strategy.js.map +1 -0
- package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.d.ts +22 -0
- package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.js +162 -0
- package/dist/module/integration/strategies/telephone/ozonetel-voice.strategy.js.map +1 -0
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.d.ts +17 -0
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js +100 -0
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js.map +1 -0
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.d.ts +19 -0
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js +257 -0
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js.map +1 -0
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.d.ts +22 -0
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js +295 -0
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js.map +1 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.d.ts +20 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.js +264 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp-cloud.strategy.js.map +1 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.d.ts +5 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.js +57 -0
- package/dist/module/integration/strategies/whatsapp/whatsapp.strategy.js.map +1 -0
- package/dist/module/layout/controller/layout.controller.d.ts +11 -0
- package/dist/module/layout/controller/layout.controller.js +59 -0
- package/dist/module/layout/controller/layout.controller.js.map +1 -0
- package/dist/module/layout/dto/header.dto.d.ts +0 -0
- package/dist/module/layout/dto/header.dto.js +1 -0
- package/dist/module/layout/dto/header.dto.js.map +1 -0
- package/dist/module/layout/entity/header-items.entity.d.ts +10 -0
- package/dist/module/layout/entity/header-items.entity.js +52 -0
- package/dist/module/layout/entity/header-items.entity.js.map +1 -0
- package/dist/module/layout/entity/header-section.entity.d.ts +7 -0
- package/dist/module/layout/entity/header-section.entity.js +40 -0
- package/dist/module/layout/entity/header-section.entity.js.map +1 -0
- package/dist/module/layout/layout.module.d.ts +2 -0
- package/dist/module/layout/layout.module.js +34 -0
- package/dist/module/layout/layout.module.js.map +1 -0
- package/dist/module/layout/repository/header-items.repository.d.ts +7 -0
- package/dist/module/layout/repository/header-items.repository.js +36 -0
- package/dist/module/layout/repository/header-items.repository.js.map +1 -0
- package/dist/module/layout/repository/header-section.repository.d.ts +8 -0
- package/dist/module/layout/repository/header-section.repository.js +39 -0
- package/dist/module/layout/repository/header-section.repository.js.map +1 -0
- package/dist/module/layout/service/header-section.service.d.ts +8 -0
- package/dist/module/layout/service/header-section.service.js +37 -0
- package/dist/module/layout/service/header-section.service.js.map +1 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.d.ts +13 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.js +59 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.js.map +1 -0
- package/dist/module/layout_preference/dto/layout_preference.dto.d.ts +0 -0
- package/dist/module/layout_preference/dto/layout_preference.dto.js +1 -0
- package/dist/module/layout_preference/dto/layout_preference.dto.js.map +1 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.d.ts +9 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.js +50 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.js.map +1 -0
- package/dist/module/layout_preference/layout_preference.module.d.ts +2 -0
- package/dist/module/layout_preference/layout_preference.module.js +31 -0
- package/dist/module/layout_preference/layout_preference.module.js.map +1 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.d.ts +7 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.js +42 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.js.map +1 -0
- package/dist/module/layout_preference/service/layout_preference.service.d.ts +15 -0
- package/dist/module/layout_preference/service/layout_preference.service.js +99 -0
- package/dist/module/layout_preference/service/layout_preference.service.js.map +1 -0
- package/dist/module/lead/controller/lead.controller.d.ts +20 -0
- package/dist/module/lead/controller/lead.controller.js +58 -0
- package/dist/module/lead/controller/lead.controller.js.map +1 -0
- package/dist/module/lead/lead.module.d.ts +2 -0
- package/dist/module/lead/lead.module.js +26 -0
- package/dist/module/lead/lead.module.js.map +1 -0
- package/dist/module/lead/repository/lead.repository.d.ts +10 -0
- package/dist/module/lead/repository/lead.repository.js +53 -0
- package/dist/module/lead/repository/lead.repository.js.map +1 -0
- package/dist/module/lead/service/lead.service.d.ts +20 -0
- package/dist/module/lead/service/lead.service.js +55 -0
- package/dist/module/lead/service/lead.service.js.map +1 -0
- package/dist/module/listmaster/controller/list-master.controller.d.ts +24 -0
- package/dist/module/listmaster/controller/list-master.controller.js +124 -0
- package/dist/module/listmaster/controller/list-master.controller.js.map +1 -0
- package/dist/module/listmaster/entity/list-master-items.entity.d.ts +14 -0
- package/dist/module/listmaster/entity/list-master-items.entity.js +67 -0
- package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -0
- package/dist/module/listmaster/entity/list-master.entity.d.ts +11 -0
- package/dist/module/listmaster/entity/list-master.entity.js +55 -0
- package/dist/module/listmaster/entity/list-master.entity.js.map +1 -0
- package/dist/module/listmaster/listmaster.module.d.ts +2 -0
- package/dist/module/listmaster/listmaster.module.js +43 -0
- package/dist/module/listmaster/listmaster.module.js.map +1 -0
- package/dist/module/listmaster/repository/list-master-items.repository.d.ts +21 -0
- package/dist/module/listmaster/repository/list-master-items.repository.js +142 -0
- package/dist/module/listmaster/repository/list-master-items.repository.js.map +1 -0
- package/dist/module/listmaster/repository/list-master.repository.d.ts +9 -0
- package/dist/module/listmaster/repository/list-master.repository.js +53 -0
- package/dist/module/listmaster/repository/list-master.repository.js.map +1 -0
- package/dist/module/listmaster/service/list-master-item.service.d.ts +19 -0
- package/dist/module/listmaster/service/list-master-item.service.js +151 -0
- package/dist/module/listmaster/service/list-master-item.service.js.map +1 -0
- package/dist/module/listmaster/service/list-master.service.d.ts +32 -0
- package/dist/module/listmaster/service/list-master.service.js +228 -0
- package/dist/module/listmaster/service/list-master.service.js.map +1 -0
- package/dist/module/mapper/controller/field-mapper.controller.d.ts +7 -0
- package/dist/module/mapper/controller/field-mapper.controller.js +58 -0
- package/dist/module/mapper/controller/field-mapper.controller.js.map +1 -0
- package/dist/module/mapper/controller/mapper.controller.d.ts +6 -0
- package/dist/module/mapper/controller/mapper.controller.js +39 -0
- package/dist/module/mapper/controller/mapper.controller.js.map +1 -0
- package/dist/module/mapper/dto/field-mapper.dto.d.ts +11 -0
- package/dist/module/mapper/dto/field-mapper.dto.js +8 -0
- package/dist/module/mapper/dto/field-mapper.dto.js.map +1 -0
- package/dist/module/mapper/entity/field-lovs.entity.d.ts +7 -0
- package/dist/module/mapper/entity/field-lovs.entity.js +38 -0
- package/dist/module/mapper/entity/field-lovs.entity.js.map +1 -0
- package/dist/module/mapper/entity/field-mapper.entity.d.ts +12 -0
- package/dist/module/mapper/entity/field-mapper.entity.js +58 -0
- package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -0
- package/dist/module/mapper/entity/mapper.entity.d.ts +6 -0
- package/dist/module/mapper/entity/mapper.entity.js +34 -0
- package/dist/module/mapper/entity/mapper.entity.js.map +1 -0
- package/dist/module/mapper/mapper.module.d.ts +2 -0
- package/dist/module/mapper/mapper.module.js +42 -0
- package/dist/module/mapper/mapper.module.js.map +1 -0
- package/dist/module/mapper/repository/field-lovs.repository.d.ts +8 -0
- package/dist/module/mapper/repository/field-lovs.repository.js +41 -0
- package/dist/module/mapper/repository/field-lovs.repository.js.map +1 -0
- package/dist/module/mapper/repository/field-mapper.repository.d.ts +9 -0
- package/dist/module/mapper/repository/field-mapper.repository.js +42 -0
- package/dist/module/mapper/repository/field-mapper.repository.js.map +1 -0
- package/dist/module/mapper/service/field-mapper.service.d.ts +20 -0
- package/dist/module/mapper/service/field-mapper.service.js +140 -0
- package/dist/module/mapper/service/field-mapper.service.js.map +1 -0
- package/dist/module/mapper/service/mapper.service.d.ts +7 -0
- package/dist/module/mapper/service/mapper.service.js +40 -0
- package/dist/module/mapper/service/mapper.service.js.map +1 -0
- package/dist/module/master/controller/master.controller.d.ts +20 -0
- package/dist/module/master/controller/master.controller.js +82 -0
- package/dist/module/master/controller/master.controller.js.map +1 -0
- package/dist/module/master/service/master.service.d.ts +31 -0
- package/dist/module/master/service/master.service.js +366 -0
- package/dist/module/master/service/master.service.js.map +1 -0
- package/dist/module/meta/controller/app-master.controller.d.ts +9 -0
- package/dist/module/meta/controller/app-master.controller.js +51 -0
- package/dist/module/meta/controller/app-master.controller.js.map +1 -0
- package/dist/module/meta/controller/attribute-master.controller.d.ts +21 -0
- package/dist/module/meta/controller/attribute-master.controller.js +78 -0
- package/dist/module/meta/controller/attribute-master.controller.js.map +1 -0
- package/dist/module/meta/controller/entity-dynamic.controller.d.ts +18 -0
- package/dist/module/meta/controller/entity-dynamic.controller.js +102 -0
- package/dist/module/meta/controller/entity-dynamic.controller.js.map +1 -0
- package/dist/module/meta/controller/entity-master.controller.d.ts +8 -0
- package/dist/module/meta/controller/entity-master.controller.js +44 -0
- package/dist/module/meta/controller/entity-master.controller.js.map +1 -0
- package/dist/module/meta/controller/entity-relation.controller.d.ts +6 -0
- package/dist/module/meta/controller/entity-relation.controller.js +45 -0
- package/dist/module/meta/controller/entity-relation.controller.js.map +1 -0
- package/dist/module/meta/controller/entity.controller.d.ts +38 -0
- package/dist/module/meta/controller/entity.controller.js +245 -0
- package/dist/module/meta/controller/entity.controller.js.map +1 -0
- package/dist/module/meta/controller/media.controller.d.ts +17 -0
- package/dist/module/meta/controller/media.controller.js +79 -0
- package/dist/module/meta/controller/media.controller.js.map +1 -0
- package/dist/module/meta/controller/meta.controller.d.ts +19 -0
- package/dist/module/meta/controller/meta.controller.js +87 -0
- package/dist/module/meta/controller/meta.controller.js.map +1 -0
- package/dist/module/meta/controller/view-master.controller.d.ts +12 -0
- package/dist/module/meta/controller/view-master.controller.js +87 -0
- package/dist/module/meta/controller/view-master.controller.js.map +1 -0
- package/dist/module/meta/dto/entity-list-data.dto.d.ts +5 -0
- package/dist/module/meta/dto/entity-list-data.dto.js +7 -0
- package/dist/module/meta/dto/entity-list-data.dto.js.map +1 -0
- package/dist/module/meta/dto/entity-tab.dto.d.ts +4 -0
- package/dist/module/meta/dto/entity-tab.dto.js +7 -0
- package/dist/module/meta/dto/entity-tab.dto.js.map +1 -0
- package/dist/module/meta/dto/entity-table.dto.d.ts +11 -0
- package/dist/module/meta/dto/entity-table.dto.js +8 -0
- package/dist/module/meta/dto/entity-table.dto.js.map +1 -0
- package/dist/module/meta/entity/app-master.entity.d.ts +12 -0
- package/dist/module/meta/entity/app-master.entity.js +58 -0
- package/dist/module/meta/entity/app-master.entity.js.map +1 -0
- package/dist/module/meta/entity/attribute-master.entity.d.ts +21 -0
- package/dist/module/meta/entity/attribute-master.entity.js +118 -0
- package/dist/module/meta/entity/attribute-master.entity.js.map +1 -0
- package/dist/module/meta/entity/base-entity.entity.d.ts +19 -0
- package/dist/module/meta/entity/base-entity.entity.js +104 -0
- package/dist/module/meta/entity/base-entity.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-master.entity.d.ts +18 -0
- package/dist/module/meta/entity/entity-master.entity.js +108 -0
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-relation-data.entity.d.ts +10 -0
- package/dist/module/meta/entity/entity-relation-data.entity.js +51 -0
- package/dist/module/meta/entity/entity-relation-data.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-relation.entity.d.ts +8 -0
- package/dist/module/meta/entity/entity-relation.entity.js +43 -0
- package/dist/module/meta/entity/entity-relation.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-table-column.entity.d.ts +19 -0
- package/dist/module/meta/entity/entity-table-column.entity.js +92 -0
- package/dist/module/meta/entity/entity-table-column.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-table.entity.d.ts +17 -0
- package/dist/module/meta/entity/entity-table.entity.js +79 -0
- package/dist/module/meta/entity/entity-table.entity.js.map +1 -0
- package/dist/module/meta/entity/media-data.entity.d.ts +11 -0
- package/dist/module/meta/entity/media-data.entity.js +55 -0
- package/dist/module/meta/entity/media-data.entity.js.map +1 -0
- package/dist/module/meta/entity/preference.entity.d.ts +11 -0
- package/dist/module/meta/entity/preference.entity.js +85 -0
- package/dist/module/meta/entity/preference.entity.js.map +1 -0
- package/dist/module/meta/entity/view-master.entity.d.ts +14 -0
- package/dist/module/meta/entity/view-master.entity.js +67 -0
- package/dist/module/meta/entity/view-master.entity.js.map +1 -0
- package/dist/module/meta/entity.module.d.ts +2 -0
- package/dist/module/meta/entity.module.js +153 -0
- package/dist/module/meta/entity.module.js.map +1 -0
- package/dist/module/meta/repository/app-master.repository.d.ts +7 -0
- package/dist/module/meta/repository/app-master.repository.js +36 -0
- package/dist/module/meta/repository/app-master.repository.js.map +1 -0
- package/dist/module/meta/repository/attribute-master.repository.d.ts +20 -0
- package/dist/module/meta/repository/attribute-master.repository.js +85 -0
- package/dist/module/meta/repository/attribute-master.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-master.repository.d.ts +9 -0
- package/dist/module/meta/repository/entity-master.repository.js +44 -0
- package/dist/module/meta/repository/entity-master.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-table-column.repository.d.ts +7 -0
- package/dist/module/meta/repository/entity-table-column.repository.js +52 -0
- package/dist/module/meta/repository/entity-table-column.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-table.repository.d.ts +9 -0
- package/dist/module/meta/repository/entity-table.repository.js +60 -0
- package/dist/module/meta/repository/entity-table.repository.js.map +1 -0
- package/dist/module/meta/repository/media-data.repository.d.ts +9 -0
- package/dist/module/meta/repository/media-data.repository.js +55 -0
- package/dist/module/meta/repository/media-data.repository.js.map +1 -0
- package/dist/module/meta/repository/preference.repository.d.ts +7 -0
- package/dist/module/meta/repository/preference.repository.js +36 -0
- package/dist/module/meta/repository/preference.repository.js.map +1 -0
- package/dist/module/meta/repository/user-app-mapping.repository.d.ts +0 -0
- package/dist/module/meta/repository/user-app-mapping.repository.js +1 -0
- package/dist/module/meta/repository/user-app-mapping.repository.js.map +1 -0
- package/dist/module/meta/repository/view-master.repository.d.ts +11 -0
- package/dist/module/meta/repository/view-master.repository.js +50 -0
- package/dist/module/meta/repository/view-master.repository.js.map +1 -0
- package/dist/module/meta/service/app-master.service.d.ts +8 -0
- package/dist/module/meta/service/app-master.service.js +45 -0
- package/dist/module/meta/service/app-master.service.js.map +1 -0
- package/dist/module/meta/service/attribute-master.service.d.ts +16 -0
- package/dist/module/meta/service/attribute-master.service.js +75 -0
- package/dist/module/meta/service/attribute-master.service.js.map +1 -0
- package/dist/module/meta/service/common.service.d.ts +4 -0
- package/dist/module/meta/service/common.service.js +25 -0
- package/dist/module/meta/service/common.service.js.map +1 -0
- package/dist/module/meta/service/entity-dynamic.service.d.ts +19 -0
- package/dist/module/meta/service/entity-dynamic.service.js +395 -0
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -0
- package/dist/module/meta/service/entity-list.service.d.ts +17 -0
- package/dist/module/meta/service/entity-list.service.js +141 -0
- package/dist/module/meta/service/entity-list.service.js.map +1 -0
- package/dist/module/meta/service/entity-master.service.d.ts +20 -0
- package/dist/module/meta/service/entity-master.service.js +106 -0
- package/dist/module/meta/service/entity-master.service.js.map +1 -0
- package/dist/module/meta/service/entity-realation-data.service.d.ts +4 -0
- package/dist/module/meta/service/entity-realation-data.service.js +25 -0
- package/dist/module/meta/service/entity-realation-data.service.js.map +1 -0
- package/dist/module/meta/service/entity-relation.service.d.ts +8 -0
- package/dist/module/meta/service/entity-relation.service.js +58 -0
- package/dist/module/meta/service/entity-relation.service.js.map +1 -0
- package/dist/module/meta/service/entity-service-impl.service.d.ts +42 -0
- package/dist/module/meta/service/entity-service-impl.service.js +267 -0
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -0
- package/dist/module/meta/service/entity-table-column.service.d.ts +7 -0
- package/dist/module/meta/service/entity-table-column.service.js +37 -0
- package/dist/module/meta/service/entity-table-column.service.js.map +1 -0
- package/dist/module/meta/service/entity-table.service.d.ts +17 -0
- package/dist/module/meta/service/entity-table.service.js +86 -0
- package/dist/module/meta/service/entity-table.service.js.map +1 -0
- package/dist/module/meta/service/entity-validation.service.d.ts +21 -0
- package/dist/module/meta/service/entity-validation.service.js +117 -0
- package/dist/module/meta/service/entity-validation.service.js.map +1 -0
- package/dist/module/meta/service/entity.service.d.ts +15 -0
- package/dist/module/meta/service/entity.service.js +3 -0
- package/dist/module/meta/service/entity.service.js.map +1 -0
- package/dist/module/meta/service/field-group.service.d.ts +26 -0
- package/dist/module/meta/service/field-group.service.js +78 -0
- package/dist/module/meta/service/field-group.service.js.map +1 -0
- package/dist/module/meta/service/media-data.service.d.ts +29 -0
- package/dist/module/meta/service/media-data.service.js +108 -0
- package/dist/module/meta/service/media-data.service.js.map +1 -0
- package/dist/module/meta/service/populate-meta.service.d.ts +11 -0
- package/dist/module/meta/service/populate-meta.service.js +108 -0
- package/dist/module/meta/service/populate-meta.service.js.map +1 -0
- package/dist/module/meta/service/preference.service.d.ts +7 -0
- package/dist/module/meta/service/preference.service.js +31 -0
- package/dist/module/meta/service/preference.service.js.map +1 -0
- package/dist/module/meta/service/resolver.service.d.ts +9 -0
- package/dist/module/meta/service/resolver.service.js +168 -0
- package/dist/module/meta/service/resolver.service.js.map +1 -0
- package/dist/module/meta/service/section-master.service.d.ts +26 -0
- package/dist/module/meta/service/section-master.service.js +77 -0
- package/dist/module/meta/service/section-master.service.js.map +1 -0
- package/dist/module/meta/service/update-form-json.service.d.ts +9 -0
- package/dist/module/meta/service/update-form-json.service.js +39 -0
- package/dist/module/meta/service/update-form-json.service.js.map +1 -0
- package/dist/module/meta/service/user-app-mapping.service.d.ts +0 -0
- package/dist/module/meta/service/user-app-mapping.service.js +1 -0
- package/dist/module/meta/service/user-app-mapping.service.js.map +1 -0
- package/dist/module/meta/service/view-master.service.d.ts +26 -0
- package/dist/module/meta/service/view-master.service.js +58 -0
- package/dist/module/meta/service/view-master.service.js.map +1 -0
- package/dist/module/module/controller/menu.controller.d.ts +8 -0
- package/dist/module/module/controller/menu.controller.js +41 -0
- package/dist/module/module/controller/menu.controller.js.map +1 -0
- package/dist/module/module/controller/module-access.controller.d.ts +35 -0
- package/dist/module/module/controller/module-access.controller.js +148 -0
- package/dist/module/module/controller/module-access.controller.js.map +1 -0
- package/dist/module/module/entity/menu.entity.d.ts +15 -0
- package/dist/module/module/entity/menu.entity.js +72 -0
- package/dist/module/module/entity/menu.entity.js.map +1 -0
- package/dist/module/module/entity/module-access.entity.d.ts +9 -0
- package/dist/module/module/entity/module-access.entity.js +48 -0
- package/dist/module/module/entity/module-access.entity.js.map +1 -0
- package/dist/module/module/entity/module-action.entity.d.ts +6 -0
- package/dist/module/module/entity/module-action.entity.js +37 -0
- package/dist/module/module/entity/module-action.entity.js.map +1 -0
- package/dist/module/module/entity/module.entity.d.ts +18 -0
- package/dist/module/module/entity/module.entity.js +84 -0
- package/dist/module/module/entity/module.entity.js.map +1 -0
- package/dist/module/module/module.module.d.ts +2 -0
- package/dist/module/module/module.module.js +55 -0
- package/dist/module/module/module.module.js.map +1 -0
- package/dist/module/module/repository/menu.repository.d.ts +11 -0
- package/dist/module/module/repository/menu.repository.js +152 -0
- package/dist/module/module/repository/menu.repository.js.map +1 -0
- package/dist/module/module/repository/module-access.repository.d.ts +51 -0
- package/dist/module/module/repository/module-access.repository.js +271 -0
- package/dist/module/module/repository/module-access.repository.js.map +1 -0
- package/dist/module/module/service/menu.service.d.ts +12 -0
- package/dist/module/module/service/menu.service.js +59 -0
- package/dist/module/module/service/menu.service.js.map +1 -0
- package/dist/module/module/service/module-access.service.d.ts +60 -0
- package/dist/module/module/service/module-access.service.js +119 -0
- package/dist/module/module/service/module-access.service.js.map +1 -0
- package/dist/module/notification/controller/notification.controller.d.ts +23 -0
- package/dist/module/notification/controller/notification.controller.js +74 -0
- package/dist/module/notification/controller/notification.controller.js.map +1 -0
- package/dist/module/notification/controller/otp.controller.d.ts +53 -0
- package/dist/module/notification/controller/otp.controller.js +103 -0
- package/dist/module/notification/controller/otp.controller.js.map +1 -0
- package/dist/module/notification/entity/notification.entity.d.ts +9 -0
- package/dist/module/notification/entity/notification.entity.js +45 -0
- package/dist/module/notification/entity/notification.entity.js.map +1 -0
- package/dist/module/notification/entity/otp.entity.d.ts +10 -0
- package/dist/module/notification/entity/otp.entity.js +52 -0
- package/dist/module/notification/entity/otp.entity.js.map +1 -0
- package/dist/module/notification/firebase-admin.config.d.ts +7 -0
- package/dist/module/notification/firebase-admin.config.js +24 -0
- package/dist/module/notification/firebase-admin.config.js.map +1 -0
- package/dist/module/notification/notification.module.d.ts +2 -0
- package/dist/module/notification/notification.module.js +82 -0
- package/dist/module/notification/notification.module.js.map +1 -0
- package/dist/module/notification/repository/otp.repository.d.ts +9 -0
- package/dist/module/notification/repository/otp.repository.js +44 -0
- package/dist/module/notification/repository/otp.repository.js.map +1 -0
- package/dist/module/notification/service/email.service.d.ts +14 -0
- package/dist/module/notification/service/email.service.js +110 -0
- package/dist/module/notification/service/email.service.js.map +1 -0
- package/dist/module/notification/service/notification.service.d.ts +25 -0
- package/dist/module/notification/service/notification.service.js +112 -0
- package/dist/module/notification/service/notification.service.js.map +1 -0
- package/dist/module/notification/service/otp.service.d.ts +49 -0
- package/dist/module/notification/service/otp.service.js +102 -0
- package/dist/module/notification/service/otp.service.js.map +1 -0
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.d.ts +18 -0
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.js +84 -0
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.js.map +1 -0
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.d.ts +7 -0
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.js +38 -0
- package/dist/module/third-party-module/repository/third-party-api-registry.repository.js.map +1 -0
- package/dist/module/third-party-module/service/api-registry.service.d.ts +6 -0
- package/dist/module/third-party-module/service/api-registry.service.js +28 -0
- package/dist/module/third-party-module/service/api-registry.service.js.map +1 -0
- package/dist/module/third-party-module/third-party.module.d.ts +2 -0
- package/dist/module/third-party-module/third-party.module.js +25 -0
- package/dist/module/third-party-module/third-party.module.js.map +1 -0
- package/dist/module/user/controller/login.controller.d.ts +26 -0
- package/dist/module/user/controller/login.controller.js +176 -0
- package/dist/module/user/controller/login.controller.js.map +1 -0
- package/dist/module/user/controller/user.controller.d.ts +9 -0
- package/dist/module/user/controller/user.controller.js +59 -0
- package/dist/module/user/controller/user.controller.js.map +1 -0
- package/dist/module/user/dto/create-user.dto.d.ts +17 -0
- package/dist/module/user/dto/create-user.dto.js +64 -0
- package/dist/module/user/dto/create-user.dto.js.map +1 -0
- package/dist/module/user/dto/update-user.dto.d.ts +5 -0
- package/dist/module/user/dto/update-user.dto.js +9 -0
- package/dist/module/user/dto/update-user.dto.js.map +1 -0
- package/dist/module/user/entity/role.entity.d.ts +11 -0
- package/dist/module/user/entity/role.entity.js +56 -0
- package/dist/module/user/entity/role.entity.js.map +1 -0
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +12 -0
- package/dist/module/user/entity/user-role-mapping.entity.js +63 -0
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -0
- package/dist/module/user/entity/user-session.entity.d.ts +11 -0
- package/dist/module/user/entity/user-session.entity.js +86 -0
- package/dist/module/user/entity/user-session.entity.js.map +1 -0
- package/dist/module/user/entity/user.entity.d.ts +23 -0
- package/dist/module/user/entity/user.entity.js +103 -0
- package/dist/module/user/entity/user.entity.js.map +1 -0
- package/dist/module/user/repository/role.repository.d.ts +18 -0
- package/dist/module/user/repository/role.repository.js +87 -0
- package/dist/module/user/repository/role.repository.js.map +1 -0
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +19 -0
- package/dist/module/user/repository/user-role-mapping.repository.js +110 -0
- package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -0
- package/dist/module/user/repository/user.repository.d.ts +10 -0
- package/dist/module/user/repository/user.repository.js +58 -0
- package/dist/module/user/repository/user.repository.js.map +1 -0
- package/dist/module/user/repository/userSession.repository.d.ts +10 -0
- package/dist/module/user/repository/userSession.repository.js +45 -0
- package/dist/module/user/repository/userSession.repository.js.map +1 -0
- package/dist/module/user/service/login.service.d.ts +80 -0
- package/dist/module/user/service/login.service.js +209 -0
- package/dist/module/user/service/login.service.js.map +1 -0
- package/dist/module/user/service/role.service.d.ts +23 -0
- package/dist/module/user/service/role.service.js +146 -0
- package/dist/module/user/service/role.service.js.map +1 -0
- package/dist/module/user/service/user-role-mapping.service.d.ts +12 -0
- package/dist/module/user/service/user-role-mapping.service.js +60 -0
- package/dist/module/user/service/user-role-mapping.service.js.map +1 -0
- package/dist/module/user/service/user-session.service.d.ts +38 -0
- package/dist/module/user/service/user-session.service.js +132 -0
- package/dist/module/user/service/user-session.service.js.map +1 -0
- package/dist/module/user/service/user.service.d.ts +38 -0
- package/dist/module/user/service/user.service.js +234 -0
- package/dist/module/user/service/user.service.js.map +1 -0
- package/dist/module/user/user.module.d.ts +2 -0
- package/dist/module/user/user.module.js +78 -0
- package/dist/module/user/user.module.js.map +1 -0
- package/dist/module/workflow/controller/action-category.controller.d.ts +18 -0
- package/dist/module/workflow/controller/action-category.controller.js +79 -0
- package/dist/module/workflow/controller/action-category.controller.js.map +1 -0
- package/dist/module/workflow/controller/action-resource-mapping.controller.d.ts +5 -0
- package/dist/module/workflow/controller/action-resource-mapping.controller.js +31 -0
- package/dist/module/workflow/controller/action-resource-mapping.controller.js.map +1 -0
- package/dist/module/workflow/controller/action-template-mapping.controller.d.ts +12 -0
- package/dist/module/workflow/controller/action-template-mapping.controller.js +44 -0
- package/dist/module/workflow/controller/action-template-mapping.controller.js.map +1 -0
- package/dist/module/workflow/controller/action.controller.d.ts +45 -0
- package/dist/module/workflow/controller/action.controller.js +108 -0
- package/dist/module/workflow/controller/action.controller.js.map +1 -0
- package/dist/module/workflow/controller/activity-log.controller.d.ts +44 -0
- package/dist/module/workflow/controller/activity-log.controller.js +62 -0
- package/dist/module/workflow/controller/activity-log.controller.js.map +1 -0
- package/dist/module/workflow/controller/comm-template.controller.d.ts +13 -0
- package/dist/module/workflow/controller/comm-template.controller.js +45 -0
- package/dist/module/workflow/controller/comm-template.controller.js.map +1 -0
- package/dist/module/workflow/controller/entity-modification.controller.d.ts +8 -0
- package/dist/module/workflow/controller/entity-modification.controller.js +44 -0
- package/dist/module/workflow/controller/entity-modification.controller.js.map +1 -0
- package/dist/module/workflow/controller/form-master.controller.d.ts +11 -0
- package/dist/module/workflow/controller/form-master.controller.js +59 -0
- package/dist/module/workflow/controller/form-master.controller.js.map +1 -0
- package/dist/module/workflow/controller/stage-group.controller.d.ts +19 -0
- package/dist/module/workflow/controller/stage-group.controller.js +56 -0
- package/dist/module/workflow/controller/stage-group.controller.js.map +1 -0
- package/dist/module/workflow/controller/stage.controller.d.ts +34 -0
- package/dist/module/workflow/controller/stage.controller.js +56 -0
- package/dist/module/workflow/controller/stage.controller.js.map +1 -0
- package/dist/module/workflow/controller/task.controller.d.ts +32 -0
- package/dist/module/workflow/controller/task.controller.js +72 -0
- package/dist/module/workflow/controller/task.controller.js.map +1 -0
- package/dist/module/workflow/controller/workflow-list-master.controller.d.ts +14 -0
- package/dist/module/workflow/controller/workflow-list-master.controller.js +67 -0
- package/dist/module/workflow/controller/workflow-list-master.controller.js.map +1 -0
- package/dist/module/workflow/controller/workflow-meta.controller.d.ts +15 -0
- package/dist/module/workflow/controller/workflow-meta.controller.js +72 -0
- package/dist/module/workflow/controller/workflow-meta.controller.js.map +1 -0
- package/dist/module/workflow/controller/workflow.controller.d.ts +31 -0
- package/dist/module/workflow/controller/workflow.controller.js +83 -0
- package/dist/module/workflow/controller/workflow.controller.js.map +1 -0
- package/dist/module/workflow/entity/action-category.entity.d.ts +12 -0
- package/dist/module/workflow/entity/action-category.entity.js +59 -0
- package/dist/module/workflow/entity/action-category.entity.js.map +1 -0
- package/dist/module/workflow/entity/action-data.entity.d.ts +19 -0
- package/dist/module/workflow/entity/action-data.entity.js +86 -0
- package/dist/module/workflow/entity/action-data.entity.js.map +1 -0
- package/dist/module/workflow/entity/action-resources-mapping.entity.d.ts +9 -0
- package/dist/module/workflow/entity/action-resources-mapping.entity.js +47 -0
- package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +1 -0
- package/dist/module/workflow/entity/action-template-mapping.entity.d.ts +6 -0
- package/dist/module/workflow/entity/action-template-mapping.entity.js +35 -0
- package/dist/module/workflow/entity/action-template-mapping.entity.js.map +1 -0
- package/dist/module/workflow/entity/action.entity.d.ts +17 -0
- package/dist/module/workflow/entity/action.entity.js +79 -0
- package/dist/module/workflow/entity/action.entity.js.map +1 -0
- package/dist/module/workflow/entity/activity-log.entity.d.ts +15 -0
- package/dist/module/workflow/entity/activity-log.entity.js +70 -0
- package/dist/module/workflow/entity/activity-log.entity.js.map +1 -0
- package/dist/module/workflow/entity/comm-template.entity.d.ts +13 -0
- package/dist/module/workflow/entity/comm-template.entity.js +63 -0
- package/dist/module/workflow/entity/comm-template.entity.js.map +1 -0
- package/dist/module/workflow/entity/entity-modification.entity.d.ts +13 -0
- package/dist/module/workflow/entity/entity-modification.entity.js +63 -0
- package/dist/module/workflow/entity/entity-modification.entity.js.map +1 -0
- package/dist/module/workflow/entity/form-master.entity.d.ts +10 -0
- package/dist/module/workflow/entity/form-master.entity.js +50 -0
- package/dist/module/workflow/entity/form-master.entity.js.map +1 -0
- package/dist/module/workflow/entity/form.entity.d.ts +9 -0
- package/dist/module/workflow/entity/form.entity.js +46 -0
- package/dist/module/workflow/entity/form.entity.js.map +1 -0
- package/dist/module/workflow/entity/stage-action-mapping.entity.d.ts +6 -0
- package/dist/module/workflow/entity/stage-action-mapping.entity.js +35 -0
- package/dist/module/workflow/entity/stage-action-mapping.entity.js.map +1 -0
- package/dist/module/workflow/entity/stage-group.entity.d.ts +8 -0
- package/dist/module/workflow/entity/stage-group.entity.js +43 -0
- package/dist/module/workflow/entity/stage-group.entity.js.map +1 -0
- package/dist/module/workflow/entity/stage-movement-data.entity.d.ts +13 -0
- package/dist/module/workflow/entity/stage-movement-data.entity.js +63 -0
- package/dist/module/workflow/entity/stage-movement-data.entity.js.map +1 -0
- package/dist/module/workflow/entity/stage.entity.d.ts +7 -0
- package/dist/module/workflow/entity/stage.entity.js +39 -0
- package/dist/module/workflow/entity/stage.entity.js.map +1 -0
- package/dist/module/workflow/entity/task-data.entity.d.ts +30 -0
- package/dist/module/workflow/entity/task-data.entity.js +130 -0
- package/dist/module/workflow/entity/task-data.entity.js.map +1 -0
- package/dist/module/workflow/entity/template-attach-mapper.entity.d.ts +11 -0
- package/dist/module/workflow/entity/template-attach-mapper.entity.js +54 -0
- package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +1 -0
- package/dist/module/workflow/entity/workflow-data.entity.d.ts +4 -0
- package/dist/module/workflow/entity/workflow-data.entity.js +27 -0
- package/dist/module/workflow/entity/workflow-data.entity.js.map +1 -0
- package/dist/module/workflow/entity/workflow-level-mapping.entity.d.ts +7 -0
- package/dist/module/workflow/entity/workflow-level-mapping.entity.js +38 -0
- package/dist/module/workflow/entity/workflow-level-mapping.entity.js.map +1 -0
- package/dist/module/workflow/entity/workflow.entity.d.ts +7 -0
- package/dist/module/workflow/entity/workflow.entity.js +39 -0
- package/dist/module/workflow/entity/workflow.entity.js.map +1 -0
- package/dist/module/workflow/repository/action-category.repository.d.ts +19 -0
- package/dist/module/workflow/repository/action-category.repository.js +84 -0
- package/dist/module/workflow/repository/action-category.repository.js.map +1 -0
- package/dist/module/workflow/repository/action-data.repository.d.ts +20 -0
- package/dist/module/workflow/repository/action-data.repository.js +176 -0
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -0
- package/dist/module/workflow/repository/action.repository.d.ts +29 -0
- package/dist/module/workflow/repository/action.repository.js +220 -0
- package/dist/module/workflow/repository/action.repository.js.map +1 -0
- package/dist/module/workflow/repository/activity-log.repository.d.ts +57 -0
- package/dist/module/workflow/repository/activity-log.repository.js +112 -0
- package/dist/module/workflow/repository/activity-log.repository.js.map +1 -0
- package/dist/module/workflow/repository/comm-template.repository.d.ts +15 -0
- package/dist/module/workflow/repository/comm-template.repository.js +107 -0
- package/dist/module/workflow/repository/comm-template.repository.js.map +1 -0
- package/dist/module/workflow/repository/form-master.repository.d.ts +12 -0
- package/dist/module/workflow/repository/form-master.repository.js +59 -0
- package/dist/module/workflow/repository/form-master.repository.js.map +1 -0
- package/dist/module/workflow/repository/form.repository.d.ts +0 -0
- package/dist/module/workflow/repository/form.repository.js +1 -0
- package/dist/module/workflow/repository/form.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage-group.repository.d.ts +34 -0
- package/dist/module/workflow/repository/stage-group.repository.js +135 -0
- package/dist/module/workflow/repository/stage-group.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage-movement.repository.d.ts +23 -0
- package/dist/module/workflow/repository/stage-movement.repository.js +150 -0
- package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage.repository.d.ts +30 -0
- package/dist/module/workflow/repository/stage.repository.js +88 -0
- package/dist/module/workflow/repository/stage.repository.js.map +1 -0
- package/dist/module/workflow/repository/task.repository.d.ts +10 -0
- package/dist/module/workflow/repository/task.repository.js +92 -0
- package/dist/module/workflow/repository/task.repository.js.map +1 -0
- package/dist/module/workflow/repository/workflow.repository.d.ts +10 -0
- package/dist/module/workflow/repository/workflow.repository.js +49 -0
- package/dist/module/workflow/repository/workflow.repository.js.map +1 -0
- package/dist/module/workflow/service/action-category.service.d.ts +21 -0
- package/dist/module/workflow/service/action-category.service.js +42 -0
- package/dist/module/workflow/service/action-category.service.js.map +1 -0
- package/dist/module/workflow/service/action-data.service.d.ts +16 -0
- package/dist/module/workflow/service/action-data.service.js +40 -0
- package/dist/module/workflow/service/action-data.service.js.map +1 -0
- package/dist/module/workflow/service/action-resources-mapping.service.d.ts +6 -0
- package/dist/module/workflow/service/action-resources-mapping.service.js +27 -0
- package/dist/module/workflow/service/action-resources-mapping.service.js.map +1 -0
- package/dist/module/workflow/service/action-template-mapping.service.d.ts +7 -0
- package/dist/module/workflow/service/action-template-mapping.service.js +52 -0
- package/dist/module/workflow/service/action-template-mapping.service.js.map +1 -0
- package/dist/module/workflow/service/action.service.d.ts +35 -0
- package/dist/module/workflow/service/action.service.js +152 -0
- package/dist/module/workflow/service/action.service.js.map +1 -0
- package/dist/module/workflow/service/activity-log.service.d.ts +44 -0
- package/dist/module/workflow/service/activity-log.service.js +92 -0
- package/dist/module/workflow/service/activity-log.service.js.map +1 -0
- package/dist/module/workflow/service/comm-template.service.d.ts +16 -0
- package/dist/module/workflow/service/comm-template.service.js +91 -0
- package/dist/module/workflow/service/comm-template.service.js.map +1 -0
- package/dist/module/workflow/service/entity-modification.service.d.ts +8 -0
- package/dist/module/workflow/service/entity-modification.service.js +52 -0
- package/dist/module/workflow/service/entity-modification.service.js.map +1 -0
- package/dist/module/workflow/service/form-master.service.d.ts +14 -0
- package/dist/module/workflow/service/form-master.service.js +38 -0
- package/dist/module/workflow/service/form-master.service.js.map +1 -0
- package/dist/module/workflow/service/populate-workflow.service.d.ts +21 -0
- package/dist/module/workflow/service/populate-workflow.service.js +181 -0
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -0
- package/dist/module/workflow/service/stage-action-mapping.service.d.ts +3 -0
- package/dist/module/workflow/service/stage-action-mapping.service.js +18 -0
- package/dist/module/workflow/service/stage-action-mapping.service.js.map +1 -0
- package/dist/module/workflow/service/stage-group.service.d.ts +29 -0
- package/dist/module/workflow/service/stage-group.service.js +213 -0
- package/dist/module/workflow/service/stage-group.service.js.map +1 -0
- package/dist/module/workflow/service/stage.service.d.ts +42 -0
- package/dist/module/workflow/service/stage.service.js +102 -0
- package/dist/module/workflow/service/stage.service.js.map +1 -0
- package/dist/module/workflow/service/task.service.d.ts +48 -0
- package/dist/module/workflow/service/task.service.js +324 -0
- package/dist/module/workflow/service/task.service.js.map +1 -0
- package/dist/module/workflow/service/workflow-list-master.service.d.ts +9 -0
- package/dist/module/workflow/service/workflow-list-master.service.js +61 -0
- package/dist/module/workflow/service/workflow-list-master.service.js.map +1 -0
- package/dist/module/workflow/service/workflow-meta.service.d.ts +26 -0
- package/dist/module/workflow/service/workflow-meta.service.js +343 -0
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -0
- package/dist/module/workflow/service/workflow.service.d.ts +33 -0
- package/dist/module/workflow/service/workflow.service.js +140 -0
- package/dist/module/workflow/service/workflow.service.js.map +1 -0
- package/dist/module/workflow/workflow.module.d.ts +2 -0
- package/dist/module/workflow/workflow.module.js +188 -0
- package/dist/module/workflow/workflow.module.js.map +1 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +5 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js +31 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js.map +1 -0
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.d.ts +10 -0
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +51 -0
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js.map +1 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +11 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +55 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -0
- package/dist/module/workflow-automation/interface/action.decorator.d.ts +2 -0
- package/dist/module/workflow-automation/interface/action.decorator.js +8 -0
- package/dist/module/workflow-automation/interface/action.decorator.js.map +1 -0
- package/dist/module/workflow-automation/interface/action.interface.d.ts +4 -0
- package/dist/module/workflow-automation/interface/action.interface.js +3 -0
- package/dist/module/workflow-automation/interface/action.interface.js.map +1 -0
- package/dist/module/workflow-automation/service/action-registery.service.d.ts +11 -0
- package/dist/module/workflow-automation/service/action-registery.service.js +46 -0
- package/dist/module/workflow-automation/service/action-registery.service.js.map +1 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.d.ts +12 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +70 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +1 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +53 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.js +219 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -0
- package/dist/module/workflow-automation/workflow-automation.module.d.ts +2 -0
- package/dist/module/workflow-automation/workflow-automation.module.js +47 -0
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -0
- package/dist/resources/properties.module.d.ts +2 -0
- package/dist/resources/properties.module.js +25 -0
- package/dist/resources/properties.module.js.map +1 -0
- package/dist/resources/properties.yaml.d.ts +2 -0
- package/dist/resources/properties.yaml.js +10 -0
- package/dist/resources/properties.yaml.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/utils/dto/excel-data.dto.d.ts +7 -0
- package/dist/utils/dto/excel-data.dto.js +16 -0
- package/dist/utils/dto/excel-data.dto.js.map +1 -0
- package/dist/utils/dto/excelsheet-data.dto.d.ts +5 -0
- package/dist/utils/dto/excelsheet-data.dto.js +3 -0
- package/dist/utils/dto/excelsheet-data.dto.js.map +1 -0
- package/dist/utils/service/base64util.service.d.ts +4 -0
- package/dist/utils/service/base64util.service.js +21 -0
- package/dist/utils/service/base64util.service.js.map +1 -0
- package/dist/utils/service/clockIDGenUtil.service.d.ts +8 -0
- package/dist/utils/service/clockIDGenUtil.service.js +32 -0
- package/dist/utils/service/clockIDGenUtil.service.js.map +1 -0
- package/dist/utils/service/codeGenerator.service.d.ts +3 -0
- package/dist/utils/service/codeGenerator.service.js +19 -0
- package/dist/utils/service/codeGenerator.service.js.map +1 -0
- package/dist/utils/service/dateUtil.service.d.ts +3 -0
- package/dist/utils/service/dateUtil.service.js +28 -0
- package/dist/utils/service/dateUtil.service.js.map +1 -0
- package/dist/utils/service/encryptUtil.service.d.ts +9 -0
- package/dist/utils/service/encryptUtil.service.js +112 -0
- package/dist/utils/service/encryptUtil.service.js.map +1 -0
- package/dist/utils/service/excel-helper.service.d.ts +9 -0
- package/dist/utils/service/excel-helper.service.js +56 -0
- package/dist/utils/service/excel-helper.service.js.map +1 -0
- package/dist/utils/service/excelUtil.service.d.ts +3 -0
- package/dist/utils/service/excelUtil.service.js +17 -0
- package/dist/utils/service/excelUtil.service.js.map +1 -0
- package/dist/utils/service/file-util.service.d.ts +3 -0
- package/dist/utils/service/file-util.service.js +15 -0
- package/dist/utils/service/file-util.service.js.map +1 -0
- package/dist/utils/service/json-util.service.d.ts +3 -0
- package/dist/utils/service/json-util.service.js +24 -0
- package/dist/utils/service/json-util.service.js.map +1 -0
- package/dist/utils/service/loggingUtil.service.d.ts +4 -0
- package/dist/utils/service/loggingUtil.service.js +49 -0
- package/dist/utils/service/loggingUtil.service.js.map +1 -0
- package/dist/utils/service/reflection-helper.service.d.ts +9 -0
- package/dist/utils/service/reflection-helper.service.js +60 -0
- package/dist/utils/service/reflection-helper.service.js.map +1 -0
- package/dist/utils/service/wbsCodeGen.service.d.ts +3 -0
- package/dist/utils/service/wbsCodeGen.service.js +20 -0
- package/dist/utils/service/wbsCodeGen.service.js.map +1 -0
- package/dist/utils/utils.module.d.ts +2 -0
- package/dist/utils/utils.module.js +38 -0
- package/dist/utils/utils.module.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.NotificationModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const otp_service_1 = require("./service/otp.service");
|
|
12
|
+
const otp_repository_1 = require("./repository/otp.repository");
|
|
13
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
14
|
+
const otp_entity_1 = require("./entity/otp.entity");
|
|
15
|
+
const otp_controller_1 = require("./controller/otp.controller");
|
|
16
|
+
const mailer_1 = require("@nestjs-modules/mailer");
|
|
17
|
+
const handlebars_adapter_1 = require("@nestjs-modules/mailer/dist/adapters/handlebars.adapter");
|
|
18
|
+
const email_service_1 = require("./service/email.service");
|
|
19
|
+
const path_1 = require("path");
|
|
20
|
+
const config_1 = require("@nestjs/config");
|
|
21
|
+
const auth_module_1 = require("../auth/auth.module");
|
|
22
|
+
const user_module_1 = require("../user/user.module");
|
|
23
|
+
const ics_module_1 = require("../ics/ics.module");
|
|
24
|
+
const notification_entity_1 = require("./entity/notification.entity");
|
|
25
|
+
const notification_controller_1 = require("./controller/notification.controller");
|
|
26
|
+
const notification_service_1 = require("./service/notification.service");
|
|
27
|
+
const entity_module_1 = require("../meta/entity.module");
|
|
28
|
+
const firebase_admin_config_1 = require("./firebase-admin.config");
|
|
29
|
+
let NotificationModule = class NotificationModule {
|
|
30
|
+
};
|
|
31
|
+
exports.NotificationModule = NotificationModule;
|
|
32
|
+
exports.NotificationModule = NotificationModule = __decorate([
|
|
33
|
+
(0, common_1.Module)({
|
|
34
|
+
imports: [
|
|
35
|
+
typeorm_1.TypeOrmModule.forFeature([otp_entity_1.Otp, notification_entity_1.NotificationData]),
|
|
36
|
+
mailer_1.MailerModule.forRootAsync({
|
|
37
|
+
imports: [config_1.ConfigModule],
|
|
38
|
+
inject: [config_1.ConfigService],
|
|
39
|
+
useFactory: (configService) => ({
|
|
40
|
+
transport: {
|
|
41
|
+
host: 'smtp.gmail.com',
|
|
42
|
+
port: 465,
|
|
43
|
+
secure: true,
|
|
44
|
+
auth: {
|
|
45
|
+
user: configService.get('EMAIL_USER'),
|
|
46
|
+
pass: configService.get('EMAIL_PASSWORD'),
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
defaults: {
|
|
50
|
+
from: '"Support" <' + process.env.EMAIL_USER + '>',
|
|
51
|
+
},
|
|
52
|
+
template: {
|
|
53
|
+
dir: (0, path_1.join)(__dirname, '..', '..', 'templates'),
|
|
54
|
+
adapter: new handlebars_adapter_1.HandlebarsAdapter(),
|
|
55
|
+
options: {
|
|
56
|
+
strict: true,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
}),
|
|
60
|
+
}),
|
|
61
|
+
auth_module_1.AuthModule,
|
|
62
|
+
user_module_1.UserModule,
|
|
63
|
+
ics_module_1.IcsMeetingModule,
|
|
64
|
+
entity_module_1.EntityModule,
|
|
65
|
+
],
|
|
66
|
+
providers: [
|
|
67
|
+
otp_service_1.OtpService,
|
|
68
|
+
otp_repository_1.OtpRepository,
|
|
69
|
+
email_service_1.EmailService,
|
|
70
|
+
notification_service_1.NotificationsService,
|
|
71
|
+
firebase_admin_config_1.FirebaseAdminProvider,
|
|
72
|
+
],
|
|
73
|
+
exports: [
|
|
74
|
+
otp_service_1.OtpService,
|
|
75
|
+
email_service_1.EmailService,
|
|
76
|
+
firebase_admin_config_1.FirebaseAdminProvider,
|
|
77
|
+
notification_service_1.NotificationsService,
|
|
78
|
+
],
|
|
79
|
+
controllers: [otp_controller_1.OtpController, notification_controller_1.NotificationsController],
|
|
80
|
+
})
|
|
81
|
+
], NotificationModule);
|
|
82
|
+
//# sourceMappingURL=notification.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.module.js","sourceRoot":"","sources":["../../../src/module/notification/notification.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAAmD;AACnD,gEAA4D;AAC5D,6CAAgD;AAChD,oDAA0C;AAC1C,gEAA4D;AAC5D,mDAAsD;AACtD,gGAA4F;AAC5F,2DAAuD;AACvD,+BAA4B;AAC5B,2CAA6D;AAC7D,qDAAiD;AACjD,qDAAiD;AACjD,kDAAqD;AACrD,sEAAgE;AAChE,kFAA+E;AAC/E,yEAAsE;AACtE,yDAAqD;AACrD,mEAAgE;AAkDzD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAhD9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,gBAAG,EAAE,sCAAgB,CAAC,CAAC;YACjD,qBAAY,CAAC,YAAY,CAAC;gBACxB,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;gBACvB,UAAU,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC;oBAC7C,SAAS,EAAE;wBACT,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,GAAG;wBACT,MAAM,EAAE,IAAI;wBACZ,IAAI,EAAE;4BACJ,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC;4BACrC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC;yBAC1C;qBACF;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,GAAG;qBACnD;oBACD,QAAQ,EAAE;wBACR,GAAG,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC;wBAC7C,OAAO,EAAE,IAAI,sCAAiB,EAAE;wBAChC,OAAO,EAAE;4BACP,MAAM,EAAE,IAAI;yBACb;qBACF;iBACF,CAAC;aACH,CAAC;YACF,wBAAU;YACV,wBAAU;YACV,6BAAgB;YAChB,4BAAY;SACb;QACD,SAAS,EAAE;YACT,wBAAU;YACV,8BAAa;YACb,4BAAY;YACZ,2CAAoB;YACpB,6CAAqB;SACtB;QACD,OAAO,EAAE;YACP,wBAAU;YACV,4BAAY;YACZ,6CAAqB;YACrB,2CAAoB;SACrB;QACD,WAAW,EAAE,CAAC,8BAAa,EAAE,iDAAuB,CAAC;KACtD,CAAC;GACW,kBAAkB,CAAG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Otp } from '../entity/otp.entity';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
export declare class OtpRepository {
|
|
4
|
+
private readonly otpRepository;
|
|
5
|
+
constructor(otpRepository: Repository<Otp>);
|
|
6
|
+
save(otp: Otp): Promise<Otp>;
|
|
7
|
+
findByOtpId(otpId: string): Promise<Otp | null>;
|
|
8
|
+
update(id: number, otp: Otp): Promise<import("typeorm").UpdateResult>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.OtpRepository = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
+
const otp_entity_1 = require("../entity/otp.entity");
|
|
19
|
+
const typeorm_2 = require("typeorm");
|
|
20
|
+
let OtpRepository = class OtpRepository {
|
|
21
|
+
constructor(otpRepository) {
|
|
22
|
+
this.otpRepository = otpRepository;
|
|
23
|
+
}
|
|
24
|
+
async save(otp) {
|
|
25
|
+
return await this.otpRepository.save(otp);
|
|
26
|
+
}
|
|
27
|
+
async findByOtpId(otpId) {
|
|
28
|
+
return await this.otpRepository.findOne({
|
|
29
|
+
where: {
|
|
30
|
+
otp_id: otpId,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
async update(id, otp) {
|
|
35
|
+
return await this.otpRepository.update(id, otp);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.OtpRepository = OtpRepository;
|
|
39
|
+
exports.OtpRepository = OtpRepository = __decorate([
|
|
40
|
+
(0, common_1.Injectable)(),
|
|
41
|
+
__param(0, (0, typeorm_1.InjectRepository)(otp_entity_1.Otp)),
|
|
42
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
43
|
+
], OtpRepository);
|
|
44
|
+
//# sourceMappingURL=otp.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otp.repository.js","sourceRoot":"","sources":["../../../../src/module/notification/repository/otp.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qDAA2C;AAC3C,qCAAqC;AAG9B,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAC0C,aAA8B;QAA9B,kBAAa,GAAb,aAAa,CAAiB;IACrE,CAAC;IAEJ,KAAK,CAAC,IAAI,CAAC,GAAQ;QACjB,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAa;QAC7B,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;YACtC,KAAK,EAAE;gBACL,MAAM,EAAE,KAAK;aACd;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,GAAQ;QAC/B,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AApBY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,gBAAG,CAAC,CAAA;qCAAiC,oBAAU;GAFxD,aAAa,CAoBzB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MailerService } from '@nestjs-modules/mailer';
|
|
2
|
+
import { DataSource } from 'typeorm';
|
|
3
|
+
import { IcsMeetingService } from 'src/module/ics/service/ics.service';
|
|
4
|
+
export declare class EmailService {
|
|
5
|
+
private readonly mailerService;
|
|
6
|
+
private readonly datasource;
|
|
7
|
+
private readonly icsService;
|
|
8
|
+
constructor(mailerService: MailerService, datasource: DataSource, icsService: IcsMeetingService);
|
|
9
|
+
sendEmail(email: string, subject: string, context?: any, icsPayload?: any): Promise<void>;
|
|
10
|
+
sendEmailWithDynamicTemplate(email: string, subject: string, templateCode: string, cc?: string[], bcc?: string[], message?: string, context?: any, icsPayload?: any): Promise<{
|
|
11
|
+
success: boolean;
|
|
12
|
+
message: string;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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.EmailService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const mailer_1 = require("@nestjs-modules/mailer");
|
|
15
|
+
const Handlebars = require("handlebars");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const ics_service_1 = require("../../ics/service/ics.service");
|
|
18
|
+
let EmailService = class EmailService {
|
|
19
|
+
constructor(mailerService, datasource, icsService) {
|
|
20
|
+
this.mailerService = mailerService;
|
|
21
|
+
this.datasource = datasource;
|
|
22
|
+
this.icsService = icsService;
|
|
23
|
+
}
|
|
24
|
+
async sendEmail(email, subject, context, icsPayload) {
|
|
25
|
+
const template = await this.datasource
|
|
26
|
+
.getRepository('cr_wf_comm_template')
|
|
27
|
+
.findOne({ where: { code: 'OTP_TEMPLATE' } });
|
|
28
|
+
if (!template)
|
|
29
|
+
return;
|
|
30
|
+
const compiled = Handlebars.compile(template.rich_text || '');
|
|
31
|
+
const htmlContent = compiled(context);
|
|
32
|
+
const attachments = [];
|
|
33
|
+
if (icsPayload) {
|
|
34
|
+
const icsBase64 = await this.icsService.generateIcs(icsPayload);
|
|
35
|
+
if (icsBase64) {
|
|
36
|
+
attachments.push({
|
|
37
|
+
filename: 'invite.ics',
|
|
38
|
+
content: icsBase64,
|
|
39
|
+
encoding: 'base64',
|
|
40
|
+
contentType: 'text/calendar; charset="utf-8"; method=REQUEST',
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const result = this.mailerService
|
|
45
|
+
.sendMail({
|
|
46
|
+
to: email,
|
|
47
|
+
subject,
|
|
48
|
+
html: htmlContent,
|
|
49
|
+
attachments,
|
|
50
|
+
})
|
|
51
|
+
.then(() => {
|
|
52
|
+
console.log(`Email sent to ${email}`);
|
|
53
|
+
return;
|
|
54
|
+
})
|
|
55
|
+
.catch((err) => {
|
|
56
|
+
console.error(`Failed to send email to ${email}`, err);
|
|
57
|
+
});
|
|
58
|
+
console.log(result);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
async sendEmailWithDynamicTemplate(email, subject, templateCode, cc, bcc, message, context, icsPayload) {
|
|
62
|
+
const template = await this.datasource
|
|
63
|
+
.getRepository('cr_wf_comm_template')
|
|
64
|
+
.findOne({ where: { code: templateCode } });
|
|
65
|
+
if (!template) {
|
|
66
|
+
console.log(`Template with code ${templateCode} not found`);
|
|
67
|
+
return {
|
|
68
|
+
success: false,
|
|
69
|
+
message: `Template with code ${templateCode} not found`,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
const templateString = template.rich_text || '';
|
|
73
|
+
const compiled = Handlebars.compile(message || templateString);
|
|
74
|
+
const htmlContent = compiled(context);
|
|
75
|
+
const attachments = [];
|
|
76
|
+
if (icsPayload) {
|
|
77
|
+
const icsBase64 = await this.icsService.generateIcs(icsPayload);
|
|
78
|
+
if (icsBase64) {
|
|
79
|
+
attachments.push({
|
|
80
|
+
filename: 'invite.ics',
|
|
81
|
+
content: icsBase64,
|
|
82
|
+
encoding: 'base64',
|
|
83
|
+
contentType: 'text/calendar; charset="utf-8"; method=REQUEST',
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const mailOptions = {
|
|
88
|
+
to: email,
|
|
89
|
+
subject,
|
|
90
|
+
html: htmlContent,
|
|
91
|
+
attachments,
|
|
92
|
+
};
|
|
93
|
+
if (cc && cc.length > 0) {
|
|
94
|
+
mailOptions.cc = cc;
|
|
95
|
+
}
|
|
96
|
+
if (bcc && bcc.length > 0) {
|
|
97
|
+
mailOptions.bcc = bcc;
|
|
98
|
+
}
|
|
99
|
+
await this.mailerService.sendMail(mailOptions);
|
|
100
|
+
return { success: true, message: 'Email sent successfully' };
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
exports.EmailService = EmailService;
|
|
104
|
+
exports.EmailService = EmailService = __decorate([
|
|
105
|
+
(0, common_1.Injectable)(),
|
|
106
|
+
__metadata("design:paramtypes", [mailer_1.MailerService,
|
|
107
|
+
typeorm_1.DataSource,
|
|
108
|
+
ics_service_1.IcsMeetingService])
|
|
109
|
+
], EmailService);
|
|
110
|
+
//# sourceMappingURL=email.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/email.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mDAAuD;AACvD,yCAAyC;AACzC,qCAAqC;AACrC,+DAAuE;AAGhE,IAAM,YAAY,GAAlB,MAAM,YAAY;IACvB,YACmB,aAA4B,EAC5B,UAAsB,EACtB,UAA6B;QAF7B,kBAAa,GAAb,aAAa,CAAe;QAC5B,eAAU,GAAV,UAAU,CAAY;QACtB,eAAU,GAAV,UAAU,CAAmB;IAC7C,CAAC;IAEJ,KAAK,CAAC,SAAS,CACb,KAAa,EACb,OAAe,EACf,OAAa,EACb,UAAgB;QAEhB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU;aACnC,aAAa,CAAC,qBAAqB,CAAC;aACpC,O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GAAG,CAAC;QACxB,CAAC;QAGD,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAE/C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAC/D,CAAC;CACF,CAAA;AAvHY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;qCAGuB,sBAAa;QAChB,oBAAU;QACV,+BAAiB;GAJrC,YAAY,CAuHxB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DataSource } from 'typeorm';
|
|
2
|
+
import { MediaDataService } from 'src/module/meta/service/media-data.service';
|
|
3
|
+
import * as admin from 'firebase-admin';
|
|
4
|
+
export declare class NotificationsService {
|
|
5
|
+
private readonly dataSource;
|
|
6
|
+
private readonly mediaDataService;
|
|
7
|
+
private readonly firebaseAdmin;
|
|
8
|
+
constructor(dataSource: DataSource, mediaDataService: MediaDataService, firebaseAdmin: typeof admin);
|
|
9
|
+
private tokens;
|
|
10
|
+
saveToken(userId: string | undefined, token: string): Promise<{
|
|
11
|
+
success: boolean;
|
|
12
|
+
token: string;
|
|
13
|
+
}>;
|
|
14
|
+
sendToDevice(token: string, title: string, body: string, data?: Record<string, any>): Promise<string>;
|
|
15
|
+
sendToUser(userId: string, title: string, body: string): Promise<string | {
|
|
16
|
+
error: string;
|
|
17
|
+
}>;
|
|
18
|
+
getAllNotifications(loggedInUser: any, filterQuery?: {
|
|
19
|
+
is_read?: string;
|
|
20
|
+
}): Promise<any>;
|
|
21
|
+
markAllAsRead(loggedInUser: any): Promise<{
|
|
22
|
+
success: boolean;
|
|
23
|
+
affectedRows: any;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.NotificationsService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
const media_data_service_1 = require("../../meta/service/media-data.service");
|
|
19
|
+
let NotificationsService = class NotificationsService {
|
|
20
|
+
constructor(dataSource, mediaDataService, firebaseAdmin) {
|
|
21
|
+
this.dataSource = dataSource;
|
|
22
|
+
this.mediaDataService = mediaDataService;
|
|
23
|
+
this.firebaseAdmin = firebaseAdmin;
|
|
24
|
+
this.tokens = new Map();
|
|
25
|
+
}
|
|
26
|
+
async saveToken(userId, token) {
|
|
27
|
+
if (userId) {
|
|
28
|
+
this.tokens.set(userId, token);
|
|
29
|
+
}
|
|
30
|
+
return { success: true, token };
|
|
31
|
+
}
|
|
32
|
+
async sendToDevice(token, title, body, data) {
|
|
33
|
+
const message = {
|
|
34
|
+
token,
|
|
35
|
+
notification: { title, body },
|
|
36
|
+
data: data
|
|
37
|
+
? Object.fromEntries(Object.entries(data).map(([k, v]) => [k, v.toString()]))
|
|
38
|
+
: undefined,
|
|
39
|
+
};
|
|
40
|
+
try {
|
|
41
|
+
return await this.firebaseAdmin.messaging().send(message);
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
console.error(error);
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async sendToUser(userId, title, body) {
|
|
49
|
+
const token = this.tokens.get(userId);
|
|
50
|
+
if (!token)
|
|
51
|
+
return { error: 'No token found for user' };
|
|
52
|
+
return this.sendToDevice(token, title, body);
|
|
53
|
+
}
|
|
54
|
+
async getAllNotifications(loggedInUser, filterQuery) {
|
|
55
|
+
const { id, level_id, level_type } = loggedInUser;
|
|
56
|
+
let isReadFilter = undefined;
|
|
57
|
+
if (filterQuery && filterQuery.is_read !== undefined) {
|
|
58
|
+
const isReadBool = String(filterQuery.is_read).toLowerCase() === 'true';
|
|
59
|
+
isReadFilter = isReadBool ? 1 : 0;
|
|
60
|
+
}
|
|
61
|
+
let query = `
|
|
62
|
+
SELECT
|
|
63
|
+
n.*,
|
|
64
|
+
u.name AS user_name,
|
|
65
|
+
u.profile_image AS user_profile
|
|
66
|
+
FROM cr_notification n
|
|
67
|
+
LEFT JOIN eth_user_profile u ON n.user_id = u.parent_id
|
|
68
|
+
WHERE n.user_id = ? AND n.level_id = ? AND n.level_type = ?
|
|
69
|
+
`;
|
|
70
|
+
const params = [id, level_id, level_type];
|
|
71
|
+
if (isReadFilter !== undefined) {
|
|
72
|
+
query += ` AND n.is_read = ?`;
|
|
73
|
+
params.push(isReadFilter);
|
|
74
|
+
}
|
|
75
|
+
query += ` ORDER BY n.created_date DESC`;
|
|
76
|
+
const notifications = await this.dataSource.query(query, params);
|
|
77
|
+
const mediaCache = new Map();
|
|
78
|
+
for (const notification of notifications) {
|
|
79
|
+
notification.is_read = !!notification.is_read;
|
|
80
|
+
if (notification.user_profile) {
|
|
81
|
+
if (!mediaCache.has(notification.user_profile)) {
|
|
82
|
+
const url = await this.mediaDataService.getMediaDownloadUrl(notification.user_profile, loggedInUser);
|
|
83
|
+
mediaCache.set(notification.user_profile, url);
|
|
84
|
+
}
|
|
85
|
+
notification.user_profile = mediaCache.get(notification.user_profile);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
notification.user_profile = null;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return notifications;
|
|
92
|
+
}
|
|
93
|
+
async markAllAsRead(loggedInUser) {
|
|
94
|
+
const { id, level_id, level_type } = loggedInUser;
|
|
95
|
+
const query = `
|
|
96
|
+
UPDATE cr_notification
|
|
97
|
+
SET is_read = 1
|
|
98
|
+
WHERE user_id = ? AND level_id = ? AND level_type = ? AND is_read = 0
|
|
99
|
+
`;
|
|
100
|
+
const params = [id, level_id, level_type];
|
|
101
|
+
const result = await this.dataSource.query(query, params);
|
|
102
|
+
return { success: true, affectedRows: result.affectedRows || 0 };
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
exports.NotificationsService = NotificationsService;
|
|
106
|
+
exports.NotificationsService = NotificationsService = __decorate([
|
|
107
|
+
(0, common_1.Injectable)(),
|
|
108
|
+
__param(2, (0, common_1.Inject)('FIREBASE_ADMIN')),
|
|
109
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
110
|
+
media_data_service_1.MediaDataService, Object])
|
|
111
|
+
], NotificationsService);
|
|
112
|
+
//# sourceMappingURL=notification.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/notification.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,qCAAqC;AACrC,8EAA8E;AAIvE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACmB,UAAsB,EACtB,gBAAkC,EACzB,aAA4C;QAFrD,eAAU,GAAV,UAAU,CAAY;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;QACR,kBAAa,GAAb,aAAa,CAAc;QAGhE,WAAM,GAAwB,IAAI,GAAG,EAAE,CAAC;IAF7C,CAAC;IAI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E,GAAG,CAAC,CAAC;gBACjD,CAAC;gBACD,YAAY,CAAC,YAAY,GAAG,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;YACxE,CAAC;iBAAM,CAAC;gBACN,YAAY,CAAC,YAAY,GAAG,IAAI,CAAC;YACnC,CAAC;QACH,CAAC;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,YAAiB;QACnC,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,YAAY,CAAC;QAElD,MAAM,KAAK,GAAG;;;;GAIf,CAAC;QAEA,MAAM,MAAM,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QAE1C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC1D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,CAAC,EAAE,CAAC;IACnE,CAAC;CACF,CAAA;AA3HY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,gBAAgB,CAAC,CAAA;qCAFI,oBAAU;QACJ,qCAAgB;GAH1C,oBAAoB,CA2HhC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DataSource } from 'typeorm';
|
|
2
|
+
import { ConfigService } from '@nestjs/config';
|
|
3
|
+
import { ClockIDGenService } from '../../../utils/service/clockIDGenUtil.service';
|
|
4
|
+
import { Otp } from '../entity/otp.entity';
|
|
5
|
+
import { OtpRepository } from '../repository/otp.repository';
|
|
6
|
+
import { LoginService } from './../../user/service/login.service';
|
|
7
|
+
import { EmailService } from './email.service';
|
|
8
|
+
export declare class OtpService {
|
|
9
|
+
private readonly otpRepository;
|
|
10
|
+
private readonly idGen;
|
|
11
|
+
private configService;
|
|
12
|
+
private readonly loginService;
|
|
13
|
+
private readonly emailService;
|
|
14
|
+
private readonly dataSource;
|
|
15
|
+
constructor(otpRepository: OtpRepository, idGen: ClockIDGenService, configService: ConfigService, loginService: LoginService, emailService: EmailService, dataSource: DataSource);
|
|
16
|
+
VERIFY_OTP: any;
|
|
17
|
+
DEFAULT_OTP: any;
|
|
18
|
+
generate(identifier: string, service: string, expiresIn?: number, otpLength?: number): Promise<Otp>;
|
|
19
|
+
verifyOtp(data: {
|
|
20
|
+
otp: string;
|
|
21
|
+
otp_id: string;
|
|
22
|
+
identifier: string;
|
|
23
|
+
subdomain: string;
|
|
24
|
+
fcm_token: string;
|
|
25
|
+
browser?: string;
|
|
26
|
+
ip?: string;
|
|
27
|
+
os?: string;
|
|
28
|
+
}): Promise<{
|
|
29
|
+
success: boolean;
|
|
30
|
+
message: string;
|
|
31
|
+
type: string;
|
|
32
|
+
accessToken?: undefined;
|
|
33
|
+
appcode?: undefined;
|
|
34
|
+
level_type?: undefined;
|
|
35
|
+
level_id?: undefined;
|
|
36
|
+
slug?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
success: boolean;
|
|
39
|
+
accessToken: string;
|
|
40
|
+
appcode: string;
|
|
41
|
+
level_type: string;
|
|
42
|
+
level_id: string;
|
|
43
|
+
slug: string;
|
|
44
|
+
message?: undefined;
|
|
45
|
+
type?: undefined;
|
|
46
|
+
}>;
|
|
47
|
+
findByOtpId(otpId: string): Promise<Otp | null>;
|
|
48
|
+
private generateOtp;
|
|
49
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.OtpService = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const config_1 = require("@nestjs/config");
|
|
16
|
+
const clockIDGenUtil_service_1 = require("../../../utils/service/clockIDGenUtil.service");
|
|
17
|
+
const otp_entity_1 = require("../entity/otp.entity");
|
|
18
|
+
const otp_repository_1 = require("../repository/otp.repository");
|
|
19
|
+
const login_service_1 = require("./../../user/service/login.service");
|
|
20
|
+
const email_service_1 = require("./email.service");
|
|
21
|
+
let OtpService = class OtpService {
|
|
22
|
+
constructor(otpRepository, idGen, configService, loginService, emailService, dataSource) {
|
|
23
|
+
this.otpRepository = otpRepository;
|
|
24
|
+
this.idGen = idGen;
|
|
25
|
+
this.configService = configService;
|
|
26
|
+
this.loginService = loginService;
|
|
27
|
+
this.emailService = emailService;
|
|
28
|
+
this.dataSource = dataSource;
|
|
29
|
+
this.VERIFY_OTP = this.configService.get('VERIFY_OTP') || 'true';
|
|
30
|
+
this.DEFAULT_OTP = this.configService.get('DEFAULT_OTP') || '123456';
|
|
31
|
+
}
|
|
32
|
+
async generate(identifier, service, expiresIn = 5, otpLength = 6) {
|
|
33
|
+
const otp = new otp_entity_1.Otp();
|
|
34
|
+
otp.created_date = new Date();
|
|
35
|
+
otp.otp_id = this.idGen.idGenerator();
|
|
36
|
+
otp.identifier = identifier;
|
|
37
|
+
otp.otp =
|
|
38
|
+
'true' === this.VERIFY_OTP
|
|
39
|
+
? this.generateOtp(otpLength)
|
|
40
|
+
: this.DEFAULT_OTP;
|
|
41
|
+
otp.service = service;
|
|
42
|
+
otp.verified = 0;
|
|
43
|
+
otp.expiration_date = new Date(Date.now() + expiresIn * 60 * 1000);
|
|
44
|
+
const userData = await this.dataSource
|
|
45
|
+
.getRepository('cr_user')
|
|
46
|
+
.findOne({ where: { email_id: identifier } });
|
|
47
|
+
const data = {
|
|
48
|
+
name: userData?.name || '',
|
|
49
|
+
otp: otp.otp,
|
|
50
|
+
};
|
|
51
|
+
await this.emailService.sendEmail(identifier, 'OTP Verification', data);
|
|
52
|
+
return await this.otpRepository.save(otp);
|
|
53
|
+
}
|
|
54
|
+
async verifyOtp(data) {
|
|
55
|
+
const { otp, otp_id, identifier, subdomain, fcm_token, browser, ip, os } = data;
|
|
56
|
+
const verifyOTPResponse = { isValid: false };
|
|
57
|
+
const otpEntity = await this.findByOtpId(otp_id);
|
|
58
|
+
if (!otpEntity) {
|
|
59
|
+
throw new common_1.BadRequestException('OTP not found!');
|
|
60
|
+
}
|
|
61
|
+
if (otpEntity.identifier !== identifier) {
|
|
62
|
+
throw new common_1.BadRequestException('Invalid OTP identifier!');
|
|
63
|
+
}
|
|
64
|
+
const isOtpValid = (otpEntity.otp === otp ||
|
|
65
|
+
(this.DEFAULT_OTP && this.DEFAULT_OTP === otp)) &&
|
|
66
|
+
new Date() <= otpEntity.expiration_date &&
|
|
67
|
+
otpEntity.verified === 0;
|
|
68
|
+
if (isOtpValid) {
|
|
69
|
+
otpEntity.verified = 1;
|
|
70
|
+
const updatedOtp = await this.otpRepository.update(otpEntity.id, otpEntity);
|
|
71
|
+
if (updatedOtp) {
|
|
72
|
+
verifyOTPResponse.isValid = true;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (!verifyOTPResponse.isValid) {
|
|
76
|
+
throw new common_1.BadRequestException('Invalid OTP!');
|
|
77
|
+
}
|
|
78
|
+
return this.loginService.login({
|
|
79
|
+
email: identifier,
|
|
80
|
+
is_otp: true,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
async findByOtpId(otpId) {
|
|
84
|
+
return await this.otpRepository.findByOtpId(otpId);
|
|
85
|
+
}
|
|
86
|
+
generateOtp(length) {
|
|
87
|
+
const min = 10 ** (length - 1);
|
|
88
|
+
const max = 10 ** length - 1;
|
|
89
|
+
return Math.floor(min + Math.random() * (max - min + 1)).toString();
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
exports.OtpService = OtpService;
|
|
93
|
+
exports.OtpService = OtpService = __decorate([
|
|
94
|
+
(0, common_1.Injectable)(),
|
|
95
|
+
__metadata("design:paramtypes", [otp_repository_1.OtpRepository,
|
|
96
|
+
clockIDGenUtil_service_1.ClockIDGenService,
|
|
97
|
+
config_1.ConfigService,
|
|
98
|
+
login_service_1.LoginService,
|
|
99
|
+
email_service_1.EmailService,
|
|
100
|
+
typeorm_1.DataSource])
|
|
101
|
+
], OtpService);
|
|
102
|
+
//# sourceMappingURL=otp.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otp.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/otp.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqC;AACrC,2CAAiE;AACjE,2CAA+C;AAC/C,0FAAkF;AAClF,qDAA2C;AAC3C,iEAA6D;AAC7D,sEAAkE;AAClE,mDAA+C;AAGxC,IAAM,UAAU,GAAhB,MAAM,UAAU;IACrB,YACmB,aAA4B,EAC5B,KAAwB,EACjC,aAA4B,EACnB,YAA0B,EAC1B,YAA0B,EAC1B,UAAsB;QALtB,kBAAa,GAAb,aAAa,CAAe;QAC5B,UAAK,GAAL,KAAK,CAAmB;QACjC,kBAAa,GAAb,aAAa,CAAe;QACnB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,eAAU,GAAV,UAAU,CAAY;QAGzC,eAAU,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAA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AE,UAAU;YACjB,MAAM,EAAE,IAAI;SACb,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAa;QAC7B,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;IAEO,WAAW,CAAC,MAAc;QAChC,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC/B,MAAM,GAAG,GAAG,EAAE,IAAI,MAAM,GAAG,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IACtE,CAAC;CACF,CAAA;AA9GY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;qCAGuB,8BAAa;QACrB,0CAAiB;QAClB,sBAAa;QACL,4BAAY;QACZ,4BAAY;QACd,oBAAU;GAP9B,UAAU,CA8GtB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class ThirdPartyApiRegistry {
|
|
2
|
+
id: number;
|
|
3
|
+
api_name: string;
|
|
4
|
+
provider_name: string;
|
|
5
|
+
base_url: string;
|
|
6
|
+
endpoint: string;
|
|
7
|
+
http_method: string;
|
|
8
|
+
headers: Record<string, string>;
|
|
9
|
+
request_payload_schema: Record<string, any>;
|
|
10
|
+
response_data_path: string;
|
|
11
|
+
auth_type: string;
|
|
12
|
+
auth_config: string;
|
|
13
|
+
is_active: number;
|
|
14
|
+
created_date: Date;
|
|
15
|
+
modified_date: Date;
|
|
16
|
+
label: string;
|
|
17
|
+
value: string;
|
|
18
|
+
}
|