rez_core 6.5.47 → 6.5.50
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/dist/app.module.js +3 -5
- package/dist/app.module.js.map +1 -1
- package/dist/core.module.js +38 -63
- package/dist/core.module.js.map +1 -1
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +6 -0
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +32 -0
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +1 -0
- package/dist/module/auth/strategies/jwt.strategy.d.ts +1 -2
- package/dist/module/auth/strategies/jwt.strategy.js +2 -3
- 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 -1
- package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
- package/dist/module/enterprise/controller/organization.controller.d.ts +4 -12
- package/dist/module/enterprise/controller/organization.controller.js +8 -64
- package/dist/module/enterprise/controller/organization.controller.js.map +1 -1
- package/dist/module/enterprise/enterprise.module.js +15 -10
- package/dist/module/enterprise/enterprise.module.js.map +1 -1
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +3 -1
- package/dist/module/enterprise/entity/enterprise.entity.js +12 -4
- package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +1 -6
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +4 -21
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -1
- package/dist/module/enterprise/entity/organization.entity.d.ts +18 -3
- package/dist/module/enterprise/entity/organization.entity.js +74 -8
- package/dist/module/enterprise/entity/organization.entity.js.map +1 -1
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +2 -4
- package/dist/module/enterprise/repository/enterprise.repository.js +4 -19
- package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -1
- package/dist/module/enterprise/service/brand.service.d.ts +3 -0
- package/dist/module/enterprise/service/brand.service.js +17 -0
- 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 +24 -101
- package/dist/module/enterprise/service/organization.service.js.map +1 -1
- package/dist/module/entity_json/controller/entity_json.controller.d.ts +2 -9
- package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
- package/dist/module/entity_json/entity/entityJson.entity.d.ts +2 -1
- package/dist/module/entity_json/entity/entityJson.entity.js +5 -1
- package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -1
- package/dist/module/entity_json/entity_json.module.js +7 -2
- package/dist/module/entity_json/entity_json.module.js.map +1 -1
- package/dist/module/entity_json/service/entity_json.service.d.ts +2 -10
- package/dist/module/entity_json/service/entity_json.service.js +101 -25
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
- package/dist/module/filter/controller/filter.controller.d.ts +12 -0
- 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 +11 -2
- package/dist/module/filter/filter.module.js.map +1 -1
- package/dist/module/filter/service/filter.service.d.ts +38 -2
- package/dist/module/filter/service/filter.service.js +43 -50
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/filter/service/flatjson-filter.service.d.ts +32 -0
- package/dist/module/filter/service/flatjson-filter.service.js +632 -0
- package/dist/module/filter/service/flatjson-filter.service.js.map +1 -0
- package/dist/module/filter/service/saved-filter.service.d.ts +3 -2
- package/dist/module/filter/service/saved-filter.service.js +14 -18
- package/dist/module/filter/service/saved-filter.service.js.map +1 -1
- package/dist/module/integration/service/integration.service.d.ts +1 -0
- package/dist/module/integration/service/integration.service.js +2 -1
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/module/integration/service/wrapper.service.js +1 -0
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/layout/controller/layout.controller.d.ts +3 -1
- package/dist/module/layout/controller/layout.controller.js +7 -3
- package/dist/module/layout/controller/layout.controller.js.map +1 -1
- package/dist/module/layout/entity/header-section.entity.d.ts +2 -0
- package/dist/module/layout/entity/header-section.entity.js +8 -0
- package/dist/module/layout/entity/header-section.entity.js.map +1 -1
- package/dist/module/layout/layout.module.js +2 -1
- package/dist/module/layout/layout.module.js.map +1 -1
- package/dist/module/layout/repository/header-section.repository.d.ts +1 -0
- package/dist/module/layout/repository/header-section.repository.js +5 -0
- 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 +41 -0
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js +90 -0
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -1
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.d.ts +13 -0
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js +64 -0
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js.map +1 -0
- package/dist/module/linked_attributes/linked_attributes.module.js +8 -1
- package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +65 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.js +287 -2
- package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
- package/dist/module/listmaster/service/list-master.service.js +8 -1
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/meta/controller/app-master.controller.js.map +1 -0
- package/dist/module/meta/controller/meta.controller.d.ts +6 -1
- package/dist/module/meta/controller/meta.controller.js +19 -1
- package/dist/module/meta/controller/meta.controller.js.map +1 -1
- package/dist/module/meta/entity/app-master.entity.d.ts +13 -0
- package/dist/module/{app_master → meta}/entity/app-master.entity.js +12 -30
- package/dist/module/meta/entity/app-master.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-master.entity.d.ts +1 -0
- package/dist/module/meta/entity/entity-master.entity.js +8 -1
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/entity.module.js +14 -3
- package/dist/module/meta/entity.module.js.map +1 -1
- package/dist/module/{app_master → meta}/repository/app-master.repository.d.ts +2 -2
- package/dist/module/{app_master → meta}/repository/app-master.repository.js +4 -4
- package/dist/module/meta/repository/app-master.repository.js.map +1 -0
- package/dist/module/meta/service/app-master.service.js.map +1 -0
- package/dist/module/meta/service/attribute-master.service.d.ts +6 -1
- package/dist/module/meta/service/attribute-master.service.js +22 -2
- package/dist/module/meta/service/attribute-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-master.service.js +1 -0
- package/dist/module/meta/service/entity-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-relation.service.d.ts +4 -3
- package/dist/module/meta/service/entity-relation.service.js +10 -4
- 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 +14 -10
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.d.ts +5 -4
- package/dist/module/meta/service/entity-table.service.js +45 -24
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/meta/service/populate-meta.service.d.ts +13 -0
- package/dist/module/{enterprise → meta}/service/populate-meta.service.js +8 -2
- package/dist/module/meta/service/populate-meta.service.js.map +1 -0
- package/dist/module/meta/service/resolver.service.d.ts +1 -1
- package/dist/module/meta/service/resolver.service.js +6 -3
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/module/controller/module-access.controller.d.ts +4 -3
- package/dist/module/module/controller/module-access.controller.js +8 -13
- package/dist/module/module/controller/module-access.controller.js.map +1 -1
- package/dist/module/module/entity/menu.entity.d.ts +3 -6
- package/dist/module/module/entity/menu.entity.js +10 -19
- package/dist/module/module/entity/menu.entity.js.map +1 -1
- package/dist/module/module/entity/module-access.entity.d.ts +1 -15
- package/dist/module/module/entity/module-access.entity.js +3 -49
- package/dist/module/module/entity/module-access.entity.js.map +1 -1
- package/dist/module/module/entity/module-action.entity.d.ts +2 -4
- package/dist/module/module/entity/module-action.entity.js +6 -11
- package/dist/module/module/entity/module-action.entity.js.map +1 -1
- package/dist/module/module/entity/module.entity.d.ts +5 -3
- package/dist/module/module/entity/module.entity.js +18 -8
- 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 +7 -5
- 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 +27 -38
- 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 +48 -96
- package/dist/module/module/repository/module-access.repository.js.map +1 -1
- package/dist/module/module/service/menu.service.d.ts +4 -2
- package/dist/module/module/service/menu.service.js +10 -7
- package/dist/module/module/service/menu.service.js.map +1 -1
- package/dist/module/module/service/module-access.service.d.ts +10 -7
- package/dist/module/module/service/module-access.service.js +24 -22
- package/dist/module/module/service/module-access.service.js.map +1 -1
- package/dist/module/notification/entity/notification.entity.d.ts +2 -17
- package/dist/module/notification/entity/notification.entity.js +2 -68
- package/dist/module/notification/entity/notification.entity.js.map +1 -1
- package/dist/module/notification/notification.module.js +2 -0
- package/dist/module/notification/notification.module.js.map +1 -1
- package/dist/module/notification/service/notification.service.d.ts +3 -1
- package/dist/module/notification/service/notification.service.js +5 -2
- package/dist/module/notification/service/notification.service.js.map +1 -1
- package/dist/module/notification/service/otp.service.js +1 -0
- package/dist/module/notification/service/otp.service.js.map +1 -1
- package/dist/module/user/controller/login.controller.d.ts +3 -1
- package/dist/module/user/controller/login.controller.js +6 -2
- package/dist/module/user/controller/login.controller.js.map +1 -1
- package/dist/module/user/controller/user.controller.d.ts +2 -0
- package/dist/module/user/controller/user.controller.js +13 -0
- package/dist/module/user/controller/user.controller.js.map +1 -1
- package/dist/module/user/dto/create-user.dto.d.ts +3 -6
- package/dist/module/user/dto/create-user.dto.js +11 -17
- package/dist/module/user/dto/create-user.dto.js.map +1 -1
- package/dist/module/user/entity/role.entity.d.ts +6 -18
- package/dist/module/user/entity/role.entity.js +19 -64
- package/dist/module/user/entity/role.entity.js.map +1 -1
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +0 -10
- package/dist/module/user/entity/user-role-mapping.entity.js +1 -33
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
- package/dist/module/user/entity/user-session.entity.d.ts +2 -0
- package/dist/module/user/entity/user-session.entity.js +20 -2
- package/dist/module/user/entity/user-session.entity.js.map +1 -1
- package/dist/module/user/entity/user.entity.d.ts +5 -17
- package/dist/module/user/entity/user.entity.js +15 -61
- package/dist/module/user/entity/user.entity.js.map +1 -1
- package/dist/module/user/repository/role.repository.d.ts +2 -7
- package/dist/module/user/repository/role.repository.js +8 -23
- package/dist/module/user/repository/role.repository.js.map +1 -1
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +0 -1
- package/dist/module/user/repository/user-role-mapping.repository.js +0 -3
- package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -1
- package/dist/module/user/repository/user.repository.d.ts +2 -5
- package/dist/module/user/repository/user.repository.js +7 -26
- package/dist/module/user/repository/user.repository.js.map +1 -1
- package/dist/module/user/repository/userSession.repository.d.ts +0 -1
- package/dist/module/user/repository/userSession.repository.js +0 -3
- package/dist/module/user/repository/userSession.repository.js.map +1 -1
- package/dist/module/user/service/login.service.d.ts +5 -3
- package/dist/module/user/service/login.service.js +42 -43
- package/dist/module/user/service/login.service.js.map +1 -1
- package/dist/module/user/service/role.service.d.ts +11 -24
- package/dist/module/user/service/role.service.js +40 -54
- package/dist/module/user/service/role.service.js.map +1 -1
- package/dist/module/user/service/user-role-mapping.service.d.ts +0 -2
- package/dist/module/user/service/user-role-mapping.service.js +0 -6
- package/dist/module/user/service/user-role-mapping.service.js.map +1 -1
- package/dist/module/user/service/user-session.service.d.ts +4 -3
- package/dist/module/user/service/user-session.service.js +11 -10
- package/dist/module/user/service/user-session.service.js.map +1 -1
- package/dist/module/user/service/user.service.d.ts +22 -33
- package/dist/module/user/service/user.service.js +58 -66
- package/dist/module/user/service/user.service.js.map +1 -1
- package/dist/module/user/user.module.js +7 -2
- 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 +8 -6
- 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 +2 -1
- 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 +2 -0
- package/dist/module/workflow/service/comm-template.service.js.map +1 -1
- package/dist/module/workflow/service/entity-modification.service.js +1 -0
- 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 +3 -0
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-meta.service.js +7 -2
- 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 +0 -2
- package/dist/module/workflow/workflow.module.js.map +1 -1
- package/dist/module/workflow-automation/service/workflow-automation.service.js +6 -11
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/module/workflow-automation/workflow-automation.module.js +1 -3
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js +2 -0
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
- package/dist/table.config.d.ts +5 -3
- package/dist/table.config.js +3 -1
- package/dist/table.config.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/app.module.ts +5 -7
- package/src/core.module.ts +44 -58
- package/src/migrations/1732612800000-AddEntityJsonGinIndex.ts +41 -0
- package/src/module/auth/strategies/jwt.strategy.ts +2 -4
- package/src/module/dashboard/dashboard.module.ts +3 -3
- package/src/module/dashboard/service/dashboard.service.ts +2 -1
- package/src/module/enterprise/controller/organization.controller.ts +4 -60
- package/src/module/enterprise/enterprise.module.ts +18 -16
- package/src/module/enterprise/entity/enterprise.entity.ts +11 -5
- package/src/module/enterprise/entity/organization-app-mapping.entity.ts +4 -18
- package/src/module/enterprise/entity/organization.entity.ts +59 -9
- package/src/module/enterprise/repository/enterprise.repository.ts +4 -26
- package/src/module/enterprise/service/brand.service.ts +5 -75
- package/src/module/enterprise/service/enterprise.service.ts +4 -10
- package/src/module/enterprise/service/organization.service.ts +23 -140
- package/src/module/entity_json/controller/entity_json.controller.ts +13 -0
- package/src/module/entity_json/docs/FlatJson_Filterin_System.md +2804 -0
- package/src/module/entity_json/entity/entityJson.entity.ts +4 -1
- package/src/module/entity_json/entity_json.module.ts +9 -5
- package/src/module/entity_json/service/entity_json.service.ts +237 -51
- package/src/module/filter/controller/filter.controller.ts +1 -3
- package/src/module/filter/filter.module.ts +12 -3
- package/src/module/filter/service/filter.service.ts +130 -73
- package/src/module/filter/service/flatjson-filter.service.ts +903 -0
- package/src/module/filter/service/saved-filter.service.ts +16 -26
- package/src/module/filter/test/flatjson-filter.service.spec.ts +415 -0
- package/src/module/integration/service/integration.service.ts +6 -2
- package/src/module/integration/service/wrapper.service.ts +1 -0
- package/src/module/layout/controller/layout.controller.ts +8 -1
- package/src/module/layout/entity/header-section.entity.ts +6 -0
- package/src/module/layout/layout.module.ts +1 -1
- package/src/module/layout/repository/header-section.repository.ts +6 -0
- package/src/module/layout/service/header-section.service.ts +1 -1
- package/src/module/linked_attributes/controller/linked_attributes.controller.ts +100 -0
- package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +54 -0
- package/src/module/linked_attributes/linked_attributes.module.ts +9 -2
- package/src/module/linked_attributes/service/linked_attributes.service.ts +578 -3
- package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +244 -0
- package/src/module/listmaster/service/list-master.service.ts +9 -1
- package/src/module/meta/controller/meta.controller.ts +25 -3
- package/src/module/{app_master → meta}/entity/app-master.entity.ts +9 -22
- package/src/module/meta/entity/entity-master.entity.ts +9 -3
- package/src/module/meta/entity.module.ts +20 -6
- package/src/module/{app_master → meta}/repository/app-master.repository.ts +3 -3
- package/src/module/meta/service/attribute-master.service.ts +31 -1
- package/src/module/meta/service/entity-master.service.ts +1 -0
- package/src/module/meta/service/entity-relation.service.ts +10 -6
- package/src/module/meta/service/entity-service-impl.service.ts +14 -19
- package/src/module/meta/service/entity-table.service.ts +82 -68
- package/src/module/meta/service/entity.service.ts +0 -1
- package/src/module/{enterprise → meta}/service/populate-meta.service.ts +5 -2
- package/src/module/meta/service/resolver.service.ts +4 -0
- package/src/module/module/controller/module-access.controller.ts +9 -14
- package/src/module/module/entity/menu.entity.ts +10 -18
- package/src/module/module/entity/module-access.entity.ts +3 -40
- package/src/module/module/entity/module-action.entity.ts +6 -10
- package/src/module/module/entity/module.entity.ts +14 -7
- package/src/module/module/module.module.ts +3 -2
- package/src/module/module/repository/menu.repository.ts +29 -43
- package/src/module/module/repository/module-access.repository.ts +63 -111
- package/src/module/module/service/menu.service.ts +9 -7
- package/src/module/module/service/module-access.service.ts +34 -22
- package/src/module/notification/entity/notification.entity.ts +3 -53
- package/src/module/notification/notification.module.ts +2 -0
- package/src/module/notification/service/notification.service.ts +1 -0
- package/src/module/notification/service/otp.service.ts +3 -4
- package/src/module/user/controller/login.controller.ts +8 -7
- package/src/module/user/controller/user.controller.ts +9 -0
- package/src/module/user/dto/create-user.dto.ts +6 -19
- package/src/module/user/entity/role.entity.ts +16 -59
- package/src/module/user/entity/user-role-mapping.entity.ts +3 -29
- package/src/module/user/entity/user-session.entity.ts +19 -3
- package/src/module/user/entity/user.entity.ts +13 -48
- package/src/module/user/repository/role.repository.ts +12 -32
- package/src/module/user/repository/user-role-mapping.repository.ts +1 -5
- package/src/module/user/repository/user.repository.ts +9 -36
- package/src/module/user/repository/userSession.repository.ts +1 -5
- package/src/module/user/service/login.service.ts +51 -47
- package/src/module/user/service/role.service.ts +63 -64
- package/src/module/user/service/user-role-mapping.service.ts +1 -23
- package/src/module/user/service/user-session.service.ts +11 -14
- package/src/module/user/service/user.service.ts +95 -76
- package/src/module/user/user.module.ts +5 -4
- package/src/module/workflow/repository/action-data.repository.ts +8 -6
- 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 +2 -3
- package/src/module/workflow/service/action.service.ts +2 -2
- package/src/module/workflow/service/comm-template.service.ts +2 -0
- package/src/module/workflow/service/entity-modification.service.ts +1 -0
- 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 +3 -0
- package/src/module/workflow/service/workflow-meta.service.ts +7 -2
- package/src/module/workflow/service/workflow.service.ts +2 -2
- package/src/module/workflow/workflow.module.ts +0 -2
- package/src/module/workflow-automation/service/workflow-automation.service.ts +7 -19
- package/src/module/workflow-automation/workflow-automation.module.ts +3 -4
- package/src/module/workflow-schedule/service/workflow-schedule.service.ts +2 -0
- package/src/resources/dev.properties.yaml +2 -2
- package/src/table.config.ts +3 -1
- package/.claude/settings.local.json +0 -26
- package/.idea/250218_nodejs_core.iml +0 -9
- package/.idea/codeStyles/Project.xml +0 -59
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/copilot.data.migration.agent.xml +0 -6
- package/.idea/copilot.data.migration.ask.xml +0 -6
- package/.idea/copilot.data.migration.ask2agent.xml +0 -6
- package/.idea/copilot.data.migration.edit.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -6
- package/dist/constant/status.constant.d.ts +0 -4
- package/dist/constant/status.constant.js +0 -9
- package/dist/constant/status.constant.js.map +0 -1
- package/dist/module/app_master/app-master.module.d.ts +0 -2
- package/dist/module/app_master/app-master.module.js +0 -28
- package/dist/module/app_master/app-master.module.js.map +0 -1
- package/dist/module/app_master/controller/app-master.controller.js.map +0 -1
- package/dist/module/app_master/entity/app-master.entity.d.ts +0 -17
- package/dist/module/app_master/entity/app-master.entity.js.map +0 -1
- package/dist/module/app_master/repository/app-master.repository.js.map +0 -1
- package/dist/module/app_master/service/app-master.service.js.map +0 -1
- package/dist/module/enterprise/controller/enterprise.controller.d.ts +0 -12
- package/dist/module/enterprise/controller/enterprise.controller.js +0 -57
- package/dist/module/enterprise/controller/enterprise.controller.js.map +0 -1
- package/dist/module/enterprise/controller/meta.controller.d.ts +0 -9
- package/dist/module/enterprise/controller/meta.controller.js +0 -43
- package/dist/module/enterprise/controller/meta.controller.js.map +0 -1
- package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
- package/dist/module/enterprise/service/brand-profile.service.js +0 -1
- package/dist/module/enterprise/service/brand-profile.service.js.map +0 -1
- package/dist/module/enterprise/service/populate-meta.service.d.ts +0 -9
- package/dist/module/enterprise/service/populate-meta.service.js.map +0 -1
- package/dist/module/enterprise/service/school.service.d.ts +0 -0
- package/dist/module/enterprise/service/school.service.js +0 -1
- package/dist/module/enterprise/service/school.service.js.map +0 -1
- package/server.log +0 -850
- package/src/constant/status.constant.ts +0 -4
- package/src/module/app_master/app-master.module.ts +0 -15
- package/src/module/enterprise/controller/enterprise.controller.ts +0 -40
- package/src/module/enterprise/controller/meta.controller.ts +0 -23
- package/src/module/enterprise/service/brand-profile.service.ts +0 -10
- package/src/module/enterprise/service/school.service.ts +0 -5
- /package/dist/module/{app_master → meta}/controller/app-master.controller.d.ts +0 -0
- /package/dist/module/{app_master → meta}/controller/app-master.controller.js +0 -0
- /package/dist/module/{app_master → meta}/service/app-master.service.d.ts +0 -0
- /package/dist/module/{app_master → meta}/service/app-master.service.js +0 -0
- /package/src/module/{app_master → meta}/controller/app-master.controller.ts +0 -0
- /package/src/module/{app_master → meta}/service/app-master.service.ts +0 -0
|
@@ -8,64 +8,58 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.UserService = void 0;
|
|
16
|
+
const role_service_1 = require("./role.service");
|
|
13
17
|
const common_1 = require("@nestjs/common");
|
|
14
|
-
const
|
|
18
|
+
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
15
19
|
const user_repository_1 = require("../repository/user.repository");
|
|
20
|
+
const encryptUtil_service_1 = require("../../../utils/service/encryptUtil.service");
|
|
21
|
+
const clockIDGenUtil_service_1 = require("../../../utils/service/clockIDGenUtil.service");
|
|
16
22
|
const global_constant_1 = require("../../../constant/global.constant");
|
|
17
23
|
const user_role_mapping_service_1 = require("./user-role-mapping.service");
|
|
18
24
|
const user_role_mapping_entity_1 = require("../entity/user-role-mapping.entity");
|
|
19
25
|
const config_1 = require("@nestjs/config");
|
|
26
|
+
const list_master_service_1 = require("../../listmaster/service/list-master.service");
|
|
27
|
+
const organization_repository_1 = require("../../enterprise/repository/organization.repository");
|
|
20
28
|
const action_decorator_1 = require("../../workflow-automation/interface/action.decorator");
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const status_constant_1 = require("../../../constant/status.constant");
|
|
25
|
-
const role_repository_1 = require("../repository/role.repository");
|
|
26
|
-
const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
|
|
27
|
-
let UserService = class UserService {
|
|
28
|
-
constructor(userRepository, userRoleMappingService, roleRepo, configService, enterpriseRepository, reflectionHelper) {
|
|
29
|
+
let UserService = class UserService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
30
|
+
constructor(userRepository, userRoleMappingService, clockIDGenService, configService, organizationRepository, roleService, listMasterService) {
|
|
31
|
+
super();
|
|
29
32
|
this.userRepository = userRepository;
|
|
30
33
|
this.userRoleMappingService = userRoleMappingService;
|
|
31
|
-
this.
|
|
34
|
+
this.clockIDGenService = clockIDGenService;
|
|
32
35
|
this.configService = configService;
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
36
|
+
this.organizationRepository = organizationRepository;
|
|
37
|
+
this.roleService = roleService;
|
|
38
|
+
this.listMasterService = listMasterService;
|
|
35
39
|
this.masterKey = this.configService.get('MASTER_KEY') || '';
|
|
36
40
|
this.masterIv = this.configService.get('MASTER_IV') || '';
|
|
37
41
|
this.name = 'UserService';
|
|
38
42
|
}
|
|
39
|
-
async
|
|
43
|
+
async createEntity(entityData, loggedInUser, manager) {
|
|
40
44
|
const userData = entityData;
|
|
41
|
-
let existingUser = await this.userRepository.findByEmailId(userData.email_id, loggedInUser?.
|
|
45
|
+
let existingUser = await this.userRepository.findByEmailId(userData.email_id, loggedInUser?.organization_id);
|
|
42
46
|
if (existingUser) {
|
|
43
47
|
return { success: false, error: 'User with this email already exists' };
|
|
44
48
|
}
|
|
45
|
-
existingUser = await this.userRepository.findByMobile(userData.mobile, loggedInUser?.
|
|
49
|
+
existingUser = await this.userRepository.findByMobile(userData.mobile, loggedInUser?.organization_id);
|
|
46
50
|
if (existingUser) {
|
|
47
51
|
return { success: false, error: 'User with this mobile already exists' };
|
|
48
52
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
userData.code = `USR1`;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
53
|
+
const resolveStatus = await this.listMasterService.getResolvedListCode(global_constant_1.STATUS_ACTIVE, loggedInUser?.organization_id || 0);
|
|
54
|
+
const resolvedInvitationStatus = await this.listMasterService.getResolvedListCode(global_constant_1.INVITATION_STATUS_SENT, loggedInUser?.organization_id || 0);
|
|
55
|
+
userData.name =
|
|
56
|
+
(userData.first_name || '') + ' ' + (userData.last_name || '');
|
|
58
57
|
userData.password = encryptUtil_service_1.EncryptUtilService.encryptGCM(userData.password || 'Admin@123', this.masterKey, this.masterIv);
|
|
59
|
-
userData.enterprise_id = loggedInUser.enterprise_id;
|
|
60
|
-
userData.level_type = loggedInUser.level_type;
|
|
61
|
-
userData.level_id = loggedInUser.level_id;
|
|
62
58
|
userData.is_firstlogin = 1;
|
|
63
59
|
userData.roles = [];
|
|
64
|
-
userData.invitation_status =
|
|
65
|
-
userData.status =
|
|
66
|
-
const
|
|
67
|
-
entity.created_by = loggedInUser.created_by;
|
|
68
|
-
const savedData = await this.userRepository.saveUser(entity);
|
|
60
|
+
userData.invitation_status = resolvedInvitationStatus.id;
|
|
61
|
+
userData.status = resolveStatus.id || 'ACTIVE';
|
|
62
|
+
const savedData = await super.createEntity(userData, loggedInUser);
|
|
69
63
|
const insertPromises = [];
|
|
70
64
|
for (const entry of userData.access || []) {
|
|
71
65
|
const { level_type, level_ids, app_code, role_id } = entry;
|
|
@@ -76,19 +70,12 @@ let UserService = class UserService {
|
|
|
76
70
|
!role_id) {
|
|
77
71
|
return { success: false, error: 'Invalid access level entry' };
|
|
78
72
|
}
|
|
79
|
-
const appMasterRepo = this.reflectionHelper.getRepoService('AppMaster');
|
|
80
|
-
const appMaster = await appMasterRepo.findOne({
|
|
81
|
-
where: {
|
|
82
|
-
code: app_code
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
73
|
for (const levelId of level_ids) {
|
|
86
74
|
const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(savedData.id, role_id);
|
|
87
75
|
userRoleMapping.level_type = level_type;
|
|
88
76
|
userRoleMapping.level_id = String(levelId);
|
|
89
77
|
userRoleMapping.appcode = app_code;
|
|
90
|
-
userRoleMapping.
|
|
91
|
-
userRoleMapping.enterprise_id = loggedInUser?.enterprise_id || 0;
|
|
78
|
+
userRoleMapping.organization_id = loggedInUser?.organization_id || 0;
|
|
92
79
|
insertPromises.push(this.userRoleMappingService.assignUserRole(userRoleMapping));
|
|
93
80
|
}
|
|
94
81
|
}
|
|
@@ -103,7 +90,10 @@ let UserService = class UserService {
|
|
|
103
90
|
}
|
|
104
91
|
return { success: true, data: savedData };
|
|
105
92
|
}
|
|
106
|
-
async
|
|
93
|
+
async execute(payload) {
|
|
94
|
+
console.log('payload', payload);
|
|
95
|
+
}
|
|
96
|
+
async getEntityData(entityType, id, loggedInUser) {
|
|
107
97
|
const user = await this.userRepository.findById(id);
|
|
108
98
|
if (user) {
|
|
109
99
|
const userRoleMappings = await this.userRoleMappingService.findByUserId(id);
|
|
@@ -113,7 +103,7 @@ let UserService = class UserService {
|
|
|
113
103
|
for (const i in userRoleMappings) {
|
|
114
104
|
const userRoleMapping = userRoleMappings[i];
|
|
115
105
|
const roleId = userRoleMapping.role_id;
|
|
116
|
-
const role = await
|
|
106
|
+
const role = await super.getEntityData(global_constant_1.ENTITYTYPE_ROLE, roleId, loggedInUser);
|
|
117
107
|
roles.push(role);
|
|
118
108
|
}
|
|
119
109
|
userDto.roles = roles;
|
|
@@ -122,8 +112,9 @@ let UserService = class UserService {
|
|
|
122
112
|
}
|
|
123
113
|
return null;
|
|
124
114
|
}
|
|
125
|
-
async
|
|
126
|
-
const
|
|
115
|
+
async updateEntity(entityData, loggedInUserData) {
|
|
116
|
+
const userDto = entityData;
|
|
117
|
+
const existingUser = await this.userRepository.findById(entityData.id);
|
|
127
118
|
if (!existingUser) {
|
|
128
119
|
return { success: false, error: 'User not found' };
|
|
129
120
|
}
|
|
@@ -139,7 +130,7 @@ let UserService = class UserService {
|
|
|
139
130
|
}
|
|
140
131
|
const updatedUserData = { ...userDto };
|
|
141
132
|
delete updatedUserData.access;
|
|
142
|
-
const savedData = await
|
|
133
|
+
const savedData = await super.updateEntity(updatedUserData, loggedInUserData);
|
|
143
134
|
if (userDto.access && userDto.access.length > 0) {
|
|
144
135
|
if (loggedInUserData.level_type == 'ORG') {
|
|
145
136
|
await this.userRoleMappingService.deleteByUserId(existingUser.id);
|
|
@@ -154,11 +145,12 @@ let UserService = class UserService {
|
|
|
154
145
|
return { success: false, error: 'Invalid access level entry' };
|
|
155
146
|
}
|
|
156
147
|
for (const levelId of level_ids) {
|
|
157
|
-
const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(id, role_id);
|
|
148
|
+
const userRoleMapping = new user_role_mapping_entity_1.UserRoleMapping(savedData.id, role_id);
|
|
158
149
|
userRoleMapping.level_type = level_type;
|
|
159
150
|
userRoleMapping.level_id = String(levelId);
|
|
160
151
|
userRoleMapping.appcode = app_code;
|
|
161
|
-
userRoleMapping.
|
|
152
|
+
userRoleMapping.organization_id =
|
|
153
|
+
loggedInUserData?.organization_id || 0;
|
|
162
154
|
insertPromises.push(this.userRoleMappingService.assignUserRole(userRoleMapping));
|
|
163
155
|
}
|
|
164
156
|
}
|
|
@@ -172,28 +164,28 @@ let UserService = class UserService {
|
|
|
172
164
|
}
|
|
173
165
|
return { success: true, data: savedData };
|
|
174
166
|
}
|
|
175
|
-
async findByEmailId(email_id,
|
|
176
|
-
return await this.userRepository.findByEmailId(email_id,
|
|
167
|
+
async findByEmailId(email_id, organization_id) {
|
|
168
|
+
return await this.userRepository.findByEmailId(email_id, organization_id);
|
|
177
169
|
}
|
|
178
170
|
async findByMobile(mobile, organization_id, appCode) {
|
|
179
171
|
return await this.userRepository.findByMobile(mobile, organization_id, appCode);
|
|
180
172
|
}
|
|
181
|
-
async setDefaultLastAccess(userId,
|
|
173
|
+
async setDefaultLastAccess(userId, appcode) {
|
|
182
174
|
const user = await this.userRepository.findById(userId);
|
|
183
175
|
if (!user) {
|
|
184
176
|
throw new common_1.BadRequestException('User not found');
|
|
185
177
|
}
|
|
186
|
-
user.
|
|
178
|
+
user.last_app_access = appcode;
|
|
187
179
|
await this.userRepository.saveUser(user);
|
|
188
180
|
}
|
|
189
|
-
async setLastLevelTypeAndId(userId, levelType, levelId,
|
|
181
|
+
async setLastLevelTypeAndId(userId, levelType, levelId, appcode) {
|
|
190
182
|
const user = await this.userRepository.findById(userId);
|
|
191
183
|
if (!user) {
|
|
192
184
|
throw new common_1.BadRequestException('User not found');
|
|
193
185
|
}
|
|
194
186
|
user.last_level_type = levelType;
|
|
195
187
|
user.last_level_id = levelId;
|
|
196
|
-
user.
|
|
188
|
+
user.last_app_access = appcode;
|
|
197
189
|
await this.userRepository.saveUser(user);
|
|
198
190
|
}
|
|
199
191
|
async checkEmailExists(data) {
|
|
@@ -201,22 +193,22 @@ let UserService = class UserService {
|
|
|
201
193
|
if (!email_id || !subdomain) {
|
|
202
194
|
return { success: false, message: 'Email and Subdomain is required' };
|
|
203
195
|
}
|
|
204
|
-
let
|
|
196
|
+
let organization;
|
|
205
197
|
if (subdomain) {
|
|
206
|
-
|
|
207
|
-
await this.
|
|
208
|
-
if (!
|
|
198
|
+
organization =
|
|
199
|
+
await this.organizationRepository.findOrganizationBySubdomain(subdomain);
|
|
200
|
+
if (!organization) {
|
|
209
201
|
return {
|
|
210
202
|
success: false,
|
|
211
203
|
message: 'Organization not found.',
|
|
212
204
|
};
|
|
213
205
|
}
|
|
214
206
|
}
|
|
215
|
-
const user = await this.userRepository.findByEmailId(email_id,
|
|
216
|
-
if (!user || (
|
|
207
|
+
const user = await this.userRepository.findByEmailId(email_id, organization?.id);
|
|
208
|
+
if (!user || (organization && user.organization_id !== organization.id)) {
|
|
217
209
|
return {
|
|
218
210
|
success: false,
|
|
219
|
-
message: 'User not found in
|
|
211
|
+
message: 'User not found in organization.',
|
|
220
212
|
};
|
|
221
213
|
}
|
|
222
214
|
if (user) {
|
|
@@ -233,19 +225,19 @@ let UserService = class UserService {
|
|
|
233
225
|
};
|
|
234
226
|
}
|
|
235
227
|
}
|
|
236
|
-
async find(options) {
|
|
237
|
-
return await this.userRepository.find(options);
|
|
238
|
-
}
|
|
239
228
|
};
|
|
240
229
|
exports.UserService = UserService;
|
|
241
230
|
exports.UserService = UserService = __decorate([
|
|
242
231
|
(0, common_1.Injectable)(),
|
|
243
232
|
(0, action_decorator_1.ActionHandler)('User'),
|
|
233
|
+
__param(5, (0, common_1.Inject)('RoleService')),
|
|
234
|
+
__param(6, (0, common_1.Inject)('ListMasterService')),
|
|
244
235
|
__metadata("design:paramtypes", [user_repository_1.UserRepository,
|
|
245
236
|
user_role_mapping_service_1.UserRoleMappingService,
|
|
246
|
-
|
|
237
|
+
clockIDGenUtil_service_1.ClockIDGenService,
|
|
247
238
|
config_1.ConfigService,
|
|
248
|
-
|
|
249
|
-
|
|
239
|
+
organization_repository_1.OrganizationRepository,
|
|
240
|
+
role_service_1.RoleService,
|
|
241
|
+
list_master_service_1.ListMasterService])
|
|
250
242
|
], UserService);
|
|
251
243
|
//# sourceMappingURL=user.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../../../src/module/user/service/user.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,2CAKwB;AACxB,gGAAmF;AAGnF,mEAA+D;AAC/D,oFAAgF;AAChF,0FAAkF;AAClF,uEAI2C;AAE3C,2EAAqE;AACrE,iFAAqE;AAGrE,2CAA+C;AAG/C,sFAAsF;AACtF,iGAAkG;AAGlG,2FAA0F;AAInF,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,+CAAiB;IAChD,YACU,cAA8B,EAC9B,sBAA8C,EACrC,iBAAoC,EAC7C,aAA4B,EACnB,sBAA8C,EAExC,WAAyC,EAEhE,iBAAqD;QAErD,KAAK,EAAE,CAAC;QAVA,mBAAc,GAAd,cAAc,CAAgB;QAC9B,2BAAsB,GAAtB,sBAAsB,CAAwB;QACrC,sBAAiB,GAAjB,iBAAiB,CAAmB;QAC7C,kBAAa,GAAb,aAAa,CAAe;QACnB,2BAAsB,GAAtB,sBAAsB,CAAwB;QAEvB,gBAAW,GAAX,WAAW,CAAa;QAE/C,sBAAiB,GAAjB,iBAAiB,CAAmB;QAKvD,cAAS,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QACvD,aAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;QA0FrD,SAAI,GAAW,aAAa,CAAC;IA7F7B,CAAC;IAKD,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAA6B,EAC7B,OAAuB;QAEvB,MAAM,QAAQ,GAAG,UAA2B,CAAC;QAE7C,I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QACK,gDAAsB;QAEV,0BAAW;QAE5B,uCAAiB;GAV5C,WAAW,CA6UvB"}
|
|
@@ -12,6 +12,7 @@ const typeorm_1 = require("@nestjs/typeorm");
|
|
|
12
12
|
const user_entity_1 = require("./entity/user.entity");
|
|
13
13
|
const user_service_1 = require("./service/user.service");
|
|
14
14
|
const utils_module_1 = require("../../utils/utils.module");
|
|
15
|
+
const entity_module_1 = require("../meta/entity.module");
|
|
15
16
|
const user_repository_1 = require("./repository/user.repository");
|
|
16
17
|
const user_session_service_1 = require("./service/user-session.service");
|
|
17
18
|
const user_session_entity_1 = require("./entity/user-session.entity");
|
|
@@ -29,6 +30,8 @@ const user_role_mapping_service_1 = require("./service/user-role-mapping.service
|
|
|
29
30
|
const role_repository_1 = require("./repository/role.repository");
|
|
30
31
|
const module_access_entity_1 = require("../module/entity/module-access.entity");
|
|
31
32
|
const enterprise_module_1 = require("../enterprise/enterprise.module");
|
|
33
|
+
const listmaster_module_1 = require("../listmaster/listmaster.module");
|
|
34
|
+
const integration_module_1 = require("../integration/integration.module");
|
|
32
35
|
let UserModule = class UserModule {
|
|
33
36
|
};
|
|
34
37
|
exports.UserModule = UserModule;
|
|
@@ -43,8 +46,11 @@ exports.UserModule = UserModule = __decorate([
|
|
|
43
46
|
module_access_entity_1.ModuleAccess,
|
|
44
47
|
]),
|
|
45
48
|
(0, common_1.forwardRef)(() => auth_module_1.AuthModule),
|
|
49
|
+
entity_module_1.EntityModule,
|
|
46
50
|
utils_module_1.UtilsModule,
|
|
47
|
-
|
|
51
|
+
listmaster_module_1.ListMasterModule,
|
|
52
|
+
integration_module_1.IntegrationModule,
|
|
53
|
+
(0, common_1.forwardRef)(() => enterprise_module_1.EnterpriseModule),
|
|
48
54
|
],
|
|
49
55
|
providers: [
|
|
50
56
|
{ provide: 'UserService', useClass: user_service_1.UserService },
|
|
@@ -65,7 +71,6 @@ exports.UserModule = UserModule = __decorate([
|
|
|
65
71
|
user_role_mapping_service_1.UserRoleMappingService,
|
|
66
72
|
role_repository_1.RoleRepository,
|
|
67
73
|
login_service_1.LoginService,
|
|
68
|
-
user_role_mapping_repository_1.UserRoleMappingRepository
|
|
69
74
|
],
|
|
70
75
|
controllers: [login_controller_1.LoginController, user_controller_1.UserController],
|
|
71
76
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.module.js","sourceRoot":"","sources":["../../../src/module/user/user.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,sDAAgD;AAChD,yDAAqD;AACrD,2DAAuD;
|
|
1
|
+
{"version":3,"file":"user.module.js","sourceRoot":"","sources":["../../../src/module/user/user.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,sDAAgD;AAChD,yDAAqD;AACrD,2DAAuD;AACvD,yDAAqD;AACrD,kEAA8D;AAC9D,yEAAoE;AACpE,sEAA2D;AAC3D,oEAAgE;AAChE,2DAAuD;AACvD,gFAA4E;AAC5E,qCAAyC;AACzC,qDAAiD;AACjD,kEAA8D;AAC9D,sDAA4C;AAC5C,yDAAqD;AACrD,gFAAoE;AACpE,4FAAsF;AACtF,mFAA6E;AAC7E,kEAA8D;AAC9D,gFAAqE;AACrE,uEAAmE;AACnE,uEAAmE;AACnE,0EAAsE;AAwC/D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAtCtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,sBAAQ;gBACR,iCAAW;gBACX,kBAAI;gBACJ,0CAAe;gBACf,mCAAY;aACb,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,4BAAY;YACZ,0BAAW;YACX,oCAAgB;YAChB,sCAAiB;YACjB,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;SACnC;QACD,SAAS,EAAE;YACT,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAAW,EAAE;YACjD,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAAW,EAAE;YACjD,gCAAc;YACd,yCAAkB;YAClB,4BAAY;YACZ,8CAAqB;YACrB,gBAAU;YACV,wDAAyB;YACzB,kDAAsB;YACtB,gCAAc;SACf;QACD,OAAO,EAAE;YACP,aAAa;YACb,yCAAkB;YAClB,aAAa;YACb,kDAAsB;YACtB,gCAAc;YACd,4BAAY;SACb;QACD,WAAW,EAAE,CAAC,kCAAe,EAAE,gCAAc,CAAC;KAC/C,CAAC;GACW,UAAU,CAAG"}
|
|
@@ -13,7 +13,7 @@ export declare class ActionDataRepository extends EntityServiceImpl {
|
|
|
13
13
|
constructor(actionDataRepo: Repository<ActionDataEntity>, TaskRepository: Repository<TaskDataEntity>, configService: ConfigService, workflowAutomationEngineService: WorkflowAutomationEngineService);
|
|
14
14
|
saveActionData(action: any, loggedInUser: UserData, mapped_entity_id: any, mapped_entity_type: any): Promise<any>;
|
|
15
15
|
updateActionStatus(loggedInUser: UserData, mapped_entity_type: string, mapped_entity_id: number, stage_id: number, action_id: number): Promise<any>;
|
|
16
|
-
resubmitAction(
|
|
16
|
+
resubmitAction(organization_id: number, mapped_entity_type: string, mapped_entity_id: number, stage_id: number, action_id: number): Promise<{
|
|
17
17
|
message: string;
|
|
18
18
|
revertedTo: ActionDataEntity;
|
|
19
19
|
updated: ActionDataEntity;
|
|
@@ -50,6 +50,7 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
50
50
|
action_id: act.id,
|
|
51
51
|
sequence: act.sequence,
|
|
52
52
|
name: act.name,
|
|
53
|
+
organization_id: loggedInUser.organization_id,
|
|
53
54
|
enterprise_id: loggedInUser.enterprise_id,
|
|
54
55
|
mapped_entity_id,
|
|
55
56
|
mapped_entity_type,
|
|
@@ -89,6 +90,7 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
89
90
|
if (relationData) {
|
|
90
91
|
const entityRelationDataRepo = this.reflectionHelper.getRepoService('EntityRelationData');
|
|
91
92
|
await entityRelationDataRepo.save({
|
|
93
|
+
organization_id: loggedInUser.organization_id,
|
|
92
94
|
enterprise_id: loggedInUser.enterprise_id,
|
|
93
95
|
source_entity_id: createdEntity.mapped_entity_id,
|
|
94
96
|
source_entity_type: createdEntity.mapped_entity_type,
|
|
@@ -133,10 +135,10 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
133
135
|
}
|
|
134
136
|
return { finished: actionData, activated: nextAction ?? null };
|
|
135
137
|
}
|
|
136
|
-
async resubmitAction(
|
|
138
|
+
async resubmitAction(organization_id, mapped_entity_type, mapped_entity_id, stage_id, action_id) {
|
|
137
139
|
const currentAction = await this.actionDataRepo.findOne({
|
|
138
140
|
where: {
|
|
139
|
-
|
|
141
|
+
organization_id,
|
|
140
142
|
stage_id,
|
|
141
143
|
mapped_entity_id,
|
|
142
144
|
mapped_entity_type,
|
|
@@ -149,7 +151,7 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
149
151
|
}
|
|
150
152
|
const previousAction = await this.actionDataRepo.findOne({
|
|
151
153
|
where: {
|
|
152
|
-
|
|
154
|
+
organization_id,
|
|
153
155
|
stage_id,
|
|
154
156
|
mapped_entity_id,
|
|
155
157
|
mapped_entity_type,
|
|
@@ -162,13 +164,13 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
162
164
|
}
|
|
163
165
|
currentAction.is_current = null;
|
|
164
166
|
currentAction.modified_date = new Date();
|
|
165
|
-
currentAction.modified_by =
|
|
167
|
+
currentAction.modified_by = organization_id;
|
|
166
168
|
currentAction.start_time = null;
|
|
167
169
|
currentAction.resubmit_count = (currentAction.resubmit_count ?? 0) + 1;
|
|
168
170
|
await this.actionDataRepo.update(currentAction.id, currentAction);
|
|
169
171
|
previousAction.is_current = 'Y';
|
|
170
172
|
previousAction.modified_date = new Date();
|
|
171
|
-
previousAction.modified_by =
|
|
173
|
+
previousAction.modified_by = organization_id;
|
|
172
174
|
previousAction.end_time = null;
|
|
173
175
|
previousAction.is_done = false;
|
|
174
176
|
await this.actionDataRepo.update(previousAction.id, previousAction);
|
|
@@ -189,7 +191,7 @@ let ActionDataRepository = class ActionDataRepository extends entity_service_imp
|
|
|
189
191
|
const listMasterItem = await listMasterItemRepo.findOne({
|
|
190
192
|
where: {
|
|
191
193
|
code: 'in_progress',
|
|
192
|
-
|
|
194
|
+
organization_id: organization_id,
|
|
193
195
|
listtype: 'TKST',
|
|
194
196
|
},
|
|
195
197
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-data.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/action-data.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiE;AACjE,6CAAmD;AACnD,qEAAgE;AAChE,qCAA+C;AAE/C,iEAA4D;AAC5D,gGAAwF;AACxF,uEAAsE;AACtE,2CAA+C;AAC/C,iCAA0B;AAC1B,6HAA4H;AAGrH,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,+CAAiB;IACzD,YAEmB,cAA4C,EAE5C,cAA0C,EAC1C,aAA4B,EAC5B,+BAAgE;QAEjF,KAAK,EAAE,CAAC;QANS,mBAAc,GAAd,cAAc,CAA8B;QAE5C,mBAAc,GAAd,cAAc,CAA4B;QAC1C,kBAAa,GAAb,aAAa,CAAe;QAC5B,oCAA+B,GAA/B,+BAA+B,CAAiC;IAGnF,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,MAAW,EACX,YAAsB,EACtB,gBAAgB,EAChB,kBAAkB;QAElB,IAAI,CAAC,MAAM,EAAE,MAAM;YAAE,OAAO;QAG5B,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,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kBAAkB,EAAE,gBAAgB,EAAE,QAAQ,EAAE;YACzD,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE;SAC3B,CAAC,CAAC;QAGH,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CACnC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CACxC,CAAC;QACF,IAAI,UAAU,IAAI,UAAU,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;YAChD,UAAU,CAAC,UAAU,GAAG,GAAG,CAAC;YAC5B,UAAU,CAAC,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC;YACnC,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC,EAAE,CAAC;YACzC,UAAU,CAAC,aAAa,GAAG,IAAI,IAAI,EAAE,CAAC;YACtC,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC9D,CAAC;QAGD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,IAAI,IAAI,EAAE,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,
|
|
1
|
+
{"version":3,"file":"action-data.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/action-data.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiE;AACjE,6CAAmD;AACnD,qEAAgE;AAChE,qCAA+C;AAE/C,iEAA4D;AAC5D,gGAAwF;AACxF,uEAAsE;AACtE,2CAA+C;AAC/C,iCAA0B;AAC1B,6HAA4H;AAGrH,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,+CAAiB;IACzD,YAEmB,cAA4C,EAE5C,cAA0C,EAC1C,aAA4B,EAC5B,+BAAgE;QAEjF,KAAK,EAAE,CAAC;QANS,mBAAc,GAAd,cAAc,CAA8B;QAE5C,mBAAc,GAAd,cAAc,CAA4B;QAC1C,kB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AAW,QAAQ,IAAI,SAAS,EAAE,CAAC;QACpD,CAAC;aAAM,CAAC;YACN,YAAY,GAAG,OAAO,CAAC;QACzB,CAAC;QAED,MAAM,OAAO,GAAG,GAAG,YAAY,SAAS,kBAAkB,IAAI,gBAAgB,IAAI,OAAO,EAAE,CAAC;QAE5F,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAA;AA7UY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,qCAAgB,CAAC,CAAA;IAElC,WAAA,IAAA,0BAAgB,EAAC,iCAAc,CAAC,CAAA;qCADA,oBAAU;QAEV,oBAAU;QACX,sBAAa;QACK,oEAA+B;GAPxE,oBAAoB,CA6UhC"}
|
|
@@ -10,7 +10,7 @@ export declare class ActionRepository {
|
|
|
10
10
|
}[]>;
|
|
11
11
|
getActions(loggedInUser: UserData, stage_id: number): Promise<any[]>;
|
|
12
12
|
getDependentActions(loggedInUser: UserData, stage_id: number, action_id?: number): Promise<any>;
|
|
13
|
-
getAction(
|
|
13
|
+
getAction(organization_id: number, stage_id: number, mapped_entity_id: number, mapped_entity_type: string): Promise<{
|
|
14
14
|
value: any;
|
|
15
15
|
dependent_action_id: any;
|
|
16
16
|
label: any;
|
|
@@ -18,11 +18,11 @@ let ActionRepository = class ActionRepository {
|
|
|
18
18
|
this.reflectionHelper = reflectionHelper;
|
|
19
19
|
}
|
|
20
20
|
async getReasonCode(loggedInUser) {
|
|
21
|
-
const {
|
|
21
|
+
const { organization_id } = loggedInUser;
|
|
22
22
|
const listMasterRepo = this.reflectionHelper.getRepoService('ListMasterData');
|
|
23
23
|
const result = await listMasterRepo.find({
|
|
24
24
|
where: {
|
|
25
|
-
|
|
25
|
+
organization_id,
|
|
26
26
|
source: 'master',
|
|
27
27
|
},
|
|
28
28
|
});
|
|
@@ -33,7 +33,7 @@ let ActionRepository = class ActionRepository {
|
|
|
33
33
|
return formatted;
|
|
34
34
|
}
|
|
35
35
|
async defaultReasonCode(list_type, loggedInUser) {
|
|
36
|
-
const {
|
|
36
|
+
const { organization_id } = loggedInUser;
|
|
37
37
|
if (!list_type) {
|
|
38
38
|
throw new common_1.BadRequestException('list_type is required');
|
|
39
39
|
}
|
|
@@ -41,7 +41,7 @@ let ActionRepository = class ActionRepository {
|
|
|
41
41
|
const result = await listMasterItemsRepo.find({
|
|
42
42
|
where: {
|
|
43
43
|
listtype: list_type,
|
|
44
|
-
|
|
44
|
+
organization_id,
|
|
45
45
|
},
|
|
46
46
|
});
|
|
47
47
|
return result.map((row) => ({
|
|
@@ -50,7 +50,7 @@ let ActionRepository = class ActionRepository {
|
|
|
50
50
|
}));
|
|
51
51
|
}
|
|
52
52
|
async getActions(loggedInUser, stage_id) {
|
|
53
|
-
const {
|
|
53
|
+
const { organization_id } = loggedInUser;
|
|
54
54
|
const workflowStageActionRepo = this.reflectionHelper.getRepoService('StageActionMapping');
|
|
55
55
|
const stageActions = await workflowStageActionRepo.find({
|
|
56
56
|
where: {
|
|
@@ -74,7 +74,7 @@ let ActionRepository = class ActionRepository {
|
|
|
74
74
|
const templates = await workflowCommTemplateRepo.find({
|
|
75
75
|
where: {
|
|
76
76
|
code: (0, typeorm_1.In)(templateCodes),
|
|
77
|
-
|
|
77
|
+
organization_id: organization_id,
|
|
78
78
|
},
|
|
79
79
|
});
|
|
80
80
|
templates.forEach((tpl) => {
|
|
@@ -116,8 +116,8 @@ let ActionRepository = class ActionRepository {
|
|
|
116
116
|
.leftJoin('frm_wf_action_category', 'ac', 'ac.id::text = a.action_category')
|
|
117
117
|
.leftJoin('frm_list_master_items', 'ar', `ar.id::text = a.action_requirement
|
|
118
118
|
AND ar.listtype = 'ACRQ'
|
|
119
|
-
AND ar.
|
|
120
|
-
.where('a.
|
|
119
|
+
AND ar.organization_id = :orgId`, { orgId: organization_id })
|
|
120
|
+
.where('a.organization_id = :orgId', { orgId: organization_id })
|
|
121
121
|
.andWhere('a.id::text IN (:...actionIds)', { actionIds })
|
|
122
122
|
.getRawMany();
|
|
123
123
|
const enrichedResult = actionResults.map((row) => {
|
|
@@ -160,7 +160,7 @@ let ActionRepository = class ActionRepository {
|
|
|
160
160
|
}));
|
|
161
161
|
return enrichedResult;
|
|
162
162
|
}
|
|
163
|
-
async getAction(
|
|
163
|
+
async getAction(organization_id, stage_id, mapped_entity_id, mapped_entity_type) {
|
|
164
164
|
const stageActionMappingRepo = this.reflectionHelper.getRepoService('StageActionMapping');
|
|
165
165
|
const stageActions = await stageActionMappingRepo.find({
|
|
166
166
|
where: {
|
|
@@ -194,7 +194,7 @@ let ActionRepository = class ActionRepository {
|
|
|
194
194
|
'a.dependent_action_id AS dependent_action_id',
|
|
195
195
|
])
|
|
196
196
|
.leftJoin('frm_wf_action_category', 'ac', 'ac.id = a.action_category::bigint')
|
|
197
|
-
.where('a.
|
|
197
|
+
.where('a.organization_id = :orgId', { orgId: organization_id })
|
|
198
198
|
.andWhere('a.id IN (:...actionIds)', { actionIds })
|
|
199
199
|
.orderBy('a.sequence', 'ASC')
|
|
200
200
|
.getRawMany();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/action.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiE;AACjE,qCAA6B;AAE7B,gGAAoF;AAG7E,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAEnE,KAAK,CAAC,aAAa,CAAC,YAAsB;QACxC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"action.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/action.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiE;AACjE,qCAA6B;AAE7B,gGAAoF;AAG7E,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAA6B,gBAAkC;QAAl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I,EAAE,YAAY;aACjC,CAAC;QACJ,CAAC,CAAC,CAAC;QAGH,cAAc,CAAC,IAAI,CAAC;YAClB,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,SAAS;SACV,CAAC,CAAC;QAEV,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AA5UY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAEoC,4CAAgB;GADpD,gBAAgB,CA4U5B"}
|
|
@@ -3,7 +3,7 @@ import { ReflectionHelper } from '../../../utils/service/reflection-helper.servi
|
|
|
3
3
|
export declare class FormMasterRepository {
|
|
4
4
|
private readonly reflectionHelper;
|
|
5
5
|
constructor(reflectionHelper: ReflectionHelper);
|
|
6
|
-
getForms(
|
|
6
|
+
getForms(organization_id: number, source_entity_type: string): Promise<{
|
|
7
7
|
label: any;
|
|
8
8
|
value: any;
|
|
9
9
|
}[]>;
|
|
@@ -16,11 +16,11 @@ let FormMasterRepository = class FormMasterRepository {
|
|
|
16
16
|
constructor(reflectionHelper) {
|
|
17
17
|
this.reflectionHelper = reflectionHelper;
|
|
18
18
|
}
|
|
19
|
-
async getForms(
|
|
19
|
+
async getForms(organization_id, source_entity_type) {
|
|
20
20
|
const viewMasterRepo = this.reflectionHelper.getRepoService('ViewMaster');
|
|
21
21
|
const forms = await viewMasterRepo.find({
|
|
22
22
|
where: {
|
|
23
|
-
|
|
23
|
+
organization_id,
|
|
24
24
|
mapped_entity_type: source_entity_type
|
|
25
25
|
}
|
|
26
26
|
});
|