Objective:
The objective of this module is to create a common point to manage all the events generated for the user in the system. Events include updates from multiple applications like PT, PGR, TL, etc, events created by the employee addressing the citizen, etc. This service provides APIs to create, update, and search such events for the user.
Mdms Configurations - Promote the master configs
https://github.com/egovernments/playground-mdms-data/tree/master/data/pg/mseva
Add role- actions
https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/ACCESSCONTROL-ACTIONS-TEST/actions-test.json
{ "id": 1833, "name": "ULBInformation", "url": "url", "displayName": "ULB Information", "orderNumber": 1, "parentModule": "", "enabled": true, "serviceCode": "msea-event-notification", "code": "null", "path": "ULBInformation", "navigationURL": "notifications", "leftIcon": "action:description", "rightIcon": "" },
https://raw.githubusercontent.com/egovernments/egov-mdms-data/master/data/pb/ACCESSCONTROL-ROLEACTIONS/roleactions.json
{ "rolecode": "EMPLOYEE", "actionid": 1833, "actioncode": "", "tenantId": "pb" },
PRD: https://digit-discuss.atlassian.net/jira/software/projects/M20/boards/20
Postman Collection: https://www.getpostman.com/collections/14812d58dff5565bd3d9
Service Documentation - egov-user-events
EMPLOYEE :
Creates broadcast messages. eventCategory will be BROADCAST
Source Code path : https://github.com/egovernments/frontend/tree/master/web/rainmaker/packages/employee/src/ui-config/screens/specs/notifications
Creates eventsonground messages. eventCategory will be EVENTSONGROUND
Source Code path : https://github.com/egovernments/frontend/tree/master/web/rainmaker/packages/employee/src/ui-config/screens/specs/events
CITIZEN :
What's new - This section displays the top 3 ‘SYSTEM GENERATED' with actions and 'BROADCAST’ events.
https://egov-micro-dev.egovernments.org/citizen/
API : egov-user-event/v1/events/_search
Source Code : https://github.com/egovernments/frontend/tree/master/web/rainmaker/packages/citizen/src/modules/citizen/CitizenDashboard
Example - When the Trade license application is ready to be PAID, user-events service generates an event and generates a PAY link. Similarly with PGR, when the complaint is resolved, the user event generates an event with REOPEN and RATE link.
Bell Icon - This section displays all the notifications (SYSTEMGENERATED, EVENTSONGROUND, BROADCAST, and others).
API : egov-user-event/v1/events/notifications/_count
The count API is triggered when clicked on Icon, which is redirected to https://egov-micro-qa.egovernments.org/citizen/notifications screen - displays all events.