rez_core 6.5.55 → 6.5.56
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 +79 -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/bull.config.d.ts +10 -0
- package/dist/config/bull.config.js +66 -0
- package/dist/config/bull.config.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 +43 -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/constant/status.constant.d.ts +4 -0
- package/dist/constant/status.constant.js +9 -0
- package/dist/constant/status.constant.js.map +1 -0
- package/dist/core.module.d.ts +4 -0
- package/dist/core.module.js +113 -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/app_master/app-master.module.d.ts +2 -0
- package/dist/module/app_master/app-master.module.js +28 -0
- package/dist/module/app_master/app-master.module.js.map +1 -0
- package/dist/module/app_master/controller/app-master.controller.d.ts +9 -0
- package/dist/module/app_master/controller/app-master.controller.js +51 -0
- package/dist/module/app_master/controller/app-master.controller.js.map +1 -0
- package/dist/module/app_master/entity/app-master.entity.d.ts +17 -0
- package/dist/module/app_master/entity/app-master.entity.js +80 -0
- package/dist/module/app_master/entity/app-master.entity.js.map +1 -0
- package/dist/module/app_master/repository/app-master.repository.d.ts +7 -0
- package/dist/module/app_master/repository/app-master.repository.js +36 -0
- package/dist/module/app_master/repository/app-master.repository.js.map +1 -0
- package/dist/module/app_master/service/app-master.service.d.ts +8 -0
- package/dist/module/app_master/service/app-master.service.js +45 -0
- package/dist/module/app_master/service/app-master.service.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 +5 -0
- package/dist/module/auth/controller/auth.controller.js +25 -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 +50 -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 +20 -0
- package/dist/module/auth/strategies/jwt.strategy.js +47 -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 +57 -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 +11 -0
- package/dist/module/dashboard/repository/dashboard.repository.js +62 -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 +61 -0
- package/dist/module/dashboard/service/dashboard.service.js.map +1 -0
- package/dist/module/enterprise/controller/enterprise.controller.d.ts +12 -0
- package/dist/module/enterprise/controller/enterprise.controller.js +57 -0
- package/dist/module/enterprise/controller/enterprise.controller.js.map +1 -0
- package/dist/module/enterprise/controller/meta.controller.d.ts +9 -0
- package/dist/module/enterprise/controller/meta.controller.js +43 -0
- package/dist/module/enterprise/controller/meta.controller.js.map +1 -0
- package/dist/module/enterprise/controller/organization.controller.d.ts +22 -0
- package/dist/module/enterprise/controller/organization.controller.js +115 -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 +52 -0
- package/dist/module/enterprise/enterprise.module.js.map +1 -0
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +11 -0
- package/dist/module/enterprise/entity/enterprise.entity.js +56 -0
- package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +10 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +49 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -0
- package/dist/module/enterprise/entity/organization.entity.d.ts +16 -0
- package/dist/module/enterprise/entity/organization.entity.js +74 -0
- package/dist/module/enterprise/entity/organization.entity.js.map +1 -0
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +10 -0
- package/dist/module/enterprise/repository/enterprise.repository.js +63 -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 +226 -0
- package/dist/module/enterprise/repository/school.repository.js.map +1 -0
- package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
- package/dist/module/enterprise/service/brand-profile.service.js +1 -0
- package/dist/module/enterprise/service/brand-profile.service.js.map +1 -0
- package/dist/module/enterprise/service/brand.service.d.ts +0 -0
- package/dist/module/enterprise/service/brand.service.js +1 -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 +33 -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 +203 -0
- package/dist/module/enterprise/service/organization.service.js.map +1 -0
- package/dist/module/enterprise/service/populate-meta.service.d.ts +9 -0
- package/dist/module/enterprise/service/populate-meta.service.js +194 -0
- package/dist/module/enterprise/service/populate-meta.service.js.map +1 -0
- package/dist/module/enterprise/service/school.service.d.ts +0 -0
- package/dist/module/enterprise/service/school.service.js +1 -0
- package/dist/module/enterprise/service/school.service.js.map +1 -0
- package/dist/module/entity_json/controller/entity_json.controller.d.ts +18 -0
- package/dist/module/entity_json/controller/entity_json.controller.js +57 -0
- package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -0
- package/dist/module/entity_json/entity/entityJson.entity.d.ts +10 -0
- package/dist/module/entity_json/entity/entityJson.entity.js +55 -0
- package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -0
- package/dist/module/entity_json/entity_json.module.d.ts +2 -0
- package/dist/module/entity_json/entity_json.module.js +30 -0
- package/dist/module/entity_json/entity_json.module.js.map +1 -0
- package/dist/module/entity_json/service/entityJson.repository.d.ts +7 -0
- package/dist/module/entity_json/service/entityJson.repository.js +45 -0
- package/dist/module/entity_json/service/entityJson.repository.js.map +1 -0
- package/dist/module/entity_json/service/entity_json.service.d.ts +25 -0
- package/dist/module/entity_json/service/entity_json.service.js +209 -0
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -0
- package/dist/module/export/controller/export.controller.d.ts +9 -0
- package/dist/module/export/controller/export.controller.js +83 -0
- package/dist/module/export/controller/export.controller.js.map +1 -0
- package/dist/module/export/export.module.d.ts +2 -0
- package/dist/module/export/export.module.js +27 -0
- package/dist/module/export/export.module.js.map +1 -0
- package/dist/module/export/service/export.service.d.ts +14 -0
- package/dist/module/export/service/export.service.js +85 -0
- package/dist/module/export/service/export.service.js.map +1 -0
- package/dist/module/filter/controller/filter.controller.d.ts +39 -0
- package/dist/module/filter/controller/filter.controller.js +94 -0
- package/dist/module/filter/controller/filter.controller.js.map +1 -0
- package/dist/module/filter/dto/filter-request.dto.d.ts +36 -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 +12 -0
- package/dist/module/filter/entity/saved-filter-master.entity.js +59 -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 +46 -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 +203 -0
- package/dist/module/filter/repository/saved-filter.repository.js.map +1 -0
- package/dist/module/filter/repository/saved.filter-detail.repository.d.ts +7 -0
- package/dist/module/filter/repository/saved.filter-detail.repository.js +38 -0
- package/dist/module/filter/repository/saved.filter-detail.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 +59 -0
- package/dist/module/filter/service/filter-evaluator.service.js.map +1 -0
- package/dist/module/filter/service/filter.service.d.ts +74 -0
- package/dist/module/filter/service/filter.service.js +921 -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 +52 -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 +207 -0
- package/dist/module/integration/service/integration.service.js +1590 -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 +38 -0
- package/dist/module/integration/service/wrapper.service.js +348 -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 +9 -0
- package/dist/module/layout/controller/layout.controller.js +55 -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 +5 -0
- package/dist/module/layout/entity/header-section.entity.js +32 -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 +33 -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 +7 -0
- package/dist/module/layout/repository/header-section.repository.js +34 -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 +19 -0
- package/dist/module/layout_preference/controller/layout_preference.controller.js +78 -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 +35 -0
- package/dist/module/layout_preference/layout_preference.module.js.map +1 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.d.ts +13 -0
- package/dist/module/layout_preference/repository/layout_preference.repository.js +68 -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 +20 -0
- package/dist/module/layout_preference/service/layout_preference.service.js +128 -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/linked_attributes/controller/linked_attributes.controller.d.ts +7 -0
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js +55 -0
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -0
- package/dist/module/linked_attributes/entity/linked_attribute.entity.d.ts +10 -0
- package/dist/module/linked_attributes/entity/linked_attribute.entity.js +74 -0
- package/dist/module/linked_attributes/entity/linked_attribute.entity.js.map +1 -0
- package/dist/module/linked_attributes/linked_attributes.module.d.ts +2 -0
- package/dist/module/linked_attributes/linked_attributes.module.js +29 -0
- package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -0
- package/dist/module/linked_attributes/repository/linked_attribute.repository.d.ts +6 -0
- package/dist/module/linked_attributes/repository/linked_attribute.repository.js +31 -0
- package/dist/module/linked_attributes/repository/linked_attribute.repository.js.map +1 -0
- package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +10 -0
- package/dist/module/linked_attributes/service/linked_attributes.service.js +74 -0
- package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -0
- package/dist/module/listmaster/controller/list-master.controller.d.ts +29 -0
- package/dist/module/listmaster/controller/list-master.controller.js +186 -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 +69 -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 +56 -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 +55 -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 +143 -0
- package/dist/module/listmaster/repository/list-master-items.repository.js.map +1 -0
- package/dist/module/listmaster/repository/list-master.repository.d.ts +10 -0
- package/dist/module/listmaster/repository/list-master.repository.js +62 -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 +20 -0
- package/dist/module/listmaster/service/list-master-item.service.js +148 -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 +40 -0
- package/dist/module/listmaster/service/list-master.service.js +323 -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 +14 -0
- package/dist/module/mapper/controller/mapper.controller.js +45 -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 +48 -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 +46 -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 +200 -0
- package/dist/module/mapper/service/field-mapper.service.js.map +1 -0
- package/dist/module/mapper/service/mapper.service.d.ts +24 -0
- package/dist/module/mapper/service/mapper.service.js +84 -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 +30 -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/attribute-master.controller.d.ts +29 -0
- package/dist/module/meta/controller/attribute-master.controller.js +93 -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 +14 -0
- package/dist/module/meta/controller/entity-master.controller.js +57 -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 +33 -0
- package/dist/module/meta/controller/entity.controller.js +185 -0
- package/dist/module/meta/controller/entity.controller.js.map +1 -0
- package/dist/module/meta/controller/entity.public.controller.d.ts +12 -0
- package/dist/module/meta/controller/entity.public.controller.js +75 -0
- package/dist/module/meta/controller/entity.public.controller.js.map +1 -0
- package/dist/module/meta/controller/media.controller.d.ts +30 -0
- package/dist/module/meta/controller/media.controller.js +119 -0
- package/dist/module/meta/controller/media.controller.js.map +1 -0
- package/dist/module/meta/controller/meta.controller.d.ts +30 -0
- package/dist/module/meta/controller/meta.controller.js +99 -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 +90 -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 +9 -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/attribute-master.entity.d.ts +23 -0
- package/dist/module/meta/entity/attribute-master.entity.js +128 -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 +20 -0
- package/dist/module/meta/entity/entity-master.entity.js +117 -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 +150 -0
- package/dist/module/meta/entity.module.js.map +1 -0
- package/dist/module/meta/repository/attribute-master.repository.d.ts +30 -0
- package/dist/module/meta/repository/attribute-master.repository.js +136 -0
- package/dist/module/meta/repository/attribute-master.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-attribute-update.repository.d.ts +8 -0
- package/dist/module/meta/repository/entity-attribute-update.repository.js +50 -0
- package/dist/module/meta/repository/entity-attribute-update.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-master.repository.d.ts +33 -0
- package/dist/module/meta/repository/entity-master.repository.js +121 -0
- package/dist/module/meta/repository/entity-master.repository.js.map +1 -0
- package/dist/module/meta/repository/entity-relation.repository.d.ts +7 -0
- package/dist/module/meta/repository/entity-relation.repository.js +39 -0
- package/dist/module/meta/repository/entity-relation.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/attribute-master.service.d.ts +21 -0
- package/dist/module/meta/service/attribute-master.service.js +81 -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-attribute-update.service.d.ts +7 -0
- package/dist/module/meta/service/entity-attribute-update.service.js +34 -0
- package/dist/module/meta/service/entity-attribute-update.service.js.map +1 -0
- package/dist/module/meta/service/entity-dynamic.service.d.ts +32 -0
- package/dist/module/meta/service/entity-dynamic.service.js +496 -0
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -0
- package/dist/module/meta/service/entity-master.service.d.ts +38 -0
- package/dist/module/meta/service/entity-master.service.js +119 -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 +11 -0
- package/dist/module/meta/service/entity-relation.service.js +71 -0
- package/dist/module/meta/service/entity-relation.service.js.map +1 -0
- package/dist/module/meta/service/entity-service-impl.service.d.ts +35 -0
- package/dist/module/meta/service/entity-service-impl.service.js +233 -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 +6 -0
- package/dist/module/meta/service/entity-table-column.service.js +29 -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 +88 -0
- package/dist/module/meta/service/entity-table.service.js.map +1 -0
- package/dist/module/meta/service/entity-validation.service.d.ts +22 -0
- package/dist/module/meta/service/entity-validation.service.js +118 -0
- package/dist/module/meta/service/entity-validation.service.js.map +1 -0
- package/dist/module/meta/service/entity.service.d.ts +12 -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 +43 -0
- package/dist/module/meta/service/media-data.service.js +372 -0
- package/dist/module/meta/service/media-data.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 +21 -0
- package/dist/module/meta/service/resolver.service.js +215 -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 +29 -0
- package/dist/module/meta/service/view-master.service.js +82 -0
- package/dist/module/meta/service/view-master.service.js.map +1 -0
- package/dist/module/microservice-client/microservice-clients.module.d.ts +2 -0
- package/dist/module/microservice-client/microservice-clients.module.js +27 -0
- package/dist/module/microservice-client/microservice-clients.module.js.map +1 -0
- package/dist/module/microservice-client/service/microservice-client-factory.d.ts +10 -0
- package/dist/module/microservice-client/service/microservice-client-factory.js +46 -0
- package/dist/module/microservice-client/service/microservice-client-factory.js.map +1 -0
- package/dist/module/microservice-client/service/microservice-clients.d.ts +4 -0
- package/dist/module/microservice-client/service/microservice-clients.js +3 -0
- package/dist/module/microservice-client/service/microservice-clients.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 +34 -0
- package/dist/module/module/controller/module-access.controller.js +153 -0
- package/dist/module/module/controller/module-access.controller.js.map +1 -0
- package/dist/module/module/entity/menu.entity.d.ts +18 -0
- package/dist/module/module/entity/menu.entity.js +81 -0
- package/dist/module/module/entity/menu.entity.js.map +1 -0
- package/dist/module/module/entity/module-access.entity.d.ts +23 -0
- package/dist/module/module/entity/module-access.entity.js +94 -0
- package/dist/module/module/entity/module-access.entity.js.map +1 -0
- package/dist/module/module/entity/module-action.entity.d.ts +8 -0
- package/dist/module/module/entity/module-action.entity.js +42 -0
- package/dist/module/module/entity/module-action.entity.js.map +1 -0
- package/dist/module/module/entity/module.entity.d.ts +16 -0
- package/dist/module/module/entity/module.entity.js +74 -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 +53 -0
- package/dist/module/module/module.module.js.map +1 -0
- package/dist/module/module/repository/menu.repository.d.ts +15 -0
- package/dist/module/module/repository/menu.repository.js +174 -0
- package/dist/module/module/repository/menu.repository.js.map +1 -0
- package/dist/module/module/repository/module-access.repository.d.ts +52 -0
- package/dist/module/module/repository/module-access.repository.js +333 -0
- package/dist/module/module/repository/module-access.repository.js.map +1 -0
- package/dist/module/module/service/menu.service.d.ts +10 -0
- package/dist/module/module/service/menu.service.js +56 -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 +111 -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 +35 -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 +25 -0
- package/dist/module/notification/entity/notification.entity.js +115 -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 +81 -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 +15 -0
- package/dist/module/notification/service/email.service.js +124 -0
- package/dist/module/notification/service/email.service.js.map +1 -0
- package/dist/module/notification/service/notification.service.d.ts +27 -0
- package/dist/module/notification/service/notification.service.js +127 -0
- package/dist/module/notification/service/notification.service.js.map +1 -0
- package/dist/module/notification/service/otp.service.d.ts +31 -0
- package/dist/module/notification/service/otp.service.js +111 -0
- package/dist/module/notification/service/otp.service.js.map +1 -0
- package/dist/module/preference_master/entity/preference.entity.d.ts +9 -0
- package/dist/module/preference_master/entity/preference.entity.js +48 -0
- package/dist/module/preference_master/entity/preference.entity.js.map +1 -0
- package/dist/module/preference_master/preference.service.d.ts +8 -0
- package/dist/module/preference_master/preference.service.js +31 -0
- package/dist/module/preference_master/preference.service.js.map +1 -0
- package/dist/module/preference_master/repo/preference.repository.d.ts +8 -0
- package/dist/module/preference_master/repo/preference.repository.js +48 -0
- package/dist/module/preference_master/repo/preference.repository.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 +24 -0
- package/dist/module/user/controller/login.controller.js +173 -0
- package/dist/module/user/controller/login.controller.js.map +1 -0
- package/dist/module/user/controller/user.controller.d.ts +7 -0
- package/dist/module/user/controller/user.controller.js +46 -0
- package/dist/module/user/controller/user.controller.js.map +1 -0
- package/dist/module/user/dto/create-user.dto.d.ts +20 -0
- package/dist/module/user/dto/create-user.dto.js +70 -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 +23 -0
- package/dist/module/user/entity/role.entity.js +101 -0
- package/dist/module/user/entity/role.entity.js.map +1 -0
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +22 -0
- package/dist/module/user/entity/user-role-mapping.entity.js +95 -0
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -0
- package/dist/module/user/entity/user-session.entity.d.ts +13 -0
- package/dist/module/user/entity/user-session.entity.js +84 -0
- package/dist/module/user/entity/user-session.entity.js.map +1 -0
- package/dist/module/user/entity/user.entity.d.ts +33 -0
- package/dist/module/user/entity/user.entity.js +141 -0
- package/dist/module/user/entity/user.entity.js.map +1 -0
- package/dist/module/user/repository/role.repository.d.ts +23 -0
- package/dist/module/user/repository/role.repository.js +102 -0
- package/dist/module/user/repository/role.repository.js.map +1 -0
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +20 -0
- package/dist/module/user/repository/user-role-mapping.repository.js +113 -0
- package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -0
- package/dist/module/user/repository/user.repository.d.ts +13 -0
- package/dist/module/user/repository/user.repository.js +77 -0
- package/dist/module/user/repository/user.repository.js.map +1 -0
- package/dist/module/user/repository/userSession.repository.d.ts +11 -0
- package/dist/module/user/repository/userSession.repository.js +48 -0
- package/dist/module/user/repository/userSession.repository.js.map +1 -0
- package/dist/module/user/service/login.service.d.ts +39 -0
- package/dist/module/user/service/login.service.js +243 -0
- package/dist/module/user/service/login.service.js.map +1 -0
- package/dist/module/user/service/role.service.d.ts +38 -0
- package/dist/module/user/service/role.service.js +168 -0
- package/dist/module/user/service/role.service.js.map +1 -0
- package/dist/module/user/service/user-role-mapping.service.d.ts +14 -0
- package/dist/module/user/service/user-role-mapping.service.js +66 -0
- package/dist/module/user/service/user-role-mapping.service.js.map +1 -0
- package/dist/module/user/service/user-session.service.d.ts +30 -0
- package/dist/module/user/service/user-session.service.js +159 -0
- package/dist/module/user/service/user-session.service.js.map +1 -0
- package/dist/module/user/service/user.service.d.ts +49 -0
- package/dist/module/user/service/user.service.js +251 -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 +73 -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 +54 -0
- package/dist/module/workflow/controller/action.controller.js +122 -0
- package/dist/module/workflow/controller/action.controller.js.map +1 -0
- package/dist/module/workflow/controller/activity-log.controller.d.ts +42 -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 +19 -0
- package/dist/module/workflow/controller/comm-template.controller.js +58 -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 +14 -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 +57 -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 +58 -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 +18 -0
- package/dist/module/workflow/entity/action.entity.js +83 -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 +22 -0
- package/dist/module/workflow/repository/action-data.repository.js +252 -0
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -0
- package/dist/module/workflow/repository/action.repository.d.ts +31 -0
- package/dist/module/workflow/repository/action.repository.js +258 -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 +129 -0
- package/dist/module/workflow/repository/activity-log.repository.js.map +1 -0
- package/dist/module/workflow/repository/comm-template.repository.d.ts +17 -0
- package/dist/module/workflow/repository/comm-template.repository.js +126 -0
- package/dist/module/workflow/repository/comm-template.repository.js.map +1 -0
- package/dist/module/workflow/repository/form-master.repository.d.ts +11 -0
- package/dist/module/workflow/repository/form-master.repository.js +41 -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 +37 -0
- package/dist/module/workflow/repository/stage-group.repository.js +145 -0
- package/dist/module/workflow/repository/stage-group.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage-movement.repository.d.ts +28 -0
- package/dist/module/workflow/repository/stage-movement.repository.js +180 -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 +18 -0
- package/dist/module/workflow/repository/task.repository.js +134 -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 +39 -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 +10 -0
- package/dist/module/workflow/service/action-template-mapping.service.js +133 -0
- package/dist/module/workflow/service/action-template-mapping.service.js.map +1 -0
- package/dist/module/workflow/service/action.service.d.ts +44 -0
- package/dist/module/workflow/service/action.service.js +211 -0
- package/dist/module/workflow/service/action.service.js.map +1 -0
- package/dist/module/workflow/service/activity-log.service.d.ts +42 -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 +24 -0
- package/dist/module/workflow/service/comm-template.service.js +132 -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 +47 -0
- package/dist/module/workflow/service/entity-modification.service.js.map +1 -0
- package/dist/module/workflow/service/form-master.service.d.ts +17 -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 +245 -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 +30 -0
- package/dist/module/workflow/service/stage-group.service.js +238 -0
- package/dist/module/workflow/service/stage-group.service.js.map +1 -0
- package/dist/module/workflow/service/stage.service.d.ts +21 -0
- package/dist/module/workflow/service/stage.service.js +136 -0
- package/dist/module/workflow/service/stage.service.js.map +1 -0
- package/dist/module/workflow/service/task.service.d.ts +46 -0
- package/dist/module/workflow/service/task.service.js +368 -0
- package/dist/module/workflow/service/task.service.js.map +1 -0
- package/dist/module/workflow/service/workflow-list-master.service.d.ts +7 -0
- package/dist/module/workflow/service/workflow-list-master.service.js +73 -0
- package/dist/module/workflow/service/workflow-list-master.service.js.map +1 -0
- package/dist/module/workflow/service/workflow-meta.service.d.ts +37 -0
- package/dist/module/workflow/service/workflow-meta.service.js +424 -0
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -0
- package/dist/module/workflow/service/workflow.service.d.ts +31 -0
- package/dist/module/workflow/service/workflow.service.js +153 -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 +194 -0
- package/dist/module/workflow/workflow.module.js.map +1 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +11 -0
- package/dist/module/workflow-automation/controller/workflow-automation.controller.js +47 -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 +14 -0
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +67 -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/schedule-handler.service.d.ts +22 -0
- package/dist/module/workflow-automation/service/schedule-handler.service.js +141 -0
- package/dist/module/workflow-automation/service/schedule-handler.service.js.map +1 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.d.ts +15 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +124 -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 +68 -0
- package/dist/module/workflow-automation/service/workflow-automation.service.js +339 -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 +68 -0
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -0
- package/dist/module/workflow-schedule/constants/schedule.constants.d.ts +27 -0
- package/dist/module/workflow-schedule/constants/schedule.constants.js +31 -0
- package/dist/module/workflow-schedule/constants/schedule.constants.js.map +1 -0
- package/dist/module/workflow-schedule/controller/workflow-schedule.controller.d.ts +81 -0
- package/dist/module/workflow-schedule/controller/workflow-schedule.controller.js +218 -0
- package/dist/module/workflow-schedule/controller/workflow-schedule.controller.js.map +1 -0
- package/dist/module/workflow-schedule/dto/create-schedule.dto.d.ts +32 -0
- package/dist/module/workflow-schedule/dto/create-schedule.dto.js +163 -0
- package/dist/module/workflow-schedule/dto/create-schedule.dto.js.map +1 -0
- package/dist/module/workflow-schedule/dto/get-execution-logs.dto.d.ts +35 -0
- package/dist/module/workflow-schedule/dto/get-execution-logs.dto.js +124 -0
- package/dist/module/workflow-schedule/dto/get-execution-logs.dto.js.map +1 -0
- package/dist/module/workflow-schedule/dto/update-schedule.dto.d.ts +19 -0
- package/dist/module/workflow-schedule/dto/update-schedule.dto.js +106 -0
- package/dist/module/workflow-schedule/dto/update-schedule.dto.js.map +1 -0
- package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.d.ts +30 -0
- package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.js +113 -0
- package/dist/module/workflow-schedule/entities/scheduled-workflow.entity.js.map +1 -0
- package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.d.ts +34 -0
- package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.js +118 -0
- package/dist/module/workflow-schedule/entities/workflow-execution-log.entity.js.map +1 -0
- package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.d.ts +44 -0
- package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.js +3 -0
- package/dist/module/workflow-schedule/interfaces/schedule-job-data.interface.js.map +1 -0
- package/dist/module/workflow-schedule/interfaces/workflow-schedule-options.interface.d.ts +3 -0
- package/dist/module/workflow-schedule/interfaces/workflow-schedule-options.interface.js +3 -0
- package/dist/module/workflow-schedule/interfaces/workflow-schedule-options.interface.js.map +1 -0
- package/dist/module/workflow-schedule/processors/schedule.processor.d.ts +33 -0
- package/dist/module/workflow-schedule/processors/schedule.processor.js +422 -0
- package/dist/module/workflow-schedule/processors/schedule.processor.js.map +1 -0
- package/dist/module/workflow-schedule/service/workflow-schedule.service.d.ts +43 -0
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js +432 -0
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -0
- package/dist/module/workflow-schedule/workflow-schedule.module.d.ts +5 -0
- package/dist/module/workflow-schedule/workflow-schedule.module.js +52 -0
- package/dist/module/workflow-schedule/workflow-schedule.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/table.config.d.ts +39 -0
- package/dist/table.config.js +136 -0
- package/dist/table.config.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 +11 -0
- package/dist/utils/service/loggingUtil.service.js +87 -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 +40 -0
- package/dist/utils/utils.module.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,372 @@
|
|
|
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.MediaDataService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const config_1 = require("@nestjs/config");
|
|
15
|
+
const aws_sdk_1 = require("aws-sdk");
|
|
16
|
+
const axios_1 = require("axios");
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
const uuid_1 = require("uuid");
|
|
19
|
+
const global_constant_1 = require("../../../constant/global.constant");
|
|
20
|
+
const media_data_entity_1 = require("../entity/media-data.entity");
|
|
21
|
+
const media_data_repository_1 = require("../repository/media-data.repository");
|
|
22
|
+
const entity_service_impl_service_1 = require("./entity-service-impl.service");
|
|
23
|
+
let MediaDataService = class MediaDataService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
24
|
+
constructor(configService, mediaRepository, entityManager) {
|
|
25
|
+
super();
|
|
26
|
+
this.configService = configService;
|
|
27
|
+
this.mediaRepository = mediaRepository;
|
|
28
|
+
this.entityManager = entityManager;
|
|
29
|
+
this.s3AccessKeyID = this.configService.get('AWS.S3.AWS_ACCESS_KEY_ID');
|
|
30
|
+
this.s3AccessKeySecret = this.configService.get('AWS.S3.AWS_SECRET_KEY');
|
|
31
|
+
this.s3Region = this.configService.get('AWS.S3.AWS_REGION');
|
|
32
|
+
this.bucketName = this.configService.get('AWS.S3.BUCKET_NAME');
|
|
33
|
+
this.s3 = new aws_sdk_1.S3({
|
|
34
|
+
accessKeyId: this.s3AccessKeyID,
|
|
35
|
+
secretAccessKey: this.s3AccessKeySecret,
|
|
36
|
+
region: this.s3Region,
|
|
37
|
+
signatureVersion: 'v4',
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
async generateMediaUploadDetails(fileName, mappedAttributeKey, loggedInUser, mappedEntityType, mappedEntityId, parentId, parentType) {
|
|
41
|
+
if (!fileName || !mappedAttributeKey) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
const ext = fileName.split('.').pop()?.toLowerCase() ?? '';
|
|
45
|
+
const id = (0, uuid_1.v4)();
|
|
46
|
+
const s3Path = (await this.buildUploadPathGeneric(mappedEntityType || '', loggedInUser, mappedEntityId, parentId, parentType)) || `uploads`;
|
|
47
|
+
const s3Key = `${s3Path}/${id}.${ext}`;
|
|
48
|
+
const uploadUrl = await this.s3.getSignedUrlPromise('putObject', {
|
|
49
|
+
Bucket: this.bucketName,
|
|
50
|
+
Key: s3Key,
|
|
51
|
+
Expires: 60 * 5,
|
|
52
|
+
ContentType: this.getContentType(ext),
|
|
53
|
+
});
|
|
54
|
+
const mediaData = new media_data_entity_1.MediaData();
|
|
55
|
+
mediaData.file_name = fileName;
|
|
56
|
+
mediaData.mapped_attribute_key = mappedAttributeKey;
|
|
57
|
+
mediaData.status = global_constant_1.STATUS_PENDING;
|
|
58
|
+
if (mappedEntityType) {
|
|
59
|
+
mediaData.mapped_entity_type = mappedEntityType;
|
|
60
|
+
}
|
|
61
|
+
if (mappedEntityId) {
|
|
62
|
+
mediaData.mapped_entity_id = mappedEntityId;
|
|
63
|
+
}
|
|
64
|
+
mediaData.media_url = s3Key;
|
|
65
|
+
const savedEntity = await super.createEntity(mediaData, loggedInUser);
|
|
66
|
+
if (savedEntity) {
|
|
67
|
+
return { id: savedEntity.id, path: s3Key, uploadUrl };
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
async findByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType) {
|
|
72
|
+
return await this.mediaRepository.findByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType);
|
|
73
|
+
}
|
|
74
|
+
async findByMappedEntityIdAndMappedEntityType(mappedEntityId, mappedEntityType) {
|
|
75
|
+
return await this.mediaRepository.findByMappedEntityIdAndMappedEntityType(mappedEntityId, mappedEntityType);
|
|
76
|
+
}
|
|
77
|
+
async deleteByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType) {
|
|
78
|
+
return await this.mediaRepository.deleteByAttributeKeyAndMappedEntityIdAndMappedEntityType(attributeKey, mappedEntityId, mappedEntityType);
|
|
79
|
+
}
|
|
80
|
+
getContentType(ext) {
|
|
81
|
+
const map = {
|
|
82
|
+
pdf: 'application/pdf',
|
|
83
|
+
jpg: 'image/jpeg',
|
|
84
|
+
jpeg: 'image/jpeg',
|
|
85
|
+
png: 'image/png',
|
|
86
|
+
gif: 'image/gif',
|
|
87
|
+
webp: 'image/webp',
|
|
88
|
+
txt: 'text/plain',
|
|
89
|
+
html: 'text/html',
|
|
90
|
+
htm: 'text/html',
|
|
91
|
+
doc: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
92
|
+
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
93
|
+
xls: 'application/vnd.ms-excel',
|
|
94
|
+
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
95
|
+
ppt: 'application/vnd.ms-powerpoint',
|
|
96
|
+
pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
97
|
+
};
|
|
98
|
+
return map[ext] || 'application/octet-stream';
|
|
99
|
+
}
|
|
100
|
+
async getMediaDownloadUrl(id, loggedInUser, expiresIn) {
|
|
101
|
+
try {
|
|
102
|
+
const entityData = await this.getEntityData(global_constant_1.ENTITYTYPE_MEDIA, id, loggedInUser);
|
|
103
|
+
const mediaData = entityData;
|
|
104
|
+
let fileSize;
|
|
105
|
+
if (this.bucketName) {
|
|
106
|
+
const head = await this.s3
|
|
107
|
+
.headObject({
|
|
108
|
+
Bucket: this.bucketName,
|
|
109
|
+
Key: mediaData.media_url,
|
|
110
|
+
})
|
|
111
|
+
.promise();
|
|
112
|
+
fileSize = head.ContentLength;
|
|
113
|
+
}
|
|
114
|
+
const signedUrl = await this.s3.getSignedUrlPromise('getObject', {
|
|
115
|
+
Bucket: this.bucketName,
|
|
116
|
+
Key: mediaData.media_url,
|
|
117
|
+
Expires: Number(expiresIn) || 60 * 5,
|
|
118
|
+
ResponseContentDisposition: 'inline',
|
|
119
|
+
});
|
|
120
|
+
return {
|
|
121
|
+
signedUrl,
|
|
122
|
+
fileName: mediaData.file_name,
|
|
123
|
+
id: mediaData.id,
|
|
124
|
+
size: fileSize,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
console.error('Error generating signed URL for media:', error);
|
|
129
|
+
throw new Error('Failed to generate signed URL');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
async getMediaInlineUrl(id, loggedInUser, expiresIn) {
|
|
133
|
+
try {
|
|
134
|
+
const entityData = await this.getEntityData(global_constant_1.ENTITYTYPE_MEDIA, id, loggedInUser);
|
|
135
|
+
const mediaData = entityData;
|
|
136
|
+
let fileSize;
|
|
137
|
+
if (!mediaData) {
|
|
138
|
+
throw new Error('Media not found');
|
|
139
|
+
}
|
|
140
|
+
const ext = mediaData.file_name.split('.').pop()?.toLowerCase() || '';
|
|
141
|
+
if (this.bucketName) {
|
|
142
|
+
const head = await this.s3
|
|
143
|
+
.headObject({
|
|
144
|
+
Bucket: this.bucketName,
|
|
145
|
+
Key: mediaData.media_url,
|
|
146
|
+
})
|
|
147
|
+
.promise();
|
|
148
|
+
fileSize = head.ContentLength;
|
|
149
|
+
}
|
|
150
|
+
const signedUrl = await this.s3.getSignedUrlPromise('getObject', {
|
|
151
|
+
Bucket: this.bucketName,
|
|
152
|
+
Key: mediaData.media_url,
|
|
153
|
+
Expires: Number(expiresIn) || 60 * 5,
|
|
154
|
+
ResponseContentDisposition: 'inline',
|
|
155
|
+
ResponseContentType: this.getContentType(ext),
|
|
156
|
+
});
|
|
157
|
+
let previewUrl = signedUrl;
|
|
158
|
+
return {
|
|
159
|
+
signedUrl: previewUrl,
|
|
160
|
+
fileName: mediaData.file_name,
|
|
161
|
+
id: mediaData.id,
|
|
162
|
+
size: fileSize,
|
|
163
|
+
uploadedDate: mediaData.created_date,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
console.error('Error generating inline URL:', error);
|
|
168
|
+
throw new Error('Failed to generate inline URL');
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
async buildUploadPathGenericdd(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
|
|
172
|
+
const entityMaster = await this.entityMasterService.getEntityData(mappedEntityType, loggedInUser);
|
|
173
|
+
if (!entityMaster) {
|
|
174
|
+
throw new Error(`Entity master not found for ${mappedEntityType}`);
|
|
175
|
+
}
|
|
176
|
+
let pathTemplate = entityMaster.doc_upload_path ?? '';
|
|
177
|
+
const entityOverwrite = entityMaster.overwrite_path ?? 0;
|
|
178
|
+
if (!pathTemplate) {
|
|
179
|
+
throw new Error(`doc_upload_path not defined for ${mappedEntityType}`);
|
|
180
|
+
}
|
|
181
|
+
const replacements = {};
|
|
182
|
+
const organizationRepo = this.reflectionHelper.getRepoService('OrganizationData');
|
|
183
|
+
let organizationData = await organizationRepo.findOne({
|
|
184
|
+
where: {
|
|
185
|
+
id: loggedInUser.organization_id,
|
|
186
|
+
},
|
|
187
|
+
});
|
|
188
|
+
replacements['org_code'] = organizationData.code;
|
|
189
|
+
let levelEntityId;
|
|
190
|
+
let levelEntityType;
|
|
191
|
+
if (parentId && parentType) {
|
|
192
|
+
levelEntityId = parentId;
|
|
193
|
+
levelEntityType = parentType;
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
levelEntityId = entityOverwrite ? mappedEntityId : loggedInUser.level_id;
|
|
197
|
+
levelEntityType = entityOverwrite
|
|
198
|
+
? mappedEntityType
|
|
199
|
+
: loggedInUser.level_type;
|
|
200
|
+
}
|
|
201
|
+
const getEntityData = await this.entityMasterService.getEntityData(levelEntityType, loggedInUser);
|
|
202
|
+
if (!getEntityData)
|
|
203
|
+
return null;
|
|
204
|
+
const levelEntityDataResult = await this.entityManager.query(`SELECT *
|
|
205
|
+
FROM ${getEntityData?.db_table_name}
|
|
206
|
+
WHERE id = $1`, [levelEntityId]);
|
|
207
|
+
const levelEntityData = levelEntityDataResult[0] || null;
|
|
208
|
+
if (levelEntityData?.code) {
|
|
209
|
+
replacements['level_code'] = levelEntityData.code;
|
|
210
|
+
}
|
|
211
|
+
if (parentId && parentType && mappedEntityId && mappedEntityType) {
|
|
212
|
+
const mappedEntityKey = `${mappedEntityType.toLowerCase()}_code`;
|
|
213
|
+
const mappedEntityData = await super.getEntityData(mappedEntityType, mappedEntityId, loggedInUser);
|
|
214
|
+
if (mappedEntityData?.code) {
|
|
215
|
+
replacements[mappedEntityKey] = mappedEntityData.code;
|
|
216
|
+
const mappedVariable = `\${${mappedEntityKey}}`;
|
|
217
|
+
if (!pathTemplate.includes(mappedVariable)) {
|
|
218
|
+
pathTemplate = pathTemplate + `/${mappedVariable}`;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if (parentId && parentType) {
|
|
223
|
+
const getEntityData = await this.entityMasterService.getEntityData(mappedEntityType, loggedInUser);
|
|
224
|
+
if (!getEntityData)
|
|
225
|
+
return null;
|
|
226
|
+
const levelEntityDataResult = await this.entityManager.query(`SELECT *
|
|
227
|
+
FROM ${getEntityData?.db_table_name}
|
|
228
|
+
WHERE id = $1`, [mappedEntityId]);
|
|
229
|
+
if (levelEntityDataResult?.[0].code &&
|
|
230
|
+
parentType != 'SCH' &&
|
|
231
|
+
loggedInUser.level_type != 'SCH') {
|
|
232
|
+
replacements['template_code'] = levelEntityDataResult[0].code;
|
|
233
|
+
pathTemplate = '${org_code}/template/${template_code}';
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
const getEntityData = await this.entityMasterService.getEntityData(mappedEntityType, loggedInUser);
|
|
237
|
+
if (!getEntityData)
|
|
238
|
+
return null;
|
|
239
|
+
const levelEntityDataResult = await this.entityManager.query(`SELECT *
|
|
240
|
+
FROM ${getEntityData?.db_table_name}
|
|
241
|
+
WHERE id = $1`, [mappedEntityId]);
|
|
242
|
+
replacements['template_code'] = levelEntityDataResult?.[0].code;
|
|
243
|
+
pathTemplate = '${org_code}/${level_code}/template/${template_code}';
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
const matches = pathTemplate.match(/\$\{(\w+)\}/g) || [];
|
|
247
|
+
for (const variable of matches) {
|
|
248
|
+
const key = variable.replace(/\$\{|\}/g, '');
|
|
249
|
+
if (replacements[key])
|
|
250
|
+
continue;
|
|
251
|
+
if (key === 'org_code')
|
|
252
|
+
continue;
|
|
253
|
+
if (key === 'level_code')
|
|
254
|
+
continue;
|
|
255
|
+
if (key === 'template_code')
|
|
256
|
+
continue;
|
|
257
|
+
if (key.endsWith('_code')) {
|
|
258
|
+
const entityType = key.replace('_code', '').toUpperCase();
|
|
259
|
+
let entityId;
|
|
260
|
+
if (key === 'template_code') {
|
|
261
|
+
if (parentType?.toUpperCase() === 'TEMPLATE' && parentId) {
|
|
262
|
+
entityId = parentId;
|
|
263
|
+
}
|
|
264
|
+
else if (mappedEntityType === 'TEMPLATE') {
|
|
265
|
+
entityId = mappedEntityId;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
if (parentType?.toUpperCase() === entityType && parentId) {
|
|
270
|
+
entityId = parentId;
|
|
271
|
+
}
|
|
272
|
+
else if (mappedEntityType === entityType) {
|
|
273
|
+
entityId = mappedEntityId;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
if (entityId) {
|
|
277
|
+
const entityData = await super.getEntityData(entityType, entityId, loggedInUser);
|
|
278
|
+
replacements[key] = entityData?.code ?? null;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
if (loggedInUser.level_type === 'ORG' && entityOverwrite === 0) {
|
|
283
|
+
}
|
|
284
|
+
if (pathTemplate) {
|
|
285
|
+
const finalPath = this.resolveUploadPath(pathTemplate, replacements);
|
|
286
|
+
return finalPath;
|
|
287
|
+
}
|
|
288
|
+
return null;
|
|
289
|
+
}
|
|
290
|
+
async buildUploadPathGeneric(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
|
|
291
|
+
let appCode = '';
|
|
292
|
+
let org_id = loggedInUser.organization_id;
|
|
293
|
+
let level_type = loggedInUser.level_type;
|
|
294
|
+
let level_id = loggedInUser.level_type == 'ORG' && mappedEntityType == 'SCH'
|
|
295
|
+
? mappedEntityId
|
|
296
|
+
: loggedInUser.level_id;
|
|
297
|
+
let organizationData = {};
|
|
298
|
+
let levelData = {};
|
|
299
|
+
let mappedEntityData = {};
|
|
300
|
+
if (loggedInUser && loggedInUser.appcode) {
|
|
301
|
+
appCode = loggedInUser.appcode;
|
|
302
|
+
}
|
|
303
|
+
if (appCode && appCode != 'ADM') {
|
|
304
|
+
const baseUrl = this.configService.get('REDIRECT_BE_URL');
|
|
305
|
+
const queryParams = new URLSearchParams({
|
|
306
|
+
loggedInUser: JSON.stringify(loggedInUser),
|
|
307
|
+
}).toString();
|
|
308
|
+
organizationData = await axios_1.default
|
|
309
|
+
.get(`${baseUrl}/organization/public/${loggedInUser.organization_id}?${queryParams}`)
|
|
310
|
+
.then((res) => res.data)
|
|
311
|
+
.catch((err) => {
|
|
312
|
+
console.error('Error fetching organization data:', err.message);
|
|
313
|
+
return null;
|
|
314
|
+
});
|
|
315
|
+
levelData = await axios_1.default
|
|
316
|
+
.get(`${baseUrl}/school/public/?${queryParams}`)
|
|
317
|
+
.then((res) => res.data)
|
|
318
|
+
.catch((err) => {
|
|
319
|
+
console.error('Error fetching school data:', err.message);
|
|
320
|
+
return null;
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
const organizationProfileRepo = this.reflectionHelper.getRepoService('OrganizationProfile');
|
|
325
|
+
organizationData = await organizationProfileRepo.find({
|
|
326
|
+
where: {
|
|
327
|
+
id: loggedInUser.organization_id,
|
|
328
|
+
},
|
|
329
|
+
});
|
|
330
|
+
const schoolProfileRepo = this.reflectionHelper.getRepoService('School');
|
|
331
|
+
levelData = await schoolProfileRepo.find({
|
|
332
|
+
where: {
|
|
333
|
+
id: loggedInUser.level_id,
|
|
334
|
+
},
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
console.log(levelData);
|
|
338
|
+
let subfolder = mappedEntityType == level_type
|
|
339
|
+
? 'data'
|
|
340
|
+
: parentType
|
|
341
|
+
? `${parentType}/${parentId}/${mappedEntityType}`
|
|
342
|
+
: mappedEntityType;
|
|
343
|
+
let path = '${org_code}/${level_code}/' +
|
|
344
|
+
(subfolder !== 'data'
|
|
345
|
+
? `${subfolder}/${mappedEntityId}`
|
|
346
|
+
: `${subfolder}`);
|
|
347
|
+
const replacements = {};
|
|
348
|
+
replacements['org_code'] = organizationData[0]?.code;
|
|
349
|
+
replacements['level_code'] = levelData[0]?.code;
|
|
350
|
+
if (path) {
|
|
351
|
+
const finalPath = this.resolveUploadPath(path, replacements);
|
|
352
|
+
return finalPath;
|
|
353
|
+
}
|
|
354
|
+
return null;
|
|
355
|
+
}
|
|
356
|
+
resolveUploadPath(template, replacements) {
|
|
357
|
+
let path = template;
|
|
358
|
+
path = path.replace(/\$\{(\w+)\}/g, (_, key) => replacements[key] || '');
|
|
359
|
+
return path.replace(/\/+/g, '/').replace(/\/$/, '');
|
|
360
|
+
}
|
|
361
|
+
async buildUploadPath(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType) {
|
|
362
|
+
return this.buildUploadPathGeneric(mappedEntityType, loggedInUser, mappedEntityId, parentId, parentType);
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
exports.MediaDataService = MediaDataService;
|
|
366
|
+
exports.MediaDataService = MediaDataService = __decorate([
|
|
367
|
+
(0, common_1.Injectable)(),
|
|
368
|
+
__metadata("design:paramtypes", [config_1.ConfigService,
|
|
369
|
+
media_data_repository_1.MediaDataRepository,
|
|
370
|
+
typeorm_1.EntityManager])
|
|
371
|
+
], MediaDataService);
|
|
372
|
+
//# sourceMappingURL=media-data.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-data.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/media-data.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,qCAA6B;AAC7B,iCAA0B;AAC1B,qCAAwC;AACxC,+BAAoC;AACpC,uEAG2C;AAC3C,mEAAwD;AACxD,+EAA0E;AAC1E,+EAAkE;AAG3D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+CAAiB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I,IAAI,GAAG,QAAQ,CAAC;QACpB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAgBD,KAAK,CAAC,eAAe,CACnB,gBAAwB,EACxB,YAAiB,EACjB,cAAuB,EACvB,QAAiB,EACjB,UAAmB;QAEnB,OAAO,IAAI,CAAC,sBAAsB,CAChC,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;CACF,CAAA;AA/jBY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAGuB,sBAAa;QACX,2CAAmB;QAC9B,uBAAa;GAJ3B,gBAAgB,CA+jB5B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EntityServiceImpl } from './entity-service-impl.service';
|
|
2
|
+
import { PreferenceRepository } from '../repository/preference.repository';
|
|
3
|
+
export declare class PreferenceService extends EntityServiceImpl {
|
|
4
|
+
private readonly preferenceRepository;
|
|
5
|
+
constructor(preferenceRepository: PreferenceRepository);
|
|
6
|
+
getPreferenceValue(preferenceKey: string): Promise<string | undefined>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.PreferenceService = void 0;
|
|
13
|
+
const entity_service_impl_service_1 = require("./entity-service-impl.service");
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const preference_repository_1 = require("../repository/preference.repository");
|
|
16
|
+
let PreferenceService = class PreferenceService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
17
|
+
constructor(preferenceRepository) {
|
|
18
|
+
super();
|
|
19
|
+
this.preferenceRepository = preferenceRepository;
|
|
20
|
+
}
|
|
21
|
+
async getPreferenceValue(preferenceKey) {
|
|
22
|
+
const preferenceMaster = await this.preferenceRepository.findByPreferenceKey(preferenceKey);
|
|
23
|
+
return preferenceMaster?.preference_value;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.PreferenceService = PreferenceService;
|
|
27
|
+
exports.PreferenceService = PreferenceService = __decorate([
|
|
28
|
+
(0, common_1.Injectable)(),
|
|
29
|
+
__metadata("design:paramtypes", [preference_repository_1.PreferenceRepository])
|
|
30
|
+
], PreferenceService);
|
|
31
|
+
//# sourceMappingURL=preference.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/preference.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+EAAkE;AAClE,2CAA4C;AAC5C,+EAA2E;AAGpE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YAA6B,oBAA0C;QACrE,KAAK,EAAE,CAAC;QADmB,yBAAoB,GAApB,oBAAoB,CAAsB;IAEvE,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,aAAqB;QAC5C,MAAM,gBAAgB,GACpB,MAAM,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;QACrE,OAAO,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,CAAC;CACF,CAAA;AAVY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEwC,4CAAoB;GAD5D,iBAAiB,CAU7B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UserData } from '../../user/entity/user.entity';
|
|
2
|
+
import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
|
|
3
|
+
import { ModuleRef } from '@nestjs/core';
|
|
4
|
+
import { AttributeMasterRepository } from '../repository/attribute-master.repository';
|
|
5
|
+
import { ReflectionHelper } from 'src/utils/service/reflection-helper.service';
|
|
6
|
+
import { EntityMasterRepository } from '../repository/entity-master.repository';
|
|
7
|
+
import { EntityManager } from 'typeorm';
|
|
8
|
+
export declare class ResolverService {
|
|
9
|
+
private readonly listMasterService;
|
|
10
|
+
private readonly moduleRef;
|
|
11
|
+
private readonly attributeMasterRepo;
|
|
12
|
+
private readonly reflectionHelper;
|
|
13
|
+
private readonly entityMasterRepo;
|
|
14
|
+
private readonly entityManger;
|
|
15
|
+
private mediaDataService;
|
|
16
|
+
constructor(listMasterService: ListMasterService, moduleRef: ModuleRef, attributeMasterRepo: AttributeMasterRepository, reflectionHelper: ReflectionHelper, entityMasterRepo: EntityMasterRepository, entityManger: EntityManager);
|
|
17
|
+
private getMediaDataService;
|
|
18
|
+
getResolvedData(loggedInUser: any, entityData: any, entityType: string): Promise<any>;
|
|
19
|
+
getResolvedValue(loggedInUser: UserData, attrKey: string, rawValue: any, entityType: string): Promise<any>;
|
|
20
|
+
getResolvedId(loggedInUser: UserData, attrKey: string, displayValue: any, entityType: string): Promise<any>;
|
|
21
|
+
}
|