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

Description

Monitors peer mentor certification expiry dates and schedules automated renewal reminder notifications at configurable intervals before expiry. Integrates with the Certification Expiry Auto-Pause component to coordinate pause status when certificates lapse. Tracks reminder delivery state to avoid duplicate notifications across the reminder schedule.

Feature: Certificate Renewal Reminder

renewal-reminder-service

Sources & reasoning

Line 114 names automatic expiry reminders as part of HLF's certification requirement. Line 80 provides the critical business rule: an expired certificate removes the peer mentor from chapter listings, making reminders essential to prevent unintentional removal. The Phase 3 roadmap places certification-training at v1.1 (third-phase normalization), consistent with the SHOULD matrix classification at Phase 3.

  • Kursadministrasjon og sertifisering: PĂĄmelding til kurs i appen, automatisk pĂĄminnelse ved utløp, digitale sertifikater.
  • HLF kobler dette til sertifisering: ved utgĂĄtt sertifikat forsvinner likepersonen fra lokallagets nettsider automatisk.

Responsibilities

  • Query upcoming certificate expiries and compute reminder send dates based on configurable lead times
  • Generate reminder payloads referencing the appropriate renewal course via the course-registration dependency
  • Track which reminders have been sent per mentor to prevent duplicates
  • Coordinate with Certification Expiry Auto-Pause when expiry date passes without renewal
  • Expose admin controls for configuring reminder intervals and enabling or disabling reminders per chapter

Interfaces

scheduleReminders(): void
getRemindersDue(asOf: Date): ReminderJob[]
markReminderSent(mentorId: string, reminderType: string): void
getUpcomingExpiries(withinDays: number): CertExpiry[]
updateReminderConfig(config: ReminderConfig): void

Related Data Entities (2)

Data entities managed by this component