rez_core 6.5.23 → 6.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.module.js +3 -3
- package/dist/app.module.js.map +1 -1
- package/dist/core.module.js +38 -60
- package/dist/core.module.js.map +1 -1
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.d.ts +6 -0
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js +32 -0
- package/dist/migrations/1732612800000-AddEntityJsonGinIndex.js.map +1 -0
- package/dist/module/auth/strategies/jwt.strategy.d.ts +1 -2
- package/dist/module/auth/strategies/jwt.strategy.js +2 -3
- package/dist/module/auth/strategies/jwt.strategy.js.map +1 -1
- package/dist/module/dashboard/dashboard.module.js +1 -1
- package/dist/module/dashboard/dashboard.module.js.map +1 -1
- package/dist/module/dashboard/service/dashboard.service.js +3 -2
- package/dist/module/dashboard/service/dashboard.service.js.map +1 -1
- package/dist/module/enterprise/controller/organization.controller.d.ts +4 -12
- package/dist/module/enterprise/controller/organization.controller.js +8 -64
- package/dist/module/enterprise/controller/organization.controller.js.map +1 -1
- package/dist/module/enterprise/enterprise.module.js +15 -10
- package/dist/module/enterprise/enterprise.module.js.map +1 -1
- package/dist/module/enterprise/entity/enterprise.entity.d.ts +3 -1
- package/dist/module/enterprise/entity/enterprise.entity.js +12 -4
- package/dist/module/enterprise/entity/enterprise.entity.js.map +1 -1
- package/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +1 -6
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +4 -21
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -1
- package/dist/module/enterprise/entity/organization.entity.d.ts +18 -3
- package/dist/module/enterprise/entity/organization.entity.js +74 -8
- package/dist/module/enterprise/entity/organization.entity.js.map +1 -1
- package/dist/module/enterprise/repository/enterprise.repository.d.ts +2 -4
- package/dist/module/enterprise/repository/enterprise.repository.js +4 -19
- package/dist/module/enterprise/repository/enterprise.repository.js.map +1 -1
- package/dist/module/enterprise/service/brand.service.d.ts +3 -0
- package/dist/module/enterprise/service/brand.service.js +17 -0
- package/dist/module/enterprise/service/brand.service.js.map +1 -1
- package/dist/module/enterprise/service/enterprise.service.d.ts +2 -2
- package/dist/module/enterprise/service/enterprise.service.js +4 -4
- package/dist/module/enterprise/service/enterprise.service.js.map +1 -1
- package/dist/module/enterprise/service/organization.service.d.ts +4 -4
- package/dist/module/enterprise/service/organization.service.js +24 -101
- package/dist/module/enterprise/service/organization.service.js.map +1 -1
- package/dist/module/entity_json/controller/entity_json.controller.d.ts +2 -9
- package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
- package/dist/module/entity_json/entity/entityJson.entity.d.ts +2 -1
- package/dist/module/entity_json/entity/entityJson.entity.js +5 -1
- package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -1
- package/dist/module/entity_json/entity_json.module.js +7 -2
- package/dist/module/entity_json/entity_json.module.js.map +1 -1
- package/dist/module/entity_json/service/entity_json.service.d.ts +2 -10
- package/dist/module/entity_json/service/entity_json.service.js +97 -23
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
- package/dist/module/filter/controller/filter.controller.d.ts +12 -0
- package/dist/module/filter/controller/filter.controller.js +1 -1
- package/dist/module/filter/controller/filter.controller.js.map +1 -1
- package/dist/module/filter/filter.module.js +11 -2
- package/dist/module/filter/filter.module.js.map +1 -1
- package/dist/module/filter/service/filter.service.d.ts +38 -2
- package/dist/module/filter/service/filter.service.js +43 -50
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/filter/service/flatjson-filter.service.d.ts +32 -0
- package/dist/module/filter/service/flatjson-filter.service.js +632 -0
- package/dist/module/filter/service/flatjson-filter.service.js.map +1 -0
- package/dist/module/filter/service/saved-filter.service.d.ts +3 -2
- package/dist/module/filter/service/saved-filter.service.js +14 -18
- package/dist/module/filter/service/saved-filter.service.js.map +1 -1
- package/dist/module/integration/service/integration.service.d.ts +1 -0
- package/dist/module/integration/service/integration.service.js +2 -1
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/module/integration/service/wrapper.service.js +1 -0
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/layout/controller/layout.controller.d.ts +3 -1
- package/dist/module/layout/controller/layout.controller.js +7 -3
- package/dist/module/layout/controller/layout.controller.js.map +1 -1
- package/dist/module/layout/entity/header-section.entity.d.ts +2 -0
- package/dist/module/layout/entity/header-section.entity.js +8 -0
- package/dist/module/layout/entity/header-section.entity.js.map +1 -1
- package/dist/module/layout/layout.module.js +2 -1
- package/dist/module/layout/layout.module.js.map +1 -1
- package/dist/module/layout/repository/header-section.repository.d.ts +1 -0
- package/dist/module/layout/repository/header-section.repository.js +5 -0
- package/dist/module/layout/repository/header-section.repository.js.map +1 -1
- package/dist/module/layout/service/header-section.service.d.ts +1 -1
- package/dist/module/layout/service/header-section.service.js +1 -1
- package/dist/module/layout/service/header-section.service.js.map +1 -1
- package/dist/module/linked_attributes/controller/linked_attributes.controller.d.ts +41 -0
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js +90 -0
- package/dist/module/linked_attributes/controller/linked_attributes.controller.js.map +1 -1
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.d.ts +13 -0
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js +64 -0
- package/dist/module/linked_attributes/dto/create-linked-attribute-smart.dto.js.map +1 -0
- package/dist/module/linked_attributes/linked_attributes.module.js +8 -1
- package/dist/module/linked_attributes/linked_attributes.module.js.map +1 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.d.ts +65 -1
- package/dist/module/linked_attributes/service/linked_attributes.service.js +287 -2
- package/dist/module/linked_attributes/service/linked_attributes.service.js.map +1 -1
- package/dist/module/listmaster/service/list-master.service.js +8 -1
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/meta/controller/meta.controller.d.ts +6 -1
- package/dist/module/meta/controller/meta.controller.js +19 -1
- package/dist/module/meta/controller/meta.controller.js.map +1 -1
- package/dist/module/meta/entity/app-master.entity.d.ts +4 -8
- package/dist/module/meta/entity/app-master.entity.js +12 -30
- package/dist/module/meta/entity/app-master.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-master.entity.d.ts +1 -0
- package/dist/module/meta/entity/entity-master.entity.js +8 -1
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/entity.module.js +5 -2
- package/dist/module/meta/entity.module.js.map +1 -1
- package/dist/module/meta/repository/app-master.repository.js +1 -1
- package/dist/module/meta/repository/app-master.repository.js.map +1 -1
- package/dist/module/meta/service/attribute-master.service.d.ts +6 -1
- package/dist/module/meta/service/attribute-master.service.js +22 -2
- package/dist/module/meta/service/attribute-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-master.service.js +1 -0
- package/dist/module/meta/service/entity-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-relation.service.d.ts +4 -3
- package/dist/module/meta/service/entity-relation.service.js +10 -4
- package/dist/module/meta/service/entity-relation.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.d.ts +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +14 -10
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.d.ts +2 -3
- package/dist/module/meta/service/entity-table.service.js +19 -23
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/meta/service/populate-meta.service.d.ts +13 -0
- package/dist/module/{enterprise → meta}/service/populate-meta.service.js +8 -2
- package/dist/module/meta/service/populate-meta.service.js.map +1 -0
- package/dist/module/meta/service/resolver.service.d.ts +1 -1
- package/dist/module/meta/service/resolver.service.js +6 -3
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/module/controller/menu.controller.js +2 -2
- package/dist/module/module/controller/menu.controller.js.map +1 -1
- package/dist/module/module/controller/module-access.controller.d.ts +4 -3
- package/dist/module/module/controller/module-access.controller.js +10 -15
- package/dist/module/module/controller/module-access.controller.js.map +1 -1
- package/dist/module/module/entity/menu.entity.d.ts +2 -6
- package/dist/module/module/entity/menu.entity.js +7 -19
- package/dist/module/module/entity/menu.entity.js.map +1 -1
- package/dist/module/module/entity/module-access.entity.d.ts +0 -15
- package/dist/module/module/entity/module-access.entity.js +0 -50
- package/dist/module/module/entity/module-access.entity.js.map +1 -1
- package/dist/module/module/entity/module-action.entity.d.ts +1 -4
- package/dist/module/module/entity/module-action.entity.js +3 -12
- package/dist/module/module/entity/module-action.entity.js.map +1 -1
- package/dist/module/module/entity/module.entity.d.ts +5 -3
- package/dist/module/module/entity/module.entity.js +18 -8
- package/dist/module/module/entity/module.entity.js.map +1 -1
- package/dist/module/module/module.module.d.ts +1 -1
- package/dist/module/module/module.module.js +7 -5
- package/dist/module/module/module.module.js.map +1 -1
- package/dist/module/module/repository/menu.repository.d.ts +4 -4
- package/dist/module/module/repository/menu.repository.js +27 -17
- package/dist/module/module/repository/menu.repository.js.map +1 -1
- package/dist/module/module/repository/module-access.repository.d.ts +7 -7
- package/dist/module/module/repository/module-access.repository.js +44 -82
- package/dist/module/module/repository/module-access.repository.js.map +1 -1
- package/dist/module/module/service/menu.service.d.ts +5 -3
- package/dist/module/module/service/menu.service.js +12 -9
- package/dist/module/module/service/menu.service.js.map +1 -1
- package/dist/module/module/service/module-access.service.d.ts +11 -8
- package/dist/module/module/service/module-access.service.js +26 -24
- package/dist/module/module/service/module-access.service.js.map +1 -1
- package/dist/module/notification/entity/notification.entity.d.ts +2 -17
- package/dist/module/notification/entity/notification.entity.js +2 -68
- package/dist/module/notification/entity/notification.entity.js.map +1 -1
- package/dist/module/notification/notification.module.js +2 -0
- package/dist/module/notification/notification.module.js.map +1 -1
- package/dist/module/notification/service/notification.service.d.ts +3 -1
- package/dist/module/notification/service/notification.service.js +5 -2
- package/dist/module/notification/service/notification.service.js.map +1 -1
- package/dist/module/notification/service/otp.service.js.map +1 -1
- package/dist/module/user/controller/login.controller.d.ts +3 -1
- package/dist/module/user/controller/login.controller.js +6 -2
- package/dist/module/user/controller/login.controller.js.map +1 -1
- package/dist/module/user/controller/user.controller.d.ts +2 -0
- package/dist/module/user/controller/user.controller.js +13 -0
- package/dist/module/user/controller/user.controller.js.map +1 -1
- package/dist/module/user/dto/create-user.dto.d.ts +3 -6
- package/dist/module/user/dto/create-user.dto.js +11 -17
- package/dist/module/user/dto/create-user.dto.js.map +1 -1
- package/dist/module/user/entity/role.entity.d.ts +6 -19
- package/dist/module/user/entity/role.entity.js +19 -68
- package/dist/module/user/entity/role.entity.js.map +1 -1
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +0 -10
- package/dist/module/user/entity/user-role-mapping.entity.js +1 -33
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
- package/dist/module/user/entity/user-session.entity.js +3 -2
- package/dist/module/user/entity/user-session.entity.js.map +1 -1
- package/dist/module/user/entity/user.entity.d.ts +5 -19
- package/dist/module/user/entity/user.entity.js +15 -69
- package/dist/module/user/entity/user.entity.js.map +1 -1
- package/dist/module/user/repository/role.repository.d.ts +2 -6
- package/dist/module/user/repository/role.repository.js +8 -16
- package/dist/module/user/repository/role.repository.js.map +1 -1
- package/dist/module/user/repository/user-role-mapping.repository.d.ts +0 -1
- package/dist/module/user/repository/user-role-mapping.repository.js +0 -3
- package/dist/module/user/repository/user-role-mapping.repository.js.map +1 -1
- package/dist/module/user/repository/user.repository.d.ts +2 -4
- package/dist/module/user/repository/user.repository.js +7 -19
- package/dist/module/user/repository/user.repository.js.map +1 -1
- package/dist/module/user/repository/userSession.repository.d.ts +0 -1
- package/dist/module/user/repository/userSession.repository.js +0 -3
- package/dist/module/user/repository/userSession.repository.js.map +1 -1
- package/dist/module/user/service/login.service.d.ts +5 -3
- package/dist/module/user/service/login.service.js +42 -43
- package/dist/module/user/service/login.service.js.map +1 -1
- package/dist/module/user/service/role.service.d.ts +11 -24
- package/dist/module/user/service/role.service.js +38 -42
- package/dist/module/user/service/role.service.js.map +1 -1
- package/dist/module/user/service/user-role-mapping.service.d.ts +0 -2
- package/dist/module/user/service/user-role-mapping.service.js +0 -6
- package/dist/module/user/service/user-role-mapping.service.js.map +1 -1
- package/dist/module/user/service/user-session.service.d.ts +1 -2
- package/dist/module/user/service/user-session.service.js +5 -9
- package/dist/module/user/service/user-session.service.js.map +1 -1
- package/dist/module/user/service/user.service.d.ts +20 -29
- package/dist/module/user/service/user.service.js +56 -44
- package/dist/module/user/service/user.service.js.map +1 -1
- package/dist/module/user/user.module.js +7 -1
- package/dist/module/user/user.module.js.map +1 -1
- package/dist/module/workflow/repository/action-data.repository.d.ts +1 -1
- package/dist/module/workflow/repository/action-data.repository.js +8 -6
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
- package/dist/module/workflow/repository/action.repository.d.ts +1 -1
- package/dist/module/workflow/repository/action.repository.js +10 -10
- package/dist/module/workflow/repository/action.repository.js.map +1 -1
- package/dist/module/workflow/repository/form-master.repository.d.ts +1 -1
- package/dist/module/workflow/repository/form-master.repository.js +2 -2
- package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
- package/dist/module/workflow/service/action-data.service.js +2 -1
- package/dist/module/workflow/service/action-data.service.js.map +1 -1
- package/dist/module/workflow/service/action.service.js +2 -2
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/comm-template.service.js +2 -0
- package/dist/module/workflow/service/comm-template.service.js.map +1 -1
- package/dist/module/workflow/service/entity-modification.service.js +1 -0
- package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
- package/dist/module/workflow/service/form-master.service.js +2 -2
- package/dist/module/workflow/service/form-master.service.js.map +1 -1
- package/dist/module/workflow/service/populate-workflow.service.d.ts +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.js +3 -0
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-meta.service.js +7 -2
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
- package/dist/module/workflow/service/workflow.service.js +2 -2
- package/dist/module/workflow/service/workflow.service.js.map +1 -1
- package/dist/module/workflow/workflow.module.js +0 -2
- package/dist/module/workflow/workflow.module.js.map +1 -1
- package/dist/module/workflow-automation/service/workflow-automation.service.js +6 -11
- package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -1
- package/dist/module/workflow-automation/workflow-automation.module.js +1 -3
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js +2 -0
- package/dist/module/workflow-schedule/service/workflow-schedule.service.js.map +1 -1
- package/dist/table.config.d.ts +3 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/app.module.ts +5 -5
- package/src/core.module.ts +44 -55
- package/src/migrations/1732612800000-AddEntityJsonGinIndex.ts +41 -0
- package/src/module/auth/strategies/jwt.strategy.ts +2 -4
- package/src/module/dashboard/dashboard.module.ts +3 -3
- package/src/module/dashboard/service/dashboard.service.ts +3 -2
- package/src/module/enterprise/controller/organization.controller.ts +4 -60
- package/src/module/enterprise/enterprise.module.ts +18 -16
- package/src/module/enterprise/entity/enterprise.entity.ts +11 -5
- package/src/module/enterprise/entity/organization-app-mapping.entity.ts +4 -18
- package/src/module/enterprise/entity/organization.entity.ts +59 -9
- package/src/module/enterprise/repository/enterprise.repository.ts +4 -26
- package/src/module/enterprise/service/brand.service.ts +5 -75
- package/src/module/enterprise/service/enterprise.service.ts +4 -10
- package/src/module/enterprise/service/organization.service.ts +23 -140
- package/src/module/entity_json/controller/entity_json.controller.ts +13 -0
- package/src/module/entity_json/docs/FlatJson_Filterin_System.md +2804 -0
- package/src/module/entity_json/entity/entityJson.entity.ts +4 -1
- package/src/module/entity_json/entity_json.module.ts +9 -5
- package/src/module/entity_json/service/entity_json.service.ts +232 -49
- package/src/module/filter/controller/filter.controller.ts +1 -3
- package/src/module/filter/filter.module.ts +12 -3
- package/src/module/filter/service/filter.service.ts +130 -73
- package/src/module/filter/service/flatjson-filter.service.ts +903 -0
- package/src/module/filter/service/saved-filter.service.ts +16 -26
- package/src/module/filter/test/flatjson-filter.service.spec.ts +415 -0
- package/src/module/integration/service/integration.service.ts +6 -2
- package/src/module/integration/service/wrapper.service.ts +1 -0
- package/src/module/layout/controller/layout.controller.ts +8 -1
- package/src/module/layout/entity/header-section.entity.ts +6 -0
- package/src/module/layout/layout.module.ts +1 -1
- package/src/module/layout/repository/header-section.repository.ts +6 -0
- package/src/module/layout/service/header-section.service.ts +1 -1
- package/src/module/linked_attributes/controller/linked_attributes.controller.ts +100 -0
- package/src/module/linked_attributes/dto/create-linked-attribute-smart.dto.ts +54 -0
- package/src/module/linked_attributes/linked_attributes.module.ts +9 -2
- package/src/module/linked_attributes/service/linked_attributes.service.ts +578 -3
- package/src/module/linked_attributes/test/linked-attributes.service.spec.ts +244 -0
- package/src/module/listmaster/service/list-master.service.ts +9 -1
- package/src/module/meta/controller/meta.controller.ts +25 -3
- package/src/module/meta/entity/app-master.entity.ts +9 -22
- package/src/module/meta/entity/entity-master.entity.ts +9 -3
- package/src/module/meta/entity.module.ts +6 -5
- package/src/module/meta/repository/app-master.repository.ts +1 -1
- package/src/module/meta/service/attribute-master.service.ts +31 -1
- package/src/module/meta/service/entity-master.service.ts +1 -0
- package/src/module/meta/service/entity-relation.service.ts +10 -6
- package/src/module/meta/service/entity-service-impl.service.ts +14 -19
- package/src/module/meta/service/entity-table.service.ts +28 -20
- package/src/module/meta/service/entity.service.ts +0 -1
- package/src/module/{enterprise → meta}/service/populate-meta.service.ts +5 -2
- package/src/module/meta/service/resolver.service.ts +4 -0
- package/src/module/module/controller/menu.controller.ts +2 -2
- package/src/module/module/controller/module-access.controller.ts +11 -16
- package/src/module/module/entity/menu.entity.ts +7 -17
- package/src/module/module/entity/module-access.entity.ts +1 -41
- package/src/module/module/entity/module-action.entity.ts +4 -11
- package/src/module/module/entity/module.entity.ts +14 -7
- package/src/module/module/module.module.ts +3 -2
- package/src/module/module/repository/menu.repository.ts +31 -19
- package/src/module/module/repository/module-access.repository.ts +60 -97
- package/src/module/module/service/menu.service.ts +13 -11
- package/src/module/module/service/module-access.service.ts +38 -26
- package/src/module/notification/entity/notification.entity.ts +3 -53
- package/src/module/notification/notification.module.ts +2 -0
- package/src/module/notification/service/notification.service.ts +1 -0
- package/src/module/notification/service/otp.service.ts +2 -3
- package/src/module/user/controller/login.controller.ts +8 -7
- package/src/module/user/controller/user.controller.ts +9 -0
- package/src/module/user/dto/create-user.dto.ts +6 -19
- package/src/module/user/entity/role.entity.ts +16 -62
- package/src/module/user/entity/user-role-mapping.entity.ts +3 -29
- package/src/module/user/entity/user-session.entity.ts +4 -3
- package/src/module/user/entity/user.entity.ts +13 -54
- package/src/module/user/repository/role.repository.ts +12 -24
- package/src/module/user/repository/user-role-mapping.repository.ts +1 -5
- package/src/module/user/repository/user.repository.ts +8 -28
- package/src/module/user/repository/userSession.repository.ts +1 -5
- package/src/module/user/service/login.service.ts +51 -47
- package/src/module/user/service/role.service.ts +60 -53
- package/src/module/user/service/user-role-mapping.service.ts +1 -23
- package/src/module/user/service/user-session.service.ts +6 -12
- package/src/module/user/service/user.service.ts +91 -64
- package/src/module/user/user.module.ts +5 -3
- package/src/module/workflow/repository/action-data.repository.ts +8 -6
- package/src/module/workflow/repository/action.repository.ts +11 -11
- package/src/module/workflow/repository/form-master.repository.ts +2 -2
- package/src/module/workflow/service/action-data.service.ts +2 -3
- package/src/module/workflow/service/action.service.ts +2 -2
- package/src/module/workflow/service/comm-template.service.ts +2 -0
- package/src/module/workflow/service/entity-modification.service.ts +1 -0
- package/src/module/workflow/service/form-master.service.ts +2 -2
- package/src/module/workflow/service/populate-workflow.service.ts +1 -1
- package/src/module/workflow/service/task.service.ts +3 -0
- package/src/module/workflow/service/workflow-meta.service.ts +7 -2
- package/src/module/workflow/service/workflow.service.ts +2 -2
- package/src/module/workflow/workflow.module.ts +0 -2
- package/src/module/workflow-automation/service/workflow-automation.service.ts +7 -19
- package/src/module/workflow-automation/workflow-automation.module.ts +3 -4
- package/src/module/workflow-schedule/service/workflow-schedule.service.ts +2 -0
- package/src/resources/dev.properties.yaml +2 -2
- package/.claude/settings.local.json +0 -26
- package/.idea/250218_nodejs_core.iml +0 -9
- package/.idea/codeStyles/Project.xml +0 -59
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/copilot.data.migration.agent.xml +0 -6
- package/.idea/copilot.data.migration.ask.xml +0 -6
- package/.idea/copilot.data.migration.ask2agent.xml +0 -6
- package/.idea/copilot.data.migration.edit.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -6
- package/dist/constant/status.constant.d.ts +0 -4
- package/dist/constant/status.constant.js +0 -9
- package/dist/constant/status.constant.js.map +0 -1
- package/dist/module/enterprise/controller/enterprise.controller.d.ts +0 -12
- package/dist/module/enterprise/controller/enterprise.controller.js +0 -57
- package/dist/module/enterprise/controller/enterprise.controller.js.map +0 -1
- package/dist/module/enterprise/controller/meta.controller.d.ts +0 -9
- package/dist/module/enterprise/controller/meta.controller.js +0 -43
- package/dist/module/enterprise/controller/meta.controller.js.map +0 -1
- package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
- package/dist/module/enterprise/service/brand-profile.service.js +0 -1
- package/dist/module/enterprise/service/brand-profile.service.js.map +0 -1
- package/dist/module/enterprise/service/populate-meta.service.d.ts +0 -9
- package/dist/module/enterprise/service/populate-meta.service.js.map +0 -1
- package/dist/module/enterprise/service/school.service.d.ts +0 -0
- package/dist/module/enterprise/service/school.service.js +0 -1
- package/dist/module/enterprise/service/school.service.js.map +0 -1
- package/server.log +0 -850
- package/src/constant/status.constant.ts +0 -4
- package/src/module/enterprise/controller/enterprise.controller.ts +0 -40
- package/src/module/enterprise/controller/meta.controller.ts +0 -23
- package/src/module/enterprise/service/brand-profile.service.ts +0 -10
- package/src/module/enterprise/service/school.service.ts +0 -5
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { ModuleAccessRepository } from '../repository/module-access.repository';
|
|
2
|
-
import {
|
|
2
|
+
import { DataSource } 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';
|
|
5
6
|
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;
|
|
10
12
|
private readonly reflectionHelper;
|
|
11
|
-
|
|
12
|
-
constructor(moduleAccessRepository: ModuleAccessRepository, menuRepository: MenuRepository, reflectionHelper: ReflectionHelper, roleRepo: Repository<Role>);
|
|
13
|
+
constructor(moduleAccessRepository: ModuleAccessRepository, menuRepository: MenuRepository, dataSource: DataSource, listMasterService: ListMasterService, reflectionHelper: ReflectionHelper);
|
|
13
14
|
getModules({ appcode, loggedInUser }: {
|
|
14
15
|
appcode: string;
|
|
15
16
|
loggedInUser: UserData;
|
|
@@ -24,8 +25,8 @@ export declare class ModuleAccessService {
|
|
|
24
25
|
level_id?: number;
|
|
25
26
|
include?: boolean;
|
|
26
27
|
}): Promise<{
|
|
27
|
-
label:
|
|
28
|
-
value:
|
|
28
|
+
label: any;
|
|
29
|
+
value: any;
|
|
29
30
|
}[]>;
|
|
30
31
|
getAccessListing(roleIds: number[], appcode: string, levelType: string, level_id?: number): Promise<any>;
|
|
31
32
|
getMenuListing(mainModIds: string[], appcode: string, levelType: string): Promise<Record<string, any[]>>;
|
|
@@ -43,13 +44,15 @@ export declare class ModuleAccessService {
|
|
|
43
44
|
getModuleUIConfig(moduleCode: string, roleIds: number[]): Promise<{
|
|
44
45
|
entity_type: string;
|
|
45
46
|
title: string;
|
|
47
|
+
ui_config: JSON;
|
|
46
48
|
action: string[];
|
|
47
49
|
}>;
|
|
48
|
-
getUserPermissions({ userId,
|
|
50
|
+
getUserPermissions({ userId, appcode, level_type, level_id, enterprise_id, }: {
|
|
49
51
|
userId: number;
|
|
50
|
-
|
|
52
|
+
appcode: string;
|
|
51
53
|
level_type: string;
|
|
52
54
|
level_id: number;
|
|
55
|
+
enterprise_id: number;
|
|
53
56
|
}): Promise<{
|
|
54
57
|
action: any;
|
|
55
58
|
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");
|
|
18
19
|
const typeorm_1 = require("typeorm");
|
|
19
20
|
const menu_repository_1 = require("../repository/menu.repository");
|
|
21
|
+
const list_master_service_1 = require("../../listmaster/service/list-master.service");
|
|
20
22
|
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");
|
|
24
23
|
let ModuleAccessService = class ModuleAccessService {
|
|
25
|
-
constructor(moduleAccessRepository, menuRepository,
|
|
24
|
+
constructor(moduleAccessRepository, menuRepository, dataSource, listMasterService, reflectionHelper) {
|
|
26
25
|
this.moduleAccessRepository = moduleAccessRepository;
|
|
27
26
|
this.menuRepository = menuRepository;
|
|
27
|
+
this.dataSource = dataSource;
|
|
28
|
+
this.listMasterService = listMasterService;
|
|
28
29
|
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 query = this.dataSource
|
|
38
|
+
.createQueryBuilder()
|
|
39
|
+
.select('*')
|
|
40
|
+
.from('sso_role', 'role')
|
|
41
|
+
.where('role.appcode = :appcode', { appcode });
|
|
42
42
|
if (!include) {
|
|
43
|
-
|
|
43
|
+
query.andWhere('(role.is_factory IS NULL OR role.is_factory != 1)');
|
|
44
44
|
}
|
|
45
45
|
if (level_type && level_id) {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
query.andWhere('role.level_type = :level_type', { level_type });
|
|
47
|
+
query.andWhere('role.level_id = :level_id', {
|
|
48
|
+
level_id: String(level_id),
|
|
49
|
+
});
|
|
48
50
|
}
|
|
49
|
-
const roles = await
|
|
50
|
-
where,
|
|
51
|
-
});
|
|
51
|
+
const roles = await query.getRawMany();
|
|
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('Appcode is required');
|
|
63
63
|
}
|
|
64
64
|
return this.moduleAccessRepository.getAllModulesByLevel(mainModIds, appcode, levelType);
|
|
65
65
|
}
|
|
@@ -78,13 +78,13 @@ let ModuleAccessService = class ModuleAccessService {
|
|
|
78
78
|
async getModuleUIConfig(moduleCode, roleIds) {
|
|
79
79
|
return this.moduleAccessRepository.getModuleUIConfig(moduleCode, roleIds);
|
|
80
80
|
}
|
|
81
|
-
async getUserPermissions({ userId,
|
|
82
|
-
const roleCodes = await this.menuRepository.resolveUserRoles(userId,
|
|
81
|
+
async getUserPermissions({ userId, appcode, level_type, level_id, enterprise_id, }) {
|
|
82
|
+
const roleCodes = await this.menuRepository.resolveUserRoles(userId, appcode, level_type, level_id);
|
|
83
83
|
if (!roleCodes || roleCodes.length === 0) {
|
|
84
84
|
return [];
|
|
85
85
|
}
|
|
86
86
|
const roleIds = roleCodes.map(Number);
|
|
87
|
-
const allPermissions = await this.moduleAccessRepository.getModuleAccessByRoles(roleIds,
|
|
87
|
+
const allPermissions = await this.moduleAccessRepository.getModuleAccessByRoles(roleIds, appcode);
|
|
88
88
|
if (level_type === 'SCH') {
|
|
89
89
|
const schoolRepo = this.reflectionHelper.getRepoService('SSOSchool');
|
|
90
90
|
const school = await schoolRepo.findOne({
|
|
@@ -92,7 +92,8 @@ let ModuleAccessService = class ModuleAccessService {
|
|
|
92
92
|
id: level_id,
|
|
93
93
|
},
|
|
94
94
|
});
|
|
95
|
-
|
|
95
|
+
const resolveStatus = await this.listMasterService.getResolvedListCode(global_constant_1.STATUS_INACTIVE, enterprise_id || 0);
|
|
96
|
+
if (!school || school.status === resolveStatus.id) {
|
|
96
97
|
return allPermissions.filter((perm) => perm.action === 'VIEW');
|
|
97
98
|
}
|
|
98
99
|
}
|
|
@@ -102,10 +103,11 @@ let ModuleAccessService = class ModuleAccessService {
|
|
|
102
103
|
exports.ModuleAccessService = ModuleAccessService;
|
|
103
104
|
exports.ModuleAccessService = ModuleAccessService = __decorate([
|
|
104
105
|
(0, common_1.Injectable)(),
|
|
105
|
-
__param(3, (0,
|
|
106
|
+
__param(3, (0, common_1.Inject)('ListMasterService')),
|
|
106
107
|
__metadata("design:paramtypes", [module_access_repository_1.ModuleAccessRepository,
|
|
107
108
|
menu_repository_1.MenuRepository,
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
typeorm_1.DataSource,
|
|
110
|
+
list_master_service_1.ListMasterService,
|
|
111
|
+
reflection_helper_service_1.ReflectionHelper])
|
|
110
112
|
], ModuleAccessService);
|
|
111
113
|
//# 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,2CAAyE;AACzE,qFAAgF;AAGhF,uEAG2C;AAE3C,qCAAoD;AAEpD,mEAA+D;AAC/D,sFAAsF;AACtF,gGAAoF;AAG7E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,sBAA8C,EAC9C,cAA8B,EAC9B,UAAsB,EAEtB,iBAAoC,EACpC,gBAAkC;QALlC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,eAAU,GAAV,UAAU,CAAY;QAEtB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAErD,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,GAMvB;QACC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU;aAC1B,kBAAkB,EAAE;aACpB,MAAM,CAAC,GAAG,CAAC;aACX,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC;aACxB,KAAK,CAAC,yBAAyB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QAGjD,IAAI,CAAC,OAAO,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C,mBAAmB,CACpE,iCAAe,EACf,aAAa,IAAI,CAAC,CACnB,CAAC;YAEF,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,aAAa,CAAC,EAAE,EAAE,CAAC;gBAElD,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;AA5KY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAHa,iDAAsB;QAC9B,gCAAc;QAClB,oBAAU;QAEH,uCAAiB;QAClB,4CAAgB;GAP1C,mBAAmB,CA4K/B"}
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
1
|
+
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
|
+
export declare class NotificationData extends BaseEntity {
|
|
18
3
|
user_id: number | null;
|
|
19
4
|
event_type: string | null;
|
|
20
5
|
message: string | null;
|
|
@@ -10,77 +10,11 @@ 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");
|
|
13
14
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
let NotificationData = class NotificationData {
|
|
15
|
+
let NotificationData = class NotificationData extends base_entity_entity_1.BaseEntity {
|
|
15
16
|
};
|
|
16
17
|
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);
|
|
84
18
|
__decorate([
|
|
85
19
|
(0, typeorm_1.Column)({ name: 'user_id', type: 'int', nullable: true }),
|
|
86
20
|
__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,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+BAAU;CAqB/C,CAAA;AArBY,4CAAgB;AAE3B;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;2BApBN,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;GACxB,gBAAgB,CAqB5B"}
|
|
@@ -24,6 +24,7 @@ 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");
|
|
27
28
|
const firebase_admin_config_1 = require("./firebase-admin.config");
|
|
28
29
|
let NotificationModule = class NotificationModule {
|
|
29
30
|
};
|
|
@@ -60,6 +61,7 @@ exports.NotificationModule = NotificationModule = __decorate([
|
|
|
60
61
|
auth_module_1.AuthModule,
|
|
61
62
|
user_module_1.UserModule,
|
|
62
63
|
ics_module_1.IcsMeetingModule,
|
|
64
|
+
entity_module_1.EntityModule,
|
|
63
65
|
],
|
|
64
66
|
providers: [
|
|
65
67
|
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,mEAAgE;
|
|
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,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CAAoB;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,13 +1,15 @@
|
|
|
1
1
|
import { EntityManager } from 'typeorm';
|
|
2
|
+
import { MediaDataService } from 'src/module/meta/service/media-data.service';
|
|
2
3
|
import * as admin from 'firebase-admin';
|
|
3
4
|
import { ConfigService } from '@nestjs/config';
|
|
4
5
|
import { ReflectionHelper } from 'src/utils/service/reflection-helper.service';
|
|
5
6
|
export declare class NotificationsService {
|
|
6
7
|
private readonly entityManager;
|
|
8
|
+
private readonly mediaDataService;
|
|
7
9
|
private readonly configService;
|
|
8
10
|
private readonly reflectionHelper;
|
|
9
11
|
private readonly firebaseAdmin;
|
|
10
|
-
constructor(entityManager: EntityManager, configService: ConfigService, reflectionHelper: ReflectionHelper, firebaseAdmin: typeof admin);
|
|
12
|
+
constructor(entityManager: EntityManager, mediaDataService: MediaDataService, configService: ConfigService, reflectionHelper: ReflectionHelper, firebaseAdmin: typeof admin);
|
|
11
13
|
private tokens;
|
|
12
14
|
saveToken(userId: string | undefined, token: string): Promise<{
|
|
13
15
|
success: boolean;
|
|
@@ -15,12 +15,14 @@ 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");
|
|
18
19
|
const axios_1 = require("axios");
|
|
19
20
|
const config_1 = require("@nestjs/config");
|
|
20
21
|
const reflection_helper_service_1 = require("../../../utils/service/reflection-helper.service");
|
|
21
22
|
let NotificationsService = class NotificationsService {
|
|
22
|
-
constructor(entityManager, configService, reflectionHelper, firebaseAdmin) {
|
|
23
|
+
constructor(entityManager, mediaDataService, configService, reflectionHelper, firebaseAdmin) {
|
|
23
24
|
this.entityManager = entityManager;
|
|
25
|
+
this.mediaDataService = mediaDataService;
|
|
24
26
|
this.configService = configService;
|
|
25
27
|
this.reflectionHelper = reflectionHelper;
|
|
26
28
|
this.firebaseAdmin = firebaseAdmin;
|
|
@@ -119,8 +121,9 @@ let NotificationsService = class NotificationsService {
|
|
|
119
121
|
exports.NotificationsService = NotificationsService;
|
|
120
122
|
exports.NotificationsService = NotificationsService = __decorate([
|
|
121
123
|
(0, common_1.Injectable)(),
|
|
122
|
-
__param(
|
|
124
|
+
__param(4, (0, common_1.Inject)('FIREBASE_ADMIN')),
|
|
123
125
|
__metadata("design:paramtypes", [typeorm_1.EntityManager,
|
|
126
|
+
media_data_service_1.MediaDataService,
|
|
124
127
|
config_1.ConfigService,
|
|
125
128
|
reflection_helper_service_1.ReflectionHelper, Object])
|
|
126
129
|
], 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;AACpD,8EAA8E;AAE9E,iCAA0B;AAC1B,2CAA+C;AAC/C,gGAA+E;AAGxE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACmB,aAA4B,EAC5B,gBAAkC,EAClC,aAA4B,EAC5B,gBAAkC,EACzB,aAA4C;QAJrD,kBAAa,GAAb,aAAa,CAAe;QAC5B,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,kBAAa,GAAb,aAAa,CAAe;QAC5B,qBAAgB,GAAhB,gBAAgB,CAAkB;QACR,kBAAa,GAAb,aAAa,CAAc;QAGhE,WAAM,G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AM,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;AA1JY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAOR,WAAA,IAAA,eAAM,EAAC,gBAAgB,CAAC,CAAA;qCAJO,uBAAa;QACV,qCAAgB;QACnB,sBAAa;QACV,4CAAgB;GAL1C,oBAAoB,CA0JhC"}
|
|
@@ -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,2CAAiE;AACjE,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,Y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CAAC,OAAO,EAAE,CAAC;YAE/B,OAAO;gBACL,MAAM,EAAE,KAAK;gBACb,OAAO,EAAE,cAAc;aACxB,CAAC;QACJ,CAAC;QAGD,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;YAC7B,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,IAAI;YACZ,SAAS;SACV,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,KAAa;QAC7B,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;IAEO,WAAW,CAAC,MAAc;QAChC,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC/B,MAAM,GAAG,GAAG,EAAE,IAAI,MAAM,GAAG,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IACtE,CAAC;CACF,CAAA;AA1HY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;qCAGuB,8BAAa;QACrB,0CAAiB;QAClB,sBAAa;QACL,4BAAY;QACZ,4BAAY;QACd,oBAAU;GAP9B,UAAU,CA0HtB"}
|
|
@@ -2,11 +2,13 @@ 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';
|
|
5
6
|
export declare class LoginController {
|
|
6
7
|
private loginService;
|
|
7
8
|
private userSessionService;
|
|
8
9
|
private configService;
|
|
9
|
-
|
|
10
|
+
private integrationService;
|
|
11
|
+
constructor(loginService: LoginService, userSessionService: UserSessionService, configService: ConfigService, integrationService: IntegrationService);
|
|
10
12
|
login(body: any, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
11
13
|
formLogin(body: any, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
12
14
|
logout(request: Request & {
|
|
@@ -19,11 +19,13 @@ 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");
|
|
22
23
|
let LoginController = class LoginController {
|
|
23
|
-
constructor(loginService, userSessionService, configService) {
|
|
24
|
+
constructor(loginService, userSessionService, configService, integrationService) {
|
|
24
25
|
this.loginService = loginService;
|
|
25
26
|
this.userSessionService = userSessionService;
|
|
26
27
|
this.configService = configService;
|
|
28
|
+
this.integrationService = integrationService;
|
|
27
29
|
}
|
|
28
30
|
async login(body, res) {
|
|
29
31
|
const { email_id, password, subdomain } = body;
|
|
@@ -55,6 +57,7 @@ let LoginController = class LoginController {
|
|
|
55
57
|
state.startsWith('gmail_config:')) {
|
|
56
58
|
try {
|
|
57
59
|
const actualState = state.replace('gmail_config:', '');
|
|
60
|
+
const result = await this.integrationService.handleGmailTokensCallback(email, googleAccessToken, googleRefreshToken, actualState);
|
|
58
61
|
return res.send(`<html><body><script>
|
|
59
62
|
window.opener.postMessage({ type: 'CONFIG_SUCCESS' }, '*');
|
|
60
63
|
window.close();
|
|
@@ -168,6 +171,7 @@ exports.LoginController = LoginController = __decorate([
|
|
|
168
171
|
(0, common_1.Controller)('auth'),
|
|
169
172
|
__metadata("design:paramtypes", [login_service_1.LoginService,
|
|
170
173
|
user_session_service_1.UserSessionService,
|
|
171
|
-
config_1.ConfigService
|
|
174
|
+
config_1.ConfigService,
|
|
175
|
+
integration_service_1.IntegrationService])
|
|
172
176
|
], LoginController);
|
|
173
177
|
//# 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;AAC/C,uFAAmF;AAG5E,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YACU,YAA0B,EAC1B,kBAAsC,EACtC,aAA4B,EAC5B,kBAAsC;QAHtC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,kBAAa,GAAb,aAAa,CAAe;QAC5B,uBAAkB,GAAlB,kBAAkB,CAAoB;IAC7C,CAAC;IAGE,AAAN,KAAK,CAAC,KAAK,CAAS,IAAI,EAAS,GAAa;QAC5C,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAE/C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;YAC3C,QAAQ;YACR,QAAQ;YACR,MAAM,EAAE,KAAK;YACb,SAAS;SACV,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CAAS,IAAI,EAAS,GAAa;QAChD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACvD,OAAO,GAAG,CAAC,MAAM,CAAC,mBAAU,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C,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;0BAhLU,eAAe;IAD3B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCAGO,4BAAY;QACN,yCAAkB;QACvB,sBAAa;QACR,wCAAkB;GALrC,eAAe,CAiL3B"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { UserService } from '../service/user.service';
|
|
2
|
+
import { CreateUserDto } from '../dto/create-user.dto';
|
|
2
3
|
import { Response } from 'express';
|
|
3
4
|
export declare class UserController {
|
|
4
5
|
private readonly userService;
|
|
5
6
|
constructor(userService: UserService);
|
|
7
|
+
signup(createUserDto: CreateUserDto, res: Response): Promise<void>;
|
|
6
8
|
checkEmail(body: any, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
7
9
|
}
|
|
@@ -15,10 +15,15 @@ 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");
|
|
18
19
|
let UserController = class UserController {
|
|
19
20
|
constructor(userService) {
|
|
20
21
|
this.userService = userService;
|
|
21
22
|
}
|
|
23
|
+
async signup(createUserDto, res) {
|
|
24
|
+
const result = await this.userService.createEntity(createUserDto, null);
|
|
25
|
+
res.status(common_1.HttpStatus.OK).json(result);
|
|
26
|
+
}
|
|
22
27
|
async checkEmail(body, res) {
|
|
23
28
|
const { email_id, subdomain } = body;
|
|
24
29
|
const result = await this.userService.checkEmailExists({
|
|
@@ -29,6 +34,14 @@ let UserController = class UserController {
|
|
|
29
34
|
}
|
|
30
35
|
};
|
|
31
36
|
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);
|
|
32
45
|
__decorate([
|
|
33
46
|
(0, common_1.Post)('check-email'),
|
|
34
47
|
(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;AACtD,4DAAuD;AAIhD,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAC0C,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAC/D,CAAC;IAGE,AAAN,KAAK,CAAC,MAAM,CACkB,aAA4B,EACjD,GAAa;QAEpB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QACxE,GAAG,CAAC,MAAM,CAAC,mBAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;IAIK,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;AAxBY,wCAAc;AAMnB;IADL,IAAA,aAAI,EAAC,aAAa,CAAC;IAEjB,WAAA,IAAA,aAAI,EAAC,IAAI,uBAAc,EAAE,CAAC,CAAA;IAC1B,WAAA,IAAA,YAAG,GAAE,CAAA;;qCADqC,+BAAa;;4CAKzD;AAIK;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;yBAvBU,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;qCAA+B,0BAAW;GAFvD,cAAc,CAwB1B"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
enterprise_id: number | undefined;
|
|
5
|
-
level_id: string;
|
|
6
|
-
level_type: string;
|
|
1
|
+
import { BaseEntity } from '../../meta/entity/base-entity.entity';
|
|
2
|
+
export declare class CreateUserDto extends BaseEntity {
|
|
3
|
+
constructor();
|
|
7
4
|
first_name: string;
|
|
8
5
|
last_name: string;
|
|
9
6
|
email_id: string;
|
|
@@ -11,26 +11,16 @@ 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");
|
|
14
16
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
class CreateUserDto extends base_entity_entity_1.BaseEntity {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this.entity_type = global_constant_1.ENTITYTYPE_USER;
|
|
21
|
+
}
|
|
17
22
|
}
|
|
18
23
|
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);
|
|
34
24
|
__decorate([
|
|
35
25
|
(0, class_validator_1.IsString)(),
|
|
36
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -67,4 +57,8 @@ __decorate([
|
|
|
67
57
|
(0, class_transformer_1.Expose)(),
|
|
68
58
|
__metadata("design:type", String)
|
|
69
59
|
], CreateUserDto.prototype, "mobile", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], CreateUserDto.prototype, "roles", void 0);
|
|
70
64
|
//# 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
|
+
{"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../src/module/user/dto/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,6EAAkE;AAClE,uEAAoE;AACpE,yDAA2C;AAE3C,MAAa,aAAc,SAAQ,+BAAU;IAC3C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,iCAAe,CAAC;IACrC,CAAC;CAoDF;AAxDD,sCAwDC;AA9CC;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACrE,IAAA,0BAAM,GAAE;;iDACU;AAMnB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IACpE,IAAA,0BAAM,GAAE;;gDACS;AAQlB;IANC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EACN,sEAAsE,EACtE,EAAE,OAAO,EAAE,mBAAmB,EAAE,CACjC;;+CACgB;AAYjB;IAVC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EACN,sEAAsE,EACtE;QACE,OAAO,EACL,gJAAgJ;KACnJ,CACF;IACA,IAAA,0BAAM,GAAE;;+CACQ;AAMjB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,aAAa,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACjE,IAAA,0BAAM,GAAE;;6CACM;AAGf;IADC,IAAA,0BAAM,GAAE;;4CACI"}
|