rez_core 6.5.32 → 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 +4 -5
- package/dist/module/meta/service/entity-table.service.js +25 -25
- 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 -15
- 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
|
@@ -1,9 +1,24 @@
|
|
|
1
|
+
import { ModuleData } from './module.entity';
|
|
2
|
+
import { Role } from 'src/module/user/entity/role.entity';
|
|
3
|
+
import { ModuleAction } from './module-action.entity';
|
|
4
|
+
import { EnterpriseData } from 'src/module/enterprise/entity/enterprise.entity';
|
|
5
|
+
import { AppMaster } from '../../meta/entity/app-master.entity';
|
|
1
6
|
export declare class ModuleAccess {
|
|
2
7
|
id: number;
|
|
3
8
|
module_code: string;
|
|
9
|
+
module_id: number;
|
|
10
|
+
module: ModuleData;
|
|
4
11
|
role_code: string;
|
|
12
|
+
role_id: number;
|
|
13
|
+
role: Role;
|
|
5
14
|
access_flag: number;
|
|
6
15
|
action_type: string;
|
|
16
|
+
action_id: number;
|
|
17
|
+
action: ModuleAction;
|
|
7
18
|
level_type: string;
|
|
8
19
|
appcode: string;
|
|
20
|
+
app_id: number;
|
|
21
|
+
app: AppMaster;
|
|
22
|
+
enterprise_id: number;
|
|
23
|
+
enterprise: EnterpriseData;
|
|
9
24
|
}
|
|
@@ -11,6 +11,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ModuleAccess = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const module_entity_1 = require("./module.entity");
|
|
15
|
+
const role_entity_1 = require("../../user/entity/role.entity");
|
|
16
|
+
const module_action_entity_1 = require("./module-action.entity");
|
|
17
|
+
const enterprise_entity_1 = require("../../enterprise/entity/enterprise.entity");
|
|
18
|
+
const app_master_entity_1 = require("../../meta/entity/app-master.entity");
|
|
14
19
|
let ModuleAccess = class ModuleAccess {
|
|
15
20
|
};
|
|
16
21
|
exports.ModuleAccess = ModuleAccess;
|
|
@@ -22,10 +27,28 @@ __decorate([
|
|
|
22
27
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
23
28
|
__metadata("design:type", String)
|
|
24
29
|
], ModuleAccess.prototype, "module_code", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], ModuleAccess.prototype, "module_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.ManyToOne)(() => module_entity_1.ModuleData, { nullable: true, onDelete: 'SET NULL' }),
|
|
36
|
+
(0, typeorm_1.JoinColumn)({ name: 'module_id', referencedColumnName: 'id' }),
|
|
37
|
+
__metadata("design:type", module_entity_1.ModuleData)
|
|
38
|
+
], ModuleAccess.prototype, "module", void 0);
|
|
25
39
|
__decorate([
|
|
26
40
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
27
41
|
__metadata("design:type", String)
|
|
28
42
|
], ModuleAccess.prototype, "role_code", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], ModuleAccess.prototype, "role_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.ManyToOne)(() => role_entity_1.Role, { nullable: true, onDelete: 'SET NULL' }),
|
|
49
|
+
(0, typeorm_1.JoinColumn)({ name: 'role_id', referencedColumnName: 'id' }),
|
|
50
|
+
__metadata("design:type", role_entity_1.Role)
|
|
51
|
+
], ModuleAccess.prototype, "role", void 0);
|
|
29
52
|
__decorate([
|
|
30
53
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
31
54
|
__metadata("design:type", Number)
|
|
@@ -34,6 +57,15 @@ __decorate([
|
|
|
34
57
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
35
58
|
__metadata("design:type", String)
|
|
36
59
|
], ModuleAccess.prototype, "action_type", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], ModuleAccess.prototype, "action_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.ManyToOne)(() => module_action_entity_1.ModuleAction, { nullable: true, onDelete: 'SET NULL' }),
|
|
66
|
+
(0, typeorm_1.JoinColumn)({ name: 'action_id', referencedColumnName: 'id' }),
|
|
67
|
+
__metadata("design:type", module_action_entity_1.ModuleAction)
|
|
68
|
+
], ModuleAccess.prototype, "action", void 0);
|
|
37
69
|
__decorate([
|
|
38
70
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
39
71
|
__metadata("design:type", String)
|
|
@@ -42,6 +74,24 @@ __decorate([
|
|
|
42
74
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
43
75
|
__metadata("design:type", String)
|
|
44
76
|
], ModuleAccess.prototype, "appcode", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], ModuleAccess.prototype, "app_id", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.ManyToOne)(() => app_master_entity_1.AppMaster, { nullable: true, onDelete: 'SET NULL' }),
|
|
83
|
+
(0, typeorm_1.JoinColumn)({ name: 'app_id', referencedColumnName: 'id' }),
|
|
84
|
+
__metadata("design:type", app_master_entity_1.AppMaster)
|
|
85
|
+
], ModuleAccess.prototype, "app", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], ModuleAccess.prototype, "enterprise_id", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.ManyToOne)(() => enterprise_entity_1.EnterpriseData, { nullable: true, onDelete: 'SET NULL' }),
|
|
92
|
+
(0, typeorm_1.JoinColumn)({ name: 'enterprise_id', referencedColumnName: 'id' }),
|
|
93
|
+
__metadata("design:type", enterprise_entity_1.EnterpriseData)
|
|
94
|
+
], ModuleAccess.prototype, "enterprise", void 0);
|
|
45
95
|
exports.ModuleAccess = ModuleAccess = __decorate([
|
|
46
96
|
(0, typeorm_1.Entity)({ name: 'sso_module_access' })
|
|
47
97
|
], ModuleAccess);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-access.entity.js","sourceRoot":"","sources":["../../../../src/module/module/entity/module-access.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"module-access.entity.js","sourceRoot":"","sources":["../../../../src/module/module/entity/module-access.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,mDAA6C;AAC7C,+DAA0D;AAC1D,iEAAsD;AACtD,iFAAgF;AAChF,2EAAgE;AAGzD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAwDxB,CAAA;AAxDY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,GAAE;;wCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACrC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACtB;AAIlB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IACrE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,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,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACzC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACzB;AAId;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IACpE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,6BAAS;yCAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAClB;AAItB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IACzE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,kCAAc;gDAAC;uBAvDhB,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;GACzB,YAAY,CAwDxB"}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ModuleAction = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const module_entity_1 = require("./module.entity");
|
|
14
15
|
let ModuleAction = class ModuleAction {
|
|
15
16
|
};
|
|
16
17
|
exports.ModuleAction = ModuleAction;
|
|
@@ -19,9 +20,14 @@ __decorate([
|
|
|
19
20
|
__metadata("design:type", Number)
|
|
20
21
|
], ModuleAction.prototype, "id", void 0);
|
|
21
22
|
__decorate([
|
|
22
|
-
(0, typeorm_1.Column)({ type: '
|
|
23
|
-
__metadata("design:type",
|
|
24
|
-
], ModuleAction.prototype, "
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ModuleAction.prototype, "module_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.ManyToOne)(() => module_entity_1.ModuleData, { nullable: true, onDelete: 'SET NULL' }),
|
|
28
|
+
(0, typeorm_1.JoinColumn)({ name: 'module_id', referencedColumnName: 'id' }),
|
|
29
|
+
__metadata("design:type", module_entity_1.ModuleData)
|
|
30
|
+
], ModuleAction.prototype, "module", void 0);
|
|
25
31
|
__decorate([
|
|
26
32
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
27
33
|
__metadata("design:type", String)
|
|
@@ -29,9 +35,8 @@ __decorate([
|
|
|
29
35
|
__decorate([
|
|
30
36
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
31
37
|
__metadata("design:type", String)
|
|
32
|
-
], ModuleAction.prototype, "
|
|
38
|
+
], ModuleAction.prototype, "action_code", void 0);
|
|
33
39
|
exports.ModuleAction = ModuleAction = __decorate([
|
|
34
|
-
(0, typeorm_1.Entity)({ name: '
|
|
35
|
-
(0, typeorm_1.Unique)(['module_code', 'action_type'])
|
|
40
|
+
(0, typeorm_1.Entity)({ name: 'sso_module_ucp' })
|
|
36
41
|
], ModuleAction);
|
|
37
42
|
//# sourceMappingURL=module-action.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-action.entity.js","sourceRoot":"","sources":["../../../../src/module/module/entity/module-action.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"module-action.entity.js","sourceRoot":"","sources":["../../../../src/module/module/entity/module-action.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,mDAA6C;AAGtC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAgBxB,CAAA;AAhBY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,GAAE;;wCACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACtB;AAIlB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAU,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAC,CAAC;IACnE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,0BAAU;4CAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACrC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACpC;uBAfT,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;GACtB,YAAY,CAgBxB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AppMaster } from 'src/module/meta/entity/app-master.entity';
|
|
1
2
|
export declare class ModuleData {
|
|
2
3
|
id: number;
|
|
3
4
|
name: string;
|
|
@@ -5,14 +6,11 @@ export declare class ModuleData {
|
|
|
5
6
|
wbs_code: string;
|
|
6
7
|
status: string;
|
|
7
8
|
module_level: string;
|
|
8
|
-
parent_id: number;
|
|
9
|
-
parent_code: string;
|
|
10
|
-
ui_visible: number;
|
|
11
9
|
entity_type: string;
|
|
12
10
|
title: string;
|
|
13
11
|
component_name: string;
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
app_id: number;
|
|
13
|
+
app: AppMaster;
|
|
16
14
|
type: string;
|
|
17
15
|
level_type: string;
|
|
18
16
|
}
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ModuleData = void 0;
|
|
13
|
+
const app_master_entity_1 = require("../../meta/entity/app-master.entity");
|
|
13
14
|
const typeorm_1 = require("typeorm");
|
|
14
15
|
let ModuleData = class ModuleData {
|
|
15
16
|
};
|
|
@@ -38,18 +39,6 @@ __decorate([
|
|
|
38
39
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
39
40
|
__metadata("design:type", String)
|
|
40
41
|
], ModuleData.prototype, "module_level", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], ModuleData.prototype, "parent_id", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], ModuleData.prototype, "parent_code", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], ModuleData.prototype, "ui_visible", void 0);
|
|
53
42
|
__decorate([
|
|
54
43
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
55
44
|
__metadata("design:type", String)
|
|
@@ -63,13 +52,14 @@ __decorate([
|
|
|
63
52
|
__metadata("design:type", String)
|
|
64
53
|
], ModuleData.prototype, "component_name", void 0);
|
|
65
54
|
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: '
|
|
67
|
-
__metadata("design:type",
|
|
68
|
-
], ModuleData.prototype, "
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], ModuleData.prototype, "app_id", void 0);
|
|
69
58
|
__decorate([
|
|
70
|
-
(0, typeorm_1.
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
(0, typeorm_1.ManyToOne)(() => app_master_entity_1.AppMaster, { nullable: true, onDelete: 'SET NULL' }),
|
|
60
|
+
(0, typeorm_1.JoinColumn)({ name: 'app_id', referencedColumnName: 'id' }),
|
|
61
|
+
__metadata("design:type", app_master_entity_1.AppMaster)
|
|
62
|
+
], ModuleData.prototype, "app", void 0);
|
|
73
63
|
__decorate([
|
|
74
64
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
75
65
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.entity.js","sourceRoot":"","sources":["../../../../src/module/module/entity/module.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"module.entity.js","sourceRoot":"","sources":["../../../../src/module/module/entity/module.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2EAAqE;AACrE,qCAAwF;AAGjF,IAAM,UAAU,GAAhB,MAAM,UAAU;CAwCtB,CAAA;AAxCY,gCAAU;AAErB;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;sCAC7B;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC5C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACrC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,C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,UAAU;IADtB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;GAClB,UAAU,CAwCtB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class
|
|
1
|
+
export declare class ModuleAccessModule {
|
|
2
2
|
}
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.ModuleAccessModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
12
|
const module_entity_1 = require("./entity/module.entity");
|
|
@@ -23,11 +23,10 @@ const user_role_mapping_entity_1 = require("../user/entity/user-role-mapping.ent
|
|
|
23
23
|
const user_module_1 = require("../user/user.module");
|
|
24
24
|
const role_entity_1 = require("../user/entity/role.entity");
|
|
25
25
|
const module_access_entity_1 = require("./entity/module-access.entity");
|
|
26
|
-
|
|
27
|
-
let ModuleModule = class ModuleModule {
|
|
26
|
+
let ModuleAccessModule = class ModuleAccessModule {
|
|
28
27
|
};
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
28
|
+
exports.ModuleAccessModule = ModuleAccessModule;
|
|
29
|
+
exports.ModuleAccessModule = ModuleAccessModule = __decorate([
|
|
31
30
|
(0, common_1.Module)({
|
|
32
31
|
imports: [
|
|
33
32
|
typeorm_1.TypeOrmModule.forFeature([
|
|
@@ -40,7 +39,6 @@ exports.ModuleModule = ModuleModule = __decorate([
|
|
|
40
39
|
]),
|
|
41
40
|
utils_module_1.UtilsModule,
|
|
42
41
|
user_module_1.UserModule,
|
|
43
|
-
listmaster_module_1.ListMasterModule,
|
|
44
42
|
],
|
|
45
43
|
controllers: [menu_controller_1.MenuController, module_access_controller_1.ModuleAccessController],
|
|
46
44
|
providers: [
|
|
@@ -51,5 +49,5 @@ exports.ModuleModule = ModuleModule = __decorate([
|
|
|
51
49
|
],
|
|
52
50
|
exports: [module_access_service_1.ModuleAccessService, menu_service_1.MenuService],
|
|
53
51
|
})
|
|
54
|
-
],
|
|
52
|
+
], ModuleAccessModule);
|
|
55
53
|
//# sourceMappingURL=module.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.module.js","sourceRoot":"","sources":["../../../src/module/module/module.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,0DAAoD;AACpD,2DAAuD;AACvD,wEAA6D;AAC7D,2EAAsE;AACtE,kEAA8D;AAC9D,yDAAqD;AACrD,kEAA8D;AAC9D,sDAAgD;AAChD,oFAA+E;AAC/E,oFAA+E;AAC/E,sFAA0E;AAC1E,qDAAiD;AACjD,4DAAkD;AAClD,wEAA6D;
|
|
1
|
+
{"version":3,"file":"module.module.js","sourceRoot":"","sources":["../../../src/module/module/module.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,0DAAoD;AACpD,2DAAuD;AACvD,wEAA6D;AAC7D,2EAAsE;AACtE,kEAA8D;AAC9D,yDAAqD;AACrD,kEAA8D;AAC9D,sDAAgD;AAChD,oFAA+E;AAC/E,oFAA+E;AAC/E,sFAA0E;AAC1E,qDAAiD;AACjD,4DAAkD;AAClD,wEAA6D;AAwBtD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAC9B,CAAA;AADY,gDAAkB;6BAAlB,kBAAkB;IAtB9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,0BAAU;gBACV,mCAAY;gBACZ,mCAAY;gBACZ,sBAAQ;gBACR,0CAAe;gBACf,kBAAI;aACL,CAAC;YACF,0BAAW;YACX,wBAAU;SACX;QACD,WAAW,EAAE,CAAC,gCAAc,EAAE,iDAAsB,CAAC;QACrD,SAAS,EAAE;YACT,2CAAmB;YACnB,0BAAW;YACX,gCAAc;YACd,iDAAsB;SACvB;QACD,OAAO,EAAE,CAAC,2CAAmB,EAAC,0BAAW,CAAC;KAC3C,CAAC;GACW,kBAAkB,CAC9B"}
|
|
@@ -8,8 +8,8 @@ export declare class MenuRepository extends Repository<MenuData> {
|
|
|
8
8
|
private readonly reflectionHelper;
|
|
9
9
|
private readonly moduleAccessRepo;
|
|
10
10
|
constructor(dataSource: DataSource, menuData: Repository<MenuData>, reflectionHelper: ReflectionHelper, moduleAccessRepo: Repository<ModuleAccess>);
|
|
11
|
-
getUserRoles(userId: number,
|
|
12
|
-
getAccessibleModules(roleIds: number[],
|
|
13
|
-
getMenuItems(
|
|
14
|
-
resolveUserRoles(userId: number,
|
|
11
|
+
getUserRoles(userId: number, app_id: number): Promise<number[]>;
|
|
12
|
+
getAccessibleModules(roleIds: number[], app_id: number): Promise<number[]>;
|
|
13
|
+
getMenuItems(modules: number[], app_id: number, levelType: string): Promise<any[]>;
|
|
14
|
+
resolveUserRoles(userId: number, app_id: number, levelType: string, levelId: number): Promise<number[]>;
|
|
15
15
|
}
|
|
@@ -27,46 +27,37 @@ let MenuRepository = class MenuRepository extends typeorm_1.Repository {
|
|
|
27
27
|
this.reflectionHelper = reflectionHelper;
|
|
28
28
|
this.moduleAccessRepo = moduleAccessRepo;
|
|
29
29
|
}
|
|
30
|
-
async getUserRoles(userId,
|
|
30
|
+
async getUserRoles(userId, app_id) {
|
|
31
31
|
const userRoleMappingRepo = this.reflectionHelper.getRepoService('UserRoleMapping');
|
|
32
32
|
const roles = await userRoleMappingRepo
|
|
33
33
|
.createQueryBuilder('urm')
|
|
34
34
|
.innerJoin('sso_role', 'role', 'role.id = urm.role_id')
|
|
35
35
|
.select('urm.role_id', 'role_id')
|
|
36
36
|
.where('urm.user_id = :userId', { userId })
|
|
37
|
-
.andWhere('role.
|
|
37
|
+
.andWhere('role.app_id = :app_id', { app_id })
|
|
38
38
|
.getRawMany();
|
|
39
39
|
return roles.map((r) => r.role_id);
|
|
40
40
|
}
|
|
41
|
-
async getAccessibleModules(roleIds,
|
|
42
|
-
const roleRepo = this.reflectionHelper.getRepoService('Role');
|
|
43
|
-
const roleCodes = await roleRepo
|
|
44
|
-
.createQueryBuilder('role')
|
|
45
|
-
.select('role.code', 'code')
|
|
46
|
-
.where('role.id IN (:...roleIds)', { roleIds })
|
|
47
|
-
.getRawMany();
|
|
48
|
-
const codes = roleCodes.map((r) => r.code);
|
|
49
|
-
if (codes.length === 0)
|
|
50
|
-
return [];
|
|
41
|
+
async getAccessibleModules(roleIds, app_id) {
|
|
51
42
|
const modules = await this.moduleAccessRepo
|
|
52
43
|
.createQueryBuilder('moduleAccess')
|
|
53
|
-
.select('moduleAccess.
|
|
54
|
-
.where('moduleAccess.
|
|
44
|
+
.select('moduleAccess.module_id')
|
|
45
|
+
.where('moduleAccess.role_id IN (:...roleIds)', { roleIds })
|
|
55
46
|
.andWhere('moduleAccess.access_flag > 0')
|
|
56
|
-
.andWhere('
|
|
47
|
+
.andWhere('moduleAccess.app_id = :app_id', { app_id: app_id })
|
|
57
48
|
.getMany();
|
|
58
|
-
return Array.from(new Set(modules.map((module) => module.
|
|
49
|
+
return Array.from(new Set(modules.map((module) => module.module_id)));
|
|
59
50
|
}
|
|
60
|
-
async getMenuItems(
|
|
51
|
+
async getMenuItems(modules, app_id, levelType) {
|
|
61
52
|
return await this.menuData
|
|
62
53
|
.createQueryBuilder('menu')
|
|
63
54
|
.leftJoin('sso_module', 'module', `
|
|
64
55
|
menu.module_code = module.module_code
|
|
65
|
-
AND
|
|
56
|
+
AND menu.app_id = module.app_id
|
|
66
57
|
AND menu.level_type = module.level_type
|
|
67
58
|
`)
|
|
68
|
-
.where('menu.
|
|
69
|
-
.andWhere('
|
|
59
|
+
.where('menu.module_id IN (:...modules)', { modules: modules })
|
|
60
|
+
.andWhere('menu.app_id = :app_id', { app_id: app_id })
|
|
70
61
|
.andWhere('menu.level_type = :levelType', { levelType })
|
|
71
62
|
.andWhere('menu.ui_visible = 1')
|
|
72
63
|
.select([
|
|
@@ -74,12 +65,11 @@ let MenuRepository = class MenuRepository extends typeorm_1.Repository {
|
|
|
74
65
|
'module.component_name AS component',
|
|
75
66
|
'module.title AS title',
|
|
76
67
|
'module.entity_type AS entity_type',
|
|
77
|
-
'module.type AS type'
|
|
78
|
-
'module.ui_config AS ui_config',
|
|
68
|
+
'module.type AS type'
|
|
79
69
|
])
|
|
80
70
|
.getRawMany();
|
|
81
71
|
}
|
|
82
|
-
async resolveUserRoles(userId,
|
|
72
|
+
async resolveUserRoles(userId, app_id, levelType, levelId) {
|
|
83
73
|
const repo = this.reflectionHelper.getRepoService('UserRoleMapping');
|
|
84
74
|
if (userId) {
|
|
85
75
|
const userRepo = this.reflectionHelper.getRepoService('UserData');
|
|
@@ -91,7 +81,7 @@ let MenuRepository = class MenuRepository extends typeorm_1.Repository {
|
|
|
91
81
|
const getUserUrm = await repo.findOne({
|
|
92
82
|
where: {
|
|
93
83
|
user_id: userId,
|
|
94
|
-
|
|
84
|
+
app_id: app_id,
|
|
95
85
|
},
|
|
96
86
|
});
|
|
97
87
|
if (getUserDetails &&
|
|
@@ -107,7 +97,7 @@ let MenuRepository = class MenuRepository extends typeorm_1.Repository {
|
|
|
107
97
|
.where('urm.user_id = :userId', { userId: userId })
|
|
108
98
|
.andWhere('urm.level_type = :levelType', { levelType })
|
|
109
99
|
.andWhere('urm.level_id = :levelId', { levelId: levelId })
|
|
110
|
-
.andWhere('role.
|
|
100
|
+
.andWhere('role.app_id = :app_id', { app_id: app_id })
|
|
111
101
|
.getRawMany();
|
|
112
102
|
if (roles.length)
|
|
113
103
|
return roles.map((r) => r.urm_role_id);
|
|
@@ -128,7 +118,7 @@ let MenuRepository = class MenuRepository extends typeorm_1.Repository {
|
|
|
128
118
|
.where('urm.user_id = :userId', { userId })
|
|
129
119
|
.andWhere('urm.level_type = :levelType', { levelType: 'BRN' })
|
|
130
120
|
.andWhere('urm.level_id = :levelId', { levelId: brandId })
|
|
131
|
-
.andWhere('role.
|
|
121
|
+
.andWhere('role.app_id = :app_id', { app_id: app_id })
|
|
132
122
|
.getRawMany();
|
|
133
123
|
if (roles.length)
|
|
134
124
|
return roles.map((r) => r.urm_role_id);
|
|
@@ -141,7 +131,7 @@ let MenuRepository = class MenuRepository extends typeorm_1.Repository {
|
|
|
141
131
|
.where('urm.user_id = :userId', { userId })
|
|
142
132
|
.andWhere('urm.level_type = :levelType', { levelType: 'ORG' })
|
|
143
133
|
.andWhere('urm.level_id = :levelId', { levelId: orgId })
|
|
144
|
-
.andWhere('role.
|
|
134
|
+
.andWhere('role.app_id = :app_id', { app_id: app_id })
|
|
145
135
|
.getRawMany();
|
|
146
136
|
if (roles.length)
|
|
147
137
|
return roles.map((r) => r.urm_role_id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.repository.js","sourceRoot":"","sources":["../../../../src/module/module/repository/menu.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAiD;AACjD,uDAAiD;AACjD,yEAA8D;AAC9D,6CAAmD;AACnD,gGAAoF;AAG7E,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,oBAAoB;IACtD,YACmB,UAAsB,EACM,QAA8B,EAC1D,gBAAkC,EAElC,gBAA0C;QAE3D,KAAK,CAAC,sBAAQ,EAAE,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;QANjC,eAAU,GAAV,UAAU,CAAY;QACM,aAAQ,GAAR,QAAQ,CAAsB;QAC1D,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,qBAAgB,GAAhB,gBAAgB,CAA0B;IAG7D,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"menu.repository.js","sourceRoot":"","sources":["../../../../src/module/module/repository/menu.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC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AC;IACZ,CAAC;CACF,CAAA;AArKY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,0BAAgB,EAAC,sBAAQ,CAAC,CAAA;IAE1B,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;qCAHF,oBAAU;QACgB,oBAAU;QAC9B,4CAAgB;QAEhB,oBAAU;GANpC,cAAc,CAqK1B"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { Repository
|
|
1
|
+
import { Repository } from 'typeorm';
|
|
2
2
|
import { Role } from 'src/module/user/entity/role.entity';
|
|
3
3
|
import { ModuleAccess } from '../entity/module-access.entity';
|
|
4
4
|
import { ModuleAction } from '../entity/module-action.entity';
|
|
5
5
|
import { ModuleData } from '../entity/module.entity';
|
|
6
|
+
import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
|
|
6
7
|
export declare class ModuleAccessRepository {
|
|
7
8
|
private readonly roleRepo;
|
|
8
9
|
private readonly moduleRepo;
|
|
9
10
|
private readonly moduleAccessRepo;
|
|
10
11
|
private readonly moduleActionRepo;
|
|
11
|
-
private readonly
|
|
12
|
-
constructor(roleRepo: Repository<Role>, moduleRepo: Repository<ModuleData>, moduleAccessRepo: Repository<ModuleAccess>, moduleActionRepo: Repository<ModuleAction>,
|
|
12
|
+
private readonly reflectionHelper;
|
|
13
|
+
constructor(roleRepo: Repository<Role>, moduleRepo: Repository<ModuleData>, moduleAccessRepo: Repository<ModuleAccess>, moduleActionRepo: Repository<ModuleAction>, reflectionHelper: ReflectionHelper);
|
|
13
14
|
getRoles({ appcode, level_type, level_id, }: {
|
|
14
15
|
appcode: string;
|
|
15
16
|
level_type?: string;
|
|
16
17
|
level_id?: number;
|
|
17
18
|
}): Promise<{
|
|
18
|
-
label:
|
|
19
|
-
value:
|
|
19
|
+
label: string;
|
|
20
|
+
value: number;
|
|
20
21
|
}[]>;
|
|
21
22
|
getModules({ appcode, loggedInUser, }: {
|
|
22
23
|
appcode: string;
|
|
@@ -39,10 +40,9 @@ export declare class ModuleAccessRepository {
|
|
|
39
40
|
getModuleUIConfig(moduleCode: string, roleIds: number[]): Promise<{
|
|
40
41
|
entity_type: string;
|
|
41
42
|
title: string;
|
|
42
|
-
ui_config: JSON;
|
|
43
43
|
action: string[];
|
|
44
44
|
}>;
|
|
45
|
-
getModuleAccessByRoles(roleIds: number[],
|
|
45
|
+
getModuleAccessByRoles(roleIds: number[], app_id: number): Promise<{
|
|
46
46
|
action: any;
|
|
47
47
|
access: any;
|
|
48
48
|
code: any;
|