rez_core 6.5.27 → 6.5.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +26 -0
- package/.idea/250218_nodejs_core.iml +9 -0
- package/.idea/codeStyles/Project.xml +59 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/dist/app.module.js +3 -3
- package/dist/app.module.js.map +1 -1
- package/dist/constant/status.constant.d.ts +4 -0
- package/dist/constant/status.constant.js +9 -0
- package/dist/constant/status.constant.js.map +1 -0
- package/dist/core.module.js +60 -38
- package/dist/core.module.js.map +1 -1
- package/dist/module/auth/strategies/jwt.strategy.d.ts +2 -1
- package/dist/module/auth/strategies/jwt.strategy.js +3 -2
- package/dist/module/auth/strategies/jwt.strategy.js.map +1 -1
- package/dist/module/dashboard/dashboard.module.js +1 -1
- package/dist/module/dashboard/dashboard.module.js.map +1 -1
- package/dist/module/dashboard/service/dashboard.service.js +2 -3
- package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
- package/dist/module/enterprise/controller/enterprise.controller.d.ts +12 -0
- package/dist/module/enterprise/controller/enterprise.controller.js +57 -0
- package/dist/module/enterprise/controller/enterprise.controller.js.map +1 -0
- package/dist/module/enterprise/controller/meta.controller.d.ts +9 -0
- package/dist/module/enterprise/controller/meta.controller.js +43 -0
- package/dist/module/enterprise/controller/meta.controller.js.map +1 -0
- package/dist/module/enterprise/controller/organization.controller.d.ts +12 -4
- package/dist/module/enterprise/controller/organization.controller.js +64 -8
- package/dist/module/enterprise/controller/organization.controller.js.map +1 -1
- package/dist/module/enterprise/enterprise.module.js +10 -15
- package/dist/module/enterprise/enterprise.module.js.map +1 -1
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +1 -3
- package/dist/module/enterprise/entity/enterprise.entity.js +4 -12
- package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +6 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +21 -4
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -1
- package/dist/module/enterprise/entity/organization.entity.d.ts +3 -18
- package/dist/module/enterprise/entity/organization.entity.js +8 -74
- package/dist/module/enterprise/entity/organization.entity.js.map +1 -1
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +4 -2
- package/dist/module/enterprise/repository/enterprise.repository.js +19 -4
- package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -1
- package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
- package/dist/module/enterprise/service/brand-profile.service.js +1 -0
- package/dist/module/enterprise/service/brand-profile.service.js.map +1 -0
- package/dist/module/enterprise/service/brand.service.d.ts +0 -3
- package/dist/module/enterprise/service/brand.service.js +0 -17
- package/dist/module/enterprise/service/brand.service.js.map +1 -1
- package/dist/module/enterprise/service/enterprise.service.d.ts +2 -2
- package/dist/module/enterprise/service/enterprise.service.js +4 -4
- package/dist/module/enterprise/service/enterprise.service.js.map +1 -1
- package/dist/module/enterprise/service/organization.service.d.ts +4 -4
- package/dist/module/enterprise/service/organization.service.js +101 -24
- package/dist/module/enterprise/service/organization.service.js.map +1 -1
- package/dist/module/enterprise/service/populate-meta.service.d.ts +9 -0
- package/dist/module/{meta → enterprise}/service/populate-meta.service.js +2 -8
- package/dist/module/enterprise/service/populate-meta.service.js.map +1 -0
- package/dist/module/enterprise/service/school.service.d.ts +0 -0
- package/dist/module/enterprise/service/school.service.js +1 -0
- package/dist/module/enterprise/service/school.service.js.map +1 -0
- package/dist/module/entity_json/controller/entity_json.controller.d.ts +9 -2
- package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
- package/dist/module/entity_json/entity/entityJson.entity.d.ts +1 -2
- package/dist/module/entity_json/entity/entityJson.entity.js +1 -5
- package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -1
- package/dist/module/entity_json/entity_json.module.js +2 -7
- package/dist/module/entity_json/entity_json.module.js.map +1 -1
- package/dist/module/entity_json/service/entity_json.service.d.ts +10 -2
- package/dist/module/entity_json/service/entity_json.service.js +23 -97
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
- package/dist/module/filter/controller/filter.controller.d.ts +0 -12
- package/dist/module/filter/controller/filter.controller.js +1 -1
- package/dist/module/filter/controller/filter.controller.js.map +1 -1
- package/dist/module/filter/filter.module.js +2 -11
- package/dist/module/filter/filter.module.js.map +1 -1
- package/dist/module/filter/service/filter.service.d.ts +2 -38
- package/dist/module/filter/service/filter.service.js +50 -43
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/filter/service/saved-filter.service.d.ts +2 -3
- package/dist/module/filter/service/saved-filter.service.js +18 -14
- package/dist/module/filter/service/saved-filter.service.js.map +1 -1
- package/dist/module/integration/service/integration.service.d.ts +0 -1
- package/dist/module/integration/service/integration.service.js +1 -2
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/module/integration/service/wrapper.service.js +0 -1
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/layout/controller/layout.controller.d.ts +1 -3
- package/dist/module/layout/controller/layout.controller.js +3 -7
- package/dist/module/layout/controller/layout.controller.js.map +1 -1
- package/dist/module/layout/entity/header-section.entity.d.ts +0 -2
- package/dist/module/layout/entity/header-section.entity.js +0 -8
- package/dist/module/layout/entity/header-section.entity.js.map +1 -1
- package/dist/module/layout/layout.module.js +1 -2
- package/dist/module/layout/layout.module.js.map +1 -1
- package/dist/module/layout/repository/header-section.repository.d.ts +0 -1
- package/dist/module/layout/repository/header-section.repository.js +0 -5
- package/dist/module/layout/repository/header-section.repository.js.map +1 -1
- package/dist/module/layout/service/header-section.service.d.ts +1 -1
- package/dist/module/layout/service/header-section.service.js +1 -1
- package/dist/module/layout/service/header-section.service.js.map +1 -1
- package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +0 -41
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js +0 -90
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -1
- package/dist/module/linked_attributes/linked_attributes.module.js +1 -8
- package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +1 -65
- package/dist/module/linked_attributes/service/linked_attributes.service.js +2 -287
- package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
- package/dist/module/listmaster/service/list-master.service.js +1 -8
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/meta/controller/meta.controller.d.ts +1 -6
- package/dist/module/meta/controller/meta.controller.js +1 -19
- package/dist/module/meta/controller/meta.controller.js.map +1 -1
- package/dist/module/meta/entity/app-master.entity.d.ts +8 -4
- package/dist/module/meta/entity/app-master.entity.js +30 -12
- package/dist/module/meta/entity/app-master.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-master.entity.d.ts +0 -1
- package/dist/module/meta/entity/entity-master.entity.js +1 -8
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/entity.module.js +2 -5
- package/dist/module/meta/entity.module.js.map +1 -1
- package/dist/module/meta/repository/app-master.repository.js +1 -1
- package/dist/module/meta/repository/app-master.repository.js.map +1 -1
- package/dist/module/meta/service/attribute-master.service.d.ts +1 -6
- package/dist/module/meta/service/attribute-master.service.js +2 -22
- package/dist/module/meta/service/attribute-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-master.service.js +0 -1
- package/dist/module/meta/service/entity-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-relation.service.d.ts +3 -4
- package/dist/module/meta/service/entity-relation.service.js +4 -10
- package/dist/module/meta/service/entity-relation.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.d.ts +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +10 -14
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.d.ts +3 -2
- package/dist/module/meta/service/entity-table.service.js +23 -19
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/meta/service/resolver.service.d.ts +1 -1
- package/dist/module/meta/service/resolver.service.js +3 -6
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/module/controller/menu.controller.js +2 -2
- package/dist/module/module/controller/menu.controller.js.map +1 -1
- package/dist/module/module/controller/module-access.controller.d.ts +3 -4
- package/dist/module/module/controller/module-access.controller.js +15 -10
- package/dist/module/module/controller/module-access.controller.js.map +1 -1
- package/dist/module/module/entity/menu.entity.d.ts +6 -4
- package/dist/module/module/entity/menu.entity.js +16 -12
- package/dist/module/module/entity/menu.entity.js.map +1 -1
- package/dist/module/module/entity/module-access.entity.d.ts +15 -0
- package/dist/module/module/entity/module-access.entity.js +50 -0
- package/dist/module/module/entity/module-access.entity.js.map +1 -1
- package/dist/module/module/entity/module-action.entity.d.ts +4 -2
- package/dist/module/module/entity/module-action.entity.js +11 -6
- package/dist/module/module/entity/module-action.entity.js.map +1 -1
- package/dist/module/module/entity/module.entity.d.ts +3 -5
- package/dist/module/module/entity/module.entity.js +8 -18
- package/dist/module/module/entity/module.entity.js.map +1 -1
- package/dist/module/module/module.module.d.ts +1 -1
- package/dist/module/module/module.module.js +5 -7
- package/dist/module/module/module.module.js.map +1 -1
- package/dist/module/module/repository/menu.repository.d.ts +4 -4
- package/dist/module/module/repository/menu.repository.js +17 -27
- package/dist/module/module/repository/menu.repository.js.map +1 -1
- package/dist/module/module/repository/module-access.repository.d.ts +7 -7
- package/dist/module/module/repository/module-access.repository.js +86 -48
- package/dist/module/module/repository/module-access.repository.js.map +1 -1
- package/dist/module/module/service/menu.service.d.ts +3 -5
- package/dist/module/module/service/menu.service.js +9 -12
- package/dist/module/module/service/menu.service.js.map +1 -1
- package/dist/module/module/service/module-access.service.d.ts +8 -11
- package/dist/module/module/service/module-access.service.js +24 -26
- package/dist/module/module/service/module-access.service.js.map +1 -1
- package/dist/module/notification/entity/notification.entity.d.ts +17 -2
- package/dist/module/notification/entity/notification.entity.js +68 -2
- package/dist/module/notification/entity/notification.entity.js.map +1 -1
- package/dist/module/notification/notification.module.js +0 -2
- package/dist/module/notification/notification.module.js.map +1 -1
- package/dist/module/notification/service/notification.service.d.ts +1 -3
- package/dist/module/notification/service/notification.service.js +2 -5
- package/dist/module/notification/service/notification.service.js.map +1 -1
- package/dist/module/notification/service/otp.service.js.map +1 -1
- package/dist/module/user/controller/login.controller.d.ts +1 -3
- package/dist/module/user/controller/login.controller.js +2 -6
- package/dist/module/user/controller/login.controller.js.map +1 -1
- package/dist/module/user/controller/user.controller.d.ts +0 -2
- package/dist/module/user/controller/user.controller.js +0 -13
- package/dist/module/user/controller/user.controller.js.map +1 -1
- package/dist/module/user/dto/create-user.dto.d.ts +6 -3
- package/dist/module/user/dto/create-user.dto.js +17 -11
- package/dist/module/user/dto/create-user.dto.js.map +1 -1
- package/dist/module/user/entity/role.entity.d.ts +18 -6
- package/dist/module/user/entity/role.entity.js +64 -19
- package/dist/module/user/entity/role.entity.js.map +1 -1
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +10 -0
- package/dist/module/user/entity/user-role-mapping.entity.js +33 -1
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
- package/dist/module/user/entity/user-session.entity.d.ts +0 -2
- package/dist/module/user/entity/user-session.entity.js +2 -20
- package/dist/module/user/entity/user-session.entity.js.map +1 -1
- package/dist/module/user/entity/user.entity.d.ts +17 -5
- package/dist/module/user/entity/user.entity.js +61 -15
- package/dist/module/user/entity/user.entity.js.map +1 -1
- package/dist/module/user/repository/role.repository.d.ts +6 -2
- package/dist/module/user/repository/role.repository.js +16 -8
- package/dist/module/user/repository/role.repository.js.map +1 -1
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +1 -0
- package/dist/module/user/repository/user-role-mapping.repository.js +3 -0
- package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -1
- package/dist/module/user/repository/user.repository.d.ts +4 -2
- package/dist/module/user/repository/user.repository.js +19 -7
- package/dist/module/user/repository/user.repository.js.map +1 -1
- package/dist/module/user/repository/userSession.repository.d.ts +1 -0
- package/dist/module/user/repository/userSession.repository.js +3 -0
- package/dist/module/user/repository/userSession.repository.js.map +1 -1
- package/dist/module/user/service/login.service.d.ts +3 -5
- package/dist/module/user/service/login.service.js +43 -42
- package/dist/module/user/service/login.service.js.map +1 -1
- package/dist/module/user/service/role.service.d.ts +24 -11
- package/dist/module/user/service/role.service.js +42 -38
- package/dist/module/user/service/role.service.js.map +1 -1
- package/dist/module/user/service/user-role-mapping.service.d.ts +2 -0
- package/dist/module/user/service/user-role-mapping.service.js +6 -0
- package/dist/module/user/service/user-role-mapping.service.js.map +1 -1
- package/dist/module/user/service/user-session.service.d.ts +3 -4
- package/dist/module/user/service/user-session.service.js +10 -11
- package/dist/module/user/service/user-session.service.js.map +1 -1
- package/dist/module/user/service/user.service.d.ts +29 -20
- package/dist/module/user/service/user.service.js +44 -56
- package/dist/module/user/service/user.service.js.map +1 -1
- package/dist/module/user/user.module.js +1 -7
- package/dist/module/user/user.module.js.map +1 -1
- package/dist/module/workflow/repository/action-data.repository.d.ts +1 -1
- package/dist/module/workflow/repository/action-data.repository.js +6 -8
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
- package/dist/module/workflow/repository/action.repository.d.ts +1 -1
- package/dist/module/workflow/repository/action.repository.js +10 -10
- package/dist/module/workflow/repository/action.repository.js.map +1 -1
- package/dist/module/workflow/repository/form-master.repository.d.ts +1 -1
- package/dist/module/workflow/repository/form-master.repository.js +2 -2
- package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
- package/dist/module/workflow/service/action-data.service.js +1 -2
- package/dist/module/workflow/service/action-data.service.js.map +1 -1
- package/dist/module/workflow/service/action.service.js +2 -2
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/comm-template.service.js +0 -2
- package/dist/module/workflow/service/comm-template.service.js.map +1 -1
- package/dist/module/workflow/service/entity-modification.service.js +0 -1
- package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
- package/dist/module/workflow/service/form-master.service.js +2 -2
- package/dist/module/workflow/service/form-master.service.js.map +1 -1
- package/dist/module/workflow/service/populate-workflow.service.d.ts +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.js +0 -3
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-meta.service.js +2 -7
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
- package/dist/module/workflow/service/workflow.service.js +2 -2
- package/dist/module/workflow/service/workflow.service.js.map +1 -1
- package/dist/module/workflow/workflow.module.js +2 -0
- package/dist/module/workflow/workflow.module.js.map +1 -1
- package/dist/module/workflow-automation/service/workflow-automation.service.js +11 -6
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/module/workflow-automation/workflow-automation.module.js +3 -1
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js +0 -2
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
- package/dist/table.config.d.ts +2 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/server.log +850 -0
- package/src/app.module.ts +5 -5
- package/src/constant/status.constant.ts +4 -0
- package/src/core.module.ts +55 -44
- package/src/module/auth/strategies/jwt.strategy.ts +4 -2
- package/src/module/dashboard/dashboard.module.ts +3 -3
- package/src/module/dashboard/service/dashboard.service.ts +2 -3
- package/src/module/enterprise/controller/enterprise.controller.ts +40 -0
- package/src/module/enterprise/controller/meta.controller.ts +23 -0
- package/src/module/enterprise/controller/organization.controller.ts +60 -4
- package/src/module/enterprise/enterprise.module.ts +16 -18
- package/src/module/enterprise/entity/enterprise.entity.ts +5 -11
- package/src/module/enterprise/entity/organization-app-mapping.entity.ts +18 -4
- package/src/module/enterprise/entity/organization.entity.ts +9 -59
- package/src/module/enterprise/repository/enterprise.repository.ts +26 -4
- package/src/module/enterprise/service/brand-profile.service.ts +10 -0
- package/src/module/enterprise/service/brand.service.ts +75 -5
- package/src/module/enterprise/service/enterprise.service.ts +10 -4
- package/src/module/enterprise/service/organization.service.ts +140 -23
- package/src/module/{meta → enterprise}/service/populate-meta.service.ts +2 -5
- package/src/module/enterprise/service/school.service.ts +5 -0
- package/src/module/entity_json/controller/entity_json.controller.ts +0 -13
- package/src/module/entity_json/entity/entityJson.entity.ts +1 -4
- package/src/module/entity_json/entity_json.module.ts +5 -9
- package/src/module/entity_json/service/entity_json.service.ts +49 -232
- package/src/module/filter/controller/filter.controller.ts +3 -1
- package/src/module/filter/filter.module.ts +3 -12
- package/src/module/filter/service/filter.service.ts +73 -130
- package/src/module/filter/service/saved-filter.service.ts +26 -16
- package/src/module/integration/service/integration.service.ts +2 -6
- package/src/module/integration/service/wrapper.service.ts +0 -1
- package/src/module/layout/controller/layout.controller.ts +1 -8
- package/src/module/layout/entity/header-section.entity.ts +0 -6
- package/src/module/layout/layout.module.ts +1 -1
- package/src/module/layout/repository/header-section.repository.ts +0 -6
- package/src/module/layout/service/header-section.service.ts +1 -1
- package/src/module/linked_attributes/controller/linked_attributes.controller.ts +0 -100
- package/src/module/linked_attributes/linked_attributes.module.ts +2 -9
- package/src/module/linked_attributes/service/linked_attributes.service.ts +3 -578
- package/src/module/listmaster/service/list-master.service.ts +1 -9
- package/src/module/meta/controller/meta.controller.ts +3 -25
- package/src/module/meta/entity/app-master.entity.ts +22 -9
- package/src/module/meta/entity/entity-master.entity.ts +3 -9
- package/src/module/meta/entity.module.ts +5 -6
- package/src/module/meta/repository/app-master.repository.ts +1 -1
- package/src/module/meta/service/attribute-master.service.ts +1 -31
- package/src/module/meta/service/entity-master.service.ts +0 -1
- package/src/module/meta/service/entity-relation.service.ts +6 -10
- package/src/module/meta/service/entity-service-impl.service.ts +19 -14
- package/src/module/meta/service/entity-table.service.ts +20 -28
- package/src/module/meta/service/entity.service.ts +1 -0
- package/src/module/meta/service/resolver.service.ts +0 -4
- package/src/module/module/controller/menu.controller.ts +2 -2
- package/src/module/module/controller/module-access.controller.ts +16 -11
- package/src/module/module/entity/menu.entity.ts +14 -10
- package/src/module/module/entity/module-access.entity.ts +41 -1
- package/src/module/module/entity/module-action.entity.ts +10 -6
- package/src/module/module/entity/module.entity.ts +7 -14
- package/src/module/module/module.module.ts +2 -3
- package/src/module/module/repository/menu.repository.ts +19 -31
- package/src/module/module/repository/module-access.repository.ts +100 -63
- package/src/module/module/service/menu.service.ts +11 -13
- package/src/module/module/service/module-access.service.ts +26 -38
- package/src/module/notification/entity/notification.entity.ts +53 -3
- package/src/module/notification/notification.module.ts +0 -2
- package/src/module/notification/service/notification.service.ts +0 -1
- package/src/module/notification/service/otp.service.ts +3 -2
- package/src/module/user/controller/login.controller.ts +7 -8
- package/src/module/user/controller/user.controller.ts +0 -9
- package/src/module/user/dto/create-user.dto.ts +19 -6
- package/src/module/user/entity/role.entity.ts +59 -16
- package/src/module/user/entity/user-role-mapping.entity.ts +29 -3
- package/src/module/user/entity/user-session.entity.ts +3 -19
- package/src/module/user/entity/user.entity.ts +48 -13
- package/src/module/user/repository/role.repository.ts +24 -12
- package/src/module/user/repository/user-role-mapping.repository.ts +5 -1
- package/src/module/user/repository/user.repository.ts +28 -8
- package/src/module/user/repository/userSession.repository.ts +5 -1
- package/src/module/user/service/login.service.ts +47 -51
- package/src/module/user/service/role.service.ts +53 -60
- package/src/module/user/service/user-role-mapping.service.ts +23 -1
- package/src/module/user/service/user-session.service.ts +14 -11
- package/src/module/user/service/user.service.ts +64 -91
- package/src/module/user/user.module.ts +3 -5
- package/src/module/workflow/repository/action-data.repository.ts +6 -8
- package/src/module/workflow/repository/action.repository.ts +11 -11
- package/src/module/workflow/repository/form-master.repository.ts +2 -2
- package/src/module/workflow/service/action-data.service.ts +3 -2
- package/src/module/workflow/service/action.service.ts +2 -2
- package/src/module/workflow/service/comm-template.service.ts +0 -2
- package/src/module/workflow/service/entity-modification.service.ts +0 -1
- package/src/module/workflow/service/form-master.service.ts +2 -2
- package/src/module/workflow/service/populate-workflow.service.ts +1 -1
- package/src/module/workflow/service/task.service.ts +0 -3
- package/src/module/workflow/service/workflow-meta.service.ts +2 -7
- package/src/module/workflow/service/workflow.service.ts +2 -2
- package/src/module/workflow/workflow.module.ts +2 -0
- package/src/module/workflow-automation/service/workflow-automation.service.ts +19 -7
- package/src/module/workflow-automation/workflow-automation.module.ts +4 -3
- package/src/module/workflow-schedule/service/workflow-schedule.service.ts +0 -2
- package/src/resources/dev.properties.yaml +2 -2
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +0 -6
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +0 -32
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +0 -1
- package/dist/module/filter/service/flatjson-filter.service.d.ts +0 -32
- package/dist/module/filter/service/flatjson-filter.service.js +0 -632
- package/dist/module/filter/service/flatjson-filter.service.js.map +0 -1
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.d.ts +0 -13
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js +0 -64
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js.map +0 -1
- package/dist/module/meta/service/populate-meta.service.d.ts +0 -13
- package/dist/module/meta/service/populate-meta.service.js.map +0 -1
- package/src/migrations/1732612800000-AddEntityJsonGinIndex.ts +0 -41
- package/src/module/entity_json/docs/FlatJson_Filterin_System.md +0 -2804
- package/src/module/filter/service/flatjson-filter.service.ts +0 -903
- package/src/module/filter/test/flatjson-filter.service.spec.ts +0 -415
- package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +0 -54
- package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +0 -244
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(npm run build:*)",
|
|
5
|
+
"Bash(npm install)",
|
|
6
|
+
"Bash(npm run lint)",
|
|
7
|
+
"Bash(npm install:*)",
|
|
8
|
+
"Bash(curl:*)",
|
|
9
|
+
"Bash(npm run start:dev:*)",
|
|
10
|
+
"Bash(mkdir:*)",
|
|
11
|
+
"Bash(lsof:*)",
|
|
12
|
+
"Bash(kill:*)",
|
|
13
|
+
"Bash(npx eslint:*)",
|
|
14
|
+
"Read(/Users/admin/yash/**)",
|
|
15
|
+
"Bash(timeout 15 npm run start:dev)",
|
|
16
|
+
"Read(/Users/admin/yash/**)",
|
|
17
|
+
"Bash(find:*)",
|
|
18
|
+
"Bash(sed:*)",
|
|
19
|
+
"Bash(git checkout:*)",
|
|
20
|
+
"Read(//Users/admin/yash/**)",
|
|
21
|
+
"Bash(npx tsc:*)"
|
|
22
|
+
],
|
|
23
|
+
"deny": [],
|
|
24
|
+
"ask": []
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
+
<code_scheme name="Project" version="173">
|
|
3
|
+
<HTMLCodeStyleSettings>
|
|
4
|
+
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
5
|
+
</HTMLCodeStyleSettings>
|
|
6
|
+
<JSCodeStyleSettings version="0">
|
|
7
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
8
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
9
|
+
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
10
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
11
|
+
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
12
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
13
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
14
|
+
</JSCodeStyleSettings>
|
|
15
|
+
<TypeScriptCodeStyleSettings version="0">
|
|
16
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
17
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
18
|
+
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
19
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
20
|
+
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
21
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
22
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
23
|
+
</TypeScriptCodeStyleSettings>
|
|
24
|
+
<VueCodeStyleSettings>
|
|
25
|
+
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
|
|
26
|
+
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
|
|
27
|
+
</VueCodeStyleSettings>
|
|
28
|
+
<codeStyleSettings language="HTML">
|
|
29
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
30
|
+
<indentOptions>
|
|
31
|
+
<option name="INDENT_SIZE" value="2" />
|
|
32
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
33
|
+
<option name="TAB_SIZE" value="2" />
|
|
34
|
+
</indentOptions>
|
|
35
|
+
</codeStyleSettings>
|
|
36
|
+
<codeStyleSettings language="JavaScript">
|
|
37
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
38
|
+
<indentOptions>
|
|
39
|
+
<option name="INDENT_SIZE" value="2" />
|
|
40
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
41
|
+
<option name="TAB_SIZE" value="2" />
|
|
42
|
+
</indentOptions>
|
|
43
|
+
</codeStyleSettings>
|
|
44
|
+
<codeStyleSettings language="TypeScript">
|
|
45
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
46
|
+
<indentOptions>
|
|
47
|
+
<option name="INDENT_SIZE" value="2" />
|
|
48
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
49
|
+
<option name="TAB_SIZE" value="2" />
|
|
50
|
+
</indentOptions>
|
|
51
|
+
</codeStyleSettings>
|
|
52
|
+
<codeStyleSettings language="Vue">
|
|
53
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
54
|
+
<indentOptions>
|
|
55
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
56
|
+
</indentOptions>
|
|
57
|
+
</codeStyleSettings>
|
|
58
|
+
</code_scheme>
|
|
59
|
+
</component>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="SqlNoDataSourceInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
5
|
+
</profile>
|
|
6
|
+
</component>
|
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK">
|
|
4
|
+
<output url="file://$PROJECT_DIR$/out" />
|
|
5
|
+
</component>
|
|
6
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/250218_nodejs_core.iml" filepath="$PROJECT_DIR$/.idea/250218_nodejs_core.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/vcs.xml
ADDED
package/dist/app.module.js
CHANGED
|
@@ -43,12 +43,11 @@ exports.AppModule = AppModule;
|
|
|
43
43
|
exports.AppModule = AppModule = __decorate([
|
|
44
44
|
(0, common_1.Module)({
|
|
45
45
|
imports: [
|
|
46
|
-
entity_module_1.EntityModule,
|
|
47
46
|
config_module_1.DatabaseModule,
|
|
48
47
|
enterprise_module_1.EnterpriseModule,
|
|
49
48
|
utils_module_1.UtilsModule,
|
|
50
49
|
user_module_1.UserModule,
|
|
51
|
-
module_module_1.
|
|
50
|
+
module_module_1.ModuleAccessModule,
|
|
52
51
|
notification_module_1.NotificationModule,
|
|
53
52
|
properties_module_1.default,
|
|
54
53
|
layout_module_1.LayoutModule,
|
|
@@ -70,7 +69,8 @@ exports.AppModule = AppModule = __decorate([
|
|
|
70
69
|
microservice_clients_module_1.MicroserviceClientsModule,
|
|
71
70
|
linked_attributes_module_1.LinkedAttributesModule,
|
|
72
71
|
entity_json_module_1.EntityJSONModule,
|
|
73
|
-
export_module_1.ExportModule
|
|
72
|
+
export_module_1.ExportModule,
|
|
73
|
+
entity_module_1.EntityModule,
|
|
74
74
|
],
|
|
75
75
|
})
|
|
76
76
|
], AppModule);
|
package/dist/app.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,0DAAwD;AACxD,6EAAyE;AACzE,uDAAmD;AACnD,2DAAuD;AACvD,+DAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,0DAAwD;AACxD,6EAAyE;AACzE,uDAAmD;AACnD,2DAAuD;AACvD,+DAA2D;AAC3D,iEAAmE;AACnE,mFAA+E;AAC/E,qEAAuD;AACvD,iEAA6D;AAC7D,6EAAyE;AACzE,uFAAkF;AAClF,iEAA6D;AAC7D,2DAAuD;AACvD,kGAA6F;AAC7F,uEAAmE;AACnE,wDAA2D;AAC3D,0EAAsE;AACtE,gFAA4E;AAC5E,+CAAkD;AAClD,2DAAuD;AACvD,iEAA6D;AAC7D,uCAA0C;AAC1C,sDAAyD;AACzD,kGAA6F;AAC7F,0GAAqG;AACrG,wGAAmG;AACnG,kGAA6F;AAC7F,gFAA2E;AAC3E,iEAA6D;AAsCtD,IAAM,SAAS,GAAf,MAAM,SAAS;CAAI,CAAA;AAAb,8BAAS;oBAAT,SAAS;IApCrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,8BAAc;YACd,oCAAgB;YAChB,0BAAW;YACX,wBAAU;YACV,kCAAkB;YAClB,wCAAkB;YAClB,2BAAU;YACV,4BAAY;YACZ,oCAAgB;YAChB,qCAAgB;YAChB,4BAAY;YACZ,wBAAU;YACV,iDAAsB;YACtB,gCAAc;YACd,6BAAgB;YAChB,kCAAe;YACf,sCAAiB;YACjB,wBAAU;YACV,4BAAY;YACZ,yBAAc,CAAC,OAAO,EAAE;YAExB,iBAAU,CAAC,YAAY,CAAC,+BAAiB,CAAC;YAG1C,iDAAsB,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;YAErD,qDAAwB;YACxB,uDAAyB;YACzB,iDAAsB;YACtB,qCAAgB;YAChB,4BAAY;YACZ,4BAAY;SACb;KACF,CAAC;GACW,SAAS,CAAI"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatusConstant = void 0;
|
|
4
|
+
var StatusConstant;
|
|
5
|
+
(function (StatusConstant) {
|
|
6
|
+
StatusConstant["ACTIVE"] = "ACTIVE";
|
|
7
|
+
StatusConstant["INACTIVE"] = "INACTIVE";
|
|
8
|
+
})(StatusConstant || (exports.StatusConstant = StatusConstant = {}));
|
|
9
|
+
//# sourceMappingURL=status.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.constant.js","sourceRoot":"","sources":["../../src/constant/status.constant.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;AACvB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
|
package/dist/core.module.js
CHANGED
|
@@ -33,45 +33,67 @@ let CoreModule = CoreModule_1 = class CoreModule {
|
|
|
33
33
|
if (!dbModule) {
|
|
34
34
|
throw new Error('Database module must be provided.');
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
dbModule,
|
|
39
|
-
entity_module_1.EntityModule,
|
|
40
|
-
utils_module_1.UtilsModule,
|
|
41
|
-
notification_module_1.NotificationModule,
|
|
42
|
-
listmaster_module_1.ListMasterModule,
|
|
43
|
-
filter_module_1.FilterModule,
|
|
44
|
-
auth_module_1.AuthModule,
|
|
45
|
-
lead_module_1.LeadModule,
|
|
46
|
-
layout_preference_module_1.LayoutPreferenceModule,
|
|
47
|
-
workflow_module_1.WorkflowModule,
|
|
48
|
-
workflow_automation_module_1.WorkflowAutomationModule,
|
|
49
|
-
workflow_schedule_module_1.WorkflowScheduleModule.forRoot({ is_workflow: isWorkflow }),
|
|
50
|
-
mapper_module_1.MapperModule,
|
|
51
|
-
linked_attributes_module_1.LinkedAttributesModule,
|
|
52
|
-
export_module_1.ExportModule
|
|
53
|
-
];
|
|
54
|
-
const exportsArray = [
|
|
55
|
-
config_1.ConfigModule,
|
|
56
|
-
dbModule,
|
|
57
|
-
entity_module_1.EntityModule,
|
|
58
|
-
auth_module_1.AuthModule,
|
|
59
|
-
utils_module_1.UtilsModule,
|
|
60
|
-
notification_module_1.NotificationModule,
|
|
61
|
-
listmaster_module_1.ListMasterModule,
|
|
62
|
-
filter_module_1.FilterModule,
|
|
63
|
-
lead_module_1.LeadModule,
|
|
64
|
-
layout_preference_module_1.LayoutPreferenceModule,
|
|
65
|
-
mapper_module_1.MapperModule,
|
|
66
|
-
workflow_module_1.WorkflowModule,
|
|
67
|
-
workflow_automation_module_1.WorkflowAutomationModule,
|
|
68
|
-
workflow_schedule_module_1.WorkflowScheduleModule.forRoot({ is_workflow: isWorkflow }),
|
|
69
|
-
linked_attributes_module_1.LinkedAttributesModule,
|
|
70
|
-
export_module_1.ExportModule
|
|
71
|
-
];
|
|
36
|
+
let importsArray = [];
|
|
37
|
+
let exportsArray = [];
|
|
72
38
|
if (isSso) {
|
|
73
|
-
importsArray
|
|
74
|
-
|
|
39
|
+
importsArray = [
|
|
40
|
+
config_1.ConfigModule.forRoot({ isGlobal: true }),
|
|
41
|
+
dbModule,
|
|
42
|
+
user_module_1.UserModule,
|
|
43
|
+
module_module_1.ModuleAccessModule,
|
|
44
|
+
layout_module_1.LayoutModule,
|
|
45
|
+
enterprise_module_1.EnterpriseModule,
|
|
46
|
+
utils_module_1.UtilsModule,
|
|
47
|
+
auth_module_1.AuthModule,
|
|
48
|
+
notification_module_1.NotificationModule
|
|
49
|
+
];
|
|
50
|
+
exportsArray = [
|
|
51
|
+
config_1.ConfigModule,
|
|
52
|
+
user_module_1.UserModule,
|
|
53
|
+
module_module_1.ModuleAccessModule,
|
|
54
|
+
layout_module_1.LayoutModule,
|
|
55
|
+
enterprise_module_1.EnterpriseModule,
|
|
56
|
+
utils_module_1.UtilsModule,
|
|
57
|
+
auth_module_1.AuthModule,
|
|
58
|
+
notification_module_1.NotificationModule
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
importsArray = [
|
|
63
|
+
config_1.ConfigModule.forRoot({ isGlobal: true }),
|
|
64
|
+
dbModule,
|
|
65
|
+
entity_module_1.EntityModule,
|
|
66
|
+
utils_module_1.UtilsModule,
|
|
67
|
+
notification_module_1.NotificationModule,
|
|
68
|
+
listmaster_module_1.ListMasterModule,
|
|
69
|
+
filter_module_1.FilterModule,
|
|
70
|
+
auth_module_1.AuthModule,
|
|
71
|
+
lead_module_1.LeadModule,
|
|
72
|
+
layout_preference_module_1.LayoutPreferenceModule,
|
|
73
|
+
workflow_module_1.WorkflowModule,
|
|
74
|
+
workflow_automation_module_1.WorkflowAutomationModule,
|
|
75
|
+
workflow_schedule_module_1.WorkflowScheduleModule.forRoot({ is_workflow: isWorkflow }),
|
|
76
|
+
mapper_module_1.MapperModule,
|
|
77
|
+
linked_attributes_module_1.LinkedAttributesModule,
|
|
78
|
+
export_module_1.ExportModule
|
|
79
|
+
];
|
|
80
|
+
exportsArray = [
|
|
81
|
+
config_1.ConfigModule,
|
|
82
|
+
entity_module_1.EntityModule,
|
|
83
|
+
auth_module_1.AuthModule,
|
|
84
|
+
utils_module_1.UtilsModule,
|
|
85
|
+
notification_module_1.NotificationModule,
|
|
86
|
+
listmaster_module_1.ListMasterModule,
|
|
87
|
+
filter_module_1.FilterModule,
|
|
88
|
+
lead_module_1.LeadModule,
|
|
89
|
+
layout_preference_module_1.LayoutPreferenceModule,
|
|
90
|
+
mapper_module_1.MapperModule,
|
|
91
|
+
workflow_module_1.WorkflowModule,
|
|
92
|
+
workflow_automation_module_1.WorkflowAutomationModule,
|
|
93
|
+
workflow_schedule_module_1.WorkflowScheduleModule.forRoot({ is_workflow: isWorkflow }),
|
|
94
|
+
linked_attributes_module_1.LinkedAttributesModule,
|
|
95
|
+
export_module_1.ExportModule
|
|
96
|
+
];
|
|
75
97
|
}
|
|
76
98
|
return {
|
|
77
99
|
module: CoreModule_1,
|
package/dist/core.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../src/core.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,2CAA8C;AAE9C,6EAAyE;AACzE,uDAAmD;AACnD,2DAAuD;AACvD,+DAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../src/core.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,2CAA8C;AAE9C,6EAAyE;AACzE,uDAAmD;AACnD,2DAAuD;AACvD,+DAA2D;AAC3D,iEAAmE;AACnE,mFAA+E;AAC/E,iEAA6D;AAC7D,6EAAyE;AACzE,iEAA6D;AAC7D,2DAAuD;AACvD,2DAAuD;AACvD,kGAA6F;AAC7F,uEAAmE;AACnE,wGAAmG;AACnG,iEAA6D;AAC7D,kGAA6F;AAC7F,kGAA6F;AAC7F,iEAA6D;AAItD,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACrB,MAAM,CAAC,YAAY,CACjB,QAAuB,EACvB,KAAc,EACd,UAAoB;QAEpB,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACvD,CAAC;QAED,IAAI,YAAY,GAAQ,EAAE,CAAC;QAC3B,IAAI,YAAY,GAAQ,EAAE,CAAC;QAE3B,IAAI,KAAK,EAAE,CAAC;YACV,YAAY,GAAG;gBACb,qBAAY,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACxC,QAAQ;gBACR,wBAAU;gBACV,kCAAkB;gBAClB,4BAAY;gBACZ,oCAAgB;gBAChB,0BAAW;gBACX,wBAAU;gBACV,wCAAkB;aACnB,CAAC;YACF,YAAY,GAAG;gBACb,qBAAY;gBACZ,wBAAU;gBACV,kCAAkB;gBAClB,4BAAY;gBACZ,oCAAgB;gBAChB,0BAAW;gBACX,wBAAU;gBACV,wCAAkB;aACnB,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,YAAY,GAAG;gBACb,qBAAY,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACxC,QAAQ;gBACR,4BAAY;gBACZ,0BAAW;gBACX,wCAAkB;gBAClB,oCAAgB;gBAChB,4BAAY;gBACZ,wBAAU;gBACV,wBAAU;gBACV,iDAAsB;gBACtB,gCAAc;gBACd,qDAAwB;gBACxB,iDAAsB,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;gBAC3D,4BAAY;gBACZ,iDAAsB;gBACtB,4BAAY;aACb,CAAC;YAEF,YAAY,GAAG;gBACb,qBAAY;gBACZ,4BAAY;gBACZ,wBAAU;gBACV,0BAAW;gBACX,wCAAkB;gBAClB,oCAAgB;gBAChB,4BAAY;gBACZ,wBAAU;gBACV,iDAAsB;gBACtB,4BAAY;gBACZ,gCAAc;gBACd,qDAAwB;gBACxB,iDAAsB,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;gBAC3D,iDAAsB;gBACtB,4BAAY;aACb,CAAC;QACJ,CAAC;QAED,OAAO;YACL,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE,YAAY;YACrB,OAAO,EAAE,YAAY;SACtB,CAAC;IACJ,CAAC;CACF,CAAA;AAhFY,gCAAU;qBAAV,UAAU;IAFtB,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CAgFtB"}
|
|
@@ -7,12 +7,13 @@ export declare class JwtStrategy extends JwtStrategy_base {
|
|
|
7
7
|
userData: {
|
|
8
8
|
id: any;
|
|
9
9
|
sessionToken: any;
|
|
10
|
-
|
|
10
|
+
app_id: any;
|
|
11
11
|
email_id: any;
|
|
12
12
|
organization_id: any;
|
|
13
13
|
enterprise_id: any;
|
|
14
14
|
level_id: any;
|
|
15
15
|
level_type: any;
|
|
16
|
+
appcode: any;
|
|
16
17
|
};
|
|
17
18
|
}>;
|
|
18
19
|
}
|
|
@@ -24,16 +24,17 @@ let JwtStrategy = class JwtStrategy extends (0, passport_1.PassportStrategy)(pas
|
|
|
24
24
|
this.configService = configService;
|
|
25
25
|
}
|
|
26
26
|
async validate(payload) {
|
|
27
|
-
const { id, sessionToken,
|
|
27
|
+
const { id, sessionToken, app_id, email_id, organization_id, enterprise_id, level_id, level_type, appcode } = payload;
|
|
28
28
|
const userData = {
|
|
29
29
|
id: id,
|
|
30
30
|
sessionToken: sessionToken,
|
|
31
|
-
|
|
31
|
+
app_id: app_id,
|
|
32
32
|
email_id: email_id,
|
|
33
33
|
organization_id: organization_id,
|
|
34
34
|
enterprise_id: enterprise_id,
|
|
35
35
|
level_id: level_id,
|
|
36
36
|
level_type: level_type,
|
|
37
|
+
appcode: appcode
|
|
37
38
|
};
|
|
38
39
|
return { userData };
|
|
39
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt.strategy.js","sourceRoot":"","sources":["../../../../src/module/auth/strategies/jwt.strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAoD;AACpD,+CAAoD;AACpD,2CAAmE;AAKnE,2CAA+C;AAGxC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,IAAA,2BAAgB,EAAC,uBAAQ,CAAC;IACzD,YAA6B,aAA4B;QACvD,KAAK,CAAC;YACJ,cAAc,EAAE,yBAAU,CAAC,2BAA2B,EAAE;YACxD,gBAAgB,EAAE,KAAK;YACvB,WAAW,EAAE,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC;SAC7C,CAAC,CAAC;QALwB,kBAAa,GAAb,aAAa,CAAe;IAMzD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,OAAO;QACpB,MAAM,EACJ,EAAE,EACF,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"jwt.strategy.js","sourceRoot":"","sources":["../../../../src/module/auth/strategies/jwt.strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAoD;AACpD,+CAAoD;AACpD,2CAAmE;AAKnE,2CAA+C;AAGxC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,IAAA,2BAAgB,EAAC,uBAAQ,CAAC;IACzD,YAA6B,aAA4B;QACvD,KAAK,CAAC;YACJ,cAAc,EAAE,yBAAU,CAAC,2BAA2B,EAAE;YACxD,gBAAgB,EAAE,KAAK;YACvB,WAAW,EAAE,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC;SAC7C,CAAC,CAAC;QALwB,kBAAa,GAAb,aAAa,CAAe;IAMzD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,OAAO;QACpB,MAAM,EACJ,EAAE,EACF,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,eAAe,EACf,aAAa,EACb,QAAQ,EACR,UAAU,EACV,OAAO,EACR,GAAG,OAAO,CAAC;QAeZ,MAAM,QAAQ,GAAG;YACf,EAAE,EAAE,EAAE;YACN,YAAY,EAAE,YAAY;YAC1B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,QAAQ;YAClB,eAAe,EAAE,eAAe;YAChC,aAAa,EAAE,aAAa;YAC5B,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,UAAU;YACtB,OAAO,EAAE,OAAO;SACjB,CAAC;QAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;IACtB,CAAC;CACF,CAAA;AAjDY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAEiC,sBAAa;GAD9C,WAAW,CAiDvB"}
|
|
@@ -24,7 +24,7 @@ exports.DashboardModule = DashboardModule = __decorate([
|
|
|
24
24
|
imports: [
|
|
25
25
|
entity_module_1.EntityModule,
|
|
26
26
|
typeorm_1.TypeOrmModule.forFeature([widget_master_entity_1.WidgetMaster, dashboard_page_data_entity_1.DashboardPageData]),
|
|
27
|
-
module_module_1.
|
|
27
|
+
module_module_1.ModuleAccessModule,
|
|
28
28
|
],
|
|
29
29
|
controllers: [dashboard_controller_1.DashboardController],
|
|
30
30
|
providers: [dashboard_service_1.DashboardService, dashboard_repository_1.DashboardRepository],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.module.js","sourceRoot":"","sources":["../../../src/module/dashboard/dashboard.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yDAAqD;AACrD,6CAAgD;AAChD,wEAA6D;AAC7D,oFAAwE;AACxE,4EAAwE;AACxE,mEAA+D;AAC/D,4EAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"dashboard.module.js","sourceRoot":"","sources":["../../../src/module/dashboard/dashboard.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yDAAqD;AACrD,6CAAgD;AAChD,wEAA6D;AAC7D,oFAAwE;AACxE,4EAAwE;AACxE,mEAA+D;AAC/D,4EAAwE;AACxE,2DAA6D;AAYtD,IAAM,eAAe,GAArB,MAAM,eAAe;CAAI,CAAA;AAAnB,0CAAe;0BAAf,eAAe;IAV3B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,4BAAY;YACZ,uBAAa,CAAC,UAAU,CAAC,CAAC,mCAAY,EAAE,8CAAiB,CAAC,CAAC;YAC3D,kCAAkB;SACnB;QACD,WAAW,EAAE,CAAC,0CAAmB,CAAC;QAClC,SAAS,EAAE,CAAC,oCAAgB,EAAE,0CAAmB,CAAC;QAClD,OAAO,EAAE,CAAC,oCAAgB,CAAC;KAC5B,CAAC;GACW,eAAe,CAAI"}
|
|
@@ -22,10 +22,9 @@ let DashboardService = class DashboardService {
|
|
|
22
22
|
const pages = await this.dashboardRepo.getPages(mapped_entity_type, loggedInUser);
|
|
23
23
|
const access = await this.moduleAccessService.getUserPermissions({
|
|
24
24
|
userId: loggedInUser.id,
|
|
25
|
-
|
|
25
|
+
app_id: loggedInUser.app_id,
|
|
26
26
|
level_type: loggedInUser.level_type,
|
|
27
|
-
level_id: loggedInUser.level_id
|
|
28
|
-
enterprise_id: loggedInUser.enterprise_id,
|
|
27
|
+
level_id: loggedInUser.level_id
|
|
29
28
|
});
|
|
30
29
|
const allowedCodes = new Set(access
|
|
31
30
|
.filter((a) => a.action === 'VIEW' && a.access === 1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.service.js","sourceRoot":"","sources":["../../../../src/module/dashboard/service/dashboard.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA+D;AAC/D,6EAAyE;AACzE,sFAAsF;AAG/E,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACmB,aAAkC,EAClC,mBAAwC;QADxC,kBAAa,GAAb,aAAa,CAAqB;QAClC,wBAAmB,GAAnB,mBAAmB,CAAqB;IACxD,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,kBAA0B,EAAE,YAAiB;QAC1D,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAC7C,kBAAkB,EAClB,YAAY,CACb,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CAAC;YAC/D,MAAM,EAAE,YAAY,CAAC,EAAE;YACvB,
|
|
1
|
+
{"version":3,"file":"dashboard.service.js","sourceRoot":"","sources":["../../../../src/module/dashboard/service/dashboard.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA+D;AAC/D,6EAAyE;AACzE,sFAAsF;AAG/E,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACmB,aAAkC,EAClC,mBAAwC;QADxC,kBAAa,GAAb,aAAa,CAAqB;QAClC,wBAAmB,GAAnB,mBAAmB,CAAqB;IACxD,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,kBAA0B,EAAE,YAAiB;QAC1D,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAC7C,kBAAkB,EAClB,YAAY,CACb,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CAAC;YAC/D,MAAM,EAAE,YAAY,CAAC,EAAE;YACvB,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,UAAU,EAAE,YAAY,CAAC,UAAU;YACnC,QAAQ,EAAE,YAAY,CAAC,QAAQ;SAChC,CAAC,CAAC;QAGH,MAAM,YAAY,GAAG,IAAI,GAAG,CAC1B,MAAM;aACH,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;aACpD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CACtB,CAAC;QAGF,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAE1E,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,MAAc,EAAE,YAAiB;QACtD,MAAM,YAAY,GAAG,YAAY,CAAC,aAAa,CAAC;QAEhD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,oBAAoB,CACxD,MAAM,CACP,CAAC;QACF,IAAI,CAAC,IAAI;YACP,MAAM,IAAI,0BAAiB,CAAC,kBAAkB,MAAM,YAAY,CAAC,CAAC;QAEpE,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC;QACtC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAGzD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,eAAe,CACtD,SAAS,EACT,YAAY,CACb,CAAC;QAGF,MAAM,SAAS,GAAG,EAAE,CAAC;QACrB,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACpB,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QAEH,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;QAG1C,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,SAAS;SACvB,CAAC;IACJ,CAAC;CACF,CAAA;AAjEY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAGuB,0CAAmB;QACb,2CAAmB;GAHhD,gBAAgB,CAiE5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EnterpriseService } from '../service/enterprise.service';
|
|
2
|
+
import { EnterpriseData } from '../entity/enterprise.entity';
|
|
3
|
+
export declare class EnterpriseController {
|
|
4
|
+
private readonly enterpriseService;
|
|
5
|
+
constructor(enterpriseService: EnterpriseService);
|
|
6
|
+
create(enterpriseData: EnterpriseData, req: Request & {
|
|
7
|
+
user: any;
|
|
8
|
+
}): Promise<EnterpriseData>;
|
|
9
|
+
update(enterpriseData: EnterpriseData, req: Request & {
|
|
10
|
+
user: any;
|
|
11
|
+
}): Promise<EnterpriseData | null>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.EnterpriseController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
18
|
+
const enterprise_service_1 = require("../service/enterprise.service");
|
|
19
|
+
const enterprise_entity_1 = require("../entity/enterprise.entity");
|
|
20
|
+
let EnterpriseController = class EnterpriseController {
|
|
21
|
+
constructor(enterpriseService) {
|
|
22
|
+
this.enterpriseService = enterpriseService;
|
|
23
|
+
}
|
|
24
|
+
async create(enterpriseData, req) {
|
|
25
|
+
const loggedInUser = req.user.userData;
|
|
26
|
+
return await this.enterpriseService.create(enterpriseData, loggedInUser);
|
|
27
|
+
}
|
|
28
|
+
async update(enterpriseData, req) {
|
|
29
|
+
const loggedInUser = req.user.userData;
|
|
30
|
+
return await this.enterpriseService.update(enterpriseData, loggedInUser);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.EnterpriseController = EnterpriseController;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, common_1.Post)('create'),
|
|
36
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
37
|
+
__param(0, (0, common_1.Body)()),
|
|
38
|
+
__param(1, (0, common_1.Req)()),
|
|
39
|
+
__metadata("design:type", Function),
|
|
40
|
+
__metadata("design:paramtypes", [enterprise_entity_1.EnterpriseData, Object]),
|
|
41
|
+
__metadata("design:returntype", Promise)
|
|
42
|
+
], EnterpriseController.prototype, "create", null);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, common_1.Put)('update'),
|
|
45
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
46
|
+
__param(0, (0, common_1.Body)()),
|
|
47
|
+
__param(1, (0, common_1.Req)()),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", [enterprise_entity_1.EnterpriseData, Object]),
|
|
50
|
+
__metadata("design:returntype", Promise)
|
|
51
|
+
], EnterpriseController.prototype, "update", null);
|
|
52
|
+
exports.EnterpriseController = EnterpriseController = __decorate([
|
|
53
|
+
(0, common_1.Controller)('enterprise'),
|
|
54
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
55
|
+
__metadata("design:paramtypes", [enterprise_service_1.EnterpriseService])
|
|
56
|
+
], EnterpriseController);
|
|
57
|
+
//# sourceMappingURL=enterprise.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enterprise.controller.js","sourceRoot":"","sources":["../../../../src/module/enterprise/controller/enterprise.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,sEAAkE;AAClE,mEAA6D;AAItD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAI/D,AAAN,KAAK,CAAC,MAAM,CACF,cAA8B,EAC/B,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IAC3E,CAAC;IAIK,AAAN,KAAK,CAAC,MAAM,CACF,cAA8B,EAC/B,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IAC3E,CAAC;CACF,CAAA;AAtBY,oDAAoB;AAKzB;IAFL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACd,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;;qCADkB,kCAAc;;kDAKvC;AAIK;IAFL,IAAA,YAAG,EAAC,QAAQ,CAAC;IACb,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;;qCADkB,kCAAc;;kDAKvC;+BArBU,oBAAoB;IAFhC,IAAA,mBAAU,EAAC,YAAY,CAAC;IACxB,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAE0B,sCAAiB;GADtD,oBAAoB,CAsBhC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Response } from 'express';
|
|
2
|
+
import { PopulateMetaService } from '../service/populate-meta.service';
|
|
3
|
+
export declare class MetaController {
|
|
4
|
+
private readonly populateMetaService;
|
|
5
|
+
constructor(populateMetaService: PopulateMetaService);
|
|
6
|
+
populateMetaData(organizationId: number, response: Response, req: Request & {
|
|
7
|
+
user: any;
|
|
8
|
+
}): Promise<Response<any, Record<string, any>>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MetaController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const populate_meta_service_1 = require("../service/populate-meta.service");
|
|
18
|
+
let MetaController = class MetaController {
|
|
19
|
+
constructor(populateMetaService) {
|
|
20
|
+
this.populateMetaService = populateMetaService;
|
|
21
|
+
}
|
|
22
|
+
async populateMetaData(organizationId, response, req) {
|
|
23
|
+
const loggedInUser = req.user.userData;
|
|
24
|
+
const result = await this.populateMetaService.populateMetaData(organizationId);
|
|
25
|
+
return response.status(common_1.HttpStatus.OK).json(result);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.MetaController = MetaController;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, common_1.Post)('populate'),
|
|
31
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
32
|
+
__param(0, (0, common_1.Query)('organization_id')),
|
|
33
|
+
__param(1, (0, common_1.Res)()),
|
|
34
|
+
__param(2, (0, common_1.Req)()),
|
|
35
|
+
__metadata("design:type", Function),
|
|
36
|
+
__metadata("design:paramtypes", [Number, Object, Object]),
|
|
37
|
+
__metadata("design:returntype", Promise)
|
|
38
|
+
], MetaController.prototype, "populateMetaData", null);
|
|
39
|
+
exports.MetaController = MetaController = __decorate([
|
|
40
|
+
(0, common_1.Controller)('meta'),
|
|
41
|
+
__metadata("design:paramtypes", [populate_meta_service_1.PopulateMetaService])
|
|
42
|
+
], MetaController);
|
|
43
|
+
//# sourceMappingURL=meta.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.controller.js","sourceRoot":"","sources":["../../../../src/module/enterprise/controller/meta.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyF;AAEzF,4EAAuE;AAGhE,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IACrE,CAAC;IAIK,AAAN,KAAK,CAAC,gBAAgB,CACM,cAAsB,EACzC,QAAkB,EAClB,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GACV,MAAM,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAClE,OAAO,QAAQ,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;CACF,CAAA;AAjBY,wCAAc;AAOnB;IAFL,IAAA,aAAI,EAAC,UAAU,CAAC;IAChB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,iBAAiB,CAAC,CAAA;IACxB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;;;;sDAMP;yBAhBU,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCAGiC,2CAAmB;GAF1D,cAAc,CAiB1B"}
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { Request } from 'express';
|
|
2
|
-
import { UserService } from 'src/module/user/service/user.service';
|
|
3
2
|
import { OrganizationService } from '../service/organization.service';
|
|
3
|
+
import { OrganizationData } from '../entity/organization.entity';
|
|
4
4
|
export declare class OrganizationController {
|
|
5
5
|
private readonly orgService;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
constructor(orgService: OrganizationService);
|
|
7
|
+
create(organizationDto: Partial<OrganizationData>, req: Request & {
|
|
8
|
+
user: any;
|
|
9
|
+
}): Promise<OrganizationData>;
|
|
8
10
|
getOrganizationDropdown(req: Request & {
|
|
9
11
|
user: any;
|
|
10
|
-
}): Promise<
|
|
12
|
+
}): Promise<OrganizationData[]>;
|
|
11
13
|
getOrganizationHierarchy(req: Request & {
|
|
12
14
|
user: any;
|
|
13
15
|
}): Promise<any[]>;
|
|
16
|
+
findAll(): Promise<OrganizationData[]>;
|
|
17
|
+
findOne(id: number): Promise<OrganizationData | null>;
|
|
18
|
+
update(id: number, organizationDto: Partial<OrganizationData>, req: Request & {
|
|
19
|
+
user: any;
|
|
20
|
+
}): Promise<OrganizationData | null>;
|
|
21
|
+
remove(id: number): Promise<void>;
|
|
14
22
|
}
|