rez_core 3.1.167 → 3.1.168
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 +244 -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 +40 -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 +68 -0
- package/dist/module/filter/service/filter.service.js +612 -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 +165 -0
- package/dist/module/integration/controller/integration.controller.js +697 -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 +54 -0
- package/dist/module/integration/controller/wrapper.controller.js.map +1 -0
- package/dist/module/integration/dto/create-config.dto.d.ts +217 -0
- package/dist/module/integration/dto/create-config.dto.js +495 -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-entity-mapper.entity.d.ts +6 -0
- package/dist/module/integration/entity/integration-entity-mapper.entity.js +33 -0
- package/dist/module/integration/entity/integration-entity-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 +96 -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-entity-mapper.service.d.ts +7 -0
- package/dist/module/integration/service/integration-entity-mapper.service.js +36 -0
- package/dist/module/integration/service/integration-entity-mapper.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 +198 -0
- package/dist/module/integration/service/integration.service.js +1558 -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 +36 -0
- package/dist/module/integration/service/wrapper.service.js +299 -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 +195 -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 +31 -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 +170 -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 +24 -0
- package/dist/module/integration/strategies/telephone/tubelight-voice.strategy.js +152 -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 +33 -0
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js +256 -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 +16 -0
- package/dist/module/layout_preference/service/layout_preference.service.js +117 -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 +22 -0
- package/dist/module/listmaster/controller/list-master.controller.js +156 -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 +53 -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-engine.d.ts +6 -0
- package/dist/module/listmaster/service/list-master-engine.js +35 -0
- package/dist/module/listmaster/service/list-master-engine.js.map +1 -0
- package/dist/module/listmaster/service/list-master-extension.interface.d.ts +4 -0
- package/dist/module/listmaster/service/list-master-extension.interface.js +3 -0
- package/dist/module/listmaster/service/list-master-extension.interface.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-registry.d.ts +6 -0
- package/dist/module/listmaster/service/list-master-registry.js +26 -0
- package/dist/module/listmaster/service/list-master-registry.js.map +1 -0
- package/dist/module/listmaster/service/list-master.service.d.ts +36 -0
- package/dist/module/listmaster/service/list-master.service.js +270 -0
- package/dist/module/listmaster/service/list-master.service.js.map +1 -0
- package/dist/module/mapper/controller/field-mapper.controller.d.ts +11 -0
- package/dist/module/mapper/controller/field-mapper.controller.js +94 -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 +40 -0
- package/dist/module/mapper/controller/mapper.controller.js.map +1 -0
- package/dist/module/mapper/dto/field-mapper.dto.d.ts +12 -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 +13 -0
- package/dist/module/mapper/entity/field-mapper.entity.js +78 -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 +47 -0
- package/dist/module/mapper/mapper.module.js.map +1 -0
- package/dist/module/mapper/repository/field-lovs.repository.d.ts +11 -0
- package/dist/module/mapper/repository/field-lovs.repository.js +52 -0
- package/dist/module/mapper/repository/field-lovs.repository.js.map +1 -0
- package/dist/module/mapper/repository/field-mapper.repository.d.ts +11 -0
- package/dist/module/mapper/repository/field-mapper.repository.js +54 -0
- package/dist/module/mapper/repository/field-mapper.repository.js.map +1 -0
- package/dist/module/mapper/repository/mapper.repository.d.ts +7 -0
- package/dist/module/mapper/repository/mapper.repository.js +34 -0
- package/dist/module/mapper/repository/mapper.repository.js.map +1 -0
- package/dist/module/mapper/service/field-mapper.service.d.ts +22 -0
- package/dist/module/mapper/service/field-mapper.service.js +177 -0
- package/dist/module/mapper/service/field-mapper.service.js.map +1 -0
- package/dist/module/mapper/service/mapper.service.d.ts +17 -0
- package/dist/module/mapper/service/mapper.service.js +72 -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 +364 -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 +21 -0
- package/dist/module/meta/controller/entity-dynamic.controller.js +115 -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 +80 -0
- package/dist/module/meta/controller/media.controller.js.map +1 -0
- package/dist/module/meta/controller/meta.controller.d.ts +32 -0
- package/dist/module/meta/controller/meta.controller.js +112 -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 +88 -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 +22 -0
- package/dist/module/meta/entity/attribute-master.entity.js +122 -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 +20 -0
- package/dist/module/meta/repository/entity-master.repository.js +73 -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 +59 -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 +52 -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 +23 -0
- package/dist/module/meta/service/entity-dynamic.service.js +452 -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 +29 -0
- package/dist/module/meta/service/entity-master.service.js +112 -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 +43 -0
- package/dist/module/meta/service/entity-service-impl.service.js +278 -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 +84 -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 +76 -0
- package/dist/module/meta/service/field-group.service.js.map +1 -0
- package/dist/module/meta/service/media-data.service.d.ts +30 -0
- package/dist/module/meta/service/media-data.service.js +116 -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 +124 -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 +11 -0
- package/dist/module/meta/service/resolver.service.js +156 -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 +27 -0
- package/dist/module/meta/service/view-master.service.js +69 -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 +275 -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 +56 -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 +117 -0
- package/dist/module/notification/service/notification.service.js.map +1 -0
- package/dist/module/notification/service/otp.service.d.ts +52 -0
- package/dist/module/notification/service/otp.service.js +105 -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 +208 -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 +16 -0
- package/dist/module/workflow/controller/stage.controller.js +57 -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 +13 -0
- package/dist/module/workflow/entity/action-category.entity.js +63 -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 +14 -0
- package/dist/module/workflow/entity/comm-template.entity.js +67 -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.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 +18 -0
- package/dist/module/workflow/repository/action-data.repository.js +172 -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 +109 -0
- package/dist/module/workflow/repository/comm-template.repository.js.map +1 -0
- package/dist/module/workflow/repository/form-master.repository.d.ts +8 -0
- package/dist/module/workflow/repository/form-master.repository.js +38 -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 +31 -0
- package/dist/module/workflow/repository/stage.repository.js +117 -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 +163 -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 +90 -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 +167 -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 +25 -0
- package/dist/module/workflow/service/stage.service.js +129 -0
- package/dist/module/workflow/service/stage.service.js.map +1 -0
- package/dist/module/workflow/service/task.service.d.ts +47 -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 +356 -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 +184 -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 +9 -0
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +47 -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 +12 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +59 -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 +14 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +116 -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 +55 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.js +222 -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 +36 -0
- package/dist/utils/service/loggingUtil.service.js.map +1 -0
- package/dist/utils/service/reflection-helper.service.d.ts +10 -0
- package/dist/utils/service/reflection-helper.service.js +66 -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,109 @@
|
|
|
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.CommTemplateRepository = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
+
const typeorm_2 = require("typeorm");
|
|
19
|
+
const comm_template_entity_1 = require("../entity/comm-template.entity");
|
|
20
|
+
const template_attach_mapper_entity_1 = require("../entity/template-attach-mapper.entity");
|
|
21
|
+
const media_data_service_1 = require("../../meta/service/media-data.service");
|
|
22
|
+
let CommTemplateRepository = class CommTemplateRepository {
|
|
23
|
+
constructor(commTemplateRepository, templateAttachEntity, mediaDataService, dataSource) {
|
|
24
|
+
this.commTemplateRepository = commTemplateRepository;
|
|
25
|
+
this.templateAttachEntity = templateAttachEntity;
|
|
26
|
+
this.mediaDataService = mediaDataService;
|
|
27
|
+
this.dataSource = dataSource;
|
|
28
|
+
}
|
|
29
|
+
async getAllCommTemplate(entity_type, action_id, loggedInUser) {
|
|
30
|
+
const { organization_id, level_id, level_type } = loggedInUser;
|
|
31
|
+
let is_template;
|
|
32
|
+
if (action_id) {
|
|
33
|
+
const [actionResult] = await this.dataSource.query(`SELECT is_template
|
|
34
|
+
FROM cr_wf_action
|
|
35
|
+
WHERE id = ? AND organization_id = ?
|
|
36
|
+
LIMIT 1`, [action_id, organization_id]);
|
|
37
|
+
if (!actionResult) {
|
|
38
|
+
throw new Error('Invalid action_id');
|
|
39
|
+
}
|
|
40
|
+
is_template = actionResult.is_template;
|
|
41
|
+
await this.dataSource.query(`UPDATE cr_wf_comm_template
|
|
42
|
+
SET is_template = ?
|
|
43
|
+
WHERE mapped_entity_type = ?
|
|
44
|
+
AND organization_id = ? AND level_id = ? AND level_type=?`, [is_template, entity_type, organization_id, level_id, level_type]);
|
|
45
|
+
}
|
|
46
|
+
const whereCondition = {
|
|
47
|
+
organization_id,
|
|
48
|
+
level_id,
|
|
49
|
+
level_type,
|
|
50
|
+
};
|
|
51
|
+
if (typeof is_template !== 'undefined') {
|
|
52
|
+
whereCondition.is_template = is_template;
|
|
53
|
+
}
|
|
54
|
+
return this.commTemplateRepository.find({
|
|
55
|
+
select: ['name', 'code', 'mode', 'is_template'],
|
|
56
|
+
where: whereCondition,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
async save(commTemplate) {
|
|
60
|
+
return this.templateAttachEntity.save(commTemplate);
|
|
61
|
+
}
|
|
62
|
+
async delete(id) {
|
|
63
|
+
return await this.templateAttachEntity.delete(id);
|
|
64
|
+
}
|
|
65
|
+
async getTemplateByCode(entity_type, id, loggedInUser) {
|
|
66
|
+
const template = await this.commTemplateRepository.findOne({
|
|
67
|
+
where: { entity_type, id },
|
|
68
|
+
});
|
|
69
|
+
if (!template) {
|
|
70
|
+
throw new common_1.NotFoundException(`Template with id ${id} not found`);
|
|
71
|
+
}
|
|
72
|
+
if (template.format_type === 'markup') {
|
|
73
|
+
const media = await this.mediaDataService.getMediaDownloadUrl(template.markup_id, loggedInUser);
|
|
74
|
+
template.markup_id = media;
|
|
75
|
+
}
|
|
76
|
+
if (template.format_type === 'richtext') {
|
|
77
|
+
return template;
|
|
78
|
+
}
|
|
79
|
+
const attachments = await this.templateAttachEntity.find({
|
|
80
|
+
select: ['media_id'],
|
|
81
|
+
where: {
|
|
82
|
+
entity_type,
|
|
83
|
+
template_id: template.id,
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
let attachmentsMedia = [];
|
|
87
|
+
if (attachments.length > 0) {
|
|
88
|
+
attachmentsMedia = await Promise.all(attachments.map(async (att) => {
|
|
89
|
+
const media = await this.mediaDataService.getMediaDownloadUrl(att.media_id, loggedInUser);
|
|
90
|
+
return media;
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
...template,
|
|
95
|
+
attachments: attachmentsMedia,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
exports.CommTemplateRepository = CommTemplateRepository;
|
|
100
|
+
exports.CommTemplateRepository = CommTemplateRepository = __decorate([
|
|
101
|
+
(0, common_1.Injectable)(),
|
|
102
|
+
__param(0, (0, typeorm_1.InjectRepository)(comm_template_entity_1.CommTemplate)),
|
|
103
|
+
__param(1, (0, typeorm_1.InjectRepository)(template_attach_mapper_entity_1.TemplateAttach)),
|
|
104
|
+
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
105
|
+
typeorm_2.Repository,
|
|
106
|
+
media_data_service_1.MediaDataService,
|
|
107
|
+
typeorm_2.DataSource])
|
|
108
|
+
], CommTemplateRepository);
|
|
109
|
+
//# sourceMappingURL=comm-template.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comm-template.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/comm-template.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,6CAAmD;AACnD,qCAAiD;AACjD,yEAA8D;AAC9D,2FAAyE;AACzE,8EAA8E;AAGvE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAEmB,sBAAgD,EAEhD,oBAAgD,EAChD,gBAAkC,EAClC,UAAsB;QAJtB,2BAAsB,GAAtB,sBAAsB,CAA0B;QAEhD,yBAAoB,GAApB,oBAAoB,CAA4B;QAChD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,eAAU,GAAV,UAAU,CAAY;IACtC,CAAC;IAEJ,KAAK,CAAC,kBAAkB,CACtB,WAAmB,EACnB,SAAkB,EAClB,YAAa;QAEb,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,YAAY,CAAC;QAE/D,IAAI,WAA+B,CAAC;QAGpC,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,CAAC,YAAY,CAAC,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAChD;;;eAGO,EACP,CAAC,SAAS,EAAE,eAAe,CAAC,CAC7B,CAAC;YAEF,IAAI,CAAC,YAAY,EAAE,CAAC;gBAClB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;YACvC,CAAC;YAED,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;YAEvC,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACzB;;;iEAGyD,EACzD,CAAC,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,UAAU,CAAC,CAClE,CAAC;QACJ,CAAC;QAED,MAAM,cAAc,GAAQ;YA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,oBAAoB,CAAC,IAAI,CAAC;YACvD,MAAM,EAAE,CAAC,UAAU,CAAC;YACpB,KAAK,EAAE;gBACL,WAAW;gBACX,WAAW,EAAE,QAAQ,CAAC,EAAE;aACzB;SACF,CAAC,CAAC;QAGH,IAAI,gBAAgB,GAAU,EAAE,CAAC;QACjC,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3B,gBAAgB,GAAG,MAAM,OAAO,CAAC,GAAG,CAClC,WAAW,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;gBAE5B,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAC3D,GAAG,CAAC,QAAQ,EACZ,YAAY,CACb,CAAC;gBACF,OAAO,KAAK,CAAC;YACf,CAAC,CAAC,CACH,CAAC;QACJ,CAAC;QAGD,OAAO;YACL,GAAG,QAAQ;YACX,WAAW,EAAE,gBAAgB;SAC9B,CAAC;IACJ,CAAC;CACF,CAAA;AArIY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,0BAAgB,EAAC,8CAAc,CAAC,CAAA;qCADQ,oBAAU;QAEZ,oBAAU;QACd,qCAAgB;QACtB,oBAAU;GAP9B,sBAAsB,CAqIlC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataSource } from 'typeorm';
|
|
2
|
+
import { UserData } from 'src/module/user/entity/user.entity';
|
|
3
|
+
export declare class FormMasterRepository {
|
|
4
|
+
private readonly dataSource;
|
|
5
|
+
constructor(dataSource: DataSource);
|
|
6
|
+
getForms(organization_id: number, source_entity_type: string): Promise<any>;
|
|
7
|
+
submitForm(redirect_data: any, loggedInUser: UserData): Promise<string>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.FormMasterRepository = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let FormMasterRepository = class FormMasterRepository {
|
|
16
|
+
constructor(dataSource) {
|
|
17
|
+
this.dataSource = dataSource;
|
|
18
|
+
}
|
|
19
|
+
async getForms(organization_id, source_entity_type) {
|
|
20
|
+
const forms = await this.dataSource.query(`SELECT fm.id as fm_id, fm.name as fm_form_name
|
|
21
|
+
FROM cr_entity_view fm
|
|
22
|
+
WHERE fm.organization_id = ? AND fm.mapped_entity_type = ?`, [organization_id, source_entity_type]);
|
|
23
|
+
const formatted = forms.map((form) => ({
|
|
24
|
+
label: form.fm_form_name,
|
|
25
|
+
value: form.fm_id,
|
|
26
|
+
}));
|
|
27
|
+
return formatted;
|
|
28
|
+
}
|
|
29
|
+
async submitForm(redirect_data, loggedInUser) {
|
|
30
|
+
return 'cr_form_master is removed package. So, this function is deactivated.';
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.FormMasterRepository = FormMasterRepository;
|
|
34
|
+
exports.FormMasterRepository = FormMasterRepository = __decorate([
|
|
35
|
+
(0, common_1.Injectable)(),
|
|
36
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource])
|
|
37
|
+
], FormMasterRepository);
|
|
38
|
+
//# sourceMappingURL=form-master.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-master.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/form-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAKwB;AAExB,qCAAiD;AAK1C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACmB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAGtC,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,eAAuB,EAAE,kBAA0B;QAChE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACvC;;kEAE4D,EAC5D,CAAC,eAAe,EAAE,kBAAkB,CAAC,CACtC,CAAC;QAEF,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC;YAC1C,KAAK,EAAE,IAAI,CAAC,YAAY;YACxB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC,CAAC;QAEJ,OAAO,SAAS,CAAC;IACnB,CAAC;IASD,KAAK,CAAC,UAAU,CAAC,aAAkB,EAAE,YAAsB;QAczD,OAAO,sEAAsE,CAAC;IAChF,CAAC;CACF,CAAA;AA9CY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAGoB,oBAAU;GAF9B,oBAAoB,CA8ChC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=form.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/form.repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { StageGroup } from '../entity/stage-group.entity';
|
|
2
|
+
import { DataSource, Repository } from 'typeorm';
|
|
3
|
+
import { MediaDataService } from 'src/module/meta/service/media-data.service';
|
|
4
|
+
export declare class StageGroupRepository {
|
|
5
|
+
private readonly stageGroupRepository;
|
|
6
|
+
private readonly dataSource;
|
|
7
|
+
private readonly mediaDataService;
|
|
8
|
+
constructor(stageGroupRepository: Repository<StageGroup>, dataSource: DataSource, mediaDataService: MediaDataService);
|
|
9
|
+
getAllStageGroup(workflow_id: number, organization_id: number): Promise<StageGroup[]>;
|
|
10
|
+
getAllStageGroupByCondition(condition: any): Promise<StageGroup[]>;
|
|
11
|
+
getAllStageGroupAndStageHierarchy(workflow_id: number, loggedInUser: any, lead_id: number): Promise<{
|
|
12
|
+
stages: any[];
|
|
13
|
+
workflow_id: number;
|
|
14
|
+
sequence: number;
|
|
15
|
+
color: string;
|
|
16
|
+
dark_color: string;
|
|
17
|
+
id: number;
|
|
18
|
+
entity_type: string;
|
|
19
|
+
name: string;
|
|
20
|
+
status: string;
|
|
21
|
+
parent_type: string;
|
|
22
|
+
parent_id: number;
|
|
23
|
+
code: string;
|
|
24
|
+
created_by: number;
|
|
25
|
+
created_date: Date;
|
|
26
|
+
modified_by: number;
|
|
27
|
+
modified_date: Date;
|
|
28
|
+
enterprise_id: number;
|
|
29
|
+
organization_id: number;
|
|
30
|
+
appcode: string;
|
|
31
|
+
level_id: string;
|
|
32
|
+
level_type: string;
|
|
33
|
+
}[]>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
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.StageGroupRepository = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const stage_group_entity_1 = require("../entity/stage-group.entity");
|
|
18
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
19
|
+
const typeorm_2 = require("typeorm");
|
|
20
|
+
const media_data_service_1 = require("../../meta/service/media-data.service");
|
|
21
|
+
let StageGroupRepository = class StageGroupRepository {
|
|
22
|
+
constructor(stageGroupRepository, dataSource, mediaDataService) {
|
|
23
|
+
this.stageGroupRepository = stageGroupRepository;
|
|
24
|
+
this.dataSource = dataSource;
|
|
25
|
+
this.mediaDataService = mediaDataService;
|
|
26
|
+
}
|
|
27
|
+
async getAllStageGroup(workflow_id, organization_id) {
|
|
28
|
+
if (!workflow_id) {
|
|
29
|
+
throw new common_1.BadRequestException('workflow_id is required');
|
|
30
|
+
}
|
|
31
|
+
const result = await this.stageGroupRepository.find({
|
|
32
|
+
where: {
|
|
33
|
+
workflow_id,
|
|
34
|
+
organization_id,
|
|
35
|
+
},
|
|
36
|
+
order: {
|
|
37
|
+
sequence: 'ASC',
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
if (!result || result.length === 0) {
|
|
41
|
+
throw new common_1.NotFoundException('No stage groups found for the given workflow ID');
|
|
42
|
+
}
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
async getAllStageGroupByCondition(condition) {
|
|
46
|
+
const result = await this.stageGroupRepository.find({
|
|
47
|
+
where: {
|
|
48
|
+
...condition,
|
|
49
|
+
},
|
|
50
|
+
order: {
|
|
51
|
+
sequence: 'ASC',
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
if (!result || result.length === 0) {
|
|
55
|
+
throw new common_1.NotFoundException('No stage groups found for the given workflow ID');
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
async getAllStageGroupAndStageHierarchy(workflow_id, loggedInUser, lead_id) {
|
|
60
|
+
if (!workflow_id) {
|
|
61
|
+
throw new common_1.BadRequestException('workflow_id is required');
|
|
62
|
+
}
|
|
63
|
+
const stageGroups = await this.getAllStageGroupByCondition({
|
|
64
|
+
workflow_id,
|
|
65
|
+
organization_id: loggedInUser.organization_id,
|
|
66
|
+
});
|
|
67
|
+
if (!stageGroups.length)
|
|
68
|
+
return [];
|
|
69
|
+
const stageGroupIds = stageGroups.map((sg) => sg.id);
|
|
70
|
+
const stagesRaw = await this.dataSource.query(`
|
|
71
|
+
SELECT
|
|
72
|
+
cr_wf_stage.*
|
|
73
|
+
FROM cr_wf_stage
|
|
74
|
+
WHERE cr_wf_stage.stage_group_id IN (${stageGroupIds.map(() => '?').join(',')})
|
|
75
|
+
AND cr_wf_stage.organization_id = ?
|
|
76
|
+
ORDER BY cr_wf_stage.sequence ASC
|
|
77
|
+
`, [...stageGroupIds, loggedInUser.organization_id]);
|
|
78
|
+
const stageIds = stagesRaw.map((s) => s.id);
|
|
79
|
+
const taskCounts = await this.dataSource.query(`
|
|
80
|
+
SELECT stage_id, COUNT(*) AS task_count
|
|
81
|
+
FROM cr_wf_task_data
|
|
82
|
+
WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND is_system=0 AND mapped_entity_id = ?
|
|
83
|
+
GROUP BY stage_id
|
|
84
|
+
`, [...stageIds, lead_id]);
|
|
85
|
+
const meetingCounts = await this.dataSource.query(`
|
|
86
|
+
SELECT stage_id, COUNT(*) AS meeting_count
|
|
87
|
+
FROM crm_lead_meeting
|
|
88
|
+
WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND mapped_entity_id = ?
|
|
89
|
+
GROUP BY stage_id
|
|
90
|
+
`, [...stageIds, lead_id]);
|
|
91
|
+
const sendCommCounts = await this.dataSource.query(`
|
|
92
|
+
SELECT stage_id, COUNT(*) AS send_comm_count
|
|
93
|
+
FROM crm_lead_communication
|
|
94
|
+
WHERE stage_id IN (${stageIds.map(() => '?').join(',')}) AND mapped_entity_id = ?
|
|
95
|
+
AND type IN ('SEND', 'LOG')
|
|
96
|
+
GROUP BY stage_id
|
|
97
|
+
`, [...stageIds, lead_id]);
|
|
98
|
+
const taskCountMap = new Map(taskCounts.map((row) => [Number(row.stage_id), Number(row.task_count)]));
|
|
99
|
+
const meetingCountMap = new Map(meetingCounts.map((row) => [
|
|
100
|
+
Number(row.stage_id),
|
|
101
|
+
Number(row.meeting_count),
|
|
102
|
+
]));
|
|
103
|
+
const sendCommCountMap = new Map(sendCommCounts.map((row) => [
|
|
104
|
+
Number(row.stage_id),
|
|
105
|
+
Number(row.send_comm_count),
|
|
106
|
+
]));
|
|
107
|
+
const stageMap = new Map();
|
|
108
|
+
for (const stage of stagesRaw) {
|
|
109
|
+
const stageId = Number(stage.id);
|
|
110
|
+
stage.task_count = taskCountMap.get(stageId) || 0;
|
|
111
|
+
stage.meeting_count = meetingCountMap.get(stageId) || 0;
|
|
112
|
+
stage.send_comm_count = sendCommCountMap.get(stageId) || 0;
|
|
113
|
+
if (!stageMap.has(stage.stage_group_id)) {
|
|
114
|
+
stageMap.set(stage.stage_group_id, []);
|
|
115
|
+
}
|
|
116
|
+
stageMap.get(stage.stage_group_id)?.push(stage);
|
|
117
|
+
}
|
|
118
|
+
const result = stageGroups.map((stageGroup) => {
|
|
119
|
+
return {
|
|
120
|
+
...stageGroup,
|
|
121
|
+
stages: stageMap.get(Number(stageGroup.id)) || [],
|
|
122
|
+
};
|
|
123
|
+
});
|
|
124
|
+
return result;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
exports.StageGroupRepository = StageGroupRepository;
|
|
128
|
+
exports.StageGroupRepository = StageGroupRepository = __decorate([
|
|
129
|
+
(0, common_1.Injectable)(),
|
|
130
|
+
__param(0, (0, typeorm_1.InjectRepository)(stage_group_entity_1.StageGroup)),
|
|
131
|
+
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
132
|
+
typeorm_2.DataSource,
|
|
133
|
+
media_data_service_1.MediaDataService])
|
|
134
|
+
], StageGroupRepository);
|
|
135
|
+
//# sourceMappingURL=stage-group.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-group.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/stage-group.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKwB;AACxB,qEAA0D;AAC1D,6CAAmD;AACnD,qCAAiD;AACjD,8EAA8E;AAGvE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,oBAA4C,EAC5C,UAAsB,EACtB,gBAAkC;QAFlC,yBAAoB,GAApB,oBAAoB,CAAwB;QAC5C,eAAU,GAAV,UAAU,CAAY;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;IAClD,CAAC;IAEJ,KAAK,CAAC,gBAAgB,CAAC,WAAmB,EAAE,eAAuB;QACjE,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,4BAAmB,CAAC,yBAAyB,CAAC,CAAC;QAC3D,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;YAClD,KAAK,EAAE;gBACL,WAAW;gBACX,eAAe;aAChB;YACD,KAAK,EAAE;gBACL,QAAQ,EAAE,KAAK;aAChB;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAA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,oBAAU;QACJ,qCAAgB;GAL1C,oBAAoB,CAmKhC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Repository, DataSource } from 'typeorm';
|
|
2
|
+
import { WorkflowLevelMappingEntity } from '../entity/workflow-level-mapping.entity';
|
|
3
|
+
import { StageGroup } from '../entity/stage-group.entity';
|
|
4
|
+
import { Stage } from '../entity/stage.entity';
|
|
5
|
+
import { UserData } from 'src/module/user/entity/user.entity';
|
|
6
|
+
export declare class StageMovementRepository {
|
|
7
|
+
private readonly workflowLevelMappingRepo;
|
|
8
|
+
private readonly stageGroupRepo;
|
|
9
|
+
private readonly stageRepo;
|
|
10
|
+
private readonly dataSource;
|
|
11
|
+
constructor(workflowLevelMappingRepo: Repository<WorkflowLevelMappingEntity>, stageGroupRepo: Repository<StageGroup>, stageRepo: Repository<Stage>, dataSource: DataSource);
|
|
12
|
+
getFirstStage({ loggedInUser, mapped_entity_type, mapped_entity_id, }: {
|
|
13
|
+
loggedInUser: any;
|
|
14
|
+
mapped_entity_type: string;
|
|
15
|
+
mapped_entity_id: string | number;
|
|
16
|
+
}): Promise<any | null>;
|
|
17
|
+
getNextStage(stageGroupId: number, currentStageId: number): Promise<any | null>;
|
|
18
|
+
getNextStageGroup(currentStageGroupId: number): Promise<any | null>;
|
|
19
|
+
getNextStageOrFirstOfNextGroup(stageGroupId: number, currentStageId: number): Promise<any | null>;
|
|
20
|
+
getAllActionByStageId(stageId: number): Promise<any>;
|
|
21
|
+
saveActionData(action: any, loggedInUser: UserData): Promise<any>;
|
|
22
|
+
saveTaskData(actionData: any, loggedInUser: UserData): Promise<any>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
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.StageMovementRepository = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
+
const typeorm_2 = require("typeorm");
|
|
19
|
+
const workflow_level_mapping_entity_1 = require("../entity/workflow-level-mapping.entity");
|
|
20
|
+
const stage_group_entity_1 = require("../entity/stage-group.entity");
|
|
21
|
+
const stage_entity_1 = require("../entity/stage.entity");
|
|
22
|
+
let StageMovementRepository = class StageMovementRepository {
|
|
23
|
+
constructor(workflowLevelMappingRepo, stageGroupRepo, stageRepo, dataSource) {
|
|
24
|
+
this.workflowLevelMappingRepo = workflowLevelMappingRepo;
|
|
25
|
+
this.stageGroupRepo = stageGroupRepo;
|
|
26
|
+
this.stageRepo = stageRepo;
|
|
27
|
+
this.dataSource = dataSource;
|
|
28
|
+
}
|
|
29
|
+
async getFirstStage({ loggedInUser, mapped_entity_type, mapped_entity_id, }) {
|
|
30
|
+
let workflowLevelMapping = await this.workflowLevelMappingRepo.findOne({
|
|
31
|
+
where: {
|
|
32
|
+
mapped_level_type: loggedInUser.level_type,
|
|
33
|
+
mapped_level_id: loggedInUser.level_id,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
if (!workflowLevelMapping) {
|
|
37
|
+
workflowLevelMapping = await this.workflowLevelMappingRepo.findOne({
|
|
38
|
+
where: {
|
|
39
|
+
mapped_level_type: 'ORG',
|
|
40
|
+
mapped_level_id: loggedInUser.organization_id,
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
if (!workflowLevelMapping)
|
|
45
|
+
return null;
|
|
46
|
+
const stageGroup = await this.stageGroupRepo.findOne({
|
|
47
|
+
where: {
|
|
48
|
+
workflow_id: workflowLevelMapping.workflow_id,
|
|
49
|
+
},
|
|
50
|
+
order: { id: 'ASC' },
|
|
51
|
+
});
|
|
52
|
+
if (!stageGroup)
|
|
53
|
+
return null;
|
|
54
|
+
const firstStage = await this.stageRepo.findOne({
|
|
55
|
+
where: {
|
|
56
|
+
stage_group_id: stageGroup.id,
|
|
57
|
+
},
|
|
58
|
+
order: { id: 'ASC' },
|
|
59
|
+
});
|
|
60
|
+
if (!firstStage)
|
|
61
|
+
return null;
|
|
62
|
+
return {
|
|
63
|
+
mappingUsed: workflowLevelMapping,
|
|
64
|
+
stageGroup,
|
|
65
|
+
firstStage,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
async getNextStage(stageGroupId, currentStageId) {
|
|
69
|
+
const allStages = await this.stageRepo.find({
|
|
70
|
+
where: { stage_group_id: stageGroupId },
|
|
71
|
+
order: { sequence: 'ASC' },
|
|
72
|
+
});
|
|
73
|
+
if (currentStageId === 0)
|
|
74
|
+
return allStages.length > 0 ? allStages[0] : null;
|
|
75
|
+
const currentStage = allStages.find((s) => s.id == currentStageId);
|
|
76
|
+
if (!currentStage)
|
|
77
|
+
return null;
|
|
78
|
+
const higherStages = allStages
|
|
79
|
+
.filter((s) => s.sequence > currentStage.sequence)
|
|
80
|
+
.sort((a, b) => a.sequence - b.sequence);
|
|
81
|
+
return higherStages.length > 0 ? higherStages[0] : null;
|
|
82
|
+
}
|
|
83
|
+
async getNextStageGroup(currentStageGroupId) {
|
|
84
|
+
const currentStageGroup = await this.stageGroupRepo.findOne({
|
|
85
|
+
where: { id: currentStageGroupId },
|
|
86
|
+
});
|
|
87
|
+
if (!currentStageGroup)
|
|
88
|
+
return null;
|
|
89
|
+
const workflowId = currentStageGroup.workflow_id;
|
|
90
|
+
const nextStageGroup = await this.stageGroupRepo.findOne({
|
|
91
|
+
where: {
|
|
92
|
+
workflow_id: workflowId,
|
|
93
|
+
sequence: (0, typeorm_2.MoreThan)(currentStageGroup.sequence),
|
|
94
|
+
},
|
|
95
|
+
order: { sequence: 'ASC' },
|
|
96
|
+
});
|
|
97
|
+
return nextStageGroup || null;
|
|
98
|
+
}
|
|
99
|
+
async getNextStageOrFirstOfNextGroup(stageGroupId, currentStageId) {
|
|
100
|
+
const nextStage = await this.getNextStage(stageGroupId, currentStageId);
|
|
101
|
+
if (nextStage)
|
|
102
|
+
return nextStage;
|
|
103
|
+
const nextStageGroup = await this.getNextStageGroup(stageGroupId);
|
|
104
|
+
if (!nextStageGroup)
|
|
105
|
+
return null;
|
|
106
|
+
const nextStageGroupFirstStage = await this.getNextStage(nextStageGroup.id, 0);
|
|
107
|
+
return nextStageGroupFirstStage || null;
|
|
108
|
+
}
|
|
109
|
+
async getAllActionByStageId(stageId) {
|
|
110
|
+
const result = await this.dataSource.query(`
|
|
111
|
+
SELECT
|
|
112
|
+
a.*,
|
|
113
|
+
m.stage_id,
|
|
114
|
+
ac.code AS action_category_code,
|
|
115
|
+
arm.form_id
|
|
116
|
+
FROM cr_wf_action a
|
|
117
|
+
LEFT JOIN cr_wf_stage_action_mapping m ON a.id = m.action_id
|
|
118
|
+
LEFT JOIN cr_wf_action_category ac ON a.action_category = ac.id
|
|
119
|
+
LEFT JOIN cr_wf_action_resources_mapping arm ON m.id = arm.stg_act_mapping_id
|
|
120
|
+
WHERE m.stage_id = ?
|
|
121
|
+
`, [stageId]);
|
|
122
|
+
return result;
|
|
123
|
+
}
|
|
124
|
+
async saveActionData(action, loggedInUser) {
|
|
125
|
+
if (action.length > 0) {
|
|
126
|
+
for (const act of action) {
|
|
127
|
+
await this.dataSource.query(`INSERT INTO cr_wf_action_data (stage_id, user_id, action_id) VALUES (?, ?, ?)`, [act.stage_id, loggedInUser.id, act.id]);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async saveTaskData(actionData, loggedInUser) {
|
|
132
|
+
if (actionData.length > 0) {
|
|
133
|
+
for (const action of actionData) {
|
|
134
|
+
await this.dataSource.query(`INSERT INTO cr_wf_task_data (action_id, user_id) VALUES (?, ?)`, [action.id, loggedInUser.id]);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
exports.StageMovementRepository = StageMovementRepository;
|
|
140
|
+
exports.StageMovementRepository = StageMovementRepository = __decorate([
|
|
141
|
+
(0, common_1.Injectable)(),
|
|
142
|
+
__param(0, (0, typeorm_1.InjectRepository)(workflow_level_mapping_entity_1.WorkflowLevelMappingEntity)),
|
|
143
|
+
__param(1, (0, typeorm_1.InjectRepository)(stage_group_entity_1.StageGroup)),
|
|
144
|
+
__param(2, (0, typeorm_1.InjectRepository)(stage_entity_1.Stage)),
|
|
145
|
+
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
146
|
+
typeorm_2.Repository,
|
|
147
|
+
typeorm_2.Repository,
|
|
148
|
+
typeorm_2.DataSource])
|
|
149
|
+
], StageMovementRepository);
|
|
150
|
+
//# sourceMappingURL=stage-movement.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-movement.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/stage-movement.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAA2D;AAC3D,2FAAqF;AACrF,qEAA0D;AAC1D,yDAA+C;AAKxC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YAEmB,wBAAgE,EAEhE,cAAsC,E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AC,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,CACxC,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAe,EAAE,YAAsB;QAGxD,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1B,KAAK,MAAM,MAAM,IAAI,UAAU,EAAE,CAAC;gBAChC,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACzB,gEAAgE,EAChE,CAAC,MAAM,CAAC,EAAE,EAAE,YAAY,CAAC,EAAE,CAAC,CAC7B,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAvNY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,0DAA0B,CAAC,CAAA;IAE5C,WAAA,IAAA,0BAAgB,EAAC,+BAAU,CAAC,CAAA;IAE5B,WAAA,IAAA,0BAAgB,EAAC,oBAAK,CAAC,CAAA;qCAHmB,oBAAU;QAEpB,oBAAU;QAEf,oBAAU;QACT,oBAAU;GAR9B,uBAAuB,CAuNnC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
|
+
import { Stage } from '../entity/stage.entity';
|
|
3
|
+
export declare class StageRepository {
|
|
4
|
+
private readonly stageRepository;
|
|
5
|
+
private readonly dataSource;
|
|
6
|
+
constructor(stageRepository: Repository<Stage>, dataSource: DataSource);
|
|
7
|
+
getAllStage(stage_group_id: number, organization_id: number): Promise<{
|
|
8
|
+
name: string;
|
|
9
|
+
full_name: string;
|
|
10
|
+
stage_group_id: number;
|
|
11
|
+
sequence: number;
|
|
12
|
+
description: string;
|
|
13
|
+
id: number;
|
|
14
|
+
entity_type: string;
|
|
15
|
+
status: string;
|
|
16
|
+
parent_type: string;
|
|
17
|
+
parent_id: number;
|
|
18
|
+
code: string;
|
|
19
|
+
created_by: number;
|
|
20
|
+
created_date: Date;
|
|
21
|
+
modified_by: number;
|
|
22
|
+
modified_date: Date;
|
|
23
|
+
enterprise_id: number;
|
|
24
|
+
organization_id: number;
|
|
25
|
+
appcode: string;
|
|
26
|
+
level_id: string;
|
|
27
|
+
level_type: string;
|
|
28
|
+
}[]>;
|
|
29
|
+
getStageGroupsWithStagesByWorkflowId(stage_group_id: number, organization_id: number): Promise<any[]>;
|
|
30
|
+
getAllStageGroupAndStageByStageMovement(stage_group_id: number, organization_id: number): Promise<any[]>;
|
|
31
|
+
}
|