rez_core 6.5.31 → 6.5.33
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/.claude/settings.local.json +26 -0
- package/.idea/250218_nodejs_core.iml +9 -0
- package/.idea/codeStyles/Project.xml +59 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/dist/app.module.js +3 -3
- package/dist/app.module.js.map +1 -1
- 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.js +60 -38
- package/dist/core.module.js.map +1 -1
- package/dist/module/auth/strategies/jwt.strategy.d.ts +2 -1
- package/dist/module/auth/strategies/jwt.strategy.js +3 -2
- package/dist/module/auth/strategies/jwt.strategy.js.map +1 -1
- package/dist/module/dashboard/dashboard.module.js +1 -1
- package/dist/module/dashboard/dashboard.module.js.map +1 -1
- package/dist/module/dashboard/service/dashboard.service.js +2 -3
- package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
- 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 +12 -4
- package/dist/module/enterprise/controller/organization.controller.js +64 -8
- package/dist/module/enterprise/controller/organization.controller.js.map +1 -1
- package/dist/module/enterprise/enterprise.module.js +10 -15
- package/dist/module/enterprise/enterprise.module.js.map +1 -1
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +1 -3
- package/dist/module/enterprise/entity/enterprise.entity.js +4 -12
- package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +6 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +21 -4
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -1
- package/dist/module/enterprise/entity/organization.entity.d.ts +3 -18
- package/dist/module/enterprise/entity/organization.entity.js +8 -74
- package/dist/module/enterprise/entity/organization.entity.js.map +1 -1
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +4 -2
- package/dist/module/enterprise/repository/enterprise.repository.js +19 -4
- package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -1
- 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 -3
- package/dist/module/enterprise/service/brand.service.js +0 -17
- package/dist/module/enterprise/service/brand.service.js.map +1 -1
- package/dist/module/enterprise/service/enterprise.service.d.ts +2 -2
- package/dist/module/enterprise/service/enterprise.service.js +4 -4
- package/dist/module/enterprise/service/enterprise.service.js.map +1 -1
- package/dist/module/enterprise/service/organization.service.d.ts +4 -4
- package/dist/module/enterprise/service/organization.service.js +101 -24
- package/dist/module/enterprise/service/organization.service.js.map +1 -1
- package/dist/module/enterprise/service/populate-meta.service.d.ts +9 -0
- package/dist/module/{meta → enterprise}/service/populate-meta.service.js +2 -8
- 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 +9 -2
- package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
- package/dist/module/entity_json/entity/entityJson.entity.d.ts +1 -2
- package/dist/module/entity_json/entity/entityJson.entity.js +1 -5
- package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -1
- package/dist/module/entity_json/entity_json.module.js +2 -7
- package/dist/module/entity_json/entity_json.module.js.map +1 -1
- package/dist/module/entity_json/service/entity_json.service.d.ts +10 -2
- package/dist/module/entity_json/service/entity_json.service.js +23 -98
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
- package/dist/module/filter/controller/filter.controller.d.ts +0 -12
- package/dist/module/filter/controller/filter.controller.js +1 -1
- package/dist/module/filter/controller/filter.controller.js.map +1 -1
- package/dist/module/filter/filter.module.js +2 -11
- package/dist/module/filter/filter.module.js.map +1 -1
- package/dist/module/filter/service/filter.service.d.ts +2 -38
- package/dist/module/filter/service/filter.service.js +50 -43
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/filter/service/saved-filter.service.d.ts +2 -3
- package/dist/module/filter/service/saved-filter.service.js +18 -14
- package/dist/module/filter/service/saved-filter.service.js.map +1 -1
- package/dist/module/integration/service/integration.service.d.ts +0 -1
- package/dist/module/integration/service/integration.service.js +1 -2
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/module/integration/service/wrapper.service.js +0 -1
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/layout/controller/layout.controller.d.ts +1 -3
- package/dist/module/layout/controller/layout.controller.js +3 -7
- package/dist/module/layout/controller/layout.controller.js.map +1 -1
- package/dist/module/layout/entity/header-section.entity.d.ts +0 -2
- package/dist/module/layout/entity/header-section.entity.js +0 -8
- package/dist/module/layout/entity/header-section.entity.js.map +1 -1
- package/dist/module/layout/layout.module.js +1 -2
- package/dist/module/layout/layout.module.js.map +1 -1
- package/dist/module/layout/repository/header-section.repository.d.ts +0 -1
- package/dist/module/layout/repository/header-section.repository.js +0 -5
- package/dist/module/layout/repository/header-section.repository.js.map +1 -1
- package/dist/module/layout/service/header-section.service.d.ts +1 -1
- package/dist/module/layout/service/header-section.service.js +1 -1
- package/dist/module/layout/service/header-section.service.js.map +1 -1
- package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +0 -41
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js +0 -90
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -1
- package/dist/module/linked_attributes/linked_attributes.module.js +1 -8
- package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +1 -65
- package/dist/module/linked_attributes/service/linked_attributes.service.js +2 -287
- package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
- package/dist/module/listmaster/service/list-master.service.js +1 -8
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/meta/controller/meta.controller.d.ts +1 -6
- package/dist/module/meta/controller/meta.controller.js +1 -19
- package/dist/module/meta/controller/meta.controller.js.map +1 -1
- package/dist/module/meta/entity/app-master.entity.d.ts +8 -4
- package/dist/module/meta/entity/app-master.entity.js +30 -12
- package/dist/module/meta/entity/app-master.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-master.entity.d.ts +0 -1
- package/dist/module/meta/entity/entity-master.entity.js +1 -8
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/entity.module.js +2 -5
- package/dist/module/meta/entity.module.js.map +1 -1
- package/dist/module/meta/repository/app-master.repository.js +1 -1
- package/dist/module/meta/repository/app-master.repository.js.map +1 -1
- package/dist/module/meta/service/attribute-master.service.d.ts +1 -6
- package/dist/module/meta/service/attribute-master.service.js +2 -22
- package/dist/module/meta/service/attribute-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-master.service.js +0 -1
- package/dist/module/meta/service/entity-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-relation.service.d.ts +3 -4
- package/dist/module/meta/service/entity-relation.service.js +4 -10
- package/dist/module/meta/service/entity-relation.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.d.ts +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +10 -14
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.d.ts +3 -2
- package/dist/module/meta/service/entity-table.service.js +23 -19
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/meta/service/resolver.service.d.ts +1 -1
- package/dist/module/meta/service/resolver.service.js +3 -6
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/module/controller/menu.controller.js +2 -2
- package/dist/module/module/controller/menu.controller.js.map +1 -1
- package/dist/module/module/controller/module-access.controller.d.ts +3 -4
- package/dist/module/module/controller/module-access.controller.js +15 -10
- package/dist/module/module/controller/module-access.controller.js.map +1 -1
- package/dist/module/module/entity/menu.entity.d.ts +6 -4
- package/dist/module/module/entity/menu.entity.js +16 -12
- package/dist/module/module/entity/menu.entity.js.map +1 -1
- package/dist/module/module/entity/module-access.entity.d.ts +15 -0
- package/dist/module/module/entity/module-access.entity.js +50 -0
- package/dist/module/module/entity/module-access.entity.js.map +1 -1
- package/dist/module/module/entity/module-action.entity.d.ts +4 -2
- package/dist/module/module/entity/module-action.entity.js +11 -6
- package/dist/module/module/entity/module-action.entity.js.map +1 -1
- package/dist/module/module/entity/module.entity.d.ts +3 -5
- package/dist/module/module/entity/module.entity.js +8 -18
- package/dist/module/module/entity/module.entity.js.map +1 -1
- package/dist/module/module/module.module.d.ts +1 -1
- package/dist/module/module/module.module.js +5 -7
- package/dist/module/module/module.module.js.map +1 -1
- package/dist/module/module/repository/menu.repository.d.ts +4 -4
- package/dist/module/module/repository/menu.repository.js +17 -27
- package/dist/module/module/repository/menu.repository.js.map +1 -1
- package/dist/module/module/repository/module-access.repository.d.ts +7 -7
- package/dist/module/module/repository/module-access.repository.js +86 -48
- package/dist/module/module/repository/module-access.repository.js.map +1 -1
- package/dist/module/module/service/menu.service.d.ts +3 -5
- package/dist/module/module/service/menu.service.js +9 -12
- package/dist/module/module/service/menu.service.js.map +1 -1
- package/dist/module/module/service/module-access.service.d.ts +8 -11
- package/dist/module/module/service/module-access.service.js +24 -26
- package/dist/module/module/service/module-access.service.js.map +1 -1
- package/dist/module/notification/entity/notification.entity.d.ts +17 -2
- package/dist/module/notification/entity/notification.entity.js +68 -2
- package/dist/module/notification/entity/notification.entity.js.map +1 -1
- package/dist/module/notification/notification.module.js +0 -2
- package/dist/module/notification/notification.module.js.map +1 -1
- package/dist/module/notification/service/notification.service.d.ts +1 -3
- package/dist/module/notification/service/notification.service.js +2 -5
- package/dist/module/notification/service/notification.service.js.map +1 -1
- package/dist/module/notification/service/otp.service.js +0 -1
- package/dist/module/notification/service/otp.service.js.map +1 -1
- package/dist/module/user/controller/login.controller.d.ts +1 -3
- package/dist/module/user/controller/login.controller.js +2 -6
- package/dist/module/user/controller/login.controller.js.map +1 -1
- package/dist/module/user/controller/user.controller.d.ts +0 -2
- package/dist/module/user/controller/user.controller.js +0 -13
- package/dist/module/user/controller/user.controller.js.map +1 -1
- package/dist/module/user/dto/create-user.dto.d.ts +6 -3
- package/dist/module/user/dto/create-user.dto.js +17 -11
- package/dist/module/user/dto/create-user.dto.js.map +1 -1
- package/dist/module/user/entity/role.entity.d.ts +18 -6
- package/dist/module/user/entity/role.entity.js +64 -19
- package/dist/module/user/entity/role.entity.js.map +1 -1
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +10 -0
- package/dist/module/user/entity/user-role-mapping.entity.js +33 -1
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
- package/dist/module/user/entity/user-session.entity.d.ts +0 -2
- package/dist/module/user/entity/user-session.entity.js +2 -20
- package/dist/module/user/entity/user-session.entity.js.map +1 -1
- package/dist/module/user/entity/user.entity.d.ts +17 -5
- package/dist/module/user/entity/user.entity.js +61 -15
- package/dist/module/user/entity/user.entity.js.map +1 -1
- package/dist/module/user/repository/role.repository.d.ts +6 -2
- package/dist/module/user/repository/role.repository.js +16 -8
- package/dist/module/user/repository/role.repository.js.map +1 -1
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +1 -0
- package/dist/module/user/repository/user-role-mapping.repository.js +3 -0
- package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -1
- package/dist/module/user/repository/user.repository.d.ts +4 -2
- package/dist/module/user/repository/user.repository.js +19 -7
- package/dist/module/user/repository/user.repository.js.map +1 -1
- package/dist/module/user/repository/userSession.repository.d.ts +1 -0
- package/dist/module/user/repository/userSession.repository.js +3 -0
- package/dist/module/user/repository/userSession.repository.js.map +1 -1
- package/dist/module/user/service/login.service.d.ts +3 -5
- package/dist/module/user/service/login.service.js +43 -42
- package/dist/module/user/service/login.service.js.map +1 -1
- package/dist/module/user/service/role.service.d.ts +24 -11
- package/dist/module/user/service/role.service.js +42 -38
- package/dist/module/user/service/role.service.js.map +1 -1
- package/dist/module/user/service/user-role-mapping.service.d.ts +2 -0
- package/dist/module/user/service/user-role-mapping.service.js +6 -0
- package/dist/module/user/service/user-role-mapping.service.js.map +1 -1
- package/dist/module/user/service/user-session.service.d.ts +3 -4
- package/dist/module/user/service/user-session.service.js +10 -11
- package/dist/module/user/service/user-session.service.js.map +1 -1
- package/dist/module/user/service/user.service.d.ts +29 -22
- package/dist/module/user/service/user.service.js +44 -59
- package/dist/module/user/service/user.service.js.map +1 -1
- package/dist/module/user/user.module.js +1 -7
- package/dist/module/user/user.module.js.map +1 -1
- package/dist/module/workflow/repository/action-data.repository.d.ts +1 -1
- package/dist/module/workflow/repository/action-data.repository.js +6 -8
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
- package/dist/module/workflow/repository/action.repository.d.ts +1 -1
- package/dist/module/workflow/repository/action.repository.js +10 -10
- package/dist/module/workflow/repository/action.repository.js.map +1 -1
- package/dist/module/workflow/repository/form-master.repository.d.ts +1 -1
- package/dist/module/workflow/repository/form-master.repository.js +2 -2
- package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
- package/dist/module/workflow/service/action-data.service.js +1 -2
- package/dist/module/workflow/service/action-data.service.js.map +1 -1
- package/dist/module/workflow/service/action.service.js +2 -2
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/comm-template.service.js +0 -2
- package/dist/module/workflow/service/comm-template.service.js.map +1 -1
- package/dist/module/workflow/service/entity-modification.service.js +0 -1
- package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
- package/dist/module/workflow/service/form-master.service.js +2 -2
- package/dist/module/workflow/service/form-master.service.js.map +1 -1
- package/dist/module/workflow/service/populate-workflow.service.d.ts +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.js +0 -3
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-meta.service.js +2 -7
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
- package/dist/module/workflow/service/workflow.service.js +2 -2
- package/dist/module/workflow/service/workflow.service.js.map +1 -1
- package/dist/module/workflow/workflow.module.js +2 -0
- package/dist/module/workflow/workflow.module.js.map +1 -1
- package/dist/module/workflow-automation/service/workflow-automation.service.js +11 -6
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/module/workflow-automation/workflow-automation.module.js +3 -1
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js +0 -2
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
- package/dist/table.config.d.ts +2 -4
- package/dist/table.config.js +0 -2
- package/dist/table.config.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/server.log +850 -0
- package/src/app.module.ts +5 -5
- package/src/constant/status.constant.ts +4 -0
- package/src/core.module.ts +55 -44
- package/src/module/auth/strategies/jwt.strategy.ts +4 -2
- package/src/module/dashboard/dashboard.module.ts +3 -3
- package/src/module/dashboard/service/dashboard.service.ts +2 -3
- package/src/module/enterprise/controller/enterprise.controller.ts +40 -0
- package/src/module/enterprise/controller/meta.controller.ts +23 -0
- package/src/module/enterprise/controller/organization.controller.ts +60 -4
- package/src/module/enterprise/enterprise.module.ts +16 -18
- package/src/module/enterprise/entity/enterprise.entity.ts +5 -11
- package/src/module/enterprise/entity/organization-app-mapping.entity.ts +18 -4
- package/src/module/enterprise/entity/organization.entity.ts +9 -59
- package/src/module/enterprise/repository/enterprise.repository.ts +26 -4
- package/src/module/enterprise/service/brand-profile.service.ts +10 -0
- package/src/module/enterprise/service/brand.service.ts +75 -5
- package/src/module/enterprise/service/enterprise.service.ts +10 -4
- package/src/module/enterprise/service/organization.service.ts +140 -23
- package/src/module/{meta → enterprise}/service/populate-meta.service.ts +2 -5
- package/src/module/enterprise/service/school.service.ts +5 -0
- package/src/module/entity_json/controller/entity_json.controller.ts +0 -13
- package/src/module/entity_json/entity/entityJson.entity.ts +1 -4
- package/src/module/entity_json/entity_json.module.ts +5 -9
- package/src/module/entity_json/service/entity_json.service.ts +49 -233
- package/src/module/filter/controller/filter.controller.ts +3 -1
- package/src/module/filter/filter.module.ts +3 -12
- package/src/module/filter/service/filter.service.ts +73 -130
- package/src/module/filter/service/saved-filter.service.ts +26 -16
- package/src/module/integration/service/integration.service.ts +2 -6
- package/src/module/integration/service/wrapper.service.ts +0 -1
- package/src/module/layout/controller/layout.controller.ts +1 -8
- package/src/module/layout/entity/header-section.entity.ts +0 -6
- package/src/module/layout/layout.module.ts +1 -1
- package/src/module/layout/repository/header-section.repository.ts +0 -6
- package/src/module/layout/service/header-section.service.ts +1 -1
- package/src/module/linked_attributes/controller/linked_attributes.controller.ts +0 -100
- package/src/module/linked_attributes/linked_attributes.module.ts +2 -9
- package/src/module/linked_attributes/service/linked_attributes.service.ts +3 -578
- package/src/module/listmaster/service/list-master.service.ts +1 -9
- package/src/module/meta/controller/meta.controller.ts +3 -25
- package/src/module/meta/entity/app-master.entity.ts +22 -9
- package/src/module/meta/entity/entity-master.entity.ts +3 -9
- package/src/module/meta/entity.module.ts +5 -6
- package/src/module/meta/repository/app-master.repository.ts +1 -1
- package/src/module/meta/service/attribute-master.service.ts +1 -31
- package/src/module/meta/service/entity-master.service.ts +0 -1
- package/src/module/meta/service/entity-relation.service.ts +6 -10
- package/src/module/meta/service/entity-service-impl.service.ts +19 -14
- package/src/module/meta/service/entity-table.service.ts +20 -28
- package/src/module/meta/service/entity.service.ts +1 -0
- package/src/module/meta/service/resolver.service.ts +0 -4
- package/src/module/module/controller/menu.controller.ts +2 -2
- package/src/module/module/controller/module-access.controller.ts +16 -11
- package/src/module/module/entity/menu.entity.ts +14 -10
- package/src/module/module/entity/module-access.entity.ts +41 -1
- package/src/module/module/entity/module-action.entity.ts +10 -6
- package/src/module/module/entity/module.entity.ts +7 -14
- package/src/module/module/module.module.ts +2 -3
- package/src/module/module/repository/menu.repository.ts +19 -31
- package/src/module/module/repository/module-access.repository.ts +100 -63
- package/src/module/module/service/menu.service.ts +11 -13
- package/src/module/module/service/module-access.service.ts +26 -38
- package/src/module/notification/entity/notification.entity.ts +53 -3
- package/src/module/notification/notification.module.ts +0 -2
- package/src/module/notification/service/notification.service.ts +0 -1
- package/src/module/notification/service/otp.service.ts +4 -3
- package/src/module/user/controller/login.controller.ts +7 -8
- package/src/module/user/controller/user.controller.ts +0 -9
- package/src/module/user/dto/create-user.dto.ts +19 -6
- package/src/module/user/entity/role.entity.ts +59 -16
- package/src/module/user/entity/user-role-mapping.entity.ts +29 -3
- package/src/module/user/entity/user-session.entity.ts +3 -19
- package/src/module/user/entity/user.entity.ts +48 -13
- package/src/module/user/repository/role.repository.ts +24 -12
- package/src/module/user/repository/user-role-mapping.repository.ts +5 -1
- package/src/module/user/repository/user.repository.ts +28 -8
- package/src/module/user/repository/userSession.repository.ts +5 -1
- package/src/module/user/service/login.service.ts +47 -51
- package/src/module/user/service/role.service.ts +53 -60
- package/src/module/user/service/user-role-mapping.service.ts +23 -1
- package/src/module/user/service/user-session.service.ts +14 -11
- package/src/module/user/service/user.service.ts +63 -95
- package/src/module/user/user.module.ts +3 -5
- package/src/module/workflow/repository/action-data.repository.ts +6 -8
- package/src/module/workflow/repository/action.repository.ts +11 -11
- package/src/module/workflow/repository/form-master.repository.ts +2 -2
- package/src/module/workflow/service/action-data.service.ts +3 -2
- package/src/module/workflow/service/action.service.ts +2 -2
- package/src/module/workflow/service/comm-template.service.ts +0 -2
- package/src/module/workflow/service/entity-modification.service.ts +0 -1
- package/src/module/workflow/service/form-master.service.ts +2 -2
- package/src/module/workflow/service/populate-workflow.service.ts +1 -1
- package/src/module/workflow/service/task.service.ts +0 -3
- package/src/module/workflow/service/workflow-meta.service.ts +2 -7
- package/src/module/workflow/service/workflow.service.ts +2 -2
- package/src/module/workflow/workflow.module.ts +2 -0
- package/src/module/workflow-automation/service/workflow-automation.service.ts +19 -7
- package/src/module/workflow-automation/workflow-automation.module.ts +4 -3
- package/src/module/workflow-schedule/service/workflow-schedule.service.ts +0 -2
- package/src/resources/dev.properties.yaml +2 -2
- package/src/table.config.ts +0 -2
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +0 -6
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +0 -32
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +0 -1
- package/dist/module/filter/service/flatjson-filter.service.d.ts +0 -32
- package/dist/module/filter/service/flatjson-filter.service.js +0 -632
- package/dist/module/filter/service/flatjson-filter.service.js.map +0 -1
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.d.ts +0 -13
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js +0 -64
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js.map +0 -1
- package/dist/module/meta/service/populate-meta.service.d.ts +0 -13
- package/dist/module/meta/service/populate-meta.service.js.map +0 -1
- package/src/migrations/1732612800000-AddEntityJsonGinIndex.ts +0 -41
- package/src/module/entity_json/docs/FlatJson_Filterin_System.md +0 -2804
- package/src/module/filter/service/flatjson-filter.service.ts +0 -903
- package/src/module/filter/test/flatjson-filter.service.spec.ts +0 -415
- package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +0 -54
- package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +0 -244
|
@@ -20,44 +20,41 @@ const userSession_repository_1 = require("../repository/userSession.repository")
|
|
|
20
20
|
const jwt_service_1 = require("../../auth/services/jwt.service");
|
|
21
21
|
const config_1 = require("@nestjs/config");
|
|
22
22
|
const typeorm_1 = require("typeorm");
|
|
23
|
-
const user_role_mapping_entity_1 = require("../entity/user-role-mapping.entity");
|
|
24
23
|
const user_entity_1 = require("../entity/user.entity");
|
|
25
24
|
const typeorm_2 = require("@nestjs/typeorm");
|
|
26
25
|
const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
|
|
27
26
|
let UserSessionService = class UserSessionService {
|
|
28
|
-
constructor(userSessionRepository, jwtAuthService, clockIDGenService, configService, userDataRepository,
|
|
27
|
+
constructor(userSessionRepository, jwtAuthService, clockIDGenService, configService, userDataRepository, reflectionHelper) {
|
|
29
28
|
this.userSessionRepository = userSessionRepository;
|
|
30
29
|
this.jwtAuthService = jwtAuthService;
|
|
31
30
|
this.clockIDGenService = clockIDGenService;
|
|
32
31
|
this.configService = configService;
|
|
33
32
|
this.userDataRepository = userDataRepository;
|
|
34
|
-
this.userRoleMappingRepository = userRoleMappingRepository;
|
|
35
33
|
this.reflectionHelper = reflectionHelper;
|
|
36
34
|
}
|
|
37
|
-
async createSession(user,
|
|
35
|
+
async createSession(user, app_id, accessInfo, appcode) {
|
|
38
36
|
const sessionToken = this.clockIDGenService.idGenerator('SES');
|
|
39
37
|
const userSession = new user_session_entity_1.UserSession();
|
|
40
38
|
userSession.user_id = user.id;
|
|
41
39
|
userSession.session_key = sessionToken;
|
|
42
40
|
userSession.is_session_loggedout = 0;
|
|
43
|
-
userSession.login_time = new Date();
|
|
44
41
|
const expiryTokenInHours = this.configService.get('TOKEN_EXPIRY') || 1;
|
|
45
42
|
userSession.expiry_date = new Date(Date.now() + expiryTokenInHours * 60 * 60 * 1000);
|
|
46
43
|
await this.userSessionRepository.saveSession(userSession);
|
|
47
44
|
const payload = {
|
|
48
45
|
id: user.id,
|
|
49
46
|
sessionToken,
|
|
50
|
-
|
|
47
|
+
app_id,
|
|
51
48
|
email_id: user.email_id,
|
|
52
49
|
organization_id: user.organization_id,
|
|
53
50
|
enterprise_id: user.enterprise_id,
|
|
51
|
+
appcode,
|
|
54
52
|
};
|
|
55
53
|
if (accessInfo) {
|
|
56
54
|
payload.level_type = accessInfo.level_type;
|
|
57
55
|
payload.level_id = accessInfo.level_id;
|
|
58
56
|
}
|
|
59
57
|
const accessToken = this.jwtAuthService.generateJwt(payload);
|
|
60
|
-
userSession.access_token = accessToken;
|
|
61
58
|
await this.userSessionRepository.saveSession(userSession);
|
|
62
59
|
return accessToken;
|
|
63
60
|
}
|
|
@@ -67,6 +64,10 @@ let UserSessionService = class UserSessionService {
|
|
|
67
64
|
async updateSession(userSession) {
|
|
68
65
|
await this.userSessionRepository.saveSession(userSession);
|
|
69
66
|
}
|
|
67
|
+
async fetchUserFcmToken(user_id) {
|
|
68
|
+
return await this.userSessionRepository.fetchUserFcmToken(user_id);
|
|
69
|
+
}
|
|
70
|
+
;
|
|
70
71
|
async switchCurrentLevelService(currentUser, data) {
|
|
71
72
|
let payload;
|
|
72
73
|
payload = {
|
|
@@ -83,11 +84,11 @@ let UserSessionService = class UserSessionService {
|
|
|
83
84
|
},
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
|
-
if (getUserDetails?.
|
|
87
|
+
if (getUserDetails?.enterprise_id == 1 && payload.level_type == 'ORG') {
|
|
87
88
|
payload.organization_id = payload.level_id;
|
|
88
89
|
}
|
|
89
90
|
await this.userDataRepository.update(currentUser.id, {
|
|
90
|
-
|
|
91
|
+
last_app_access_id: data.app_id,
|
|
91
92
|
last_level_type: data.level_type,
|
|
92
93
|
last_level_id: data.level_id,
|
|
93
94
|
});
|
|
@@ -148,13 +149,11 @@ exports.UserSessionService = UserSessionService;
|
|
|
148
149
|
exports.UserSessionService = UserSessionService = __decorate([
|
|
149
150
|
(0, common_1.Injectable)(),
|
|
150
151
|
__param(4, (0, typeorm_2.InjectRepository)(user_entity_1.UserData)),
|
|
151
|
-
__param(5, (0, typeorm_2.InjectRepository)(user_role_mapping_entity_1.UserRoleMapping)),
|
|
152
152
|
__metadata("design:paramtypes", [userSession_repository_1.UserSessionRepository,
|
|
153
153
|
jwt_service_1.JwtAuthService,
|
|
154
154
|
clockIDGenUtil_service_1.ClockIDGenService,
|
|
155
155
|
config_1.ConfigService,
|
|
156
156
|
typeorm_1.Repository,
|
|
157
|
-
typeorm_1.Repository,
|
|
158
157
|
reflection_helper_service_1.ReflectionHelper])
|
|
159
158
|
], UserSessionService);
|
|
160
159
|
//# sourceMappingURL=user-session.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-session.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user-session.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uEAA4D;AAC5D,0FAAkF;AAClF,2CAAiE;AACjE,iFAA6E;AAC7E,iEAAsE;AACtE,2CAA+C;
|
|
1
|
+
{"version":3,"file":"user-session.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user-session.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uEAA4D;AAC5D,0FAAkF;AAClF,2CAAiE;AACjE,iFAA6E;AAC7E,iEAAsE;AACtE,2CAA+C;AAC/C,qCAAqC;AAErC,uDAAiD;AACjD,6CAAmD;AACnD,gGAAoF;AAG7E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YACmB,qBAA4C,EAC5C,cAA8B,EAC9B,iBAAoC,EAC7C,aAA4B,EAEnB,kBAAwC,EACxC,gBAAkC;QANlC,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,mBAAc,GAAd,cAAc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;QAC5B,4BAAc;QACX,0CAAiB;QAC9B,sBAAa;QAEC,oBAAU;QACZ,4CAAgB;GAR1C,kBAAkB,CA6L9B"}
|
|
@@ -1,38 +1,45 @@
|
|
|
1
|
-
import { RoleService } from './role.service';
|
|
2
|
-
import { EntityServiceImpl } from '../../meta/service/entity-service-impl.service';
|
|
3
1
|
import { UserData } from '../entity/user.entity';
|
|
4
|
-
import { BaseEntity } from '../../meta/entity/base-entity.entity';
|
|
5
2
|
import { UserRepository } from '../repository/user.repository';
|
|
6
|
-
import {
|
|
3
|
+
import { CreateUserDto } from '../dto/create-user.dto';
|
|
7
4
|
import { UserRoleMappingService } from './user-role-mapping.service';
|
|
8
|
-
import { EntityManager } from 'typeorm';
|
|
9
5
|
import { ConfigService } from '@nestjs/config';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
import { Action } from 'src/module/workflow-automation/interface/action.interface';
|
|
14
|
-
export declare class UserService extends EntityServiceImpl implements Action {
|
|
6
|
+
import { UpdateUserDto } from '../dto/update-user.dto';
|
|
7
|
+
import { EnterpriseRepository } from 'src/module/enterprise/repository/enterprise.repository';
|
|
8
|
+
export declare class UserService {
|
|
15
9
|
private userRepository;
|
|
16
10
|
private userRoleMappingService;
|
|
17
|
-
private readonly clockIDGenService;
|
|
18
11
|
private configService;
|
|
19
|
-
private readonly
|
|
20
|
-
|
|
21
|
-
private readonly listMasterService;
|
|
22
|
-
constructor(userRepository: UserRepository, userRoleMappingService: UserRoleMappingService, clockIDGenService: ClockIDGenService, configService: ConfigService, organizationRepository: OrganizationRepository, roleService: RoleService, listMasterService: ListMasterService);
|
|
12
|
+
private readonly enterpriseRepository;
|
|
13
|
+
constructor(userRepository: UserRepository, userRoleMappingService: UserRoleMappingService, configService: ConfigService, enterpriseRepository: EnterpriseRepository);
|
|
23
14
|
masterKey: any;
|
|
24
15
|
masterIv: any;
|
|
25
|
-
|
|
16
|
+
createUser(entityData: CreateUserDto, loggedInUser: UserData): Promise<{
|
|
17
|
+
success: boolean;
|
|
18
|
+
error: string;
|
|
19
|
+
data?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
success: boolean;
|
|
22
|
+
data: UserData;
|
|
23
|
+
error?: undefined;
|
|
24
|
+
}>;
|
|
26
25
|
name: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
getUserData(id: number): Promise<UserData | null>;
|
|
27
|
+
updateUser(id: number, userDto: UpdateUserDto, loggedInUserData: UserData): Promise<{
|
|
28
|
+
success: boolean;
|
|
29
|
+
error: string;
|
|
30
|
+
data?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
success: boolean;
|
|
33
|
+
data: import("typeorm").UpdateResult;
|
|
34
|
+
error?: undefined;
|
|
35
|
+
}>;
|
|
36
|
+
findByEmailId(email_id: string, enterprise_id?: number, getLastApp?: boolean): Promise<UserData | null>;
|
|
31
37
|
findByMobile(mobile: string, organization_id?: number, appCode?: string): Promise<UserData | null>;
|
|
32
|
-
setDefaultLastAccess(userId: number,
|
|
33
|
-
setLastLevelTypeAndId(userId: number, levelType: string, levelId: string,
|
|
38
|
+
setDefaultLastAccess(userId: number, app_id: number): Promise<void>;
|
|
39
|
+
setLastLevelTypeAndId(userId: number, levelType: string, levelId: string, app_id: number): Promise<void>;
|
|
34
40
|
checkEmailExists(data: {
|
|
35
41
|
email_id: string;
|
|
36
42
|
subdomain: string;
|
|
37
43
|
}): Promise<any>;
|
|
44
|
+
find(options: any): Promise<UserData[]>;
|
|
38
45
|
}
|
|
@@ -8,58 +8,52 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.UserService = void 0;
|
|
16
|
-
const role_service_1 = require("./role.service");
|
|
17
13
|
const common_1 = require("@nestjs/common");
|
|
18
|
-
const
|
|
14
|
+
const user_entity_1 = require("../entity/user.entity");
|
|
19
15
|
const user_repository_1 = require("../repository/user.repository");
|
|
20
|
-
const encryptUtil_service_1 = require("../../../utils/service/encryptUtil.service");
|
|
21
|
-
const clockIDGenUtil_service_1 = require("../../../utils/service/clockIDGenUtil.service");
|
|
22
16
|
const global_constant_1 = require("../../../constant/global.constant");
|
|
23
17
|
const user_role_mapping_service_1 = require("./user-role-mapping.service");
|
|
24
18
|
const user_role_mapping_entity_1 = require("../entity/user-role-mapping.entity");
|
|
25
19
|
const config_1 = require("@nestjs/config");
|
|
26
|
-
const list_master_service_1 = require("../../listmaster/service/list-master.service");
|
|
27
|
-
const organization_repository_1 = require("../../enterprise/repository/organization.repository");
|
|
28
20
|
const action_decorator_1 = require("../../workflow-automation/interface/action.decorator");
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
const encryptUtil_service_1 = require("../../../utils/service/encryptUtil.service");
|
|
22
|
+
const class_transformer_1 = require("class-transformer");
|
|
23
|
+
const enterprise_repository_1 = require("../../enterprise/repository/enterprise.repository");
|
|
24
|
+
const status_constant_1 = require("../../../constant/status.constant");
|
|
25
|
+
let UserService = class UserService {
|
|
26
|
+
constructor(userRepository, userRoleMappingService, configService, enterpriseRepository) {
|
|
32
27
|
this.userRepository = userRepository;
|
|
33
28
|
this.userRoleMappingService = userRoleMappingService;
|
|
34
|
-
this.clockIDGenService = clockIDGenService;
|
|
35
29
|
this.configService = configService;
|
|
36
|
-
this.
|
|
37
|
-
this.roleService = roleService;
|
|
38
|
-
this.listMasterService = listMasterService;
|
|
30
|
+
this.enterpriseRepository = enterpriseRepository;
|
|
39
31
|
this.masterKey = this.configService.get('MASTER_KEY') || '';
|
|
40
32
|
this.masterIv = this.configService.get('MASTER_IV') || '';
|
|
41
33
|
this.name = 'UserService';
|
|
42
34
|
}
|
|
43
|
-
async
|
|
35
|
+
async createUser(entityData, loggedInUser) {
|
|
44
36
|
const userData = entityData;
|
|
45
|
-
let existingUser = await this.userRepository.findByEmailId(userData.email_id, loggedInUser?.
|
|
37
|
+
let existingUser = await this.userRepository.findByEmailId(userData.email_id, loggedInUser?.enterprise_id);
|
|
46
38
|
if (existingUser) {
|
|
47
39
|
return { success: false, error: 'User with this email already exists' };
|
|
48
40
|
}
|
|
49
|
-
existingUser = await this.userRepository.findByMobile(userData.mobile, loggedInUser?.
|
|
41
|
+
existingUser = await this.userRepository.findByMobile(userData.mobile, loggedInUser?.enterprise_id);
|
|
50
42
|
if (existingUser) {
|
|
51
43
|
return { success: false, error: 'User with this mobile already exists' };
|
|
52
44
|
}
|
|
53
|
-
|
|
54
|
-
const resolvedInvitationStatus = await this.listMasterService.getResolvedListCode(global_constant_1.INVITATION_STATUS_SENT, loggedInUser?.organization_id || 0);
|
|
55
|
-
userData.name =
|
|
56
|
-
(userData.first_name || '') + ' ' + (userData.last_name || '');
|
|
45
|
+
;
|
|
57
46
|
userData.password = encryptUtil_service_1.EncryptUtilService.encryptGCM(userData.password || 'Admin@123', this.masterKey, this.masterIv);
|
|
47
|
+
userData.enterprise_id = loggedInUser.enterprise_id;
|
|
48
|
+
userData.level_type = loggedInUser.level_type;
|
|
49
|
+
userData.level_id = loggedInUser.level_id;
|
|
58
50
|
userData.is_firstlogin = 1;
|
|
59
51
|
userData.roles = [];
|
|
60
|
-
userData.invitation_status =
|
|
61
|
-
userData.status =
|
|
62
|
-
const
|
|
52
|
+
userData.invitation_status = global_constant_1.INVITATION_STATUS_SENT;
|
|
53
|
+
userData.status = status_constant_1.StatusConstant.ACTIVE;
|
|
54
|
+
const entity = (0, class_transformer_1.plainToInstance)(user_entity_1.UserData, userData);
|
|
55
|
+
entity.created_by = loggedInUser.created_by;
|
|
56
|
+
const savedData = await this.userRepository.saveUser(entity);
|
|
63
57
|
const insertPromises = [];
|
|
64
58
|
for (const entry of userData.access || []) {
|
|
65
59
|
const { level_type, level_ids, app_code, role_id } = entry;
|
|
@@ -75,7 +69,7 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
|
|
|
75
69
|
userRoleMapping.level_type = level_type;
|
|
76
70
|
userRoleMapping.level_id = String(levelId);
|
|
77
71
|
userRoleMapping.appcode = app_code;
|
|
78
|
-
userRoleMapping.
|
|
72
|
+
userRoleMapping.enterprise_id = loggedInUser?.enterprise_id || 0;
|
|
79
73
|
insertPromises.push(this.userRoleMappingService.assignUserRole(userRoleMapping));
|
|
80
74
|
}
|
|
81
75
|
}
|
|
@@ -90,10 +84,7 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
|
|
|
90
84
|
}
|
|
91
85
|
return { success: true, data: savedData };
|
|
92
86
|
}
|
|
93
|
-
async
|
|
94
|
-
console.log('payload', payload);
|
|
95
|
-
}
|
|
96
|
-
async getEntityData(entityType, id, loggedInUser) {
|
|
87
|
+
async getUserData(id) {
|
|
97
88
|
const user = await this.userRepository.findById(id);
|
|
98
89
|
if (user) {
|
|
99
90
|
const userRoleMappings = await this.userRoleMappingService.findByUserId(id);
|
|
@@ -103,8 +94,6 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
|
|
|
103
94
|
for (const i in userRoleMappings) {
|
|
104
95
|
const userRoleMapping = userRoleMappings[i];
|
|
105
96
|
const roleId = userRoleMapping.role_id;
|
|
106
|
-
const role = await super.getEntityData(global_constant_1.ENTITYTYPE_ROLE, roleId, loggedInUser);
|
|
107
|
-
roles.push(role);
|
|
108
97
|
}
|
|
109
98
|
userDto.roles = roles;
|
|
110
99
|
}
|
|
@@ -112,9 +101,8 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
|
|
|
112
101
|
}
|
|
113
102
|
return null;
|
|
114
103
|
}
|
|
115
|
-
async
|
|
116
|
-
const
|
|
117
|
-
const existingUser = await this.userRepository.findById(entityData.id);
|
|
104
|
+
async updateUser(id, userDto, loggedInUserData) {
|
|
105
|
+
const existingUser = await this.userRepository.findById(id);
|
|
118
106
|
if (!existingUser) {
|
|
119
107
|
return { success: false, error: 'User not found' };
|
|
120
108
|
}
|
|
@@ -130,7 +118,7 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
|
|
|
130
118
|
}
|
|
131
119
|
const updatedUserData = { ...userDto };
|
|
132
120
|
delete updatedUserData.access;
|
|
133
|
-
const savedData = await
|
|
121
|
+
const savedData = await this.userRepository.updateUser(id, updatedUserData);
|
|
134
122
|
if (userDto.access && userDto.access.length > 0) {
|
|
135
123
|
if (loggedInUserData.level_type == 'ORG') {
|
|
136
124
|
await this.userRoleMappingService.deleteByUserId(existingUser.id);
|
|
@@ -145,12 +133,11 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
|
|
|
145
133
|
return { success: false, error: 'Invalid access level entry' };
|
|
146
134
|
}
|
|
147
135
|
for (const levelId of level_ids) {
|
|
148
|
-
const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(
|
|
136
|
+
const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(id, role_id);
|
|
149
137
|
userRoleMapping.level_type = level_type;
|
|
150
138
|
userRoleMapping.level_id = String(levelId);
|
|
151
139
|
userRoleMapping.appcode = app_code;
|
|
152
|
-
userRoleMapping.
|
|
153
|
-
loggedInUserData?.organization_id || 0;
|
|
140
|
+
userRoleMapping.enterprise_id = loggedInUserData.enterprise_id;
|
|
154
141
|
insertPromises.push(this.userRoleMappingService.assignUserRole(userRoleMapping));
|
|
155
142
|
}
|
|
156
143
|
}
|
|
@@ -164,28 +151,28 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
|
|
|
164
151
|
}
|
|
165
152
|
return { success: true, data: savedData };
|
|
166
153
|
}
|
|
167
|
-
async findByEmailId(email_id,
|
|
168
|
-
return await this.userRepository.findByEmailId(email_id,
|
|
154
|
+
async findByEmailId(email_id, enterprise_id, getLastApp) {
|
|
155
|
+
return await this.userRepository.findByEmailId(email_id, enterprise_id, getLastApp);
|
|
169
156
|
}
|
|
170
157
|
async findByMobile(mobile, organization_id, appCode) {
|
|
171
158
|
return await this.userRepository.findByMobile(mobile, organization_id, appCode);
|
|
172
159
|
}
|
|
173
|
-
async setDefaultLastAccess(userId,
|
|
160
|
+
async setDefaultLastAccess(userId, app_id) {
|
|
174
161
|
const user = await this.userRepository.findById(userId);
|
|
175
162
|
if (!user) {
|
|
176
163
|
throw new common_1.BadRequestException('User not found');
|
|
177
164
|
}
|
|
178
|
-
user.
|
|
165
|
+
user.last_app_access_id = app_id;
|
|
179
166
|
await this.userRepository.saveUser(user);
|
|
180
167
|
}
|
|
181
|
-
async setLastLevelTypeAndId(userId, levelType, levelId,
|
|
168
|
+
async setLastLevelTypeAndId(userId, levelType, levelId, app_id) {
|
|
182
169
|
const user = await this.userRepository.findById(userId);
|
|
183
170
|
if (!user) {
|
|
184
171
|
throw new common_1.BadRequestException('User not found');
|
|
185
172
|
}
|
|
186
173
|
user.last_level_type = levelType;
|
|
187
174
|
user.last_level_id = levelId;
|
|
188
|
-
user.
|
|
175
|
+
user.last_app_access_id = app_id;
|
|
189
176
|
await this.userRepository.saveUser(user);
|
|
190
177
|
}
|
|
191
178
|
async checkEmailExists(data) {
|
|
@@ -193,22 +180,22 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
|
|
|
193
180
|
if (!email_id || !subdomain) {
|
|
194
181
|
return { success: false, message: 'Email and Subdomain is required' };
|
|
195
182
|
}
|
|
196
|
-
let
|
|
183
|
+
let enterprise;
|
|
197
184
|
if (subdomain) {
|
|
198
|
-
|
|
199
|
-
await this.
|
|
200
|
-
if (!
|
|
185
|
+
enterprise =
|
|
186
|
+
await this.enterpriseRepository.findEnterpriseBySubdomain(subdomain);
|
|
187
|
+
if (!enterprise) {
|
|
201
188
|
return {
|
|
202
189
|
success: false,
|
|
203
190
|
message: 'Organization not found.',
|
|
204
191
|
};
|
|
205
192
|
}
|
|
206
193
|
}
|
|
207
|
-
const user = await this.userRepository.findByEmailId(email_id,
|
|
208
|
-
if (!user || (
|
|
194
|
+
const user = await this.userRepository.findByEmailId(email_id, enterprise?.id);
|
|
195
|
+
if (!user || (enterprise && user.enterprise_id !== enterprise.id)) {
|
|
209
196
|
return {
|
|
210
197
|
success: false,
|
|
211
|
-
message: 'User not found in
|
|
198
|
+
message: 'User not found in enterprise.',
|
|
212
199
|
};
|
|
213
200
|
}
|
|
214
201
|
if (user) {
|
|
@@ -225,19 +212,17 @@ let UserService = class UserService extends entity_service_impl_service_1.Entity
|
|
|
225
212
|
};
|
|
226
213
|
}
|
|
227
214
|
}
|
|
215
|
+
async find(options) {
|
|
216
|
+
return await this.userRepository.find(options);
|
|
217
|
+
}
|
|
228
218
|
};
|
|
229
219
|
exports.UserService = UserService;
|
|
230
220
|
exports.UserService = UserService = __decorate([
|
|
231
221
|
(0, common_1.Injectable)(),
|
|
232
222
|
(0, action_decorator_1.ActionHandler)('User'),
|
|
233
|
-
__param(5, (0, common_1.Inject)('RoleService')),
|
|
234
|
-
__param(6, (0, common_1.Inject)('ListMasterService')),
|
|
235
223
|
__metadata("design:paramtypes", [user_repository_1.UserRepository,
|
|
236
224
|
user_role_mapping_service_1.UserRoleMappingService,
|
|
237
|
-
clockIDGenUtil_service_1.ClockIDGenService,
|
|
238
225
|
config_1.ConfigService,
|
|
239
|
-
|
|
240
|
-
role_service_1.RoleService,
|
|
241
|
-
list_master_service_1.ListMasterService])
|
|
226
|
+
enterprise_repository_1.EnterpriseRepository])
|
|
242
227
|
], UserService);
|
|
243
228
|
//# sourceMappingURL=user.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiE;AACjE,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AA2C;aACrD,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAAY;QACrB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;CACF,CAAA;AA9TY,kCAAW;sBAAX,WAAW;IAFvB,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAa,EAAC,MAAM,CAAC;qCAGM,gCAAc;QACN,kDAAsB;QAC/B,sBAAa;QACG,4CAAoB;GALlD,WAAW,CA8TvB"}
|
|
@@ -12,7 +12,6 @@ const typeorm_1 = require("@nestjs/typeorm");
|
|
|
12
12
|
const user_entity_1 = require("./entity/user.entity");
|
|
13
13
|
const user_service_1 = require("./service/user.service");
|
|
14
14
|
const utils_module_1 = require("../../utils/utils.module");
|
|
15
|
-
const entity_module_1 = require("../meta/entity.module");
|
|
16
15
|
const user_repository_1 = require("./repository/user.repository");
|
|
17
16
|
const user_session_service_1 = require("./service/user-session.service");
|
|
18
17
|
const user_session_entity_1 = require("./entity/user-session.entity");
|
|
@@ -30,8 +29,6 @@ const user_role_mapping_service_1 = require("./service/user-role-mapping.service
|
|
|
30
29
|
const role_repository_1 = require("./repository/role.repository");
|
|
31
30
|
const module_access_entity_1 = require("../module/entity/module-access.entity");
|
|
32
31
|
const enterprise_module_1 = require("../enterprise/enterprise.module");
|
|
33
|
-
const listmaster_module_1 = require("../listmaster/listmaster.module");
|
|
34
|
-
const integration_module_1 = require("../integration/integration.module");
|
|
35
32
|
let UserModule = class UserModule {
|
|
36
33
|
};
|
|
37
34
|
exports.UserModule = UserModule;
|
|
@@ -46,11 +43,8 @@ exports.UserModule = UserModule = __decorate([
|
|
|
46
43
|
module_access_entity_1.ModuleAccess,
|
|
47
44
|
]),
|
|
48
45
|
(0, common_1.forwardRef)(() => auth_module_1.AuthModule),
|
|
49
|
-
entity_module_1.EntityModule,
|
|
50
46
|
utils_module_1.UtilsModule,
|
|
51
|
-
|
|
52
|
-
integration_module_1.IntegrationModule,
|
|
53
|
-
(0, common_1.forwardRef)(() => enterprise_module_1.EnterpriseModule),
|
|
47
|
+
(0, common_1.forwardRef)(() => enterprise_module_1.EnterpriseModule)
|
|
54
48
|
],
|
|
55
49
|
providers: [
|
|
56
50
|
{ provide: 'UserService', useClass: user_service_1.UserService },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.module.js","sourceRoot":"","sources":["../../../src/module/user/user.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,sDAAgD;AAChD,yDAAqD;AACrD,2DAAuD;
|
|
1
|
+
{"version":3,"file":"user.module.js","sourceRoot":"","sources":["../../../src/module/user/user.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,sDAAgD;AAChD,yDAAqD;AACrD,2DAAuD;AAEvD,kEAA8D;AAC9D,yEAAoE;AACpE,sEAA2D;AAC3D,oEAAgE;AAChE,2DAAuD;AACvD,gFAA4E;AAC5E,qCAAyC;AACzC,qDAAiD;AACjD,kEAA8D;AAC9D,sDAA4C;AAC5C,yDAAqD;AACrD,gFAAoE;AACpE,4FAAsF;AACtF,mFAA6E;AAC7E,kEAA8D;AAC9D,gFAAqE;AACrE,uEAAmE;AAwC5D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAI,CAAA;AAAd,gCAAU;qBAAV,UAAU;IAnCtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,sBAAQ;gBACR,iCAAW;gBACX,kBAAI;gBACJ,0CAAe;gBACf,mCAAY;aACb,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,0BAAW;YACX,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;SACnC;QACD,SAAS,EAAE;YACT,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAAW,EAAE;YACjD,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAAW,EAAE;YACjD,gCAAc;YACd,yCAAkB;YAClB,4BAAY;YACZ,8CAAqB;YACrB,gBAAU;YACV,wDAAyB;YACzB,kDAAsB;YACtB,gCAAc;SACf;QACD,OAAO,EAAE;YACP,aAAa;YACb,yCAAkB;YAClB,aAAa;YACb,kDAAsB;YACtB,gCAAc;YACd,4BAAY;SACb;QACD,WAAW,EAAE,CAAC,kCAAe,EAAE,gCAAc,CAAC;KAC/C,CAAC;GACW,UAAU,CAAI"}
|
|
@@ -13,7 +13,7 @@ export declare class ActionDataRepository extends EntityServiceImpl {
|
|
|
13
13
|
constructor(actionDataRepo: Repository<ActionDataEntity>, TaskRepository: Repository<TaskDataEntity>, configService: ConfigService, workflowAutomationEngineService: WorkflowAutomationEngineService);
|
|
14
14
|
saveActionData(action: any, loggedInUser: UserData, mapped_entity_id: any, mapped_entity_type: any): Promise<any>;
|
|
15
15
|
updateActionStatus(loggedInUser: UserData, mapped_entity_type: string, mapped_entity_id: number, stage_id: number, action_id: number): Promise<any>;
|
|
16
|
-
resubmitAction(
|
|
16
|
+
resubmitAction(loggedInUser: UserData, mapped_entity_type: string, mapped_entity_id: number, stage_id: number, action_id: number): Promise<{
|
|
17
17
|
message: string;
|
|
18
18
|
revertedTo: ActionDataEntity;
|
|
19
19
|
updated: ActionDataEntity;
|
|
@@ -50,7 +50,6 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
50
50
|
action_id: act.id,
|
|
51
51
|
sequence: act.sequence,
|
|
52
52
|
name: act.name,
|
|
53
|
-
organization_id: loggedInUser.organization_id,
|
|
54
53
|
enterprise_id: loggedInUser.enterprise_id,
|
|
55
54
|
mapped_entity_id,
|
|
56
55
|
mapped_entity_type,
|
|
@@ -90,7 +89,6 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
90
89
|
if (relationData) {
|
|
91
90
|
const entityRelationDataRepo = this.reflectionHelper.getRepoService('EntityRelationData');
|
|
92
91
|
await entityRelationDataRepo.save({
|
|
93
|
-
organization_id: loggedInUser.organization_id,
|
|
94
92
|
enterprise_id: loggedInUser.enterprise_id,
|
|
95
93
|
source_entity_id: createdEntity.mapped_entity_id,
|
|
96
94
|
source_entity_type: createdEntity.mapped_entity_type,
|
|
@@ -135,10 +133,10 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
135
133
|
}
|
|
136
134
|
return { finished: actionData, activated: nextAction ?? null };
|
|
137
135
|
}
|
|
138
|
-
async resubmitAction(
|
|
136
|
+
async resubmitAction(loggedInUser, mapped_entity_type, mapped_entity_id, stage_id, action_id) {
|
|
139
137
|
const currentAction = await this.actionDataRepo.findOne({
|
|
140
138
|
where: {
|
|
141
|
-
|
|
139
|
+
enterprise_id: loggedInUser.enterprise_id,
|
|
142
140
|
stage_id,
|
|
143
141
|
mapped_entity_id,
|
|
144
142
|
mapped_entity_type,
|
|
@@ -151,7 +149,7 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
151
149
|
}
|
|
152
150
|
const previousAction = await this.actionDataRepo.findOne({
|
|
153
151
|
where: {
|
|
154
|
-
|
|
152
|
+
enterprise_id: loggedInUser.enterprise_id,
|
|
155
153
|
stage_id,
|
|
156
154
|
mapped_entity_id,
|
|
157
155
|
mapped_entity_type,
|
|
@@ -164,13 +162,13 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
164
162
|
}
|
|
165
163
|
currentAction.is_current = null;
|
|
166
164
|
currentAction.modified_date = new Date();
|
|
167
|
-
currentAction.modified_by =
|
|
165
|
+
currentAction.modified_by = loggedInUser.id;
|
|
168
166
|
currentAction.start_time = null;
|
|
169
167
|
currentAction.resubmit_count = (currentAction.resubmit_count ?? 0) + 1;
|
|
170
168
|
await this.actionDataRepo.update(currentAction.id, currentAction);
|
|
171
169
|
previousAction.is_current = 'Y';
|
|
172
170
|
previousAction.modified_date = new Date();
|
|
173
|
-
previousAction.modified_by =
|
|
171
|
+
previousAction.modified_by = loggedInUser.id;
|
|
174
172
|
previousAction.end_time = null;
|
|
175
173
|
previousAction.is_done = false;
|
|
176
174
|
await this.actionDataRepo.update(previousAction.id, previousAction);
|
|
@@ -191,7 +189,7 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
191
189
|
const listMasterItem = await listMasterItemRepo.findOne({
|
|
192
190
|
where: {
|
|
193
191
|
code: 'in_progress',
|
|
194
|
-
|
|
192
|
+
enterprise_id: loggedInUser.enterprise_id,
|
|
195
193
|
listtype: 'TKST',
|
|
196
194
|
},
|
|
197
195
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-data.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/action-data.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiE;AACjE,6CAAmD;AACnD,qEAAgE;AAChE,qCAA+C;AAE/C,iEAA4D;AAC5D,gGAAwF;AACxF,uEAAsE;AACtE,2CAA+C;AAC/C,iCAA0B;AAC1B,6HAA4H;AAGrH,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,+CAAiB;IACzD,YAEmB,cAA4C,EAE5C,cAA0C,EAC1C,aAA4B,EAC5B,+BAAgE;QAEjF,KAAK,EAAE,CAAC;QANS,mBAAc,GAAd,cAAc,CAA8B;QAE5C,mBAAc,GAAd,cAAc,CAA4B;QAC1C,kBAAa,GAAb,aAAa,CAAe;QAC5B,oCAA+B,GAA/B,+BAA+B,CAAiC;IAGnF,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAAW,EACX,YAAsB,EACtB,gBAAgB,EAChB,kBAAkB;QAElB,IAAI,CAAC,MAAM,EAAE,MAAM;YAAE,OAAO;QAG5B,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QAE/D,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;gBACzB,MAAM,mBAAmB,GACvB,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;gBAC1D,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;oBACrD,KAAK,EAAE;wBACL,EAAE,EAAE,GAAG,CAAC,kBAAkB;qBAC3B;iBACF,CAAC,CAAC;gBAEH,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,IAAI,WAAW,CAAC;gBAC5C,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;oBAC5C,QAAQ,EAAE,GAAG,CAAC,QAAQ;oBACtB,OAAO,EAAE,YAAY,CAAC,EAAE;oBACxB,SAAS,EAAE,GAAG,CAAC,EAAE;oBACjB,QAAQ,EAAE,GAAG,CAAC,QAAQ;oBACtB,IAAI,EAAE,GAAG,CAAC,IAAI;oBACd,
|
|
1
|
+
{"version":3,"file":"action-data.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/action-data.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiE;AACjE,6CAAmD;AACnD,qEAAgE;AAChE,qCAA+C;AAE/C,iEAA4D;AAC5D,gGAAwF;AACxF,uEAAsE;AACtE,2CAA+C;AAC/C,iCAA0B;AAC1B,6HAA4H;AAGrH,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,+CAAiB;IACzD,YAEmB,cAA4C,EAE5C,cAA0C,EAC1C,aAA4B,EAC5B,+BAAgE;QAEjF,KAAK,EAAE,CAAC;QANS,mBAAc,GAAd,cAAc,CAA8B;QAE5C,mBAAc,GAAd,cAAc,CAA4B;QAC1C,kBAAa,GAAb,aAAa,CAAe;QAC5B,oCAA+B,GAA/B,+BAA+B,CAAiC;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M,CAAC;YACN,YAAY,GAAG,OAAO,CAAC;QACzB,CAAC;QAED,MAAM,OAAO,GAAG,GAAG,YAAY,SAAS,kBAAkB,IAAI,gBAAgB,IAAI,OAAO,EAAE,CAAC;QAE5F,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAA;AA3UY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,qCAAgB,CAAC,CAAA;IAElC,WAAA,IAAA,0BAAgB,EAAC,iCAAc,CAAC,CAAA;qCADA,oBAAU;QAEV,oBAAU;QACX,sBAAa;QACK,oEAA+B;GAPxE,oBAAoB,CA2UhC"}
|
|
@@ -10,7 +10,7 @@ export declare class ActionRepository {
|
|
|
10
10
|
}[]>;
|
|
11
11
|
getActions(loggedInUser: UserData, stage_id: number): Promise<any[]>;
|
|
12
12
|
getDependentActions(loggedInUser: UserData, stage_id: number, action_id?: number): Promise<any>;
|
|
13
|
-
getAction(
|
|
13
|
+
getAction(enterprise_id: number, stage_id: number, mapped_entity_id: number, mapped_entity_type: string): Promise<{
|
|
14
14
|
value: any;
|
|
15
15
|
dependent_action_id: any;
|
|
16
16
|
label: any;
|