feat: notification processor improvements

Notification processor functions are now renamed to `preProcess` and `postProcess`.
Additionally, processor name is now required to be returned by `getName`.
A new processor functionality `processOptions` was added to process options before sending the notification.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2024-04-08 08:15:13 +03:00
parent 0d60f65572
commit 0d99528300
6 changed files with 178 additions and 75 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export type NewNotificationSignal = {
// @public (undocumented)
type Notification_2 = {
id: string;
user: string;
user: string | null;
created: Date;
saved?: Date;
read?: Date;
+1 -1
View File
@@ -33,7 +33,7 @@ export type NotificationPayload = {
/** @public */
export type Notification = {
id: string;
user: string;
user: string | null;
created: Date;
saved?: Date;
read?: Date;