rez_core 6.5.26 → 6.5.28
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 -97
- 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.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 -20
- package/dist/module/user/service/user.service.js +44 -56
- 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 -3
- 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 -232
- 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 +3 -2
- 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 +64 -91
- 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/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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-relation.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-relation.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entity-relation.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-relation.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAAkE;AAClE,qFAAgF;AAChF,yFAAoF;AAG7E,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+CAAiB;IAC1D,YAAoB,gBAAwC,EACxC,wBAAkD;QACpE,KAAK,EAAE,CAAC;QAFU,qBAAgB,GAAhB,gBAAgB,CAAwB;QACxC,6BAAwB,GAAxB,wBAAwB,CAA0B;IAEtE,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,UAAkB,EAClB,YAAiB,EACjB,WAAW,GAAG,KAAK;QAEnB,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;QAElF,MAAM,SAAS,GAAG,MAAM,kBAAkB;aACvC,kBAAkB,CAAC,IAAI,CAAC;aACxB,MAAM,CAAC;YACN,kBAAkB;YAClB,gCAAgC;YAChC,aAAa;SACd,CAAC;aACD,KAAK,CAAC,qCAAqC,EAAE,EAAE,UAAU,EAAE,CAAC;aAC5D,QAAQ,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,aAAa,EAAE,CAAC;aAC5E,UAAU,EAAE,CAAC;QAEhB,IAAI,WAAW,EAAE,CAAC;YAChB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,2BAA2B,CAAC,UAAU,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;YAE/G,IAAI,MAAM,EAAE,CAAC;gBACX,SAAS,CAAC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EntityService<BaseEntity> {
|
|
|
30
30
|
updateEntity(entityData: BaseEntity, loggedInUser: UserData, appcode?: string): Promise<any>;
|
|
31
31
|
private getMaxSequenceNumber;
|
|
32
32
|
getSingleResolvedData(loggedInUser: UserData, entityData: any, entityType: string): Promise<any>;
|
|
33
|
-
getResolvedEntityData(entityType: string, entityId: number, loggedInUser: UserData
|
|
33
|
+
getResolvedEntityData(entityType: string, entityId: number, loggedInUser: UserData): Promise<any>;
|
|
34
34
|
getResolvedEntityDataByDataSource(entityType: string, entityId: number, loggedInUser: UserData): Promise<any>;
|
|
35
35
|
}
|
|
@@ -49,17 +49,15 @@ let EntityServiceImpl = class EntityServiceImpl {
|
|
|
49
49
|
const statusList = await listMasterItemsRepo.findOne({
|
|
50
50
|
where: {
|
|
51
51
|
code: global_constant_1.STATUS_ACTIVE,
|
|
52
|
-
|
|
52
|
+
enterprise_id: loggedInUser?.enterprise_id || 0,
|
|
53
53
|
},
|
|
54
54
|
select: ['id'],
|
|
55
55
|
});
|
|
56
56
|
console.log('Status List:', statusList);
|
|
57
|
-
console.log(`status_code,${global_constant_1.STATUS_ACTIVE},statusList, ${loggedInUser?.
|
|
57
|
+
console.log(`status_code,${global_constant_1.STATUS_ACTIVE},statusList, ${loggedInUser?.enterprise_id}`);
|
|
58
58
|
entityData.created_date = new Date();
|
|
59
59
|
if (loggedInUser) {
|
|
60
60
|
entityData.created_by = loggedInUser.id;
|
|
61
|
-
if (!entityData.organization_id)
|
|
62
|
-
entityData.organization_id = loggedInUser.organization_id;
|
|
63
61
|
if (!entityData.enterprise_id)
|
|
64
62
|
entityData.enterprise_id = loggedInUser.enterprise_id;
|
|
65
63
|
if (!entityData.level_type)
|
|
@@ -157,8 +155,6 @@ let EntityServiceImpl = class EntityServiceImpl {
|
|
|
157
155
|
entityData.modified_date = new Date();
|
|
158
156
|
if (loggedInUser) {
|
|
159
157
|
entityData.modified_by = loggedInUser.id;
|
|
160
|
-
if (!entityData.organization_id && entityData.entity_type !== 'ORG')
|
|
161
|
-
entityData.organization_id = loggedInUser.organization_id;
|
|
162
158
|
if (!entityData.enterprise_id)
|
|
163
159
|
entityData.enterprise_id = loggedInUser.enterprise_id;
|
|
164
160
|
}
|
|
@@ -184,14 +180,14 @@ let EntityServiceImpl = class EntityServiceImpl {
|
|
|
184
180
|
async getSingleResolvedData(loggedInUser, entityData, entityType) {
|
|
185
181
|
return this.resolverService.getResolvedData(loggedInUser, entityData, entityType);
|
|
186
182
|
}
|
|
187
|
-
async getResolvedEntityData(entityType, entityId, loggedInUser
|
|
183
|
+
async getResolvedEntityData(entityType, entityId, loggedInUser) {
|
|
188
184
|
const entityData = await this.entityMasterService.getEntityData(entityType, loggedInUser);
|
|
189
185
|
const repoService = this.reflectionHelper.getRepoService(entityData.entity_data_class);
|
|
190
186
|
if (!repoService) {
|
|
191
187
|
throw new Error(`Repository service not found for entityType: ${entityType}`);
|
|
192
188
|
}
|
|
193
189
|
const data = await repoService.findOne({ where: { id: entityId } });
|
|
194
|
-
return this.resolverService.getResolvedData(loggedInUser, data, entityType
|
|
190
|
+
return this.resolverService.getResolvedData(loggedInUser, data, entityType);
|
|
195
191
|
}
|
|
196
192
|
async getResolvedEntityDataByDataSource(entityType, entityId, loggedInUser) {
|
|
197
193
|
const entityData = await this.entityMasterService.getEntityData(entityType, loggedInUser);
|
|
@@ -204,27 +200,27 @@ let EntityServiceImpl = class EntityServiceImpl {
|
|
|
204
200
|
};
|
|
205
201
|
exports.EntityServiceImpl = EntityServiceImpl;
|
|
206
202
|
__decorate([
|
|
207
|
-
(0, common_1.Inject)(),
|
|
203
|
+
(0, common_1.Inject)((0, common_1.forwardRef)(() => entity_master_service_1.EntityMasterService)),
|
|
208
204
|
__metadata("design:type", entity_master_service_1.EntityMasterService)
|
|
209
205
|
], EntityServiceImpl.prototype, "entityMasterService", void 0);
|
|
210
206
|
__decorate([
|
|
211
|
-
(0, common_1.Inject)(),
|
|
207
|
+
(0, common_1.Inject)((0, common_1.forwardRef)(() => entity_table_column_service_1.EntityTableColumnService)),
|
|
212
208
|
__metadata("design:type", entity_table_column_service_1.EntityTableColumnService)
|
|
213
209
|
], EntityServiceImpl.prototype, "entityTableColumnService", void 0);
|
|
214
210
|
__decorate([
|
|
215
|
-
(0, common_1.Inject)(),
|
|
211
|
+
(0, common_1.Inject)((0, common_1.forwardRef)(() => entity_table_service_1.EntityTableService)),
|
|
216
212
|
__metadata("design:type", entity_table_service_1.EntityTableService)
|
|
217
213
|
], EntityServiceImpl.prototype, "entityTableService", void 0);
|
|
218
214
|
__decorate([
|
|
219
|
-
(0, common_1.Inject)(),
|
|
215
|
+
(0, common_1.Inject)((0, common_1.forwardRef)(() => reflection_helper_service_1.ReflectionHelper)),
|
|
220
216
|
__metadata("design:type", reflection_helper_service_1.ReflectionHelper)
|
|
221
217
|
], EntityServiceImpl.prototype, "reflectionHelper", void 0);
|
|
222
218
|
__decorate([
|
|
223
|
-
(0, common_1.Inject)(),
|
|
219
|
+
(0, common_1.Inject)((0, common_1.forwardRef)(() => loggingUtil_service_1.LoggingService)),
|
|
224
220
|
__metadata("design:type", loggingUtil_service_1.LoggingService)
|
|
225
221
|
], EntityServiceImpl.prototype, "loggingService", void 0);
|
|
226
222
|
__decorate([
|
|
227
|
-
(0, common_1.Inject)(),
|
|
223
|
+
(0, common_1.Inject)((0, common_1.forwardRef)(() => entity_validation_service_1.EntityValidationService)),
|
|
228
224
|
__metadata("design:type", entity_validation_service_1.EntityValidationService)
|
|
229
225
|
], EntityServiceImpl.prototype, "entityValidationService", void 0);
|
|
230
226
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-service-impl.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-service-impl.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAAwG;AAExG,mEAA8D;AAC9D,gGAAoF;AAEpF,oFAA4E;AAE5E,iEAA4D;AAC5D,+EAAyE;AACzE,uEAA2F;AAC3F,2EAAsE;AACtE,yDAAqD;AAG9C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;
|
|
1
|
+
{"version":3,"file":"entity-service-impl.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-service-impl.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAAwG;AAExG,mEAA8D;AAC9D,gGAAoF;AAEpF,oFAA4E;AAE5E,iEAA4D;AAC5D,+EAAyE;AACzE,uEAA2F;AAC3F,2EAAsE;AACtE,yDAAqD;AAG9C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAsB5B,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAA6B,EAC7B,OAA8B,EAC9B,OAAgB;QAEhB,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;YAC5B,MAAM,IAAI,4BAAmB,CAAC,uBAAuB,CAAC,CAAC;QACzD,CAAC;QACD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAC/D,UAAU,CAAC,WAAW,EACtB,YAAY,CACb,CAAC;QAEF,MAAM,gBAAgB,GACpB,MAAM,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CACnD,UAAU,EACV,YAAY,EACZ,YAAY,CACb,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;QACpD,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpD,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,mBAAmB;gBAC5B,MAAM,EAAE,gBAAgB;aACzB,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,GAAG,OAAO;YAClB,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,iBAAiB,CAAC;YACvD,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;QAEzE,IAAI,CAAC,IAAI,EAAE,C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AA,mBAAU,EAAC,GAAG,EAAE,CAAC,mDAAuB,CAAC,CAAC;8BACN,mDAAuB;kEAAC;AAGjD;IADlB,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC,CAAC;8BACN,kCAAe;0DAAC;4BApBzC,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;GACA,iBAAiB,CA0X7B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EntityTableRepository } from '../repository/entity-table.repository';
|
|
2
2
|
import { EntityTableColumnRepository } from '../repository/entity-table-column.repository';
|
|
3
|
+
import { EntityTableDto } from '../dto/entity-table.dto';
|
|
3
4
|
import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
|
|
4
5
|
import { SavedFilterRepositoryService } from 'src/module/filter/repository/saved-filter.repository';
|
|
5
6
|
export declare class EntityTableService {
|
|
@@ -11,6 +12,6 @@ export declare class EntityTableService {
|
|
|
11
12
|
getEntityData(mappedEntityType: string | null, loggedInUser: any): Promise<import("../entity/entity-table.entity").EntityTable>;
|
|
12
13
|
findByEntityTypeAndListType(entityType: string, listType: string): Promise<import("../entity/entity-table.entity").EntityTable | null>;
|
|
13
14
|
findByEntityTypeAndListTypeAndDisplayType(entityType: string, listType: string, displayType: string, enterprise_id: number): Promise<import("../entity/entity-table.entity").EntityTable | null>;
|
|
14
|
-
getTableMetaDataForListing(entityType: string, listType: string, loggedInUser: any): Promise<
|
|
15
|
-
getTableMetaData(entityType: string, listType: string, displayType: string, loggedInUser: any): Promise<
|
|
15
|
+
getTableMetaDataForListing(entityType: string, listType: string, loggedInUser: any): Promise<EntityTableDto>;
|
|
16
|
+
getTableMetaData(entityType: string, listType: string, displayType: string, loggedInUser: any): Promise<EntityTableDto>;
|
|
16
17
|
}
|
|
@@ -48,24 +48,29 @@ let EntityTableService = class EntityTableService {
|
|
|
48
48
|
return await this.getTableMetaData(entityType, listType, global_constant_1.DISPLAY_LIST, loggedInUser);
|
|
49
49
|
}
|
|
50
50
|
async getTableMetaData(entityType, listType, displayType, loggedInUser) {
|
|
51
|
-
|
|
52
|
-
entityTableDto
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
51
|
+
const entityTable = await this.findByEntityTypeAndListTypeAndDisplayType(entityType, listType, displayType, loggedInUser?.enterprise_id);
|
|
52
|
+
const entityTableDto = entityTable;
|
|
53
|
+
if (entityTable) {
|
|
54
|
+
entityTableDto.column_list =
|
|
55
|
+
await this.entityTableColumnRepository.findByParentIdAndParentType(entityTable.id, entityTable.entity_type, loggedInUser.enterprise_id);
|
|
56
|
+
entityTableDto.operation_list = {
|
|
57
|
+
text: await this.listMasterService.getDropdownOptions('OPT', {}, [], loggedInUser),
|
|
58
|
+
number: await this.listMasterService.getDropdownOptions('OPN', {}, [], loggedInUser),
|
|
59
|
+
date: await this.listMasterService.getDropdownOptions('OPD', {}, [], loggedInUser),
|
|
60
|
+
select: await this.listMasterService.getDropdownOptions('OPS', {}, [], loggedInUser),
|
|
61
|
+
multiselect: await this.listMasterService.getDropdownOptions('OPM', {}, [], loggedInUser),
|
|
62
|
+
year: await this.listMasterService.getDropdownOptions('OPY', {}, [], loggedInUser),
|
|
63
|
+
};
|
|
64
|
+
entityTableDto.default_filter =
|
|
65
|
+
await this.savedFilterRepoService.getDefaultFilterByEntityType(entityTable.list_type);
|
|
66
|
+
if (loggedInUser.id) {
|
|
67
|
+
entityTableDto.saved_filter =
|
|
68
|
+
await this.savedFilterRepoService.getSavedFiltersByUserIdAndEntityType(loggedInUser, entityTable.list_type);
|
|
69
|
+
}
|
|
70
|
+
if (loggedInUser.id) {
|
|
71
|
+
entityTableDto.shared_filter =
|
|
72
|
+
await this.savedFilterRepoService.getSharedFiltersByLevelTypeAndLevelId(loggedInUser, entityTable.list_type);
|
|
73
|
+
}
|
|
69
74
|
}
|
|
70
75
|
return entityTableDto;
|
|
71
76
|
}
|
|
@@ -75,7 +80,6 @@ exports.EntityTableService = EntityTableService = __decorate([
|
|
|
75
80
|
(0, common_1.Injectable)(),
|
|
76
81
|
__param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => 'ListMasterService'))),
|
|
77
82
|
__param(2, (0, common_1.Inject)('ListMasterService')),
|
|
78
|
-
__param(3, (0, common_1.Inject)((0, common_1.forwardRef)(() => saved_filter_repository_1.SavedFilterRepositoryService))),
|
|
79
83
|
__metadata("design:paramtypes", [entity_table_repository_1.EntityTableRepository,
|
|
80
84
|
entity_table_column_repository_1.EntityTableColumnRepository,
|
|
81
85
|
list_master_service_1.ListMasterService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-table.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-table.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,mFAA8E;AAC9E,iGAA2F;AAE3F,uEAAiE;AACjE,sFAAsF;AACtF,6FAAoG;AAG7F,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YACU,qBAA4C,EACnC,2BAAwD,
|
|
1
|
+
{"version":3,"file":"entity-table.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-table.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,mFAA8E;AAC9E,iGAA2F;AAE3F,uEAAiE;AACjE,sFAAsF;AACtF,6FAAoG;AAG7F,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YACU,qBAA4C,EACnC,2BAAwD,EAIxD,iBAAoC,EAEpC,sBAAoD;QAP7D,0BAAqB,GAArB,qBAAqB,CAAuB;QACnC,gCAA2B,GAA3B,2BAA2B,CAA6B;QAIxD,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,2BAAsB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MAAM,IAAI,CAAC,sBAAsB,CAAC,qCAAqC,CACrE,YAAY,EACZ,WAAW,CAAC,SAAS,CACtB,CAAC;YACN,CAAC;QACH,CAAC;QAED,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AAnJY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAA;IAC7C,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAJG,+CAAqB;QACN,4DAA2B;QAIrC,uCAAiB;QAEZ,sDAA4B;GAT5D,kBAAkB,CAmJ9B"}
|
|
@@ -15,7 +15,7 @@ export declare class ResolverService {
|
|
|
15
15
|
private mediaDataService;
|
|
16
16
|
constructor(listMasterService: ListMasterService, moduleRef: ModuleRef, attributeMasterRepo: AttributeMasterRepository, reflectionHelper: ReflectionHelper, entityMasterRepo: EntityMasterRepository, entityManger: EntityManager);
|
|
17
17
|
private getMediaDataService;
|
|
18
|
-
getResolvedData(loggedInUser: any, entityData: any, entityType: string
|
|
18
|
+
getResolvedData(loggedInUser: any, entityData: any, entityType: string): Promise<any>;
|
|
19
19
|
getResolvedValue(loggedInUser: UserData, attrKey: string, rawValue: any, entityType: string): Promise<any>;
|
|
20
20
|
getResolvedId(loggedInUser: UserData, attrKey: string, displayValue: any, entityType: string): Promise<any>;
|
|
21
21
|
}
|
|
@@ -39,7 +39,7 @@ let ResolverService = class ResolverService {
|
|
|
39
39
|
}
|
|
40
40
|
return this.mediaDataService;
|
|
41
41
|
}
|
|
42
|
-
async getResolvedData(loggedInUser, entityData, entityType
|
|
42
|
+
async getResolvedData(loggedInUser, entityData, entityType) {
|
|
43
43
|
const attributeItems = await this.attributeMasterRepo.findAttributesByMappedEntityType(entityType, loggedInUser);
|
|
44
44
|
const resolvedEntityData = { ...entityData };
|
|
45
45
|
for (const attr of attributeItems) {
|
|
@@ -71,8 +71,7 @@ let ResolverService = class ResolverService {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
else if (attr.element_type === 'date' ||
|
|
74
|
-
attr.element_type === 'datetime'
|
|
75
|
-
&& !format_disable) {
|
|
74
|
+
attr.element_type === 'datetime') {
|
|
76
75
|
const dateValue = moment(codeValue, "DD-MM-YYYY", true).utcOffset('+05:30');
|
|
77
76
|
if (dateValue.isValid()) {
|
|
78
77
|
resolvedEntityData[field] =
|
|
@@ -85,8 +84,7 @@ let ResolverService = class ResolverService {
|
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
86
|
else if ((attr.element_type === 'upload' || attr.element_type === 'image') &&
|
|
88
|
-
typeof resolvedEntityData[field] !== 'object'
|
|
89
|
-
&& !format_disable) {
|
|
87
|
+
typeof resolvedEntityData[field] !== 'object') {
|
|
90
88
|
const mediaService = await this.getMediaDataService();
|
|
91
89
|
const uploadData = await mediaService.getMediaDownloadUrl(resolvedEntityData[field], loggedInUser);
|
|
92
90
|
resolvedEntityData[field] = uploadData;
|
|
@@ -206,7 +204,6 @@ exports.ResolverService = ResolverService;
|
|
|
206
204
|
exports.ResolverService = ResolverService = __decorate([
|
|
207
205
|
(0, common_1.Injectable)(),
|
|
208
206
|
__param(0, (0, common_1.Inject)('ListMasterService')),
|
|
209
|
-
__param(3, (0, common_1.Inject)((0, common_1.forwardRef)(() => reflection_helper_service_1.ReflectionHelper))),
|
|
210
207
|
__param(4, (0, common_1.Inject)((0, common_1.forwardRef)(() => entity_master_repository_1.EntityMasterRepository))),
|
|
211
208
|
__metadata("design:paramtypes", [list_master_service_1.ListMasterService,
|
|
212
209
|
core_1.ModuleRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/resolver.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAEhE,iCAAiC;AACjC,sFAAsF;AACtF,uCAAyC;AACzC,2FAAsF;AACtF,gGAA+E;AAC/E,qFAAgF;AAChF,qCAAwC;AAGjC,IAAM,eAAe,GAArB,MAAM,eAAe;IAG1B,YAEmB,iBAAoC,EACpC,SAAoB,EACpB,mBAA8C,
|
|
1
|
+
{"version":3,"file":"resolver.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/resolver.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAEhE,iCAAiC;AACjC,sFAAsF;AACtF,uCAAyC;AACzC,2FAAsF;AACtF,gGAA+E;AAC/E,qFAAgF;AAChF,qCAAwC;AAGjC,IAAM,eAAe,GAArB,MAAM,eAAe;IAG1B,YAEmB,iBAAoC,EACpC,SAAoB,EACpB,mBAA8C,EAC9C,gBAAkC,EAElC,gBAAwC,EACxC,YAA2B;QAN3B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,cAAS,GAAT,SAAS,CAAW;QACpB,wBAAmB,GAAnB,mBAAmB,CAA2B;QAC9C,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,qBAAgB,GAAhB,gBAAgB,CAAwB;QACxC,iBAAY,GAAZ,YAAY,CAAe;IAE9C,CAAC;IAEO,KAAK,CAAC,mBAAmB;QAC/B,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC3B,MAAM,EAAE,gBAAgB,EAAE,GAAG,2CAAa,sBAAsB,EAAC,CAAC;YAClE,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,gBAAgB,EAAE;gBAC3D,MAAM,EAAE,KAAK;aACd,CAAC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,YAAiB,EACjB,UAAe,EACf,UAAkB;QAElB,MAAM,cAAc,GAClB,MAAM,IAAI,CAAC,mBAAmB,CAAC,gCAAgC,CAC7D,UAAU,EACV,YAAY,CACb,CAAC;QAEJ,MAA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BAC9B,CAAC,CAAC,CAAC,YAAY,CAAC;gBAChB,CAAC,CAAC,CAAC,YAAY,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;YAEjD,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAC5D,OAAO,IAAI,EAAE,EAAE,IAAI,YAAY,CAAC;QAClC,CAAC;aAGI,IAAI,IAAI,CAAC,gBAAgB,KAAK,QAAQ,EAAE,CAAC;YAC5C,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YAEpF,MAAM,IAAI,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;gBAC7C,KAAK,EAAE;oBACL,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAAE,YAAY;oBAC1C,aAAa,EAAE,YAAY,CAAC,aAAa;oBACzC,QAAQ,EAAE,IAAI,CAAC,eAAe;iBAC/B;aACF,CAAC,CAAC;YAEH,OAAO,IAAI,EAAE,EAAE,IAAI,YAAY,CAAC;QAClC,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;CACF,CAAA;AA7QY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;IAK3B,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iDAAsB,CAAC,CAAC,CAAA;qCAJb,uCAAiB;QACzB,gBAAS;QACC,uDAAyB;QAC5B,4CAAgB;QAEhB,iDAAsB;QAC1B,uBAAa;GAXnC,eAAe,CA6Q3B"}
|
|
@@ -21,8 +21,8 @@ let MenuController = class MenuController {
|
|
|
21
21
|
this.menuService = menuService;
|
|
22
22
|
}
|
|
23
23
|
async getMenu(req) {
|
|
24
|
-
const { id: userId,
|
|
25
|
-
return this.menuService.getUserMenu(userId,
|
|
24
|
+
const { id: userId, app_id, level_type, level_id } = req.user.userData;
|
|
25
|
+
return this.menuService.getUserMenu(userId, app_id, level_type, level_id);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
exports.MenuController = MenuController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../../../src/module/module/controller/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,0DAAsD;AACtD,2DAAgE;AAGzD,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAInD,AAAN,KAAK,CAAC,OAAO,CAAY,GAAG;QAC1B,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../../../src/module/module/controller/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,0DAAsD;AACtD,2DAAgE;AAGzD,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAInD,AAAN,KAAK,CAAC,OAAO,CAAY,GAAG;QAC1B,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvE,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC5E,CAAC;CACF,CAAA;AATY,wCAAc;AAKnB;IAFL,IAAA,kBAAS,EAAC,wBAAY,CAAC;IACvB,IAAA,YAAG,GAAE;IACS,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;6CAGvB;yBARU,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCAEyB,0BAAW;GAD1C,cAAc,CAS1B"}
|
|
@@ -5,15 +5,15 @@ export declare class ModuleAccessController {
|
|
|
5
5
|
private readonly menuService;
|
|
6
6
|
constructor(moduleAccessService: ModuleAccessService, menuService: MenuService);
|
|
7
7
|
getRoles(appcode: string, include: string, req: any): Promise<{
|
|
8
|
-
label:
|
|
9
|
-
value:
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
10
|
}[]>;
|
|
11
11
|
getModules(appcode: string, req: any): Promise<{
|
|
12
12
|
label: any;
|
|
13
13
|
value: any;
|
|
14
14
|
group: any;
|
|
15
15
|
}[]>;
|
|
16
|
-
getAccessListing(roleIds: string,
|
|
16
|
+
getAccessListing(roleIds: string, queryAppCode: string, req: any): Promise<any>;
|
|
17
17
|
getMenuListing(mainModIds: string, appcode: string, req: any): Promise<Record<string, any[]>>;
|
|
18
18
|
updateModuleAccess(moduleAccessData: any[]): Promise<{
|
|
19
19
|
success: boolean;
|
|
@@ -22,7 +22,6 @@ export declare class ModuleAccessController {
|
|
|
22
22
|
getModuleUIConfig(moduleCode: string, req: any): Promise<{
|
|
23
23
|
entity_type: string;
|
|
24
24
|
title: string;
|
|
25
|
-
ui_config: JSON;
|
|
26
25
|
action: string[];
|
|
27
26
|
}>;
|
|
28
27
|
getUserPermissions(req: any): Promise<{
|
|
@@ -38,9 +38,9 @@ let ModuleAccessController = class ModuleAccessController {
|
|
|
38
38
|
loggedInUser
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
async getAccessListing(roleIds,
|
|
41
|
+
async getAccessListing(roleIds, queryAppCode, req) {
|
|
42
42
|
const roleIdArray = roleIds.split(',').map(Number);
|
|
43
|
-
const appcode =
|
|
43
|
+
const appcode = queryAppCode || req.user.userData.appcode;
|
|
44
44
|
const level_type = req.user.userData.level_type;
|
|
45
45
|
const level_id = req.user.userData.level_id;
|
|
46
46
|
return this.moduleAccessService.getAccessListing(roleIdArray, appcode, level_type, level_id);
|
|
@@ -55,8 +55,8 @@ let ModuleAccessController = class ModuleAccessController {
|
|
|
55
55
|
}
|
|
56
56
|
async getModuleUIConfig(moduleCode, req) {
|
|
57
57
|
const userId = req.user.userData?.id;
|
|
58
|
-
const
|
|
59
|
-
const roles = await this.menuService.getUserRoles(userId,
|
|
58
|
+
const app_id = req.user.userData?.app_id;
|
|
59
|
+
const roles = await this.menuService.getUserRoles(userId, app_id);
|
|
60
60
|
if (!roles || roles.length === 0) {
|
|
61
61
|
throw new common_1.BadRequestException('User has no roles');
|
|
62
62
|
}
|
|
@@ -65,25 +65,24 @@ let ModuleAccessController = class ModuleAccessController {
|
|
|
65
65
|
async getUserPermissions(req) {
|
|
66
66
|
const userData = req.user.userData;
|
|
67
67
|
const userId = userData?.id;
|
|
68
|
-
const
|
|
68
|
+
const app_id = userData?.app_id;
|
|
69
69
|
const level_type = userData?.level_type;
|
|
70
70
|
const level_id = userData?.level_id;
|
|
71
|
-
|
|
72
|
-
if (!userId || !appcode || !level_type || !level_id || !enterprise_id) {
|
|
71
|
+
if (!userId || !app_id || !level_type || !level_id) {
|
|
73
72
|
throw new common_1.BadRequestException('Invalid token data');
|
|
74
73
|
}
|
|
75
74
|
return this.moduleAccessService.getUserPermissions({
|
|
76
75
|
userId,
|
|
77
|
-
|
|
76
|
+
app_id,
|
|
78
77
|
level_type,
|
|
79
|
-
level_id
|
|
80
|
-
enterprise_id,
|
|
78
|
+
level_id
|
|
81
79
|
});
|
|
82
80
|
}
|
|
83
81
|
};
|
|
84
82
|
exports.ModuleAccessController = ModuleAccessController;
|
|
85
83
|
__decorate([
|
|
86
84
|
(0, common_1.Get)('roles'),
|
|
85
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
87
86
|
__param(0, (0, common_1.Query)('appcode')),
|
|
88
87
|
__param(1, (0, common_1.Query)('include')),
|
|
89
88
|
__param(2, (0, common_1.Request)()),
|
|
@@ -93,6 +92,7 @@ __decorate([
|
|
|
93
92
|
], ModuleAccessController.prototype, "getRoles", null);
|
|
94
93
|
__decorate([
|
|
95
94
|
(0, common_1.Get)('modules'),
|
|
95
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
96
96
|
__param(0, (0, common_1.Query)('appcode')),
|
|
97
97
|
__param(1, (0, common_1.Request)()),
|
|
98
98
|
__metadata("design:type", Function),
|
|
@@ -101,6 +101,7 @@ __decorate([
|
|
|
101
101
|
], ModuleAccessController.prototype, "getModules", null);
|
|
102
102
|
__decorate([
|
|
103
103
|
(0, common_1.Get)('access-listing'),
|
|
104
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
104
105
|
__param(0, (0, common_1.Query)('roles')),
|
|
105
106
|
__param(1, (0, common_1.Query)('appcode')),
|
|
106
107
|
__param(2, (0, common_1.Request)()),
|
|
@@ -110,6 +111,7 @@ __decorate([
|
|
|
110
111
|
], ModuleAccessController.prototype, "getAccessListing", null);
|
|
111
112
|
__decorate([
|
|
112
113
|
(0, common_1.Get)('menu-listing'),
|
|
114
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
113
115
|
__param(0, (0, common_1.Query)('mainmod')),
|
|
114
116
|
__param(1, (0, common_1.Query)('appcode')),
|
|
115
117
|
__param(2, (0, common_1.Request)()),
|
|
@@ -119,6 +121,7 @@ __decorate([
|
|
|
119
121
|
], ModuleAccessController.prototype, "getMenuListing", null);
|
|
120
122
|
__decorate([
|
|
121
123
|
(0, common_1.Post)('update'),
|
|
124
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
122
125
|
__param(0, (0, common_1.Body)()),
|
|
123
126
|
__metadata("design:type", Function),
|
|
124
127
|
__metadata("design:paramtypes", [Array]),
|
|
@@ -126,6 +129,7 @@ __decorate([
|
|
|
126
129
|
], ModuleAccessController.prototype, "updateModuleAccess", null);
|
|
127
130
|
__decorate([
|
|
128
131
|
(0, common_1.Get)('ui-config'),
|
|
132
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
129
133
|
__param(0, (0, common_1.Query)('module_code')),
|
|
130
134
|
__param(1, (0, common_1.Request)()),
|
|
131
135
|
__metadata("design:type", Function),
|
|
@@ -134,6 +138,7 @@ __decorate([
|
|
|
134
138
|
], ModuleAccessController.prototype, "getModuleUIConfig", null);
|
|
135
139
|
__decorate([
|
|
136
140
|
(0, common_1.Get)('user-permissions'),
|
|
141
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
137
142
|
__param(0, (0, common_1.Request)()),
|
|
138
143
|
__metadata("design:type", Function),
|
|
139
144
|
__metadata("design:paramtypes", [Object]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-access.controller.js","sourceRoot":"","sources":["../../../../src/module/module/controller/module-access.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAYwB;AACxB,4EAAuE;AACvE,2DAAgE;AAChE,0DAAsD;AAI/C,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YACmB,mBAAwC,EACxC,WAAwB;QADxB,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;
|
|
1
|
+
{"version":3,"file":"module-access.controller.js","sourceRoot":"","sources":["../../../../src/module/module/controller/module-access.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAYwB;AACxB,4EAAuE;AACvE,2DAAgE;AAChE,0DAAsD;AAI/C,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YACmB,mBAAwC,EACxC,WAAwB;QADxB,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAIE,AAAN,KAAK,CAAC,QAAQ,CACM,OAAe,EACf,OAAe,EACtB,GAAG;QAEd,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAEnD,OAAO,IAAI,CAAC,mBAAmB,CAAC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C;IAErB,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;+DAcX;AAIK;IAFL,IAAA,YAAG,EAAC,kBAAkB,CAAC;IACvB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACE,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;gEAkBlC;iCArHU,sBAAsB;IAFlC,IAAA,mBAAU,EAAC,eAAe,CAAC;IAC3B,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAGkB,2CAAmB;QAC3B,0BAAW;GAHhC,sBAAsB,CAsHlC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { ModuleData } from './module.entity';
|
|
2
|
+
import { AppMaster } from 'src/module/meta/entity/app-master.entity';
|
|
1
3
|
export declare class MenuData {
|
|
2
4
|
id: number;
|
|
3
5
|
name: string;
|
|
4
|
-
|
|
6
|
+
module_id: number;
|
|
7
|
+
moduleData: ModuleData;
|
|
5
8
|
status: string;
|
|
6
9
|
wbs_code: string;
|
|
7
10
|
path: string;
|
|
8
11
|
icon: string;
|
|
9
12
|
module_level: string;
|
|
10
|
-
parent_id: number;
|
|
11
|
-
parent_code: string;
|
|
12
13
|
ui_visible: number;
|
|
13
|
-
|
|
14
|
+
app_id: number;
|
|
15
|
+
app: AppMaster;
|
|
14
16
|
level_type: string;
|
|
15
17
|
}
|
|
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.MenuData = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const module_entity_1 = require("./module.entity");
|
|
15
|
+
const app_master_entity_1 = require("../../meta/entity/app-master.entity");
|
|
14
16
|
let MenuData = class MenuData {
|
|
15
17
|
};
|
|
16
18
|
exports.MenuData = MenuData;
|
|
@@ -23,9 +25,14 @@ __decorate([
|
|
|
23
25
|
__metadata("design:type", String)
|
|
24
26
|
], MenuData.prototype, "name", void 0);
|
|
25
27
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: '
|
|
27
|
-
__metadata("design:type",
|
|
28
|
-
], MenuData.prototype, "
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], MenuData.prototype, "module_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.ManyToOne)(() => module_entity_1.ModuleData, { nullable: true, onDelete: 'SET NULL' }),
|
|
33
|
+
(0, typeorm_1.JoinColumn)({ name: 'module_id', referencedColumnName: 'id' }),
|
|
34
|
+
__metadata("design:type", module_entity_1.ModuleData)
|
|
35
|
+
], MenuData.prototype, "moduleData", void 0);
|
|
29
36
|
__decorate([
|
|
30
37
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
31
38
|
__metadata("design:type", String)
|
|
@@ -49,19 +56,16 @@ __decorate([
|
|
|
49
56
|
__decorate([
|
|
50
57
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
58
|
__metadata("design:type", Number)
|
|
52
|
-
], MenuData.prototype, "
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], MenuData.prototype, "parent_code", void 0);
|
|
59
|
+
], MenuData.prototype, "ui_visible", void 0);
|
|
57
60
|
__decorate([
|
|
58
61
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
59
62
|
__metadata("design:type", Number)
|
|
60
|
-
], MenuData.prototype, "
|
|
63
|
+
], MenuData.prototype, "app_id", void 0);
|
|
61
64
|
__decorate([
|
|
62
|
-
(0, typeorm_1.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
(0, typeorm_1.ManyToOne)(() => app_master_entity_1.AppMaster, { nullable: true, onDelete: 'SET NULL' }),
|
|
66
|
+
(0, typeorm_1.JoinColumn)({ name: 'app_id', referencedColumnName: 'id' }),
|
|
67
|
+
__metadata("design:type", app_master_entity_1.AppMaster)
|
|
68
|
+
], MenuData.prototype, "app", void 0);
|
|
65
69
|
__decorate([
|
|
66
70
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
67
71
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.entity.js","sourceRoot":"","sources":["../../../../src/module/module/entity/menu.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"menu.entity.js","sourceRoot":"","sources":["../../../../src/module/module/entity/menu.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkG;AAClG,mDAA6C;AAC7C,2EAAqE;AAG9D,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAyCpB,CAAA;AAzCY,4BAAQ;AAEnB;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;oCAC7B;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC5C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACvB;AAIjB;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;8BAClD,0BAAU;4CAAC;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI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';
|
|
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
|
}
|