Notification Template Repository
Component Detail
Data Layer
low complexity
backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Stores and retrieves server-side email and SMS templates, supporting organization-level overrides for branding, sender names, and custom wording. Templates are versioned and keyed by templateId and orgId.
notification-template-repository
Responsibilities
- CRUD operations for email and SMS message templates
- Resolve the correct template variant for a given organization and locale
- Support fallback to default platform template when no org override exists
- Validate template variable placeholders at save time
Interfaces
getTemplate(templateId, orgId): NotificationTemplate
upsertTemplate(template: NotificationTemplate): void
listTemplates(orgId): NotificationTemplate[]
deleteTemplate(templateId, orgId): void