Appearance
Notifications Domain
The core domain of the Notifications module focuses on tracking what notifications were sent, to whom, and whether they were successful. It acts as an audit log and debugging tool for communications.
Core Entities
NotificationLog
This entity records every attempt to send a notification.
Key Properties:
userId/agencyId: Links the notification to a specific actor in the system (if applicable).type: The medium used (e.g.,EMAIL).templateKey: The specific template used to render the message.recipient: The destination address (e.g., email address).success: A boolean indicating if the external provider accepted the message.error: Ifsuccessis false, captures the error message from the provider.
Value Objects
NotificationType
An enum defining the supported notification channels. Currently supports:
EMAIL