BeechCMS / @beechcms/core / INotificationService
Interface: INotificationService
Methods
notify()
notify(
input):void|Promise<void>
Emit a notification.
Implementations decide whether to fire-and-forget (production: schedules the underlying repository write through executionCtx.waitUntil) or to wait inline (tests). Like the activity logger, this method MUST NOT throw to the caller: a failed notification must never break the public request that triggered it.
Parameters
input
message
string = ...
title
string = ...
type?
"success" | "error" | "info" | "warning" = ...
Returns
void | Promise<void>