Coordinator Notification Service
Component Detail
Service Layer
medium complexity
backend
0
Dependencies
0
Dependents
8
Entities
0
Integrations
Description
Service responsible for notifying a peer mentor's assigned coordinator whenever the mentor's availability status changes. Resolves the correct coordinator for the mentor's organisation, constructs a notification payload including the mentor's name and optional pause reason, and dispatches the push notification via Supabase Edge Functions and the push notification gateway.
coordinator-notification-service
Responsibilities
- Resolve the coordinator assigned to a peer mentor
- Build notification payload with mentor name and reason
- Dispatch push notification via push notification gateway
- Log notification delivery status
Interfaces
notifyCoordinatorOnPause(mentorId, reason?)
notifyCoordinatorOnResume(mentorId)
notifyCoordinatorOnCertificateExpiry(mentorId)
getCoordinatorForMentor(mentorId)
buildNotificationPayload(event, mentor)
sendPushNotification(coordinatorId, payload)
Related Data Entities (8)
Data entities managed by this component