feat: support for broadcast notifications

the broadcast notifications are returned with the same queries as user
notifications with only few exceptions in the store

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2024-03-13 10:12:20 +02:00
parent 739415b07c
commit ba14c0e4f2
8 changed files with 443 additions and 96 deletions
@@ -25,13 +25,12 @@ export type NotificationServiceOptions = {
};
/** @public */
export type NotificationRecipients = {
type: 'entity';
entityRef: string | string[];
};
// TODO: Support for broadcast messages
// | { type: 'broadcast' };
export type NotificationRecipients =
| {
type: 'entity';
entityRef: string | string[];
}
| { type: 'broadcast' };
/** @public */
export type NotificationSendOptions = {