Notification Rule Store
Component Detail
Data Layer
medium complexity
backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Persists notification rule definitions including event type, condition predicate, recipient strategy, channel selection, template reference, and cooldown configuration. Provides CRUD operations for rule management and supports per-organization rule customization.
notification-rule-store
Responsibilities
- Store and retrieve notification rule definitions
- Support per-organization rule overrides and custom scenarios
- Validate rule integrity on create and update
Interfaces
createRule(rule: NotificationRuleInput): Promise<NotificationRule>
updateRule(ruleId: string, updates: Partial<NotificationRuleInput>): Promise<NotificationRule>
deleteRule(ruleId: string): Promise<void>
getRulesByEventType(eventType: string): Promise<NotificationRule[]>
getAllActiveRules(orgId?: string): Promise<NotificationRule[]>
getRuleById(ruleId: string): Promise<NotificationRule | null>