rez_core 6.5.50 → 6.5.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +26 -0
- package/.idea/250218_nodejs_core.iml +9 -0
- package/.idea/codeStyles/Project.xml +59 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/dist/app.module.js +5 -3
- package/dist/app.module.js.map +1 -1
- package/dist/constant/status.constant.d.ts +4 -0
- package/dist/constant/status.constant.js +9 -0
- package/dist/constant/status.constant.js.map +1 -0
- package/dist/core.module.js +63 -38
- package/dist/core.module.js.map +1 -1
- package/dist/module/app_master/app-master.module.d.ts +2 -0
- package/dist/module/app_master/app-master.module.js +28 -0
- package/dist/module/app_master/app-master.module.js.map +1 -0
- package/dist/module/app_master/controller/app-master.controller.js.map +1 -0
- package/dist/module/app_master/entity/app-master.entity.d.ts +17 -0
- package/dist/module/{meta → app_master}/entity/app-master.entity.js +30 -12
- package/dist/module/app_master/entity/app-master.entity.js.map +1 -0
- package/dist/module/{meta → app_master}/repository/app-master.repository.d.ts +2 -2
- package/dist/module/{meta → app_master}/repository/app-master.repository.js +4 -4
- package/dist/module/app_master/repository/app-master.repository.js.map +1 -0
- package/dist/module/app_master/service/app-master.service.js.map +1 -0
- package/dist/module/auth/strategies/jwt.strategy.d.ts +2 -1
- package/dist/module/auth/strategies/jwt.strategy.js +3 -2
- package/dist/module/auth/strategies/jwt.strategy.js.map +1 -1
- package/dist/module/dashboard/dashboard.module.js +1 -1
- package/dist/module/dashboard/dashboard.module.js.map +1 -1
- package/dist/module/dashboard/service/dashboard.service.js +1 -2
- package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
- package/dist/module/enterprise/controller/enterprise.controller.d.ts +12 -0
- package/dist/module/enterprise/controller/enterprise.controller.js +57 -0
- package/dist/module/enterprise/controller/enterprise.controller.js.map +1 -0
- package/dist/module/enterprise/controller/meta.controller.d.ts +9 -0
- package/dist/module/enterprise/controller/meta.controller.js +43 -0
- package/dist/module/enterprise/controller/meta.controller.js.map +1 -0
- package/dist/module/enterprise/controller/organization.controller.d.ts +12 -4
- package/dist/module/enterprise/controller/organization.controller.js +64 -8
- package/dist/module/enterprise/controller/organization.controller.js.map +1 -1
- package/dist/module/enterprise/enterprise.module.js +10 -15
- package/dist/module/enterprise/enterprise.module.js.map +1 -1
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +1 -3
- package/dist/module/enterprise/entity/enterprise.entity.js +4 -12
- package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +6 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +21 -4
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -1
- package/dist/module/enterprise/entity/organization.entity.d.ts +3 -18
- package/dist/module/enterprise/entity/organization.entity.js +8 -74
- package/dist/module/enterprise/entity/organization.entity.js.map +1 -1
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +4 -2
- package/dist/module/enterprise/repository/enterprise.repository.js +19 -4
- package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -1
- package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
- package/dist/module/enterprise/service/brand-profile.service.js +1 -0
- package/dist/module/enterprise/service/brand-profile.service.js.map +1 -0
- package/dist/module/enterprise/service/brand.service.d.ts +0 -3
- package/dist/module/enterprise/service/brand.service.js +0 -17
- package/dist/module/enterprise/service/brand.service.js.map +1 -1
- package/dist/module/enterprise/service/enterprise.service.d.ts +2 -2
- package/dist/module/enterprise/service/enterprise.service.js +4 -4
- package/dist/module/enterprise/service/enterprise.service.js.map +1 -1
- package/dist/module/enterprise/service/organization.service.d.ts +4 -4
- package/dist/module/enterprise/service/organization.service.js +101 -24
- package/dist/module/enterprise/service/organization.service.js.map +1 -1
- package/dist/module/enterprise/service/populate-meta.service.d.ts +9 -0
- package/dist/module/{meta → enterprise}/service/populate-meta.service.js +2 -8
- package/dist/module/enterprise/service/populate-meta.service.js.map +1 -0
- package/dist/module/enterprise/service/school.service.d.ts +0 -0
- package/dist/module/enterprise/service/school.service.js +1 -0
- package/dist/module/enterprise/service/school.service.js.map +1 -0
- package/dist/module/entity_json/controller/entity_json.controller.d.ts +9 -2
- package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
- package/dist/module/entity_json/entity/entityJson.entity.d.ts +1 -2
- package/dist/module/entity_json/entity/entityJson.entity.js +1 -5
- package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -1
- package/dist/module/entity_json/entity_json.module.js +2 -7
- package/dist/module/entity_json/entity_json.module.js.map +1 -1
- package/dist/module/entity_json/service/entity_json.service.d.ts +10 -2
- package/dist/module/entity_json/service/entity_json.service.js +25 -101
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
- package/dist/module/filter/controller/filter.controller.d.ts +0 -12
- package/dist/module/filter/controller/filter.controller.js +1 -1
- package/dist/module/filter/controller/filter.controller.js.map +1 -1
- package/dist/module/filter/filter.module.js +2 -11
- package/dist/module/filter/filter.module.js.map +1 -1
- package/dist/module/filter/service/filter.service.d.ts +2 -38
- package/dist/module/filter/service/filter.service.js +50 -43
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/filter/service/saved-filter.service.d.ts +2 -3
- package/dist/module/filter/service/saved-filter.service.js +18 -14
- package/dist/module/filter/service/saved-filter.service.js.map +1 -1
- package/dist/module/integration/service/integration.service.d.ts +0 -1
- package/dist/module/integration/service/integration.service.js +1 -2
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/module/integration/service/wrapper.service.js +0 -1
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/layout/controller/layout.controller.d.ts +1 -3
- package/dist/module/layout/controller/layout.controller.js +3 -7
- package/dist/module/layout/controller/layout.controller.js.map +1 -1
- package/dist/module/layout/entity/header-section.entity.d.ts +0 -2
- package/dist/module/layout/entity/header-section.entity.js +0 -8
- package/dist/module/layout/entity/header-section.entity.js.map +1 -1
- package/dist/module/layout/layout.module.js +1 -2
- package/dist/module/layout/layout.module.js.map +1 -1
- package/dist/module/layout/repository/header-section.repository.d.ts +0 -1
- package/dist/module/layout/repository/header-section.repository.js +0 -5
- package/dist/module/layout/repository/header-section.repository.js.map +1 -1
- package/dist/module/layout/service/header-section.service.d.ts +1 -1
- package/dist/module/layout/service/header-section.service.js +1 -1
- package/dist/module/layout/service/header-section.service.js.map +1 -1
- package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +0 -41
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js +0 -90
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -1
- package/dist/module/linked_attributes/linked_attributes.module.js +1 -8
- package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +1 -65
- package/dist/module/linked_attributes/service/linked_attributes.service.js +2 -287
- package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
- package/dist/module/listmaster/service/list-master.service.js +1 -8
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/meta/controller/meta.controller.d.ts +1 -6
- package/dist/module/meta/controller/meta.controller.js +1 -19
- package/dist/module/meta/controller/meta.controller.js.map +1 -1
- package/dist/module/meta/entity/entity-master.entity.d.ts +0 -1
- package/dist/module/meta/entity/entity-master.entity.js +1 -8
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/entity.module.js +3 -14
- package/dist/module/meta/entity.module.js.map +1 -1
- package/dist/module/meta/service/attribute-master.service.d.ts +1 -6
- package/dist/module/meta/service/attribute-master.service.js +2 -22
- package/dist/module/meta/service/attribute-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-master.service.js +0 -1
- package/dist/module/meta/service/entity-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-relation.service.d.ts +3 -4
- package/dist/module/meta/service/entity-relation.service.js +4 -10
- package/dist/module/meta/service/entity-relation.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.d.ts +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +10 -14
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.d.ts +4 -5
- package/dist/module/meta/service/entity-table.service.js +24 -45
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/meta/service/resolver.service.d.ts +1 -1
- package/dist/module/meta/service/resolver.service.js +3 -6
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/module/controller/module-access.controller.d.ts +3 -4
- package/dist/module/module/controller/module-access.controller.js +13 -8
- package/dist/module/module/controller/module-access.controller.js.map +1 -1
- package/dist/module/module/entity/menu.entity.d.ts +6 -3
- package/dist/module/module/entity/menu.entity.js +19 -10
- package/dist/module/module/entity/menu.entity.js.map +1 -1
- package/dist/module/module/entity/module-access.entity.d.ts +15 -1
- package/dist/module/module/entity/module-access.entity.js +49 -3
- package/dist/module/module/entity/module-access.entity.js.map +1 -1
- package/dist/module/module/entity/module-action.entity.d.ts +4 -2
- package/dist/module/module/entity/module-action.entity.js +11 -6
- package/dist/module/module/entity/module-action.entity.js.map +1 -1
- package/dist/module/module/entity/module.entity.d.ts +3 -5
- package/dist/module/module/entity/module.entity.js +8 -18
- package/dist/module/module/entity/module.entity.js.map +1 -1
- package/dist/module/module/module.module.d.ts +1 -1
- package/dist/module/module/module.module.js +5 -7
- package/dist/module/module/module.module.js.map +1 -1
- package/dist/module/module/repository/menu.repository.d.ts +3 -3
- package/dist/module/module/repository/menu.repository.js +38 -27
- package/dist/module/module/repository/menu.repository.js.map +1 -1
- package/dist/module/module/repository/module-access.repository.d.ts +6 -6
- package/dist/module/module/repository/module-access.repository.js +96 -48
- package/dist/module/module/repository/module-access.repository.js.map +1 -1
- package/dist/module/module/service/menu.service.d.ts +2 -4
- package/dist/module/module/service/menu.service.js +7 -10
- package/dist/module/module/service/menu.service.js.map +1 -1
- package/dist/module/module/service/module-access.service.d.ts +7 -10
- package/dist/module/module/service/module-access.service.js +22 -24
- package/dist/module/module/service/module-access.service.js.map +1 -1
- package/dist/module/notification/entity/notification.entity.d.ts +17 -2
- package/dist/module/notification/entity/notification.entity.js +68 -2
- package/dist/module/notification/entity/notification.entity.js.map +1 -1
- package/dist/module/notification/notification.module.js +0 -2
- package/dist/module/notification/notification.module.js.map +1 -1
- package/dist/module/notification/service/notification.service.d.ts +1 -3
- package/dist/module/notification/service/notification.service.js +2 -5
- package/dist/module/notification/service/notification.service.js.map +1 -1
- package/dist/module/notification/service/otp.service.js +0 -1
- package/dist/module/notification/service/otp.service.js.map +1 -1
- package/dist/module/user/controller/login.controller.d.ts +1 -3
- package/dist/module/user/controller/login.controller.js +2 -6
- package/dist/module/user/controller/login.controller.js.map +1 -1
- package/dist/module/user/controller/user.controller.d.ts +0 -2
- package/dist/module/user/controller/user.controller.js +0 -13
- package/dist/module/user/controller/user.controller.js.map +1 -1
- package/dist/module/user/dto/create-user.dto.d.ts +6 -3
- package/dist/module/user/dto/create-user.dto.js +17 -11
- package/dist/module/user/dto/create-user.dto.js.map +1 -1
- package/dist/module/user/entity/role.entity.d.ts +18 -6
- package/dist/module/user/entity/role.entity.js +64 -19
- package/dist/module/user/entity/role.entity.js.map +1 -1
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +10 -0
- package/dist/module/user/entity/user-role-mapping.entity.js +33 -1
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
- package/dist/module/user/entity/user-session.entity.d.ts +0 -2
- package/dist/module/user/entity/user-session.entity.js +2 -20
- package/dist/module/user/entity/user-session.entity.js.map +1 -1
- package/dist/module/user/entity/user.entity.d.ts +17 -5
- package/dist/module/user/entity/user.entity.js +61 -15
- package/dist/module/user/entity/user.entity.js.map +1 -1
- package/dist/module/user/repository/role.repository.d.ts +7 -2
- package/dist/module/user/repository/role.repository.js +23 -8
- package/dist/module/user/repository/role.repository.js.map +1 -1
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +1 -0
- package/dist/module/user/repository/user-role-mapping.repository.js +3 -0
- package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -1
- package/dist/module/user/repository/user.repository.d.ts +5 -2
- package/dist/module/user/repository/user.repository.js +26 -7
- package/dist/module/user/repository/user.repository.js.map +1 -1
- package/dist/module/user/repository/userSession.repository.d.ts +1 -0
- package/dist/module/user/repository/userSession.repository.js +3 -0
- package/dist/module/user/repository/userSession.repository.js.map +1 -1
- package/dist/module/user/service/login.service.d.ts +3 -5
- package/dist/module/user/service/login.service.js +43 -42
- package/dist/module/user/service/login.service.js.map +1 -1
- package/dist/module/user/service/role.service.d.ts +24 -11
- package/dist/module/user/service/role.service.js +54 -40
- package/dist/module/user/service/role.service.js.map +1 -1
- package/dist/module/user/service/user-role-mapping.service.d.ts +2 -0
- package/dist/module/user/service/user-role-mapping.service.js +6 -0
- package/dist/module/user/service/user-role-mapping.service.js.map +1 -1
- package/dist/module/user/service/user-session.service.d.ts +3 -4
- package/dist/module/user/service/user-session.service.js +10 -11
- package/dist/module/user/service/user-session.service.js.map +1 -1
- package/dist/module/user/service/user.service.d.ts +33 -22
- package/dist/module/user/service/user.service.js +66 -58
- package/dist/module/user/service/user.service.js.map +1 -1
- package/dist/module/user/user.module.js +2 -7
- package/dist/module/user/user.module.js.map +1 -1
- package/dist/module/workflow/repository/action-data.repository.d.ts +1 -1
- package/dist/module/workflow/repository/action-data.repository.js +6 -8
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
- package/dist/module/workflow/repository/action.repository.d.ts +1 -1
- package/dist/module/workflow/repository/action.repository.js +10 -10
- package/dist/module/workflow/repository/action.repository.js.map +1 -1
- package/dist/module/workflow/repository/form-master.repository.d.ts +1 -1
- package/dist/module/workflow/repository/form-master.repository.js +2 -2
- package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
- package/dist/module/workflow/service/action-data.service.js +1 -2
- package/dist/module/workflow/service/action-data.service.js.map +1 -1
- package/dist/module/workflow/service/action.service.js +2 -2
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/comm-template.service.js +0 -2
- package/dist/module/workflow/service/comm-template.service.js.map +1 -1
- package/dist/module/workflow/service/entity-modification.service.js +0 -1
- package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
- package/dist/module/workflow/service/form-master.service.js +2 -2
- package/dist/module/workflow/service/form-master.service.js.map +1 -1
- package/dist/module/workflow/service/populate-workflow.service.d.ts +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.js +0 -3
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-meta.service.js +2 -7
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
- package/dist/module/workflow/service/workflow.service.js +2 -2
- package/dist/module/workflow/service/workflow.service.js.map +1 -1
- package/dist/module/workflow/workflow.module.js +2 -0
- package/dist/module/workflow/workflow.module.js.map +1 -1
- package/dist/module/workflow-automation/service/workflow-automation.service.js +11 -6
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/module/workflow-automation/workflow-automation.module.js +3 -1
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js +0 -2
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
- package/dist/table.config.d.ts +3 -5
- package/dist/table.config.js +3 -3
- package/dist/table.config.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/server.log +850 -0
- package/src/app.module.ts +7 -5
- package/src/constant/status.constant.ts +4 -0
- package/src/core.module.ts +58 -44
- package/src/module/app_master/app-master.module.ts +15 -0
- package/src/module/{meta → app_master}/entity/app-master.entity.ts +22 -9
- package/src/module/{meta → app_master}/repository/app-master.repository.ts +3 -3
- package/src/module/auth/strategies/jwt.strategy.ts +4 -2
- package/src/module/dashboard/dashboard.module.ts +3 -3
- package/src/module/dashboard/service/dashboard.service.ts +1 -2
- package/src/module/enterprise/controller/enterprise.controller.ts +40 -0
- package/src/module/enterprise/controller/meta.controller.ts +23 -0
- package/src/module/enterprise/controller/organization.controller.ts +60 -4
- package/src/module/enterprise/enterprise.module.ts +16 -18
- package/src/module/enterprise/entity/enterprise.entity.ts +5 -11
- package/src/module/enterprise/entity/organization-app-mapping.entity.ts +18 -4
- package/src/module/enterprise/entity/organization.entity.ts +9 -59
- package/src/module/enterprise/repository/enterprise.repository.ts +26 -4
- package/src/module/enterprise/service/brand-profile.service.ts +10 -0
- package/src/module/enterprise/service/brand.service.ts +75 -5
- package/src/module/enterprise/service/enterprise.service.ts +10 -4
- package/src/module/enterprise/service/organization.service.ts +140 -23
- package/src/module/{meta → enterprise}/service/populate-meta.service.ts +2 -5
- package/src/module/enterprise/service/school.service.ts +5 -0
- package/src/module/entity_json/controller/entity_json.controller.ts +0 -13
- package/src/module/entity_json/entity/entityJson.entity.ts +1 -4
- package/src/module/entity_json/entity_json.module.ts +5 -9
- package/src/module/entity_json/service/entity_json.service.ts +51 -237
- package/src/module/filter/controller/filter.controller.ts +3 -1
- package/src/module/filter/filter.module.ts +3 -12
- package/src/module/filter/service/filter.service.ts +73 -130
- package/src/module/filter/service/saved-filter.service.ts +26 -16
- package/src/module/integration/service/integration.service.ts +2 -6
- package/src/module/integration/service/wrapper.service.ts +0 -1
- package/src/module/layout/controller/layout.controller.ts +1 -8
- package/src/module/layout/entity/header-section.entity.ts +0 -6
- package/src/module/layout/layout.module.ts +1 -1
- package/src/module/layout/repository/header-section.repository.ts +0 -6
- package/src/module/layout/service/header-section.service.ts +1 -1
- package/src/module/linked_attributes/controller/linked_attributes.controller.ts +0 -100
- package/src/module/linked_attributes/linked_attributes.module.ts +2 -9
- package/src/module/linked_attributes/service/linked_attributes.service.ts +3 -578
- package/src/module/listmaster/service/list-master.service.ts +1 -9
- package/src/module/meta/controller/meta.controller.ts +3 -25
- package/src/module/meta/entity/entity-master.entity.ts +3 -9
- package/src/module/meta/entity.module.ts +6 -20
- package/src/module/meta/service/attribute-master.service.ts +1 -31
- package/src/module/meta/service/entity-master.service.ts +0 -1
- package/src/module/meta/service/entity-relation.service.ts +6 -10
- package/src/module/meta/service/entity-service-impl.service.ts +19 -14
- package/src/module/meta/service/entity-table.service.ts +68 -82
- package/src/module/meta/service/entity.service.ts +1 -0
- package/src/module/meta/service/resolver.service.ts +0 -4
- package/src/module/module/controller/module-access.controller.ts +14 -9
- package/src/module/module/entity/menu.entity.ts +18 -10
- package/src/module/module/entity/module-access.entity.ts +40 -3
- package/src/module/module/entity/module-action.entity.ts +10 -6
- package/src/module/module/entity/module.entity.ts +7 -14
- package/src/module/module/module.module.ts +2 -3
- package/src/module/module/repository/menu.repository.ts +43 -29
- package/src/module/module/repository/module-access.repository.ts +111 -63
- package/src/module/module/service/menu.service.ts +7 -9
- package/src/module/module/service/module-access.service.ts +22 -34
- package/src/module/notification/entity/notification.entity.ts +53 -3
- package/src/module/notification/notification.module.ts +0 -2
- package/src/module/notification/service/notification.service.ts +0 -1
- package/src/module/notification/service/otp.service.ts +4 -3
- package/src/module/user/controller/login.controller.ts +7 -8
- package/src/module/user/controller/user.controller.ts +0 -9
- package/src/module/user/dto/create-user.dto.ts +19 -6
- package/src/module/user/entity/role.entity.ts +59 -16
- package/src/module/user/entity/user-role-mapping.entity.ts +29 -3
- package/src/module/user/entity/user-session.entity.ts +3 -19
- package/src/module/user/entity/user.entity.ts +48 -13
- package/src/module/user/repository/role.repository.ts +32 -12
- package/src/module/user/repository/user-role-mapping.repository.ts +5 -1
- package/src/module/user/repository/user.repository.ts +36 -9
- package/src/module/user/repository/userSession.repository.ts +5 -1
- package/src/module/user/service/login.service.ts +47 -51
- package/src/module/user/service/role.service.ts +64 -63
- package/src/module/user/service/user-role-mapping.service.ts +23 -1
- package/src/module/user/service/user-session.service.ts +14 -11
- package/src/module/user/service/user.service.ts +76 -95
- package/src/module/user/user.module.ts +4 -5
- package/src/module/workflow/repository/action-data.repository.ts +6 -8
- package/src/module/workflow/repository/action.repository.ts +11 -11
- package/src/module/workflow/repository/form-master.repository.ts +2 -2
- package/src/module/workflow/service/action-data.service.ts +3 -2
- package/src/module/workflow/service/action.service.ts +2 -2
- package/src/module/workflow/service/comm-template.service.ts +0 -2
- package/src/module/workflow/service/entity-modification.service.ts +0 -1
- package/src/module/workflow/service/form-master.service.ts +2 -2
- package/src/module/workflow/service/populate-workflow.service.ts +1 -1
- package/src/module/workflow/service/task.service.ts +0 -3
- package/src/module/workflow/service/workflow-meta.service.ts +2 -7
- package/src/module/workflow/service/workflow.service.ts +2 -2
- package/src/module/workflow/workflow.module.ts +2 -0
- package/src/module/workflow-automation/service/workflow-automation.service.ts +19 -7
- package/src/module/workflow-automation/workflow-automation.module.ts +4 -3
- package/src/module/workflow-schedule/service/workflow-schedule.service.ts +0 -2
- package/src/resources/dev.properties.yaml +2 -2
- package/src/table.config.ts +3 -3
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +0 -6
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +0 -32
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +0 -1
- package/dist/module/filter/service/flatjson-filter.service.d.ts +0 -32
- package/dist/module/filter/service/flatjson-filter.service.js +0 -632
- package/dist/module/filter/service/flatjson-filter.service.js.map +0 -1
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.d.ts +0 -13
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js +0 -64
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js.map +0 -1
- package/dist/module/meta/controller/app-master.controller.js.map +0 -1
- package/dist/module/meta/entity/app-master.entity.d.ts +0 -13
- package/dist/module/meta/entity/app-master.entity.js.map +0 -1
- package/dist/module/meta/repository/app-master.repository.js.map +0 -1
- package/dist/module/meta/service/app-master.service.js.map +0 -1
- package/dist/module/meta/service/populate-meta.service.d.ts +0 -13
- package/dist/module/meta/service/populate-meta.service.js.map +0 -1
- package/src/migrations/1732612800000-AddEntityJsonGinIndex.ts +0 -41
- package/src/module/entity_json/docs/FlatJson_Filterin_System.md +0 -2804
- package/src/module/filter/service/flatjson-filter.service.ts +0 -903
- package/src/module/filter/test/flatjson-filter.service.spec.ts +0 -415
- package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +0 -54
- package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +0 -244
- /package/dist/module/{meta → app_master}/controller/app-master.controller.d.ts +0 -0
- /package/dist/module/{meta → app_master}/controller/app-master.controller.js +0 -0
- /package/dist/module/{meta → app_master}/service/app-master.service.d.ts +0 -0
- /package/dist/module/{meta → app_master}/service/app-master.service.js +0 -0
- /package/src/module/{meta → app_master}/controller/app-master.controller.ts +0 -0
- /package/src/module/{meta → app_master}/service/app-master.service.ts +0 -0
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { ModuleAccessRepository } from '../repository/module-access.repository';
|
|
2
|
-
import {
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
3
|
import { UserData } from 'src/module/user/entity/user.entity';
|
|
4
4
|
import { MenuRepository } from '../repository/menu.repository';
|
|
5
|
-
import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
|
|
6
5
|
import { ReflectionHelper } from '../../../utils/service/reflection-helper.service';
|
|
6
|
+
import { Role } from '../../user/entity/role.entity';
|
|
7
7
|
export declare class ModuleAccessService {
|
|
8
8
|
private readonly moduleAccessRepository;
|
|
9
9
|
private readonly menuRepository;
|
|
10
|
-
private readonly dataSource;
|
|
11
|
-
private readonly listMasterService;
|
|
12
10
|
private readonly reflectionHelper;
|
|
13
|
-
|
|
11
|
+
private readonly roleRepo;
|
|
12
|
+
constructor(moduleAccessRepository: ModuleAccessRepository, menuRepository: MenuRepository, reflectionHelper: ReflectionHelper, roleRepo: Repository<Role>);
|
|
14
13
|
getModules({ appcode, loggedInUser }: {
|
|
15
14
|
appcode: string;
|
|
16
15
|
loggedInUser: UserData;
|
|
@@ -25,8 +24,8 @@ export declare class ModuleAccessService {
|
|
|
25
24
|
level_id?: number;
|
|
26
25
|
include?: boolean;
|
|
27
26
|
}): Promise<{
|
|
28
|
-
label:
|
|
29
|
-
value:
|
|
27
|
+
label: string;
|
|
28
|
+
value: number;
|
|
30
29
|
}[]>;
|
|
31
30
|
getAccessListing(roleIds: number[], appcode: string, levelType: string, level_id?: number): Promise<any>;
|
|
32
31
|
getMenuListing(mainModIds: string[], appcode: string, levelType: string): Promise<Record<string, any[]>>;
|
|
@@ -44,15 +43,13 @@ export declare class ModuleAccessService {
|
|
|
44
43
|
getModuleUIConfig(moduleCode: string, roleIds: number[]): Promise<{
|
|
45
44
|
entity_type: string;
|
|
46
45
|
title: string;
|
|
47
|
-
ui_config: JSON;
|
|
48
46
|
action: string[];
|
|
49
47
|
}>;
|
|
50
|
-
getUserPermissions({ userId, appcode, level_type, level_id,
|
|
48
|
+
getUserPermissions({ userId, appcode, level_type, level_id, }: {
|
|
51
49
|
userId: number;
|
|
52
50
|
appcode: string;
|
|
53
51
|
level_type: string;
|
|
54
52
|
level_id: number;
|
|
55
|
-
enterprise_id: number;
|
|
56
53
|
}): Promise<{
|
|
57
54
|
action: any;
|
|
58
55
|
access: any;
|
|
@@ -15,18 +15,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.ModuleAccessService = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const module_access_repository_1 = require("../repository/module-access.repository");
|
|
18
|
-
const global_constant_1 = require("../../../constant/global.constant");
|
|
19
18
|
const typeorm_1 = require("typeorm");
|
|
20
19
|
const menu_repository_1 = require("../repository/menu.repository");
|
|
21
|
-
const list_master_service_1 = require("../../listmaster/service/list-master.service");
|
|
22
20
|
const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
|
|
21
|
+
const role_entity_1 = require("../../user/entity/role.entity");
|
|
22
|
+
const typeorm_2 = require("@nestjs/typeorm");
|
|
23
|
+
const status_constant_1 = require("../../../constant/status.constant");
|
|
23
24
|
let ModuleAccessService = class ModuleAccessService {
|
|
24
|
-
constructor(moduleAccessRepository, menuRepository,
|
|
25
|
+
constructor(moduleAccessRepository, menuRepository, reflectionHelper, roleRepo) {
|
|
25
26
|
this.moduleAccessRepository = moduleAccessRepository;
|
|
26
27
|
this.menuRepository = menuRepository;
|
|
27
|
-
this.dataSource = dataSource;
|
|
28
|
-
this.listMasterService = listMasterService;
|
|
29
28
|
this.reflectionHelper = reflectionHelper;
|
|
29
|
+
this.roleRepo = roleRepo;
|
|
30
30
|
}
|
|
31
31
|
async getModules({ appcode, loggedInUser }) {
|
|
32
32
|
return this.moduleAccessRepository.getModules({
|
|
@@ -34,21 +34,21 @@ let ModuleAccessService = class ModuleAccessService {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
async getRoles({ appcode, level_type, level_id, include, }) {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
const where = {
|
|
38
|
+
app: {
|
|
39
|
+
code: appcode
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
42
|
if (!include) {
|
|
43
|
-
|
|
43
|
+
where.is_factory = (0, typeorm_1.Or)((0, typeorm_1.IsNull)(), (0, typeorm_1.Not)(1));
|
|
44
44
|
}
|
|
45
45
|
if (level_type && level_id) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
level_id: String(level_id),
|
|
49
|
-
});
|
|
46
|
+
where.level_type = level_type;
|
|
47
|
+
where.level_id = String(level_id);
|
|
50
48
|
}
|
|
51
|
-
const roles = await
|
|
49
|
+
const roles = await this.roleRepo.find({
|
|
50
|
+
where,
|
|
51
|
+
});
|
|
52
52
|
return roles.map((role) => ({
|
|
53
53
|
label: role.name,
|
|
54
54
|
value: role.id,
|
|
@@ -59,7 +59,7 @@ let ModuleAccessService = class ModuleAccessService {
|
|
|
59
59
|
}
|
|
60
60
|
async getMenuListing(mainModIds, appcode, levelType) {
|
|
61
61
|
if (!appcode) {
|
|
62
|
-
throw new common_1.BadRequestException('
|
|
62
|
+
throw new common_1.BadRequestException('App code is required');
|
|
63
63
|
}
|
|
64
64
|
return this.moduleAccessRepository.getAllModulesByLevel(mainModIds, appcode, levelType);
|
|
65
65
|
}
|
|
@@ -78,7 +78,7 @@ let ModuleAccessService = class ModuleAccessService {
|
|
|
78
78
|
async getModuleUIConfig(moduleCode, roleIds) {
|
|
79
79
|
return this.moduleAccessRepository.getModuleUIConfig(moduleCode, roleIds);
|
|
80
80
|
}
|
|
81
|
-
async getUserPermissions({ userId, appcode, level_type, level_id,
|
|
81
|
+
async getUserPermissions({ userId, appcode, level_type, level_id, }) {
|
|
82
82
|
const roleCodes = await this.menuRepository.resolveUserRoles(userId, appcode, level_type, level_id);
|
|
83
83
|
if (!roleCodes || roleCodes.length === 0) {
|
|
84
84
|
return [];
|
|
@@ -92,8 +92,7 @@ let ModuleAccessService = class ModuleAccessService {
|
|
|
92
92
|
id: level_id,
|
|
93
93
|
},
|
|
94
94
|
});
|
|
95
|
-
|
|
96
|
-
if (!school || school.status === resolveStatus.id) {
|
|
95
|
+
if (!school || school.status === status_constant_1.StatusConstant.INACTIVE) {
|
|
97
96
|
return allPermissions.filter((perm) => perm.action === 'VIEW');
|
|
98
97
|
}
|
|
99
98
|
}
|
|
@@ -103,11 +102,10 @@ let ModuleAccessService = class ModuleAccessService {
|
|
|
103
102
|
exports.ModuleAccessService = ModuleAccessService;
|
|
104
103
|
exports.ModuleAccessService = ModuleAccessService = __decorate([
|
|
105
104
|
(0, common_1.Injectable)(),
|
|
106
|
-
__param(3, (0,
|
|
105
|
+
__param(3, (0, typeorm_2.InjectRepository)(role_entity_1.Role)),
|
|
107
106
|
__metadata("design:paramtypes", [module_access_repository_1.ModuleAccessRepository,
|
|
108
107
|
menu_repository_1.MenuRepository,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
reflection_helper_service_1.ReflectionHelper])
|
|
108
|
+
reflection_helper_service_1.ReflectionHelper,
|
|
109
|
+
typeorm_1.Repository])
|
|
112
110
|
], ModuleAccessService);
|
|
113
111
|
//# sourceMappingURL=module-access.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-access.service.js","sourceRoot":"","sources":["../../../../src/module/module/service/module-access.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"module-access.service.js","sourceRoot":"","sources":["../../../../src/module/module/service/module-access.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiE;AACjE,qFAAgF;AAChF,qCAAsD;AAEtD,mEAA+D;AAC/D,gGAAoF;AACpF,+DAAqD;AACrD,6CAAmD;AACnD,uEAAmE;AAG5D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,sBAA8C,EAC9C,cAA8B,EAC9B,gBAAkC,EAElC,QAA0B;QAJ1B,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,aAAQ,GAAR,QAAQ,CAAkB;IAE7C,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,YAAY,EAA+C;QACrF,OAAO,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC;YAC5C,OAAO,EAAE,YAAY;SACtB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,EACE,OAAO,EACP,UAAU,EACV,QAAQ,EACR,OAAO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C;gBACtC,KAAK,EAAE;oBACL,EAAE,EAAE,QAAQ;iBACb;aACF,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,gCAAc,CAAC,QAAQ,EAAE,CAAC;gBAEzD,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC;YACjE,CAAC;QACH,CAAC;QAGD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF,CAAA;AArKY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,0BAAgB,EAAC,kBAAI,CAAC,CAAA;qCAHkB,iDAAsB;QAC9B,gCAAc;QACZ,4CAAgB;QAExB,oBAAU;GAN5B,mBAAmB,CAqK/B"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare class NotificationData {
|
|
2
|
+
id: number;
|
|
3
|
+
entity_type: string;
|
|
4
|
+
name: string;
|
|
5
|
+
status: string;
|
|
6
|
+
parent_type: string;
|
|
7
|
+
parent_id: number;
|
|
8
|
+
code: string;
|
|
9
|
+
created_by: number;
|
|
10
|
+
created_date: Date;
|
|
11
|
+
modified_by: number;
|
|
12
|
+
modified_date: Date;
|
|
13
|
+
enterprise_id: number;
|
|
14
|
+
organization_id: number;
|
|
15
|
+
appcode: string;
|
|
16
|
+
level_id: string;
|
|
17
|
+
level_type: string;
|
|
3
18
|
user_id: number | null;
|
|
4
19
|
event_type: string | null;
|
|
5
20
|
message: string | null;
|
|
@@ -10,11 +10,77 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.NotificationData = void 0;
|
|
13
|
-
const base_entity_entity_1 = require("../../meta/entity/base-entity.entity");
|
|
14
13
|
const typeorm_1 = require("typeorm");
|
|
15
|
-
let NotificationData = class NotificationData
|
|
14
|
+
let NotificationData = class NotificationData {
|
|
16
15
|
};
|
|
17
16
|
exports.NotificationData = NotificationData;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], NotificationData.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ name: 'entity_type', type: 'varchar', length: 100, nullable: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], NotificationData.prototype, "entity_type", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'name', type: 'varchar', length: 100, nullable: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], NotificationData.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ name: 'status', type: 'varchar', nullable: true, length: 100 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], NotificationData.prototype, "status", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'parent_type', type: 'varchar', length: 100, nullable: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], NotificationData.prototype, "parent_type", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ name: 'parent_id', type: 'bigint', nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], NotificationData.prototype, "parent_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'code', type: 'varchar', length: 100, nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], NotificationData.prototype, "code", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ name: 'created_by', type: 'bigint', nullable: true }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], NotificationData.prototype, "created_by", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({
|
|
51
|
+
name: 'created_date',
|
|
52
|
+
nullable: true,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], NotificationData.prototype, "created_date", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ name: 'modified_by', type: 'bigint', nullable: true }),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], NotificationData.prototype, "modified_by", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ name: 'modified_date', nullable: true }),
|
|
62
|
+
__metadata("design:type", Date)
|
|
63
|
+
], NotificationData.prototype, "modified_date", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ name: 'enterprise_id', type: 'int', nullable: true }),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], NotificationData.prototype, "enterprise_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ name: 'organization_id', type: 'int', nullable: true }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], NotificationData.prototype, "organization_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ name: 'appcode', type: 'varchar', length: 100, nullable: true }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], NotificationData.prototype, "appcode", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ name: 'level_id', type: 'varchar', length: 100, nullable: true }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], NotificationData.prototype, "level_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ name: 'level_type', type: 'varchar', length: 100, nullable: true }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], NotificationData.prototype, "level_type", void 0);
|
|
18
84
|
__decorate([
|
|
19
85
|
(0, typeorm_1.Column)({ name: 'user_id', type: 'int', nullable: true }),
|
|
20
86
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.entity.js","sourceRoot":"","sources":["../../../../src/module/notification/entity/notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"notification.entity.js","sourceRoot":"","sources":["../../../../src/module/notification/entity/notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiE;AAG1D,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAwE5B,CAAA;AAxEY,4CAAgB;AAE3B;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;4CAChC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC1D;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC1D;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;gDAC1D;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC1D;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC5C;AAGlB;IADC,I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AI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAC1D;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAClC;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACnD;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACnC;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACA;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;iDAC5C;2BAvEN,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;GACxB,gBAAgB,CAwE5B"}
|
|
@@ -24,7 +24,6 @@ const ics_module_1 = require("../ics/ics.module");
|
|
|
24
24
|
const notification_entity_1 = require("./entity/notification.entity");
|
|
25
25
|
const notification_controller_1 = require("./controller/notification.controller");
|
|
26
26
|
const notification_service_1 = require("./service/notification.service");
|
|
27
|
-
const entity_module_1 = require("../meta/entity.module");
|
|
28
27
|
const firebase_admin_config_1 = require("./firebase-admin.config");
|
|
29
28
|
let NotificationModule = class NotificationModule {
|
|
30
29
|
};
|
|
@@ -61,7 +60,6 @@ exports.NotificationModule = NotificationModule = __decorate([
|
|
|
61
60
|
auth_module_1.AuthModule,
|
|
62
61
|
user_module_1.UserModule,
|
|
63
62
|
ics_module_1.IcsMeetingModule,
|
|
64
|
-
entity_module_1.EntityModule,
|
|
65
63
|
],
|
|
66
64
|
providers: [
|
|
67
65
|
otp_service_1.OtpService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.module.js","sourceRoot":"","sources":["../../../src/module/notification/notification.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAAmD;AACnD,gEAA4D;AAC5D,6CAAgD;AAChD,oDAA0C;AAC1C,gEAA4D;AAC5D,mDAAsD;AACtD,gGAA4F;AAC5F,2DAAuD;AACvD,+BAA4B;AAC5B,2CAA6D;AAC7D,qDAAiD;AACjD,qDAAiD;AACjD,kDAAqD;AACrD,sEAAgE;AAChE,kFAA+E;AAC/E,yEAAsE;AACtE,
|
|
1
|
+
{"version":3,"file":"notification.module.js","sourceRoot":"","sources":["../../../src/module/notification/notification.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAAmD;AACnD,gEAA4D;AAC5D,6CAAgD;AAChD,oDAA0C;AAC1C,gEAA4D;AAC5D,mDAAsD;AACtD,gGAA4F;AAC5F,2DAAuD;AACvD,+BAA4B;AAC5B,2CAA6D;AAC7D,qDAAiD;AACjD,qDAAiD;AACjD,kDAAqD;AACrD,sEAAgE;AAChE,kFAA+E;AAC/E,yEAAsE;AACtE,mEAAgE;AAiDzD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IA/C9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,gBAAG,EAAE,sCAAgB,CAAC,CAAC;YACjD,qBAAY,CAAC,YAAY,CAAC;gBACxB,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;gBACvB,UAAU,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC;oBAC7C,SAAS,EAAE;wBACT,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,GAAG;wBACT,MAAM,EAAE,IAAI;wBACZ,IAAI,EAAE;4BACJ,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC;4BACrC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC;yBAC1C;qBACF;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,GAAG;qBACnD;oBACD,QAAQ,EAAE;wBACR,GAAG,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC;wBAC7C,OAAO,EAAE,IAAI,sCAAiB,EAAE;wBAChC,OAAO,EAAE;4BACP,MAAM,EAAE,IAAI;yBACb;qBACF;iBACF,CAAC;aACH,CAAC;YACF,wBAAU;YACV,wBAAU;YACV,6BAAgB;SACjB;QACD,SAAS,EAAE;YACT,wBAAU;YACV,8BAAa;YACb,4BAAY;YACZ,2CAAoB;YACpB,6CAAqB;SACtB;QACD,OAAO,EAAE;YACP,wBAAU;YACV,4BAAY;YACZ,6CAAqB;YACrB,2CAAoB;SACrB;QACD,WAAW,EAAE,CAAC,8BAAa,EAAE,iDAAuB,CAAC;KACtD,CAAC;GACW,kBAAkB,CAAG"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { EntityManager } from 'typeorm';
|
|
2
|
-
import { MediaDataService } from 'src/module/meta/service/media-data.service';
|
|
3
2
|
import * as admin from 'firebase-admin';
|
|
4
3
|
import { ConfigService } from '@nestjs/config';
|
|
5
4
|
import { ReflectionHelper } from 'src/utils/service/reflection-helper.service';
|
|
6
5
|
export declare class NotificationsService {
|
|
7
6
|
private readonly entityManager;
|
|
8
|
-
private readonly mediaDataService;
|
|
9
7
|
private readonly configService;
|
|
10
8
|
private readonly reflectionHelper;
|
|
11
9
|
private readonly firebaseAdmin;
|
|
12
|
-
constructor(entityManager: EntityManager,
|
|
10
|
+
constructor(entityManager: EntityManager, configService: ConfigService, reflectionHelper: ReflectionHelper, firebaseAdmin: typeof admin);
|
|
13
11
|
private tokens;
|
|
14
12
|
saveToken(userId: string | undefined, token: string): Promise<{
|
|
15
13
|
success: boolean;
|
|
@@ -15,14 +15,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.NotificationsService = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const typeorm_1 = require("typeorm");
|
|
18
|
-
const media_data_service_1 = require("../../meta/service/media-data.service");
|
|
19
18
|
const axios_1 = require("axios");
|
|
20
19
|
const config_1 = require("@nestjs/config");
|
|
21
20
|
const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
|
|
22
21
|
let NotificationsService = class NotificationsService {
|
|
23
|
-
constructor(entityManager,
|
|
22
|
+
constructor(entityManager, configService, reflectionHelper, firebaseAdmin) {
|
|
24
23
|
this.entityManager = entityManager;
|
|
25
|
-
this.mediaDataService = mediaDataService;
|
|
26
24
|
this.configService = configService;
|
|
27
25
|
this.reflectionHelper = reflectionHelper;
|
|
28
26
|
this.firebaseAdmin = firebaseAdmin;
|
|
@@ -121,9 +119,8 @@ let NotificationsService = class NotificationsService {
|
|
|
121
119
|
exports.NotificationsService = NotificationsService;
|
|
122
120
|
exports.NotificationsService = NotificationsService = __decorate([
|
|
123
121
|
(0, common_1.Injectable)(),
|
|
124
|
-
__param(
|
|
122
|
+
__param(3, (0, common_1.Inject)('FIREBASE_ADMIN')),
|
|
125
123
|
__metadata("design:paramtypes", [typeorm_1.EntityManager,
|
|
126
|
-
media_data_service_1.MediaDataService,
|
|
127
124
|
config_1.ConfigService,
|
|
128
125
|
reflection_helper_service_1.ReflectionHelper, Object])
|
|
129
126
|
], NotificationsService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/notification.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,qCAAoD;
|
|
1
|
+
{"version":3,"file":"notification.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/notification.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,qCAAoD;AAGpD,iCAA0B;AAC1B,2CAA+C;AAC/C,gGAA+E;AAGxE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACmB,aAA4B,EAC5B,aAA4B,EAC5B,gBAAkC,EACzB,aAA4C;QAHrD,kBAAa,GAAb,aAAa,CAAe;QAC5B,kBAAa,GAAb,aAAa,CAAe;QAC5B,qBAAgB,GAAhB,gBAAgB,CAAkB;QACR,kBAAa,GAAb,aAAa,CAAc;QAGhE,WAAM,GAAwB,IAAI,GAAG,EAAE,CAAC;IAF7C,CAAC;IAIJ,KAAK,CAAC,SAAS,CAAC,MAA0B,EAAE,KAAa;QACvD,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACjC,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,KAAa,EACb,KAAa,EACb,IAAY,EACZ,IAA0B;QAG1B,MAAM,eAAe,GAAG,CACtB,OAA4B,EACJ,EAAE,CAC1B,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;YACrC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS;gBAAE,OAAO,CAAC,CAAC,EAAE,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"file":"otp.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/otp.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"otp.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/otp.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqC;AACrC,2CAA4C;AAC5C,2CAA+C;AAC/C,0FAAkF;AAClF,qDAA2C;AAC3C,iEAA6D;AAC7D,sEAAkE;AAClE,mDAA+C;AAGxC,IAAM,UAAU,GAAhB,MAAM,UAAU;IACrB,YACmB,aAA4B,EAC5B,KAAwB,EACjC,aAA4B,EACnB,YAA0B,EAC1B,YAA0B,EAC1B,UAAsB;QALtB,kBAAa,GAAb,aAAa,CAAe;QAC5B,UAAK,GAAL,KAAK,CAAmB;QACjC,kBAAa,GAAb,aAAa,CAAe;QACnB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,eAAU,GAAV,UAAU,CAAY;QAIzC,eAAU,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,MAAM,CAAC;QAC5D,gBAAW,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,QAAQ,CAAC;IAHhE,CAAC;IAKD,KAAK,CAAC,QAAQ,CACZ,UAAkB,EAClB,OAAe,EACf,YAAoB,CAAC,EACrB,YAAoB,CAAC;QAErB,MAAM,GAAG,GAAG,IAAI,gBAAG,EAAE,CAAC;QACtB,GAAG,CAAC,YAAY,GAAG,IAAI,IAAI,EAAE,CAAC;QAC9B,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QACtC,GAAG,CAAC,UAAU,GAAG,UAAU,CAAC;QAC5B,GAAG,CAAC,GAAG;YACL,MAAM,KAAK,IAAI,CAAC,UAAU;gBACxB,CAAC,CAAC,IAAI,CAAC,WA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UAAU;IADtB,IAAA,mBAAU,GAAE;qCAGuB,8BAAa;QACrB,0CAAiB;QAClB,sBAAa;QACL,4BAAY;QACZ,4BAAY;QACd,oBAAU;GAP9B,UAAU,CA2HtB"}
|
|
@@ -2,13 +2,11 @@ import { LoginService } from '../service/login.service';
|
|
|
2
2
|
import { Request, Response } from 'express';
|
|
3
3
|
import { UserSessionService } from '../service/user-session.service';
|
|
4
4
|
import { ConfigService } from '@nestjs/config';
|
|
5
|
-
import { IntegrationService } from '../../integration/service/integration.service';
|
|
6
5
|
export declare class LoginController {
|
|
7
6
|
private loginService;
|
|
8
7
|
private userSessionService;
|
|
9
8
|
private configService;
|
|
10
|
-
|
|
11
|
-
constructor(loginService: LoginService, userSessionService: UserSessionService, configService: ConfigService, integrationService: IntegrationService);
|
|
9
|
+
constructor(loginService: LoginService, userSessionService: UserSessionService, configService: ConfigService);
|
|
12
10
|
login(body: any, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
13
11
|
formLogin(body: any, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
14
12
|
logout(request: Request & {
|
|
@@ -19,13 +19,11 @@ const google_auth_guard_1 = require("../../../module/auth/guards/google-auth.gua
|
|
|
19
19
|
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
20
20
|
const user_session_service_1 = require("../service/user-session.service");
|
|
21
21
|
const config_1 = require("@nestjs/config");
|
|
22
|
-
const integration_service_1 = require("../../integration/service/integration.service");
|
|
23
22
|
let LoginController = class LoginController {
|
|
24
|
-
constructor(loginService, userSessionService, configService
|
|
23
|
+
constructor(loginService, userSessionService, configService) {
|
|
25
24
|
this.loginService = loginService;
|
|
26
25
|
this.userSessionService = userSessionService;
|
|
27
26
|
this.configService = configService;
|
|
28
|
-
this.integrationService = integrationService;
|
|
29
27
|
}
|
|
30
28
|
async login(body, res) {
|
|
31
29
|
const { email_id, password, subdomain } = body;
|
|
@@ -57,7 +55,6 @@ let LoginController = class LoginController {
|
|
|
57
55
|
state.startsWith('gmail_config:')) {
|
|
58
56
|
try {
|
|
59
57
|
const actualState = state.replace('gmail_config:', '');
|
|
60
|
-
const result = await this.integrationService.handleGmailTokensCallback(email, googleAccessToken, googleRefreshToken, actualState);
|
|
61
58
|
return res.send(`<html><body><script>
|
|
62
59
|
window.opener.postMessage({ type: 'CONFIG_SUCCESS' }, '*');
|
|
63
60
|
window.close();
|
|
@@ -171,7 +168,6 @@ exports.LoginController = LoginController = __decorate([
|
|
|
171
168
|
(0, common_1.Controller)('auth'),
|
|
172
169
|
__metadata("design:paramtypes", [login_service_1.LoginService,
|
|
173
170
|
user_session_service_1.UserSessionService,
|
|
174
|
-
config_1.ConfigService
|
|
175
|
-
integration_service_1.IntegrationService])
|
|
171
|
+
config_1.ConfigService])
|
|
176
172
|
], LoginController);
|
|
177
173
|
//# sourceMappingURL=login.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.controller.js","sourceRoot":"","sources":["../../../../src/module/user/controller/login.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,4DAAwD;AACxD,qFAAgF;AAChF,2DAA2D;AAE3D,0EAAqE;AACrE,2CAA+C;
|
|
1
|
+
{"version":3,"file":"login.controller.js","sourceRoot":"","sources":["../../../../src/module/user/controller/login.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,4DAAwD;AACxD,qFAAgF;AAChF,2DAA2D;AAE3D,0EAAqE;AACrE,2CAA+C;AAIxC,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YACU,YAA0B,EAC1B,kBAAsC,EACtC,aAA4B;QAF5B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,kBAAa,GAAb,aAAa,CAAe;IACnC,CAAC;IAGE,AAAN,KAAK,CAAC,KAAK,CAAS,IAAI,EAAS,GAAa;QAC5C,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,S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;IAAQ,WAAA,IAAA,YAAG,GAAE,CAAA;;;;gDAGnC;AAIK;IAFL,IAAA,kBAAS,EAAC,wBAAY,CAAC;IACvB,IAAA,aAAI,EAAC,QAAQ,CAAC;IAEZ,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;;;;6CAMP;AAIK;IAFL,IAAA,YAAG,EAAC,QAAQ,CAAC;IACb,IAAA,kBAAS,EAAC,mCAAe,CAAC;;;;kDAG1B;AAIK;IAFL,IAAA,YAAG,EAAC,iBAAiB,CAAC;IACtB,IAAA,kBAAS,EAAC,mCAAe,CAAC;IACD,WAAA,IAAA,YAAG,GAAE,CAAA;IAAY,WAAA,IAAA,YAAG,GAAE,CAAA;;;;yDAgF/C;AAIK;IAFL,IAAA,kBAAS,EAAC,wBAAY,CAAC;IACvB,IAAA,aAAI,EAAC,QAAQ,CAAC;IAEZ,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;yDA0CR;0BA/KU,eAAe;IAD3B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCAGO,4BAAY;QACN,yCAAkB;QACvB,sBAAa;GAJ3B,eAAe,CAgL3B"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { UserService } from '../service/user.service';
|
|
2
|
-
import { CreateUserDto } from '../dto/create-user.dto';
|
|
3
2
|
import { Response } from 'express';
|
|
4
3
|
export declare class UserController {
|
|
5
4
|
private readonly userService;
|
|
6
5
|
constructor(userService: UserService);
|
|
7
|
-
signup(createUserDto: CreateUserDto, res: Response): Promise<void>;
|
|
8
6
|
checkEmail(body: any, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
9
7
|
}
|
|
@@ -15,15 +15,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.UserController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const user_service_1 = require("../service/user.service");
|
|
18
|
-
const create_user_dto_1 = require("../dto/create-user.dto");
|
|
19
18
|
let UserController = class UserController {
|
|
20
19
|
constructor(userService) {
|
|
21
20
|
this.userService = userService;
|
|
22
21
|
}
|
|
23
|
-
async signup(createUserDto, res) {
|
|
24
|
-
const result = await this.userService.createEntity(createUserDto, null);
|
|
25
|
-
res.status(common_1.HttpStatus.OK).json(result);
|
|
26
|
-
}
|
|
27
22
|
async checkEmail(body, res) {
|
|
28
23
|
const { email_id, subdomain } = body;
|
|
29
24
|
const result = await this.userService.checkEmailExists({
|
|
@@ -34,14 +29,6 @@ let UserController = class UserController {
|
|
|
34
29
|
}
|
|
35
30
|
};
|
|
36
31
|
exports.UserController = UserController;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, common_1.Post)('user/signup'),
|
|
39
|
-
__param(0, (0, common_1.Body)(new common_1.ValidationPipe())),
|
|
40
|
-
__param(1, (0, common_1.Res)()),
|
|
41
|
-
__metadata("design:type", Function),
|
|
42
|
-
__metadata("design:paramtypes", [create_user_dto_1.CreateUserDto, Object]),
|
|
43
|
-
__metadata("design:returntype", Promise)
|
|
44
|
-
], UserController.prototype, "signup", null);
|
|
45
32
|
__decorate([
|
|
46
33
|
(0, common_1.Post)('check-email'),
|
|
47
34
|
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../../../src/module/user/controller/user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,0DAAsD;
|
|
1
|
+
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../../../src/module/user/controller/user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,0DAAsD;AAK/C,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAC0C,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAC/D,CAAC;IAIE,AAAN,KAAK,CAAC,UAAU,CAAS,IAAI,EAAS,GAAa;QACjD,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC;YACrD,QAAQ;YACR,SAAS;SACV,CAAC,CAAC;QACH,OAAO,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;CACF,CAAA;AAfY,wCAAc;AAOnB;IAFL,IAAA,aAAI,EAAC,aAAa,CAAC;IACnB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACN,WAAA,IAAA,aAAI,GAAE,CAAA;IAAQ,WAAA,IAAA,YAAG,GAAE,CAAA;;;;gDAOpC;yBAdU,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;qCAA+B,0BAAW;GAFvD,cAAc,CAe1B"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare class CreateUserDto {
|
|
2
|
+
status: string;
|
|
3
|
+
code: string;
|
|
4
|
+
enterprise_id: number | undefined;
|
|
5
|
+
level_id: string;
|
|
6
|
+
level_type: string;
|
|
4
7
|
first_name: string;
|
|
5
8
|
last_name: string;
|
|
6
9
|
email_id: string;
|
|
@@ -11,16 +11,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateUserDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const base_entity_entity_1 = require("../../meta/entity/base-entity.entity");
|
|
15
|
-
const global_constant_1 = require("../../../constant/global.constant");
|
|
16
14
|
const class_transformer_1 = require("class-transformer");
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
super();
|
|
20
|
-
this.entity_type = global_constant_1.ENTITYTYPE_USER;
|
|
21
|
-
}
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
class CreateUserDto {
|
|
22
17
|
}
|
|
23
18
|
exports.CreateUserDto = CreateUserDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ name: 'enterprise_id', type: 'int', nullable: true }),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Object)
|
|
23
|
+
], CreateUserDto.prototype, "enterprise_id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ name: 'level_id', type: 'varchar', length: 100, nullable: true }),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateUserDto.prototype, "level_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ name: 'level_type', type: 'varchar', length: 100, nullable: true }),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateUserDto.prototype, "level_type", void 0);
|
|
24
34
|
__decorate([
|
|
25
35
|
(0, class_validator_1.IsString)(),
|
|
26
36
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -57,8 +67,4 @@ __decorate([
|
|
|
57
67
|
(0, class_transformer_1.Expose)(),
|
|
58
68
|
__metadata("design:type", String)
|
|
59
69
|
], CreateUserDto.prototype, "mobile", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_transformer_1.Expose)(),
|
|
62
|
-
__metadata("design:type", Array)
|
|
63
|
-
], CreateUserDto.prototype, "roles", void 0);
|
|
64
70
|
//# sourceMappingURL=create-user.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../src/module/user/dto/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;
|
|
1
|
+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