Data Layer low complexity mobile
0
Dependencies
2
Dependents
0
Entities
0
Integrations

Description

Local persistence layer that tracks the synchronization state between Meander records and their corresponding external calendar entries. Stores external event IDs, last sync timestamps, and sync hashes per record to prevent redundant API calls and detect stale entries on subsequent sync runs.

Feature: Calendar Sync

calendar-sync-state-store

Responsibilities

  • Persist mappings between Meander activity/event IDs and external calendar event IDs
  • Store per-calendar last-synced timestamps for incremental sync queries
  • Record content hashes to detect records that have changed and need re-push
  • Track dismissed activity prompts to avoid re-surfacing ignored calendar events

Interfaces

saveSyncMapping(meanderRecordId, externalEventId, calendarId)
getSyncMapping(meanderRecordId)
deleteSyncMapping(meanderRecordId)
getLastSyncTimestamp(calendarId)
setLastSyncTimestamp(calendarId, timestamp)
saveContentHash(meanderRecordId, hash)
getContentHash(meanderRecordId)
markPromptDismissed(externalEventId)
isPromptDismissed(externalEventId)
clearSyncState(calendarId)

Relationships

Dependents (2)

Components that depend on this component