Notification
Notification
Section titled “Notification”Quellverzeichnis: modules/notification/
Benachrichtigungsversand an Mitarbeiter und Kunden (Novu).
Services
Section titled “Services”Geschäftslogik des Moduls (src/services/):
ConversationClosedErrorConversationNotFoundErrorConversationServiceNotificationAuditServiceNotificationConsentMissingErrorNotificationNotFoundErrorNotificationOptedOutErrorNotificationRetryExhaustedErrorNotificationServiceNotificationTemplateAlreadyExistsErrorNotificationTemplateNotFoundErrorNotificationTemplateNotPublishedErrorNotificationTemplateServiceNotificationTemplateTerminalErrorNotificationTerminalErrorOptOutService
Repositories
Section titled “Repositories”Datenzugriffs-Ports (src/repositories/):
ConversationRepositoryInMemoryConversationRepositoryInMemoryNotificationAuditLogRepositoryInMemoryNotificationRepositoryInMemoryNotificationTemplateRepositoryInMemoryOptOutRepositoryNotificationAuditLogRepositoryNotificationRepositoryNotificationTemplateRepositoryOptOutRepository
Domain Events
Section titled “Domain Events”Vom Modul emittierte Ereignisse (src/events.ts):
EventHandlerNOTIFICATION_EVENT_TYPESconversationClosedconversationCreatedconversationMessageReceivedconversationMessageSentnotificationBouncednotificationDeliverednotificationFailednotificationOptedOutnotificationQueuednotificationReadnotificationSent
API-Endpunkte
Section titled “API-Endpunkte”HTTP-Endpunkte unter api/routes/notification/ — Details in der API-Referenz.
| Methode | Pfad | Datei |
|---|---|---|
GET |
/v1/conversations |
conversations.ts |
POST |
/v1/conversations |
conversations.ts |
GET |
/v1/conversations/:id |
conversations.ts |
POST |
/v1/conversations/:id/assign |
conversations.ts |
POST |
/v1/conversations/:id/close |
conversations.ts |
POST |
/v1/conversations/:id/messages |
conversations.ts |
POST |
/v1/conversations/:id/reopen |
conversations.ts |
GET |
/v1/notifications |
notifications.ts |
GET |
/v1/notifications/:id |
notifications.ts |
POST |
/v1/notifications/:id/bounce |
notifications.ts |
POST |
/v1/notifications/:id/delivered |
notifications.ts |
POST |
/v1/notifications/:id/dispatch |
notifications.ts |
POST |
/v1/notifications/:id/read |
notifications.ts |
POST |
/v1/notifications/:id/retry |
notifications.ts |
GET |
/v1/notifications/opt-out |
opt-out.ts |
POST |
/v1/notifications/opt-out |
opt-out.ts |
GET |
/v1/notifications/opt-out/check |
opt-out.ts |
GET |
/v1/notifications/queue/retry |
notifications.ts |
POST |
/v1/notifications/send |
notifications.ts |
GET |
/v1/notifications/templates |
templates.ts |
POST |
/v1/notifications/templates |
templates.ts |
GET |
/v1/notifications/templates/:id |
templates.ts |
PATCH |
/v1/notifications/templates/:id |
templates.ts |
POST |
/v1/notifications/templates/:id/archive |
templates.ts |
POST |
/v1/notifications/templates/:id/publish |
templates.ts |
POST |
/v1/notifications/templates/:id/versions |
templates.ts |
Public API
Section titled “Public API”Über den Modul-Index (src/index.ts) exportierte Symbole — die einzige erlaubte Zugriffsart von außen:
// Aggregate Roots NotificationTemplate// Conversation conversationCreated// Conversation transitions canTransitionConversation// DTOs - Audit-Log ListAuditLogQuery// DTOs - Conversation CreateConversationInput// DTOs - Notification SendNotificationInput// DTOs - NotificationTemplate CreateNotificationTemplateInput// DTOs - Opt-Out RegisterOptOutInput// Enums NotificationChannel// H16: Template Fallback Resolution TemplateResolutionContext// Helper now// Notification lifecycle notificationQueued// Notification transitions canTransitionNotification// NotificationTemplate transitions canTransitionNotificationTemplate// Template-Engine renderTemplate// Validations - Common isValidTimestamp// Validations - Enums isValidNotificationChannel// Validations - Notification-specific isValidEventPattern// Validations - Value Objects isValidTemplateContent// Value Objects TemplateContentAppendMessageInputConversationConversationClosedErrorConversationNotFoundErrorConversationServiceConversationStatusConversationStatusValidationErrorConversationTransitionErrorDEFAULT_MAX_RETRIESEventPatternValidationErrorInMemoryConversationRepositoryInMemoryEventBusInMemoryNotificationAuditLogRepositoryInMemoryNotificationRepositoryInMemoryNotificationTemplateRepositoryInMemoryOptOutRepositoryLanguageCodeValidationErrorListConversationsQueryListNotificationTemplatesQueryListNotificationsQuery- … und 107 weitere
Zurück zur Modul-Übersicht oder zur Startseite.