Calendar Sync Store
Component Detail
Data Layer
medium complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Local persistence layer for calendar sync state, mapping between Meander activities and device calendar events, and sync configuration. Stores sync metadata locally to prevent redundant API calls and track which events have already been synchronized.
calendar-sync-store
Responsibilities
- Persist sync state and last sync timestamps per calendar
- Store activity-to-calendar-event mappings
- Cache sync configuration and user preferences
- Track pending sync operations for offline resilience
Interfaces
saveSyncState(state: SyncState): Future<void>
getSyncState(): Future<SyncState>
saveEventMapping(activityId: String, calendarEventId: String): Future<void>
getEventMapping(activityId: String): Future<String?>
getMappingByCalendarEvent(eventId: String): Future<String?>
getLastSyncTimestamp(calendarId: String): Future<DateTime?>
saveSyncPreferences(prefs: SyncPreferences): Future<void>
getPendingSyncOperations(): Future<List<SyncOperation>>
clearSyncData(): Future<void>