Mseva 2.0 UI Documentation

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 - https://digit-discuss.atlassian.net/wiki/spaces/EPE/pages/231407688

 

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.

API Call Role Action mapping:

S. No.

API

Action id

Roles

S. No.

API

Action id

Roles

1

/access/v1/actions/mdms/_get

870

CSR, GRO,DGRO,EMPLOYEE,CITIZEN,PGR-ADMIN,EMPLOYEE_FINANCE,TL_APPROVER,TL_CEMP,SUPERUSER,COLL_OPERATOR,BANK_COLL_OPERATOR,CSC_COLL_OPERATOR,DMA OFFICE OFFICER,ULB OFFICER,COMMISSIONER,

3

/egov-mdms-service/v1/_search

954

LOA_CREATOR,SUPERUSER,WO_CREATOR,AE_CREATOR,WORKS_MASTER_CREATOR,

4

/user/_search

604

SUPERUSER,SYS_INTEGRATOR_FINANCE,SYS_INTEGRATOR_WATER_SEW,EGF_BILL_CREATOR,EMPLOYEE,EMPLOYEE_FINANCE,

5

/localization/messages/v1/_search

1531

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,

6

/egov-user-event/v1/events/_search

1830

SUPERUSER,EMPLOYEE,CITIZEN,

7

/egov-user-event/v1/events/notifications/_count

1831

SUPERUSER,EMPLOYEE,CITIZEN,

8

/egov-user-event/v1/events/lat/_update

1832

SUPERUSER,EMPLOYEE,CITIZEN,

9

/filestore/v1/files/url

1528

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,