Service Layer medium complexity mobilebackend
2
Dependencies
1
Dependents
4
Entities
0
Integrations

Description

Business logic service that orchestrates calendar synchronization between the platform and external calendar applications. Handles one-tap event export using flutter_calendar_connect, manages user sync preferences, and coordinates with the backend iCal feed endpoint.

Feature: Calendar Synchronization

calendar-integration-service

Responsibilities

  • Add individual activities and events to device native calendar via flutter_calendar_connect
  • Manage user calendar sync preferences including event type filters
  • Generate and provide per-user iCal feed URL with secure token
  • Enforce privacy rules for encrypted assignments (use generic labels, no sensitive data in calendar titles)

Interfaces

addEventToCalendar(event: CalendarEvent)
addActivityToCalendar(activity: Activity)
getSyncPreferences(userId: string)
updateSyncPreferences(userId: string, prefs: CalendarSyncPreferences)
getICalFeedUrl(userId: string)
regenerateICalToken(userId: string)
buildCalendarEvent(source: Activity | Event, privacyMode: boolean)
syncStatusForUser(userId: string)

Relationships

Dependencies (2)

Components this component depends on

Dependents (1)

Components that depend on this component