rez_core 6.5.32 → 6.5.34
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 +1 -2
- 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/module-access.controller.d.ts +3 -4
- package/dist/module/module/controller/module-access.controller.js +13 -8
- 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 +3 -3
- package/dist/module/module/repository/menu.repository.js +36 -26
- package/dist/module/module/repository/menu.repository.js.map +1 -1
- package/dist/module/module/repository/module-access.repository.d.ts +6 -6
- package/dist/module/module/repository/module-access.repository.js +93 -47
- package/dist/module/module/repository/module-access.repository.js.map +1 -1
- package/dist/module/module/service/menu.service.d.ts +2 -4
- package/dist/module/module/service/menu.service.js +7 -10
- package/dist/module/module/service/menu.service.js.map +1 -1
- package/dist/module/module/service/module-access.service.d.ts +7 -10
- package/dist/module/module/service/module-access.service.js +22 -24
- 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 +1 -2
- 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/module-access.controller.ts +14 -9
- 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 +41 -28
- package/src/module/module/repository/module-access.repository.ts +108 -62
- package/src/module/module/service/menu.service.ts +7 -9
- package/src/module/module/service/module-access.service.ts +22 -34
- 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
|
@@ -5,15 +5,15 @@ import { WBSCodeGenService } from 'src/utils/service/wbsCodeGen.service';
|
|
|
5
5
|
import { SchoolRepository } from '../repository/school.repository';
|
|
6
6
|
export declare class OrganizationService {
|
|
7
7
|
private readonly organizationRepository;
|
|
8
|
+
private readonly schoolRepository;
|
|
8
9
|
private readonly idGen;
|
|
9
10
|
private readonly wbcCodeGenService;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
create(organizationDto: Partial<OrganizationData>, manager?: EntityManager): Promise<OrganizationData>;
|
|
11
|
+
constructor(organizationRepository: Repository<OrganizationData>, schoolRepository: SchoolRepository, idGen: ClockIDGenService, wbcCodeGenService: WBSCodeGenService);
|
|
12
|
+
create(organizationDto: Partial<OrganizationData>, loggedInUser?: any, manager?: EntityManager): Promise<OrganizationData>;
|
|
13
13
|
findAll(manager?: EntityManager): Promise<OrganizationData[]>;
|
|
14
14
|
findOne(id: number, manager?: EntityManager): Promise<OrganizationData | null>;
|
|
15
15
|
findById(id: number | undefined): Promise<OrganizationData[]>;
|
|
16
|
-
update(id: number, organizationDto: Partial<OrganizationData>, manager?: EntityManager): Promise<OrganizationData | null>;
|
|
16
|
+
update(id: number, organizationDto: Partial<OrganizationData>, loggedInUser?: any, manager?: EntityManager): Promise<OrganizationData | null>;
|
|
17
17
|
remove(id: number, manager?: EntityManager): Promise<void>;
|
|
18
18
|
getOrganizationHierarchy(userId: number, appCode: string, orgId: number): Promise<any[]>;
|
|
19
19
|
}
|
|
@@ -21,59 +21,69 @@ const organization_entity_1 = require("../entity/organization.entity");
|
|
|
21
21
|
const wbsCodeGen_service_1 = require("../../../utils/service/wbsCodeGen.service");
|
|
22
22
|
const school_repository_1 = require("../repository/school.repository");
|
|
23
23
|
let OrganizationService = class OrganizationService {
|
|
24
|
-
constructor(organizationRepository, idGen, wbcCodeGenService
|
|
24
|
+
constructor(organizationRepository, schoolRepository, idGen, wbcCodeGenService) {
|
|
25
25
|
this.organizationRepository = organizationRepository;
|
|
26
|
+
this.schoolRepository = schoolRepository;
|
|
26
27
|
this.idGen = idGen;
|
|
27
28
|
this.wbcCodeGenService = wbcCodeGenService;
|
|
28
|
-
this.schoolRepository = schoolRepository;
|
|
29
29
|
}
|
|
30
|
-
async create(organizationDto, manager) {
|
|
30
|
+
async create(organizationDto, loggedInUser, manager) {
|
|
31
31
|
const repo = manager
|
|
32
32
|
? manager.getRepository(organization_entity_1.OrganizationData)
|
|
33
33
|
: this.organizationRepository;
|
|
34
|
-
const
|
|
35
|
-
if (
|
|
36
|
-
const parentOrgId = organizationDto.parent_id;
|
|
37
|
-
if (!parentOrgId) {
|
|
38
|
-
throw new Error('Parent Org ID is required to create a brand.');
|
|
39
|
-
}
|
|
34
|
+
const parentOrgId = organizationDto.parent_id;
|
|
35
|
+
if (parentOrgId) {
|
|
40
36
|
const parentOrg = await repo.findOne({
|
|
41
37
|
where: { id: parentOrgId },
|
|
42
38
|
});
|
|
43
39
|
if (!parentOrg) {
|
|
44
40
|
throw new Error('Parent organization not found.');
|
|
45
41
|
}
|
|
46
|
-
|
|
42
|
+
if (!parentOrg.wbs_code) {
|
|
43
|
+
throw new Error('Parent organization must have a WBS code.');
|
|
44
|
+
}
|
|
45
|
+
const existingSubOrgs = await repo.find({
|
|
47
46
|
where: {
|
|
48
|
-
type: 'BRN',
|
|
49
47
|
parent_id: parentOrgId,
|
|
50
48
|
},
|
|
51
49
|
select: ['wbs_code'],
|
|
52
50
|
});
|
|
53
|
-
const
|
|
54
|
-
.map((
|
|
51
|
+
const subOrgCodes = existingSubOrgs
|
|
52
|
+
.map((subOrg) => {
|
|
53
|
+
const parts = subOrg.wbs_code?.split('.');
|
|
54
|
+
return parts && parts.length > 1 ? parts[parts.length - 1] : null;
|
|
55
|
+
})
|
|
55
56
|
.filter(Boolean)
|
|
56
57
|
.map(Number);
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
const nextSubOrgCode = subOrgCodes.length
|
|
59
|
+
? Math.max(...subOrgCodes) + 1
|
|
60
|
+
: 1;
|
|
61
|
+
const subOrgWbsCode = this.wbcCodeGenService.padCode(nextSubOrgCode);
|
|
62
|
+
organizationDto.wbs_code = `${parentOrg.wbs_code}.${subOrgWbsCode}`;
|
|
60
63
|
}
|
|
61
64
|
else {
|
|
62
65
|
const existingOrgs = await repo.find({
|
|
63
66
|
where: {
|
|
64
|
-
|
|
67
|
+
parent_id: (0, typeorm_2.IsNull)(),
|
|
65
68
|
},
|
|
66
69
|
select: ['wbs_code'],
|
|
67
70
|
});
|
|
68
71
|
const orgCodes = existingOrgs
|
|
69
|
-
.map((org) =>
|
|
70
|
-
.
|
|
71
|
-
|
|
72
|
+
.map((org) => {
|
|
73
|
+
if (org.wbs_code?.includes('.')) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return org.wbs_code ? Number(org.wbs_code) : null;
|
|
77
|
+
})
|
|
78
|
+
.filter((code) => code !== null);
|
|
72
79
|
const nextOrgCode = orgCodes.length ? Math.max(...orgCodes) + 1 : 1;
|
|
73
80
|
organizationDto.wbs_code = this.wbcCodeGenService.padCode(nextOrgCode);
|
|
74
81
|
}
|
|
75
82
|
organizationDto.code = this.idGen.idGenerator('ORG');
|
|
76
|
-
|
|
83
|
+
if (loggedInUser) {
|
|
84
|
+
organizationDto.modified_by = loggedInUser.id;
|
|
85
|
+
organizationDto.created_by = loggedInUser.id;
|
|
86
|
+
}
|
|
77
87
|
const organization = repo.create(organizationDto);
|
|
78
88
|
return await repo.save(organization);
|
|
79
89
|
}
|
|
@@ -92,10 +102,77 @@ let OrganizationService = class OrganizationService {
|
|
|
92
102
|
async findById(id) {
|
|
93
103
|
return await this.organizationRepository.find({ where: { id } });
|
|
94
104
|
}
|
|
95
|
-
async update(id, organizationDto, manager) {
|
|
105
|
+
async update(id, organizationDto, loggedInUser, manager) {
|
|
96
106
|
const repo = manager
|
|
97
107
|
? manager.getRepository(organization_entity_1.OrganizationData)
|
|
98
108
|
: this.organizationRepository;
|
|
109
|
+
const existingOrg = await repo.findOne({ where: { id } });
|
|
110
|
+
if (!existingOrg) {
|
|
111
|
+
throw new Error(`Organization with id ${id} not found.`);
|
|
112
|
+
}
|
|
113
|
+
if (organizationDto.parent_id === id) {
|
|
114
|
+
throw new Error('Organization cannot be its own parent.');
|
|
115
|
+
}
|
|
116
|
+
const parentIdChanged = organizationDto.parent_id !== undefined &&
|
|
117
|
+
organizationDto.parent_id !== existingOrg.parent_id;
|
|
118
|
+
if (parentIdChanged) {
|
|
119
|
+
const newParentId = organizationDto.parent_id;
|
|
120
|
+
if (newParentId) {
|
|
121
|
+
const parentOrg = await repo.findOne({
|
|
122
|
+
where: { id: newParentId },
|
|
123
|
+
});
|
|
124
|
+
if (!parentOrg) {
|
|
125
|
+
throw new Error('Parent organization not found.');
|
|
126
|
+
}
|
|
127
|
+
if (!parentOrg.wbs_code) {
|
|
128
|
+
throw new Error('Parent organization must have a WBS code.');
|
|
129
|
+
}
|
|
130
|
+
if (parentOrg.wbs_code?.startsWith(existingOrg.wbs_code || '')) {
|
|
131
|
+
throw new Error('Cannot set a descendant organization as parent (circular reference).');
|
|
132
|
+
}
|
|
133
|
+
const existingSubOrgs = await repo.find({
|
|
134
|
+
where: {
|
|
135
|
+
parent_id: newParentId,
|
|
136
|
+
},
|
|
137
|
+
select: ['wbs_code', 'id'],
|
|
138
|
+
});
|
|
139
|
+
const subOrgCodes = existingSubOrgs
|
|
140
|
+
.filter((subOrg) => subOrg.id !== id)
|
|
141
|
+
.map((subOrg) => {
|
|
142
|
+
const parts = subOrg.wbs_code?.split('.');
|
|
143
|
+
return parts && parts.length > 1 ? parts[parts.length - 1] : null;
|
|
144
|
+
})
|
|
145
|
+
.filter(Boolean)
|
|
146
|
+
.map(Number);
|
|
147
|
+
const nextSubOrgCode = subOrgCodes.length
|
|
148
|
+
? Math.max(...subOrgCodes) + 1
|
|
149
|
+
: 1;
|
|
150
|
+
const subOrgWbsCode = this.wbcCodeGenService.padCode(nextSubOrgCode);
|
|
151
|
+
organizationDto.wbs_code = `${parentOrg.wbs_code}.${subOrgWbsCode}`;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
const existingOrgs = await repo.find({
|
|
155
|
+
where: {
|
|
156
|
+
parent_id: (0, typeorm_2.IsNull)(),
|
|
157
|
+
},
|
|
158
|
+
select: ['wbs_code', 'id'],
|
|
159
|
+
});
|
|
160
|
+
const orgCodes = existingOrgs
|
|
161
|
+
.filter((org) => org.id !== id)
|
|
162
|
+
.map((org) => {
|
|
163
|
+
if (org.wbs_code?.includes('.')) {
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
return org.wbs_code ? Number(org.wbs_code) : null;
|
|
167
|
+
})
|
|
168
|
+
.filter((code) => code !== null);
|
|
169
|
+
const nextOrgCode = orgCodes.length ? Math.max(...orgCodes) + 1 : 1;
|
|
170
|
+
organizationDto.wbs_code = this.wbcCodeGenService.padCode(nextOrgCode);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
if (loggedInUser) {
|
|
174
|
+
organizationDto.modified_by = loggedInUser.id;
|
|
175
|
+
}
|
|
99
176
|
await repo.update(id, organizationDto);
|
|
100
177
|
return await repo.findOne({ where: { id } });
|
|
101
178
|
}
|
|
@@ -114,8 +191,8 @@ exports.OrganizationService = OrganizationService = __decorate([
|
|
|
114
191
|
(0, common_1.Injectable)(),
|
|
115
192
|
__param(0, (0, typeorm_1.InjectRepository)(organization_entity_1.OrganizationData)),
|
|
116
193
|
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
194
|
+
school_repository_1.SchoolRepository,
|
|
117
195
|
clockIDGenUtil_service_1.ClockIDGenService,
|
|
118
|
-
wbsCodeGen_service_1.WBSCodeGenService
|
|
119
|
-
school_repository_1.SchoolRepository])
|
|
196
|
+
wbsCodeGen_service_1.WBSCodeGenService])
|
|
120
197
|
], OrganizationService);
|
|
121
198
|
//# sourceMappingURL=organization.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/organization.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,0FAA6E;AAC7E,qCAA4D;AAC5D,uEAAiE;AAEjE,kFAAyE;AACzE,uEAAmE;AAG5D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAEmB,sBAAoD,EACpD,KAAwB,EACxB,iBAAoC
|
|
1
|
+
{"version":3,"file":"organization.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/organization.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,0FAA6E;AAC7E,qCAA4D;AAC5D,uEAAiE;AAEjE,kFAAyE;AACzE,uEAAmE;AAG5D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAEmB,sBAAoD,EACpD,gBAAkC,EAClC,KAAwB,EACxB,iBAAoC;QAHpC,2BAAsB,GAAtB,sBAAsB,CAA8B;QACpD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,UAAK,GAAL,KAAK,CAAmB;QACxB,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,MAAM,CACV,eAA0C,EAC1C,YAAkB,EAClB,OAAuB;QAEvB,MAAM,IAAI,GAAG,OAAO;YAClB,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,sCAAgB,CAAC;YACzC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC;QAEhC,MAAM,WAAW,GAAG,eAAe,CAAC,SAAS,CAAC;QAE9C,IAAI,WAAW,EAAE,CAAC;YAEhB,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;gBACnC,KAAK,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE;aAC3B,C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AC;YACzE,CAAC;QACH,CAAC;QAGD,IAAI,YAAY,EAAE,CAAC;YACjB,eAAe,CAAC,WAAW,GAAG,YAAY,CAAC,EAAE,CAAC;QAChD,CAAC;QAED,MAAM,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,eAAe,CAAC,CAAC;QACvC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,MAAM,IAAI,GAAG,OAAO;YAClB,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,sCAAgB,CAAC;YACzC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC;QAEhC,MAAM,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,wBAAwB,CAC5B,MAAc,EACd,OAAe,EACf,KAAa;QAEb,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,sBAAsB,CACvD,MAAM,EACN,OAAO,EACP,KAAK,CACN,CAAC;IACJ,CAAC;CACF,CAAA;AA3PY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,sCAAgB,CAAC,CAAA;qCACM,oBAAU;QAChB,oCAAgB;QAC3B,0CAAiB;QACL,sCAAiB;GAN5C,mBAAmB,CA2P/B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReflectionHelper } from 'src/utils/service/reflection-helper.service';
|
|
2
|
+
export declare class PopulateMetaService {
|
|
3
|
+
private readonly reflectionHelper;
|
|
4
|
+
constructor(reflectionHelper: ReflectionHelper);
|
|
5
|
+
populateMetaData(organization_id: number): Promise<{
|
|
6
|
+
message: string;
|
|
7
|
+
status: string;
|
|
8
|
+
} | undefined>;
|
|
9
|
+
}
|
|
@@ -11,13 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PopulateMetaService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
|
-
const typeorm_1 = require("typeorm");
|
|
15
|
-
const entity_service_impl_service_1 = require("./entity-service-impl.service");
|
|
16
14
|
const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
|
|
17
15
|
let PopulateMetaService = class PopulateMetaService {
|
|
18
|
-
constructor(
|
|
19
|
-
this.dataSource = dataSource;
|
|
20
|
-
this.entityServiceImpl = entityServiceImpl;
|
|
16
|
+
constructor(reflectionHelper) {
|
|
21
17
|
this.reflectionHelper = reflectionHelper;
|
|
22
18
|
}
|
|
23
19
|
async populateMetaData(organization_id) {
|
|
@@ -193,8 +189,6 @@ let PopulateMetaService = class PopulateMetaService {
|
|
|
193
189
|
exports.PopulateMetaService = PopulateMetaService;
|
|
194
190
|
exports.PopulateMetaService = PopulateMetaService = __decorate([
|
|
195
191
|
(0, common_1.Injectable)(),
|
|
196
|
-
__metadata("design:paramtypes", [
|
|
197
|
-
entity_service_impl_service_1.EntityServiceImpl,
|
|
198
|
-
reflection_helper_service_1.ReflectionHelper])
|
|
192
|
+
__metadata("design:paramtypes", [reflection_helper_service_1.ReflectionHelper])
|
|
199
193
|
], PopulateMetaService);
|
|
200
194
|
//# sourceMappingURL=populate-meta.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"populate-meta.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/populate-meta.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAA+E;AAGxE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAErD,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,eAAuB;QAC5C,MAAM,cAAc,GAAG;YACrB,mB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,KAAK,EAAE;oBACL,eAAe,EAAE,CAAC,CAAC;oBACnB,UAAU,EAAE,KAAK;oBACjB,QAAQ,EAAE,CAAC,CAAC;oBACZ,kBAAkB,EAAE,kBAAkB;oBACtC,YAAY,EAAE,YAAY;iBAC3B;aACF,CAAC,CAAC;YAEH,IAAI,gBAAgB,GAAG,EAAW,CAAC;YAEnC,KAAK,MAAM,MAAM,IAAI,kBAAkB,EAAE,CAAC;gBACxC,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,GAAG,MAAM,CAAC;gBAClE,MAAM,SAAS,GAAG;oBAChB,GAAG,UAAU;oBACb,eAAe;oBACf,SAAS,EAAE,KAAK;oBAChB,UAAU,EAAE,KAAK;oBACjB,QAAQ,EAAE,eAAe;oBACzB,kBAAkB,EAAE,kBAAkB;oBACtC,YAAY,EAAE,YAAY;iBAC3B,CAAC;gBACF,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACnC,CAAC;YAED,MAAM,qBAAqB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACrD,CAAC;QAED,OAAO;YACL,OAAO,EAAE,iCAAiC;YAC1C,MAAM,EAAE,SAAS;SAClB,CAAC;IACJ,CAAC;CACF,CAAA;AAtNY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAG0B,4CAAgB;GAF1C,mBAAmB,CAsN/B"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=school.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"school.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/school.service.ts"],"names":[],"mappings":""}
|
|
@@ -4,8 +4,15 @@ export declare class EntityJSONController {
|
|
|
4
4
|
constructor(entityJSONService: EntityJSONService);
|
|
5
5
|
getEntityJson(entityType: string, req: Request & {
|
|
6
6
|
user: any;
|
|
7
|
-
}, mode?: 'flat_json' | 'dropdown'): Promise<any
|
|
7
|
+
}, mode?: 'flat_json' | 'dropdown'): Promise<any[] | Record<string, null> | {
|
|
8
|
+
flat_json: Record<string, null>;
|
|
9
|
+
attributes: {
|
|
10
|
+
mainAttributes: import("../../meta/entity/attribute-master.entity").AttributeMaster[];
|
|
11
|
+
relatedAttributes: import("../../meta/entity/attribute-master.entity").AttributeMaster[];
|
|
12
|
+
linkedAttributes: any[];
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
8
15
|
updateEntityJson(entityId: string, entityType: string, req: Request & {
|
|
9
16
|
user: any;
|
|
10
|
-
}): Promise<
|
|
17
|
+
}): Promise<Record<string, null> | null>;
|
|
11
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity_json.controller.js","sourceRoot":"","sources":["../../../../src/module/entity_json/controller/entity_json.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,wEAAmE;AACnE,2DAAgE;AAGzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAI/D,AAAN,KAAK,CAAC,aAAa,CACI,UAAkB,EAChC,GAA4B,EACpB,IAA+B;QAE9C,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;QACxC,OAAO,IAAI,CAAC,iBAAiB,CAAC,uBAAuB,CACnD,UAAU,EACV,YAAY,EACZ,IAAI,CACL,CAAC;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,gBAAgB,CACD,QAAgB,EACd,UAAkB,EAChC,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;QAExC,OAAO,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAC5C,UAAU,EACV,MAAM,CAAC,QAAQ,CAAC,EAChB,YAAY,CACb,CAAC;IACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"entity_json.controller.js","sourceRoot":"","sources":["../../../../src/module/entity_json/controller/entity_json.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,wEAAmE;AACnE,2DAAgE;AAGzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAI/D,AAAN,KAAK,CAAC,aAAa,CACI,UAAkB,EAChC,GAA4B,EACpB,IAA+B;QAE9C,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;QACxC,OAAO,IAAI,CAAC,iBAAiB,CAAC,uBAAuB,CACnD,UAAU,EACV,YAAY,EACZ,IAAI,CACL,CAAC;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,gBAAgB,CACD,QAAgB,EACd,UAAkB,EAChC,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;QAExC,OAAO,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAC5C,UAAU,EACV,MAAM,CAAC,QAAQ,CAAC,EAChB,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AAjCY,oDAAoB;AAKzB;IAFL,IAAA,YAAG,EAAC,cAAc,CAAC;IACnB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;yDAQf;AAIK;IAFL,IAAA,aAAI,EAAC,wBAAwB,CAAC;IAC9B,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;IACjB,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;4DASP;+BAhCU,oBAAoB;IADhC,IAAA,mBAAU,EAAC,aAAa,CAAC;qCAEwB,uCAAiB;GADtD,oBAAoB,CAiChC"}
|
|
@@ -39,7 +39,7 @@ __decorate([
|
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
41
|
__metadata("design:type", Number)
|
|
42
|
-
], EntityJson.prototype, "
|
|
42
|
+
], EntityJson.prototype, "updated_by", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp', nullable: true }),
|
|
45
45
|
__metadata("design:type", Date)
|
|
@@ -48,10 +48,6 @@ __decorate([
|
|
|
48
48
|
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp', nullable: true }),
|
|
49
49
|
__metadata("design:type", Date)
|
|
50
50
|
], EntityJson.prototype, "updated_at", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.UpdateDateColumn)({ type: 'varchar', nullable: true }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], EntityJson.prototype, "updated_by", void 0);
|
|
55
51
|
exports.EntityJson = EntityJson = __decorate([
|
|
56
52
|
(0, typeorm_1.Entity)('frm_entity_json'),
|
|
57
53
|
(0, typeorm_1.Unique)(['entity_type', 'entity_id'])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityJson.entity.js","sourceRoot":"","sources":["../../../../src/module/entity_json/entity/entityJson.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AAIV,IAAM,UAAU,GAAhB,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"entityJson.entity.js","sourceRoot":"","sources":["../../../../src/module/entity_json/entity/entityJson.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AAIV,IAAM,UAAU,GAAhB,MAAM,UAAU;CA0BtB,CAAA;AA1BY,gCAAU;AAErB;IADC,IAAA,gCAAsB,GAAE;;sCACd;AAIX;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;+CACrB;AAIpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;6CACN;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;6CACX;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACrB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACrB;AAGnB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC5C,IAAI;8CAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC5C,IAAI;8CAAC;qBAzBN,UAAU;IAFtB,IAAA,gBAAM,EAAC,iBAAiB,CAAC;IACzB,IAAA,gBAAM,EAAC,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;GACxB,UAAU,CA0BtB"}
|
|
@@ -21,15 +21,10 @@ let EntityJSONModule = class EntityJSONModule {
|
|
|
21
21
|
exports.EntityJSONModule = EntityJSONModule;
|
|
22
22
|
exports.EntityJSONModule = EntityJSONModule = __decorate([
|
|
23
23
|
(0, common_1.Module)({
|
|
24
|
-
imports: [
|
|
25
|
-
(0, common_1.forwardRef)(() => entity_module_1.EntityModule),
|
|
26
|
-
typeorm_1.TypeOrmModule.forFeature([entityJson_entity_1.EntityJson]),
|
|
27
|
-
(0, common_1.forwardRef)(() => filter_module_1.FilterModule),
|
|
28
|
-
utils_module_1.UtilsModule,
|
|
29
|
-
],
|
|
24
|
+
imports: [entity_module_1.EntityModule, typeorm_1.TypeOrmModule.forFeature([entityJson_entity_1.EntityJson]), filter_module_1.FilterModule, utils_module_1.UtilsModule],
|
|
30
25
|
controllers: [entity_json_controller_1.EntityJSONController],
|
|
31
26
|
providers: [entity_json_service_1.EntityJSONService, entityJson_repository_1.EntityJSONRepository],
|
|
32
|
-
exports: [
|
|
27
|
+
exports: [],
|
|
33
28
|
})
|
|
34
29
|
], EntityJSONModule);
|
|
35
30
|
//# sourceMappingURL=entity_json.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity_json.module.js","sourceRoot":"","sources":["../../../src/module/entity_json/entity_json.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"entity_json.module.js","sourceRoot":"","sources":["../../../src/module/entity_json/entity_json.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yDAAqD;AACrD,6CAAgD;AAChD,uEAAkE;AAClE,gFAA2E;AAC3E,2DAAuD;AACvD,2DAAqD;AACrD,kEAAwD;AACxD,2EAAuE;AAShE,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,4CAAgB;2BAAhB,gBAAgB;IAN5B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,4BAAY,EAAE,uBAAa,CAAC,UAAU,CAAC,CAAC,8BAAU,CAAC,CAAC,EAAC,4BAAY,EAAC,0BAAW,CAAC;QACxF,WAAW,EAAE,CAAC,6CAAoB,CAAC;QACnC,SAAS,EAAE,CAAC,uCAAiB,EAAC,4CAAoB,CAAC;QACnD,OAAO,EAAE,EAAE;KACZ,CAAC;GACW,gBAAgB,CAAG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AttributeMaster } from 'src/module/meta/entity/attribute-master.entity';
|
|
1
2
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
2
3
|
import { LoggingService } from 'src/utils/service/loggingUtil.service';
|
|
3
4
|
import { DataSource } from 'typeorm';
|
|
@@ -10,8 +11,15 @@ export declare class EntityJSONService {
|
|
|
10
11
|
private readonly filterService;
|
|
11
12
|
private readonly entityServiceImpl;
|
|
12
13
|
constructor(dataSource: DataSource, loggerService: LoggingService, EntityJSONRepository: EntityJSONRepository, filterService: FilterService, entityServiceImpl: EntityServiceImpl);
|
|
13
|
-
getAttributeForFlatJSON(entityType: string, loggedInUser: any, flag?: 'flat_json' | 'dropdown' | 'all'
|
|
14
|
-
|
|
14
|
+
getAttributeForFlatJSON(entityType: string, loggedInUser: any, flag?: 'flat_json' | 'dropdown' | 'all'): Promise<any[] | Record<string, null> | {
|
|
15
|
+
flat_json: Record<string, null>;
|
|
16
|
+
attributes: {
|
|
17
|
+
mainAttributes: AttributeMaster[];
|
|
18
|
+
relatedAttributes: AttributeMaster[];
|
|
19
|
+
linkedAttributes: any[];
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
updateEntityJSON(entityType: string, entityId: number, loggedInUser: any): Promise<Record<string, null> | null>;
|
|
15
23
|
private mergeEntityDataIntoFlatJson;
|
|
16
24
|
private applyLinkedFilterUsingSavedFilter;
|
|
17
25
|
}
|
|
@@ -31,18 +31,12 @@ let EntityJSONService = class EntityJSONService {
|
|
|
31
31
|
this.entityServiceImpl = entityServiceImpl;
|
|
32
32
|
}
|
|
33
33
|
async getAttributeForFlatJSON(entityType, loggedInUser, flag) {
|
|
34
|
-
const entId = loggedInUser.
|
|
35
|
-
await this.loggerService.log('info', 'EntityJSONService', 'getAttributeForFlatJSON', `Loading attributes for entity: ${entityType},
|
|
34
|
+
const entId = loggedInUser.entId;
|
|
35
|
+
await this.loggerService.log('info', 'EntityJSONService', 'getAttributeForFlatJSON', `Loading attributes for entity: ${entityType}, ent: ${entId}`);
|
|
36
36
|
const mainAttributes = await this.dataSource
|
|
37
37
|
.getRepository(attribute_master_entity_1.AttributeMaster)
|
|
38
38
|
.createQueryBuilder('attr')
|
|
39
|
-
.select([
|
|
40
|
-
'attr.id',
|
|
41
|
-
'attr.name',
|
|
42
|
-
'attr.flat_json_key',
|
|
43
|
-
'attr.attribute_key',
|
|
44
|
-
'attr.data_type',
|
|
45
|
-
])
|
|
39
|
+
.select(['attr.id', 'attr.name', 'attr.flat_json_key', 'attr.attribute_key'])
|
|
46
40
|
.where('attr.mapped_entity_type = :entityType', { entityType })
|
|
47
41
|
.andWhere('attr.enterprise_id = :entId', { entId })
|
|
48
42
|
.getMany();
|
|
@@ -55,23 +49,14 @@ let EntityJSONService = class EntityJSONService {
|
|
|
55
49
|
.andWhere('rel.enterprise_id = :entId', { entId })
|
|
56
50
|
.andWhere('rel.relation_type = :relationType', { relationType: 'ONE_TO_ONE' })
|
|
57
51
|
.getRawMany();
|
|
58
|
-
const relatedTypesList = relatedEntityTypes.map(
|
|
52
|
+
const relatedTypesList = relatedEntityTypes.map(x => x.rel_target_entity_type);
|
|
59
53
|
await this.loggerService.log('debug', 'EntityJSONService', 'getAttributeForFlatJSON', `Found ${relatedTypesList.length} ONE-TO-ONE related entity types`);
|
|
60
54
|
const relatedAttributes = relatedTypesList.length
|
|
61
55
|
? await this.dataSource
|
|
62
56
|
.getRepository(attribute_master_entity_1.AttributeMaster)
|
|
63
57
|
.createQueryBuilder('attr')
|
|
64
|
-
.select([
|
|
65
|
-
'attr.
|
|
66
|
-
'attr.name',
|
|
67
|
-
'attr.flat_json_key',
|
|
68
|
-
'attr.mapped_entity_type',
|
|
69
|
-
'attr.attribute_key',
|
|
70
|
-
'attr.data_type',
|
|
71
|
-
])
|
|
72
|
-
.where('attr.mapped_entity_type IN (:...types)', {
|
|
73
|
-
types: relatedTypesList,
|
|
74
|
-
})
|
|
58
|
+
.select(['attr.id', 'attr.name', 'attr.flat_json_key', 'attr.mapped_entity_type', 'attr.attribute_key'])
|
|
59
|
+
.where('attr.mapped_entity_type IN (:...types)', { types: relatedTypesList })
|
|
75
60
|
.andWhere('attr.enterprise_id = :entId', { entId })
|
|
76
61
|
.getMany()
|
|
77
62
|
: [];
|
|
@@ -87,83 +72,41 @@ let EntityJSONService = class EntityJSONService {
|
|
|
87
72
|
'fla.saved_filter_code AS saved_filter_code',
|
|
88
73
|
'attr.name AS name',
|
|
89
74
|
'attr.id AS id',
|
|
90
|
-
'attr.data_type AS data_type',
|
|
91
75
|
])
|
|
92
76
|
.where('attr.enterprise_id = :entId', { entId })
|
|
93
77
|
.getRawMany();
|
|
94
78
|
await this.loggerService.log('debug', 'EntityJSONService', 'getAttributeForFlatJSON', `Loaded ${linkedAttributes.length} linked attributes`);
|
|
95
|
-
if (flag === 'filter_attribute') {
|
|
96
|
-
const filterAttributes = [];
|
|
97
|
-
filterAttributes.push(...mainAttributes.map((a) => ({
|
|
98
|
-
id: a.id,
|
|
99
|
-
name: a.name,
|
|
100
|
-
data_type: a.data_type,
|
|
101
|
-
attribute_key: a.flat_json_key,
|
|
102
|
-
source: 'main',
|
|
103
|
-
})));
|
|
104
|
-
filterAttributes.push(...relatedAttributes.map((a) => ({
|
|
105
|
-
id: a.id,
|
|
106
|
-
name: a.name,
|
|
107
|
-
data_type: a.data_type,
|
|
108
|
-
attribute_key: a.flat_json_key,
|
|
109
|
-
source: 'related',
|
|
110
|
-
})));
|
|
111
|
-
filterAttributes.push(...linkedAttributes.map((l) => ({
|
|
112
|
-
id: l.id,
|
|
113
|
-
name: l.name,
|
|
114
|
-
data_type: l.data_type,
|
|
115
|
-
attribute_key: l.target_attribute_key,
|
|
116
|
-
source: 'linked',
|
|
117
|
-
})));
|
|
118
|
-
return filterAttributes;
|
|
119
|
-
}
|
|
120
79
|
if (flag === 'flat_json' || flag === 'all') {
|
|
121
80
|
const result = {};
|
|
122
|
-
mainAttributes.forEach(
|
|
81
|
+
mainAttributes.forEach(attr => {
|
|
123
82
|
if (attr.flat_json_key)
|
|
124
83
|
result[attr.flat_json_key] = null;
|
|
125
84
|
});
|
|
126
|
-
relatedAttributes.forEach(
|
|
85
|
+
relatedAttributes.forEach(attr => {
|
|
127
86
|
if (attr.flat_json_key)
|
|
128
87
|
result[attr.flat_json_key] = null;
|
|
129
88
|
});
|
|
130
|
-
linkedAttributes.forEach(
|
|
89
|
+
linkedAttributes.forEach(link => {
|
|
131
90
|
if (link.target_attribute_key)
|
|
132
91
|
result[link.target_attribute_key] = null;
|
|
133
92
|
});
|
|
134
93
|
if (flag === 'all') {
|
|
135
|
-
return {
|
|
136
|
-
flat_json: result,
|
|
137
|
-
attributes: {
|
|
138
|
-
mainAttributes,
|
|
139
|
-
relatedAttributes,
|
|
140
|
-
linkedAttributes,
|
|
141
|
-
},
|
|
142
|
-
};
|
|
94
|
+
return { flat_json: result, attributes: { mainAttributes, relatedAttributes, linkedAttributes } };
|
|
143
95
|
}
|
|
144
96
|
return result;
|
|
145
97
|
}
|
|
146
98
|
const dropdown = [];
|
|
147
|
-
dropdown.push(...mainAttributes.map(
|
|
148
|
-
dropdown.push(...relatedAttributes.map(
|
|
149
|
-
label: a.name,
|
|
150
|
-
value: a.flat_json_key,
|
|
151
|
-
})));
|
|
99
|
+
dropdown.push(...mainAttributes.map(a => ({ label: a.name, value: a.flat_json_key })));
|
|
100
|
+
dropdown.push(...relatedAttributes.map(a => ({ label: a.name, value: a.flat_json_key })));
|
|
152
101
|
if (linkedAttributes.length > 0) {
|
|
153
|
-
dropdown.push(...linkedAttributes.map(
|
|
154
|
-
label: a.name,
|
|
155
|
-
value: a.target_attribute_key,
|
|
156
|
-
})));
|
|
102
|
+
dropdown.push(...linkedAttributes.map(a => ({ label: a.name, value: a.attribute_key })));
|
|
157
103
|
}
|
|
158
104
|
return dropdown;
|
|
159
105
|
}
|
|
160
106
|
async updateEntityJSON(entityType, entityId, loggedInUser) {
|
|
161
107
|
await this.loggerService.log('info', 'EntityJSONService', 'updateEntityJSON', `Building flat JSON for entity: ${entityType}#${entityId}`);
|
|
162
108
|
const response = await this.getAttributeForFlatJSON(entityType, loggedInUser, 'all');
|
|
163
|
-
if (!response ||
|
|
164
|
-
!('flat_json' in response) ||
|
|
165
|
-
!('attributes' in response) ||
|
|
166
|
-
!response.attributes) {
|
|
109
|
+
if (!response || !('flat_json' in response) || !('attributes' in response) || !response.attributes) {
|
|
167
110
|
await this.loggerService.log('error', 'EntityJSONService', 'updateEntityJSON', `getAttributeForFlatJSON() did not return expected structure`);
|
|
168
111
|
return null;
|
|
169
112
|
}
|
|
@@ -176,29 +119,23 @@ let EntityJSONService = class EntityJSONService {
|
|
|
176
119
|
linkedAttributes: attributes.linkedAttributes || [],
|
|
177
120
|
};
|
|
178
121
|
const attrMap = {};
|
|
179
|
-
const allAttrs = [
|
|
180
|
-
|
|
181
|
-
...safeAttributes.relatedAttributes,
|
|
182
|
-
];
|
|
183
|
-
allAttrs.forEach((attr) => {
|
|
122
|
+
const allAttrs = [...safeAttributes.mainAttributes, ...safeAttributes.relatedAttributes];
|
|
123
|
+
allAttrs.forEach(attr => {
|
|
184
124
|
if (attr.attribute_key)
|
|
185
125
|
attrMap[attr.attribute_key] = attr.flat_json_key || attr.attribute_key;
|
|
186
126
|
});
|
|
187
|
-
const mainData = await this.entityServiceImpl.getResolvedEntityData(entityType, entityId, loggedInUser
|
|
127
|
+
const mainData = await this.entityServiceImpl.getResolvedEntityData(entityType, entityId, loggedInUser);
|
|
188
128
|
this.mergeEntityDataIntoFlatJson(flatJson, mainData, attrMap);
|
|
189
129
|
const relations = await this.dataSource
|
|
190
130
|
.getRepository('frm_entity_relation_data')
|
|
191
131
|
.createQueryBuilder('erd')
|
|
192
|
-
.select([
|
|
193
|
-
'erd.target_entity_id AS target_entity_id',
|
|
194
|
-
'erd.target_entity_type AS target_entity_type',
|
|
195
|
-
])
|
|
132
|
+
.select(['erd.target_entity_id AS target_entity_id', 'erd.target_entity_type AS target_entity_type'])
|
|
196
133
|
.where('erd.source_entity_type = :entityType', { entityType })
|
|
197
134
|
.andWhere('erd.source_entity_id = :entityId', { entityId })
|
|
198
135
|
.andWhere('erd.relation_type = :rt', { rt: 'ONE_TO_ONE' })
|
|
199
136
|
.getRawMany();
|
|
200
137
|
for (const rel of relations) {
|
|
201
|
-
const relatedData = await this.entityServiceImpl.getResolvedEntityData(rel.target_entity_type, rel.target_entity_id, loggedInUser
|
|
138
|
+
const relatedData = await this.entityServiceImpl.getResolvedEntityData(rel.target_entity_type, rel.target_entity_id, loggedInUser);
|
|
202
139
|
this.mergeEntityDataIntoFlatJson(flatJson, relatedData, attrMap);
|
|
203
140
|
}
|
|
204
141
|
for (const linkAttr of safeAttributes.linkedAttributes) {
|
|
@@ -237,33 +174,21 @@ let EntityJSONService = class EntityJSONService {
|
|
|
237
174
|
}
|
|
238
175
|
}
|
|
239
176
|
async applyLinkedFilterUsingSavedFilter(childEntityType, savedFilterCode, childFilterAttribute, mappingValue, targetAttribute, loggedInUser, entity_id) {
|
|
240
|
-
if (!savedFilterCode &&
|
|
241
|
-
(mappingValue === null || mappingValue === undefined))
|
|
177
|
+
if (!savedFilterCode && (mappingValue === null || mappingValue === undefined))
|
|
242
178
|
return null;
|
|
243
179
|
const dto = {
|
|
244
180
|
entity_type: childEntityType,
|
|
245
181
|
savedFilterCode,
|
|
246
182
|
page: 1,
|
|
247
183
|
size: 1,
|
|
248
|
-
loggedInUser
|
|
249
184
|
};
|
|
250
|
-
if (mappingValue !== null &&
|
|
251
|
-
mappingValue !== undefined &&
|
|
252
|
-
mappingValue !== '') {
|
|
185
|
+
if (mappingValue !== null && mappingValue !== undefined && mappingValue !== '') {
|
|
253
186
|
dto.quickFilter = [
|
|
254
|
-
{
|
|
255
|
-
filter_attribute: childFilterAttribute,
|
|
256
|
-
filter_operator: 'equal',
|
|
257
|
-
filter_value: mappingValue,
|
|
258
|
-
},
|
|
187
|
+
{ filter_attribute: childFilterAttribute, filter_operator: 'equal', filter_value: mappingValue },
|
|
259
188
|
];
|
|
260
189
|
}
|
|
261
190
|
dto.quickFilter = [
|
|
262
|
-
{
|
|
263
|
-
filter_attribute: 'parent_id',
|
|
264
|
-
filter_operator: 'equal',
|
|
265
|
-
filter_value: [entity_id],
|
|
266
|
-
},
|
|
191
|
+
{ filter_attribute: 'parent_id', filter_operator: 'equal', filter_value: [entity_id] },
|
|
267
192
|
];
|
|
268
193
|
const result = await this.filterService.applyFilter(dto);
|
|
269
194
|
const rows = result?.data?.entity_list || [];
|