rez_core 6.5.61 → 6.5.63
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 +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 -17
- package/dist/module/enterprise/entity/organization.entity.js +11 -73
- 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 +6 -4
- package/dist/module/enterprise/service/enterprise.service.js.map +1 -1
- package/dist/module/enterprise/service/organization.service.d.ts +6 -6
- package/dist/module/enterprise/service/organization.service.js +109 -27
- 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.d.ts +14 -1
- package/dist/module/listmaster/service/list-master.service.js +217 -44
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/meta/controller/attribute-master.controller.d.ts +0 -3
- package/dist/module/meta/controller/attribute-master.controller.js +0 -12
- package/dist/module/meta/controller/attribute-master.controller.js.map +1 -1
- package/dist/module/meta/controller/entity-dynamic.controller.js +6 -3
- package/dist/module/meta/controller/entity-dynamic.controller.js.map +1 -1
- package/dist/module/meta/controller/entity.controller.js +1 -1
- package/dist/module/meta/controller/entity.controller.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/attribute-master.entity.d.ts +4 -0
- package/dist/module/meta/entity/attribute-master.entity.js +16 -0
- package/dist/module/meta/entity/attribute-master.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-master.entity.d.ts +0 -1
- package/dist/module/meta/entity/entity-master.entity.js +1 -8
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/entity.module.js +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-dynamic.service.d.ts +9 -12
- package/dist/module/meta/service/entity-dynamic.service.js +20 -22
- package/dist/module/meta/service/entity-dynamic.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 +2 -2
- package/dist/module/meta/service/entity-service-impl.service.js +11 -15
- 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 +100 -50
- 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 +3 -4
- package/dist/module/notification/notification.module.js.map +1 -1
- package/dist/module/notification/service/email.service.d.ts +1 -0
- package/dist/module/notification/service/email.service.js +14 -0
- package/dist/module/notification/service/email.service.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.d.ts +2 -2
- package/dist/module/notification/service/otp.service.js +4 -5
- package/dist/module/notification/service/otp.service.js.map +1 -1
- package/dist/module/preference_master/entity/preference.entity.d.ts +9 -0
- package/dist/module/preference_master/entity/preference.entity.js +48 -0
- package/dist/module/preference_master/entity/preference.entity.js.map +1 -0
- package/dist/module/preference_master/preference.service.d.ts +8 -0
- package/dist/module/preference_master/preference.service.js +31 -0
- package/dist/module/preference_master/preference.service.js.map +1 -0
- package/dist/module/preference_master/repo/preference.repository.d.ts +8 -0
- package/dist/module/preference_master/repo/preference.repository.js +48 -0
- package/dist/module/preference_master/repo/preference.repository.js.map +1 -0
- 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 +1 -4
- 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/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 +11 -58
- 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 +12 -4
- package/src/module/enterprise/service/organization.service.ts +151 -28
- 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 +437 -75
- package/src/module/meta/controller/attribute-master.controller.ts +0 -12
- package/src/module/meta/controller/entity-dynamic.controller.ts +6 -8
- package/src/module/meta/controller/entity.controller.ts +0 -1
- package/src/module/meta/controller/meta.controller.ts +3 -25
- package/src/module/meta/entity/attribute-master.entity.ts +13 -0
- 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-dynamic.service.ts +23 -26
- 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 -15
- 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 +110 -62
- package/src/module/module/service/menu.service.ts +7 -9
- package/src/module/module/service/module-access.service.ts +22 -34
- package/src/module/notification/entity/notification.entity.ts +53 -3
- package/src/module/notification/notification.module.ts +6 -5
- package/src/module/notification/service/email.service.ts +16 -1
- package/src/module/notification/service/notification.service.ts +0 -1
- package/src/module/notification/service/otp.service.ts +16 -5
- package/src/module/preference_master/entity/preference.entity.ts +25 -0
- package/src/module/preference_master/preference.service.ts +27 -0
- package/src/module/preference_master/repo/preference.repository.ts +36 -0
- 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 -4
- 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
|
@@ -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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AGzB;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,15 +24,15 @@ 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");
|
|
28
|
+
const preference_entity_1 = require("../preference_master/entity/preference.entity");
|
|
29
29
|
let NotificationModule = class NotificationModule {
|
|
30
30
|
};
|
|
31
31
|
exports.NotificationModule = NotificationModule;
|
|
32
32
|
exports.NotificationModule = NotificationModule = __decorate([
|
|
33
33
|
(0, common_1.Module)({
|
|
34
34
|
imports: [
|
|
35
|
-
typeorm_1.TypeOrmModule.forFeature([otp_entity_1.Otp, notification_entity_1.NotificationData]),
|
|
35
|
+
typeorm_1.TypeOrmModule.forFeature([otp_entity_1.Otp, notification_entity_1.NotificationData, preference_entity_1.PreferenceData]),
|
|
36
36
|
mailer_1.MailerModule.forRootAsync({
|
|
37
37
|
imports: [config_1.ConfigModule],
|
|
38
38
|
inject: [config_1.ConfigService],
|
|
@@ -61,14 +61,13 @@ exports.NotificationModule = NotificationModule = __decorate([
|
|
|
61
61
|
auth_module_1.AuthModule,
|
|
62
62
|
user_module_1.UserModule,
|
|
63
63
|
ics_module_1.IcsMeetingModule,
|
|
64
|
-
entity_module_1.EntityModule,
|
|
65
64
|
],
|
|
66
65
|
providers: [
|
|
67
66
|
otp_service_1.OtpService,
|
|
68
67
|
otp_repository_1.OtpRepository,
|
|
69
68
|
email_service_1.EmailService,
|
|
70
69
|
notification_service_1.NotificationsService,
|
|
71
|
-
firebase_admin_config_1.FirebaseAdminProvider
|
|
70
|
+
firebase_admin_config_1.FirebaseAdminProvider
|
|
72
71
|
],
|
|
73
72
|
exports: [
|
|
74
73
|
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;AAGhE,qFAA+E;AAiDxE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAI,CAAA;AAAtB,gDAAkB;6BAAlB,kBAAkB;IA/C9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,gBAAG,EAAE,sCAAgB,EAAE,kCAAc,CAAC,CAAC;YACjE,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,CAAI"}
|
|
@@ -99,6 +99,20 @@ let EmailService = class EmailService {
|
|
|
99
99
|
await this.mailerService.sendMail(mailOptions);
|
|
100
100
|
return { success: true, message: 'Email sent successfully' };
|
|
101
101
|
}
|
|
102
|
+
async sendEmailWithoutTemplate(to, subject, body) {
|
|
103
|
+
try {
|
|
104
|
+
await this.mailerService.sendMail({
|
|
105
|
+
to,
|
|
106
|
+
subject,
|
|
107
|
+
html: body,
|
|
108
|
+
});
|
|
109
|
+
console.log(`Email sent successfully to ${to} via NodeMailer.`);
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
console.error(`Failed to send email to ${to} via NodeMailer:`, error);
|
|
113
|
+
throw error;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
102
116
|
};
|
|
103
117
|
exports.EmailService = EmailService;
|
|
104
118
|
exports.EmailService = EmailService = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/email.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mDAAuD;AACvD,yCAAyC;AACzC,qCAAqC;AACrC,+DAAuE;AAGhE,IAAM,YAAY,GAAlB,MAAM,YAAY;IACvB,YACmB,aAA4B,EAC5B,UAAsB,EACtB,UAA6B;QAF7B,kBAAa,GAAb,aAAa,CAAe;QAC5B,eAAU,GAAV,UAAU,CAAY;QACtB,eAAU,GAAV,UAAU,CAAmB;
|
|
1
|
+
{"version":3,"file":"email.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/email.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mDAAuD;AACvD,yCAAyC;AACzC,qCAAqC;AACrC,+DAAuE;AAGhE,IAAM,YAAY,GAAlB,MAAM,YAAY;IACvB,YACmB,aAA4B,EAC5B,UAAsB,EACtB,UAA6B;QAF7B,kBAAa,GAAb,aAAa,CAAe;QAC5B,eAAU,GAAV,UAAU,CAAY;QACtB,eAAU,GAAV,UAAU,CAAmB;IAC5C,CAAC;IAEL,KAAK,CAAC,SAAS,CACb,KAAa,EACb,OAAe,EACf,OAAa,EACb,UAAgB;QAEhB,MAAM,QAAQ,GAAG,MAAM,IAAI,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G,CAAC,EAAE,CAAC;YAC1B,WAAW,CAAC,GAAG,GAAG,GAAG,CAAC;QACxB,CAAC;QAGD,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAE/C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,EAAU,EAAE,OAAe,EAAE,IAAY;QACtE,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;gBAChC,EAAE;gBACF,OAAO;gBACP,IAAI,EAAE,IAAI;aACX,CAAC,CAAC;YACH,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAAC;QAClE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;YACtE,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;CAEF,CAAA;AAtIY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;qCAGuB,sBAAa;QAChB,oBAAU;QACV,+BAAiB;GAJrC,YAAY,CAsIxB"}
|
|
@@ -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,EAAE,CAAC,CAAC;YAClD,IAAI,OAAO,CAAC,KAAK,QAAQ;gBAAE,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;YACzD,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,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gBAEF,YAAY,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC5C,YAAY,CAAC,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC;YAC1D,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,qCAAqC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YACtE,CAAC;QACH,CAAC;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,YAAiB;QACnC,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,YAAY,CAAC;QAElD,MAAM,gBAAgB,GACpB,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC;QAE3D,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,MAAM,CAC1C;YACE,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,UAAU;YACtB,OAAO,EAAE,CAAC;SACX,EACD;YACE,OAAO,EAAE,CAAC;SACX,CACF,CAAC;QAEF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,QAAQ,IAAI,CAAC,EAAE,CAAC;IAC/D,CAAC;CACF,CAAA;AAzJY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,gBAAgB,CAAC,CAAA;qCAHO,uBAAa;QACb,sBAAa;QACV,4CAAgB;GAJ1C,oBAAoB,CAyJhC"}
|
|
@@ -10,9 +10,9 @@ export declare class OtpService {
|
|
|
10
10
|
private readonly idGen;
|
|
11
11
|
private configService;
|
|
12
12
|
private readonly loginService;
|
|
13
|
-
private readonly emailService;
|
|
14
13
|
private readonly dataSource;
|
|
15
|
-
|
|
14
|
+
private readonly emailService;
|
|
15
|
+
constructor(otpRepository: OtpRepository, idGen: ClockIDGenService, configService: ConfigService, loginService: LoginService, dataSource: DataSource, emailService: EmailService);
|
|
16
16
|
VERIFY_OTP: any;
|
|
17
17
|
DEFAULT_OTP: any;
|
|
18
18
|
generate(identifier: string, service: string, expiresIn?: number, otpLength?: number): Promise<Otp>;
|
|
@@ -19,13 +19,13 @@ const otp_repository_1 = require("../repository/otp.repository");
|
|
|
19
19
|
const login_service_1 = require("./../../user/service/login.service");
|
|
20
20
|
const email_service_1 = require("./email.service");
|
|
21
21
|
let OtpService = class OtpService {
|
|
22
|
-
constructor(otpRepository, idGen, configService, loginService,
|
|
22
|
+
constructor(otpRepository, idGen, configService, loginService, dataSource, emailService) {
|
|
23
23
|
this.otpRepository = otpRepository;
|
|
24
24
|
this.idGen = idGen;
|
|
25
25
|
this.configService = configService;
|
|
26
26
|
this.loginService = loginService;
|
|
27
|
-
this.emailService = emailService;
|
|
28
27
|
this.dataSource = dataSource;
|
|
28
|
+
this.emailService = emailService;
|
|
29
29
|
this.VERIFY_OTP = this.configService.get('VERIFY_OTP') || 'true';
|
|
30
30
|
this.DEFAULT_OTP = this.configService.get('DEFAULT_OTP') || '123456';
|
|
31
31
|
}
|
|
@@ -48,7 +48,6 @@ let OtpService = class OtpService {
|
|
|
48
48
|
name: userData?.name || '',
|
|
49
49
|
otp: otp.otp,
|
|
50
50
|
};
|
|
51
|
-
await this.emailService.sendEmail(identifier, 'OTP Verification', data);
|
|
52
51
|
return await this.otpRepository.save(otp);
|
|
53
52
|
}
|
|
54
53
|
async verifyOtp(data) {
|
|
@@ -106,7 +105,7 @@ exports.OtpService = OtpService = __decorate([
|
|
|
106
105
|
clockIDGenUtil_service_1.ClockIDGenService,
|
|
107
106
|
config_1.ConfigService,
|
|
108
107
|
login_service_1.LoginService,
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
typeorm_1.DataSource,
|
|
109
|
+
email_service_1.EmailService])
|
|
111
110
|
], OtpService);
|
|
112
111
|
//# sourceMappingURL=otp.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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;AAIxC,IAAM,UAAU,GAAhB,MAAM,UAAU;IACrB,YACmB,aAA4B,EAC5B,KAAwB,EACjC,aAA4B,EACnB,YAA0B,EAC1B,UAAsB,EAEtB,YAA0B;QAN1B,kBAAa,GAAb,aAAa,CAAe;QAC5B,UAAK,GAAL,KAAK,CAAmB;QACjC,kBAAa,GAAb,aAAa,CAAe;QACnB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,eAAU,GAAV,UAAU,CAAY;QAEtB,iBAAY,GAAZ,YAAY,CAAc;QAI7C,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;gBAC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ACF,CAAA;AApIY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;qCAGuB,8BAAa;QACrB,0CAAiB;QAClB,sBAAa;QACL,4BAAY;QACd,oBAAU;QAER,4BAAY;GARlC,UAAU,CAoItB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PreferenceData = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PreferenceData = class PreferenceData {
|
|
15
|
+
};
|
|
16
|
+
exports.PreferenceData = PreferenceData;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], PreferenceData.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ name: 'enterprise_id', type: 'int' }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], PreferenceData.prototype, "enterpriseId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'preference_type', type: 'varchar', length: 15 }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], PreferenceData.prototype, "preferenceType", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PreferenceData.prototype, "key", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PreferenceData.prototype, "value", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_date', type: 'timestamp' }),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], PreferenceData.prototype, "createdDate", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], PreferenceData.prototype, "status", void 0);
|
|
45
|
+
exports.PreferenceData = PreferenceData = __decorate([
|
|
46
|
+
(0, typeorm_1.Entity)('sso_preference_master')
|
|
47
|
+
], PreferenceData);
|
|
48
|
+
//# sourceMappingURL=preference.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference.entity.js","sourceRoot":"","sources":["../../../../src/module/preference_master/entity/preference.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmF;AAG5E,IAAM,cAAc,GAApB,MAAM,cAAc;CAqB1B,CAAA;AArBY,wCAAc;AAEvB;IADC,IAAA,gCAAsB,GAAE;;0CACd;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;oDAC1B;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDAC1C;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2CAC7B;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACX;AAGd;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjD,IAAI;mDAAC;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CAC3B;yBApBP,cAAc;IAD1B,IAAA,gBAAM,EAAC,uBAAuB,CAAC;GACnB,cAAc,CAqB1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PreferenceData } from './entity/preference.entity';
|
|
2
|
+
import { PreferenceRepository } from './repo/preference.repository';
|
|
3
|
+
export declare class PreferenceService {
|
|
4
|
+
private readonly preferenceRepository;
|
|
5
|
+
constructor(preferenceRepository: PreferenceRepository);
|
|
6
|
+
fetchPreference(entID: number, key: string, status: boolean): Promise<PreferenceData | null>;
|
|
7
|
+
fetchPreferenceByType(preferenceType: string, status: boolean): Promise<PreferenceData[]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PreferenceService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const preference_repository_1 = require("./repo/preference.repository");
|
|
15
|
+
let PreferenceService = class PreferenceService {
|
|
16
|
+
constructor(preferenceRepository) {
|
|
17
|
+
this.preferenceRepository = preferenceRepository;
|
|
18
|
+
}
|
|
19
|
+
async fetchPreference(entID, key, status) {
|
|
20
|
+
return await this.preferenceRepository.findByEntIdAndKeyAndStatus(entID, key, status);
|
|
21
|
+
}
|
|
22
|
+
async fetchPreferenceByType(preferenceType, status) {
|
|
23
|
+
return await this.preferenceRepository.findByPreferenceType(preferenceType, status);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.PreferenceService = PreferenceService;
|
|
27
|
+
exports.PreferenceService = PreferenceService = __decorate([
|
|
28
|
+
(0, common_1.Injectable)(),
|
|
29
|
+
__metadata("design:paramtypes", [preference_repository_1.PreferenceRepository])
|
|
30
|
+
], PreferenceService);
|
|
31
|
+
//# sourceMappingURL=preference.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference.service.js","sourceRoot":"","sources":["../../../src/module/preference_master/preference.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA4C;AAE5C,wEAAoE;AAG7D,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC1B,YACqB,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAC3D,CAAC;IAEL,KAAK,CAAC,eAAe,CACjB,KAAa,EACb,GAAW,EACX,MAAe;QAEf,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,0BAA0B,CAC7D,KAAK,EACL,GAAG,EACH,MAAM,CACT,CAAC;IACN,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,cAAsB,EAAE,MAAe;QAC/D,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACxF,CAAC;CACJ,CAAA;AApBY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAGkC,4CAAoB;GAFtD,iBAAiB,CAoB7B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Repository } from 'typeorm';
|
|
2
|
+
import { PreferenceData } from '../entity/preference.entity';
|
|
3
|
+
export declare class PreferenceRepository {
|
|
4
|
+
private preferenceRepository;
|
|
5
|
+
constructor(preferenceRepository: Repository<PreferenceData>);
|
|
6
|
+
findByEntIdAndKeyAndStatus(entID: number, key: string, status: boolean): Promise<PreferenceData | null>;
|
|
7
|
+
findByPreferenceType(preferenceType: string, status: boolean): Promise<PreferenceData[]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PreferenceRepository = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
const typeorm_2 = require("@nestjs/typeorm");
|
|
19
|
+
const preference_entity_1 = require("../entity/preference.entity");
|
|
20
|
+
let PreferenceRepository = class PreferenceRepository {
|
|
21
|
+
constructor(preferenceRepository) {
|
|
22
|
+
this.preferenceRepository = preferenceRepository;
|
|
23
|
+
}
|
|
24
|
+
async findByEntIdAndKeyAndStatus(entID, key, status) {
|
|
25
|
+
return this.preferenceRepository.findOne({
|
|
26
|
+
where: {
|
|
27
|
+
enterpriseId: entID,
|
|
28
|
+
key,
|
|
29
|
+
status,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async findByPreferenceType(preferenceType, status) {
|
|
34
|
+
return this.preferenceRepository.find({
|
|
35
|
+
where: {
|
|
36
|
+
preferenceType,
|
|
37
|
+
status,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.PreferenceRepository = PreferenceRepository;
|
|
43
|
+
exports.PreferenceRepository = PreferenceRepository = __decorate([
|
|
44
|
+
(0, common_1.Injectable)(),
|
|
45
|
+
__param(0, (0, typeorm_2.InjectRepository)(preference_entity_1.PreferenceData)),
|
|
46
|
+
__metadata("design:paramtypes", [typeorm_1.Repository])
|
|
47
|
+
], PreferenceRepository);
|
|
48
|
+
//# sourceMappingURL=preference.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference.repository.js","sourceRoot":"","sources":["../../../../src/module/preference_master/repo/preference.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,2CAA4C;AAC5C,qCAAqC;AACrC,6CAAmD;AACnD,mEAA6D;AAGtD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YAEY,oBAAgD;QAAhD,yBAAoB,GAApB,oBAAoB,CAA4B;IACxD,CAAC;IAEL,KAAK,CAAC,0BAA0B,CAC5B,KAAa,EACb,GAAW,EACX,MAAe;QAEf,OAAO,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;YACrC,KAAK,EAAE;gBACH,YAAY,EAAE,KAAK;gBACnB,GAAG;gBACH,MAAM;aACT;SACJ,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,cAAsB,EAAE,MAAe;QAC9D,OAAO,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;YAClC,KAAK,EAAE;gBACH,cAAc;gBACd,MAAM;aACT;SACJ,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA5BY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGJ,WAAA,IAAA,0BAAgB,EAAC,kCAAc,CAAC,CAAA;qCACH,oBAAU;GAHnC,oBAAoB,CA4BhC"}
|
|
@@ -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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
|
|
|
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"}
|