Calendar Sync Service
Component Detail
Service Layer
medium complexity
mobilebackend
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Orchestrates two-way synchronization between Meander activities and the user's device calendar according to stored preferences. Converts calendar events into draft activities, pushes scheduled activities back to the device calendar, and resolves conflicts based on timestamps and source-of-truth rules.
calendar-sync-service
Sources & reasoning
HLF workshop calls out calendar sync alongside scenario-based push for follow-up. No MVP/Phase 2 mention, so it slots into Fase 3 Growth & Engagement per §5's recommended phase ordering for tenant-specific enhancements.
-
docs/source/likeperson.md · line 74Oppfølging av likepersoner: 40 % var ikke fornøyd med oppfølgingen i spørreundersøkelse. Scenariobaserte push-meldinger og kalendersynkronisering.
Responsibilities
- Reconcile activity records with device calendar events based on sync direction
- Convert inbound calendar events into draft activities for review
- Push outbound activities to the device calendar with reminders
- Detect and resolve duplicate or conflicting entries during sync
- Emit sync status, error events, and audit entries for each sync cycle
Interfaces
syncCalendar(userId, preferences): SyncResult
importEventAsDraftActivity(event): DraftActivity
exportActivityToCalendar(activity, calendarId): CalendarEventRef
resolveConflict(activity, event): ConflictResolution
getLastSyncStatus(userId): SyncStatus