Skip to content

Notification

Quellverzeichnis: modules/notification/

Benachrichtigungsversand an Mitarbeiter und Kunden (Novu).

Geschäftslogik des Moduls (src/services/):

  • ConversationClosedError
  • ConversationNotFoundError
  • ConversationService
  • NotificationAuditService
  • NotificationConsentMissingError
  • NotificationNotFoundError
  • NotificationOptedOutError
  • NotificationRetryExhaustedError
  • NotificationService
  • NotificationTemplateAlreadyExistsError
  • NotificationTemplateNotFoundError
  • NotificationTemplateNotPublishedError
  • NotificationTemplateService
  • NotificationTemplateTerminalError
  • NotificationTerminalError
  • OptOutService

Datenzugriffs-Ports (src/repositories/):

  • ConversationRepository
  • InMemoryConversationRepository
  • InMemoryNotificationAuditLogRepository
  • InMemoryNotificationRepository
  • InMemoryNotificationTemplateRepository
  • InMemoryOptOutRepository
  • NotificationAuditLogRepository
  • NotificationRepository
  • NotificationTemplateRepository
  • OptOutRepository

Vom Modul emittierte Ereignisse (src/events.ts):

  • EventHandler
  • NOTIFICATION_EVENT_TYPES
  • conversationClosed
  • conversationCreated
  • conversationMessageReceived
  • conversationMessageSent
  • notificationBounced
  • notificationDelivered
  • notificationFailed
  • notificationOptedOut
  • notificationQueued
  • notificationRead
  • notificationSent

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

Ü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 TemplateContent
  • AppendMessageInput
  • Conversation
  • ConversationClosedError
  • ConversationNotFoundError
  • ConversationService
  • ConversationStatus
  • ConversationStatusValidationError
  • ConversationTransitionError
  • DEFAULT_MAX_RETRIES
  • EventPatternValidationError
  • InMemoryConversationRepository
  • InMemoryEventBus
  • InMemoryNotificationAuditLogRepository
  • InMemoryNotificationRepository
  • InMemoryNotificationTemplateRepository
  • InMemoryOptOutRepository
  • LanguageCodeValidationError
  • ListConversationsQuery
  • ListNotificationTemplatesQuery
  • ListNotificationsQuery
  • … und 107 weitere

Zurück zur Modul-Übersicht oder zur Startseite.