System Notifications
Table of Contents
- Introduction to System Notifications
- System Notification Abstraction Class
- Default Classes
- API
- Customize and Usage
Introduction to System Notifications
nodeeweb use global event emitter for every single actions, so we can notif some of then into Admin Panel, we called that notifications System Notifications
SystemNotif abstractions class
abstract class SystemNotif {
abstract id: string;
abstract type: string;
abstract register(store: any): void | Promise<void>;
abstract unregister(store: any): void | Promise<void>;
}
Default System Notifs
each CoreSystemNotif
provide save method which write into systemNotif
collection
- LogNotif observe every logs
- UserRegisterNotif observe every user registration
API
we can use crud api on base url /systemNotif/notif
to Get All, Get Count, Get One and Update One
Customize and Usage
- create a class that implement SystemNotif class
- register new SystemNotif class into
store
await registerSystemNotif(myCustomSysNotif);