Merge pull request #24338 from drodil/notifications_filter_users

feat: support to filter notification recipients after resolving
This commit is contained in:
Marek Libra
2024-04-24 10:24:10 +02:00
committed by GitHub
4 changed files with 33 additions and 2 deletions
+1
View File
@@ -41,6 +41,7 @@ export type NotificationRecipients =
| {
type: 'entity';
entityRef: string | string[];
excludeEntityRef?: string | string[];
}
| {
type: 'broadcast';
@@ -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' };