Service Layer medium complexity backend
0
Dependencies
0
Dependents
4
Entities
0
Integrations

Description

Compares peer mentor certificate expiry dates against the current date and dispatches push notifications at configurable intervals before expiry. Handles the final expiry event by triggering the CertificationExpiryAutoPause flow to remove the peer mentor from active assignment pools. Coordinates with the push notification system to deliver timely reminders to both peer mentors and coordinators.

Feature: Certificate Renewal Reminder

certificate-renewal-notification-service

Sources & reasoning

Line 114 explicitly states 'automatisk pÄminnelse ved utlÞp' as a HLF certification requirement. Line 80 establishes that expired certificates must trigger removal from public listings, which the auto-pause integration fulfills. Both are listed in Phase 3 of the roadmap (section 5), mapping to v1.1 by ordinal position.

  • docs/source/likeperson.md · line 114
    Kursadministrasjon og sertifisering: PÄmelding til kurs i appen, automatisk pÄminnelse ved utlÞp, digitale sertifikater.
  • docs/source/likeperson.md · line 80
    HLF kobler dette til sertifisering: ved utgÄtt sertifikat forsvinner likepersonen fra lokallagets nettsider automatisk. Blindeforbundet hÄndterer dette manuelt og har ikke fremhevet behovet.

Responsibilities

  • Query certificate expiry dates and compute days-until-expiry for all active peer mentors
  • Dispatch push notifications to peer mentors and coordinators at configured reminder intervals
  • Trigger CertificationExpiryAutoPause when a certificate reaches its expiry date
  • Track notification delivery state to avoid duplicate reminders within the same interval window
  • Apply configurable notification schedules per organization or role type

Interfaces

checkExpiringCertificates(): Promise<void>
sendRenewalReminder(mentorId: string, daysUntilExpiry: number): Promise<void>
triggerExpiryAutoPause(mentorId: string): Promise<void>
getNotificationSchedule(organizationId: string): ReminderScheduleConfig