basalt / notifications/src / NotificationPreference
Interface: NotificationPreference
Defined in: notifications/src/preferences.ts:8
Per-user notification preferences — richer and persistable, beyond the inline Notifiable.channelPreferences opt-out. A preference targets a notification name (or *) and a channel (or *); the most specific match wins, and everything is opt-out by default (allowed unless a matching preference says enabled: false).
Properties
channel
> channel: string
Defined in: notifications/src/preferences.ts:13
Channel name, or * for all channels.
enabled
> enabled: boolean
Defined in: notifications/src/preferences.ts:14
notification
> notification: string
Defined in: notifications/src/preferences.ts:11
Notification name, or * for all.
userId
> userId: string
Defined in: notifications/src/preferences.ts:9