feat: support to filter notification recipients after resolving
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
@@ -28,7 +28,16 @@ export type NotificationServiceOptions = {
|
||||
export type NotificationRecipients =
|
||||
| {
|
||||
type: 'entity';
|
||||
/**
|
||||
* Entity references to send the notifications to
|
||||
*/
|
||||
entityRef: string | string[];
|
||||
/**
|
||||
* Optional entity reference(s) to filter out of the resolved recipients.
|
||||
* Usually the currently logged-in user for preventing sending notification
|
||||
* of user action to him/herself.
|
||||
*/
|
||||
excludeEntityRef?: string | string[];
|
||||
}
|
||||
| { type: 'broadcast' };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user