Service Layer medium complexity backend
1
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Sends SMS messages to users for urgent alerts and verification codes via a configurable SMS provider (Twilio or a Norwegian provider). Handles phone number lookup from user profiles, respects notification preferences, and records delivery receipts.

Feature: Email / SMS Notifications

sms-notification-service

Responsibilities

  • Send SMS for verification codes, urgent coordinator alerts, and critical operational messages
  • Look up verified phone numbers from user profiles before dispatch
  • Check user notification_preferences to confirm SMS channel is enabled
  • Handle delivery receipts and failed-delivery callbacks from the provider
  • Enforce per-organization SMS sender ID or short-code configuration

Interfaces

sendSms(userId, messageBody, priority): Promise<DeliveryResult>
sendVerificationCode(phoneNumber, code): Promise<DeliveryResult>
handleDeliveryReceipt(webhookPayload): void
lookupPhoneNumber(userId): string | null

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (2)

Data entities managed by this component