rez_core 6.5.50 → 6.5.52
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 +5 -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 +63 -38
- package/dist/core.module.js.map +1 -1
- package/dist/module/app_master/app-master.module.d.ts +2 -0
- package/dist/module/app_master/app-master.module.js +28 -0
- package/dist/module/app_master/app-master.module.js.map +1 -0
- package/dist/module/app_master/controller/app-master.controller.js.map +1 -0
- package/dist/module/app_master/entity/app-master.entity.d.ts +17 -0
- package/dist/module/{meta → app_master}/entity/app-master.entity.js +30 -12
- package/dist/module/app_master/entity/app-master.entity.js.map +1 -0
- package/dist/module/{meta → app_master}/repository/app-master.repository.d.ts +2 -2
- package/dist/module/{meta → app_master}/repository/app-master.repository.js +4 -4
- package/dist/module/app_master/repository/app-master.repository.js.map +1 -0
- package/dist/module/app_master/service/app-master.service.js.map +1 -0
- 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 +25 -101
- 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/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 +3 -14
- package/dist/module/meta/entity.module.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 +24 -45
- 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 -3
- package/dist/module/module/entity/menu.entity.js +19 -10
- package/dist/module/module/entity/menu.entity.js.map +1 -1
- package/dist/module/module/entity/module-access.entity.d.ts +15 -1
- package/dist/module/module/entity/module-access.entity.js +49 -3
- 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 +38 -27
- 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 +96 -48
- 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 +7 -2
- package/dist/module/user/repository/role.repository.js +23 -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 +5 -2
- package/dist/module/user/repository/user.repository.js +26 -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 +54 -40
- 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 +33 -22
- package/dist/module/user/service/user.service.js +66 -58
- package/dist/module/user/service/user.service.js.map +1 -1
- package/dist/module/user/user.module.js +2 -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 +3 -5
- package/dist/table.config.js +3 -3
- 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 +7 -5
- package/src/constant/status.constant.ts +4 -0
- package/src/core.module.ts +58 -44
- package/src/module/app_master/app-master.module.ts +15 -0
- package/src/module/{meta → app_master}/entity/app-master.entity.ts +22 -9
- package/src/module/{meta → app_master}/repository/app-master.repository.ts +3 -3
- 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 +51 -237
- 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/entity-master.entity.ts +3 -9
- package/src/module/meta/entity.module.ts +6 -20
- 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 +68 -82
- 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 +18 -10
- package/src/module/module/entity/module-access.entity.ts +40 -3
- 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 +43 -29
- package/src/module/module/repository/module-access.repository.ts +111 -63
- 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 +32 -12
- package/src/module/user/repository/user-role-mapping.repository.ts +5 -1
- package/src/module/user/repository/user.repository.ts +36 -9
- 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 +64 -63
- 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 +76 -95
- package/src/module/user/user.module.ts +4 -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 +3 -3
- 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/controller/app-master.controller.js.map +0 -1
- package/dist/module/meta/entity/app-master.entity.d.ts +0 -13
- package/dist/module/meta/entity/app-master.entity.js.map +0 -1
- package/dist/module/meta/repository/app-master.repository.js.map +0 -1
- package/dist/module/meta/service/app-master.service.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
- /package/dist/module/{meta → app_master}/controller/app-master.controller.d.ts +0 -0
- /package/dist/module/{meta → app_master}/controller/app-master.controller.js +0 -0
- /package/dist/module/{meta → app_master}/service/app-master.service.d.ts +0 -0
- /package/dist/module/{meta → app_master}/service/app-master.service.js +0 -0
- /package/src/module/{meta → app_master}/controller/app-master.controller.ts +0 -0
- /package/src/module/{meta → app_master}/service/app-master.service.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.entity.js","sourceRoot":"","sources":["../../../../src/module/enterprise/entity/organization.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"organization.entity.js","sourceRoot":"","sources":["../../../../src/module/enterprise/entity/organization.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4H;AAC5H,2DAAqD;AAG9C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAqC5B,CAAA;AArCY,4CAAgB;AAE3B;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;4CACzC;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C,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC5B;2BApCF,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;GACxB,gBAAgB,CAqC5B"}
|
|
@@ -3,6 +3,8 @@ import { Repository } from 'typeorm';
|
|
|
3
3
|
export declare class EnterpriseRepository {
|
|
4
4
|
private readonly enterpriseRepository;
|
|
5
5
|
constructor(enterpriseRepository: Repository<EnterpriseData>);
|
|
6
|
-
save(enterpriseData: EnterpriseData): Promise<EnterpriseData>;
|
|
7
|
-
update(enterpriseData: EnterpriseData): Promise<EnterpriseData | null>;
|
|
6
|
+
save(enterpriseData: EnterpriseData, loggedInUser: any): Promise<EnterpriseData>;
|
|
7
|
+
update(enterpriseData: EnterpriseData, loggedInUser: any): Promise<EnterpriseData | null>;
|
|
8
|
+
findEnterpriseBySubdomain(slug: string): Promise<EnterpriseData | null>;
|
|
9
|
+
findById(id: number): Promise<EnterpriseData | null>;
|
|
8
10
|
}
|
|
@@ -21,23 +21,38 @@ let EnterpriseRepository = class EnterpriseRepository {
|
|
|
21
21
|
constructor(enterpriseRepository) {
|
|
22
22
|
this.enterpriseRepository = enterpriseRepository;
|
|
23
23
|
}
|
|
24
|
-
async save(enterpriseData) {
|
|
25
|
-
|
|
24
|
+
async save(enterpriseData, loggedInUser) {
|
|
25
|
+
if (loggedInUser) {
|
|
26
|
+
enterpriseData.created_by = loggedInUser.id;
|
|
27
|
+
enterpriseData.modified_by = loggedInUser.id;
|
|
28
|
+
}
|
|
26
29
|
return await this.enterpriseRepository.save(enterpriseData);
|
|
27
30
|
}
|
|
28
|
-
async update(enterpriseData) {
|
|
31
|
+
async update(enterpriseData, loggedInUser) {
|
|
29
32
|
const existingEnterprise = await this.enterpriseRepository.findOne({
|
|
30
33
|
where: { id: enterpriseData.id },
|
|
31
34
|
});
|
|
32
35
|
if (!existingEnterprise) {
|
|
33
36
|
throw new Error(`Enterprise with id ${enterpriseData.id} not found`);
|
|
34
37
|
}
|
|
35
|
-
|
|
38
|
+
if (loggedInUser) {
|
|
39
|
+
enterpriseData.modified_by = loggedInUser.id;
|
|
40
|
+
}
|
|
36
41
|
await this.enterpriseRepository.update(enterpriseData.id, enterpriseData);
|
|
37
42
|
return await this.enterpriseRepository.findOne({
|
|
38
43
|
where: { id: enterpriseData.id },
|
|
39
44
|
});
|
|
40
45
|
}
|
|
46
|
+
async findEnterpriseBySubdomain(slug) {
|
|
47
|
+
return await this.enterpriseRepository.findOne({
|
|
48
|
+
where: { slug },
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
async findById(id) {
|
|
52
|
+
return await this.enterpriseRepository.findOne({
|
|
53
|
+
where: { id },
|
|
54
|
+
});
|
|
55
|
+
}
|
|
41
56
|
};
|
|
42
57
|
exports.EnterpriseRepository = EnterpriseRepository;
|
|
43
58
|
exports.EnterpriseRepository = EnterpriseRepository = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enterprise.repository.js","sourceRoot":"","sources":["../../../../src/module/enterprise/repository/enterprise.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,mEAA6D;AAC7D,qCAAqC;AAG9B,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,oBAAgD;QAAhD,yBAAoB,GAApB,oBAAoB,CAA4B;IAChE,CAAC;IAEJ,KAAK,CAAC,IAAI,CAAC,cAA8B;
|
|
1
|
+
{"version":3,"file":"enterprise.repository.js","sourceRoot":"","sources":["../../../../src/module/enterprise/repository/enterprise.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,mEAA6D;AAC7D,qCAAqC;AAG9B,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,oBAAgD;QAAhD,yBAAoB,GAApB,oBAAoB,CAA4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K,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA9CY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,kCAAc,CAAC,CAAA;qCACM,oBAAU;GAHxC,oBAAoB,CA8ChC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=brand-profile.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-profile.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/brand-profile.service.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.BrandService = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
12
|
-
let BrandService = class BrandService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
13
|
-
};
|
|
14
|
-
exports.BrandService = BrandService;
|
|
15
|
-
exports.BrandService = BrandService = __decorate([
|
|
16
|
-
(0, common_1.Injectable)()
|
|
17
|
-
], BrandService);
|
|
18
1
|
//# sourceMappingURL=brand.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/brand.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brand.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/brand.service.ts"],"names":[],"mappings":""}
|
|
@@ -3,6 +3,6 @@ import { EnterpriseData } from '../entity/enterprise.entity';
|
|
|
3
3
|
export declare class EnterpriseService {
|
|
4
4
|
private readonly enterpriseRepository;
|
|
5
5
|
constructor(enterpriseRepository: EnterpriseRepository);
|
|
6
|
-
create(enterpriseData: EnterpriseData): Promise<EnterpriseData>;
|
|
7
|
-
update(enterpriseData: EnterpriseData): Promise<EnterpriseData | null>;
|
|
6
|
+
create(enterpriseData: EnterpriseData, loggedInUser: any): Promise<EnterpriseData>;
|
|
7
|
+
update(enterpriseData: EnterpriseData, loggedInUser: any): Promise<EnterpriseData | null>;
|
|
8
8
|
}
|
|
@@ -16,11 +16,11 @@ let EnterpriseService = class EnterpriseService {
|
|
|
16
16
|
constructor(enterpriseRepository) {
|
|
17
17
|
this.enterpriseRepository = enterpriseRepository;
|
|
18
18
|
}
|
|
19
|
-
async create(enterpriseData) {
|
|
20
|
-
return await this.enterpriseRepository.save(enterpriseData);
|
|
19
|
+
async create(enterpriseData, loggedInUser) {
|
|
20
|
+
return await this.enterpriseRepository.save(enterpriseData, loggedInUser);
|
|
21
21
|
}
|
|
22
|
-
async update(enterpriseData) {
|
|
23
|
-
return await this.enterpriseRepository.update(enterpriseData);
|
|
22
|
+
async update(enterpriseData, loggedInUser) {
|
|
23
|
+
return await this.enterpriseRepository.update(enterpriseData, loggedInUser);
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
exports.EnterpriseService = EnterpriseService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enterprise.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/enterprise.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAA2E;AAIpE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YAA6B,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAE3E,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"enterprise.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/enterprise.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAA2E;AAIpE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YAA6B,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAE3E,KAAK,CAAC,MAAM,CACV,cAA8B,EAC9B,YAAiB;QAEjB,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,MAAM,CACV,cAA8B,EAC9B,YAAiB;QAEjB,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IAC9E,CAAC;CACF,CAAA;AAhBY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEwC,4CAAoB;GAD5D,iBAAiB,CAgB7B"}
|
|
@@ -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,6CAAm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AAC,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,mBAAmB;YACnB,sBAAsB;YACtB,iBAAiB;YACjB,qBAAqB;SACtB,CAAC;QAEF,MAAM,QAAQ,GAAG;YACf,cAAc;YACd,iBAAiB;YACjB,YAAY;YACZ,oBAAoB;SACrB,CAAC;QAEF,MAAM,mBAAmB,GACvB,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;QAC1D,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;QAC1E,MAAM,gBAAgB,GACpB,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;QAC7D,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;QAC5E,MAA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ACzB,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
|
}
|