Service Layer medium complexity mobile
0
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

Stateless mapping service that converts between Meander's internal activity and event data models and the native calendar event formats used by iOS EventKit, Android CalendarProvider, and Google Calendar. Handles field translation, duration calculations, and description formatting for round-trip fidelity.

Feature: Calendar Sync

calendar-event-mapper

Responsibilities

  • Map Meander activity fields to platform-specific calendar event properties
  • Map calendar event properties back to Meander activity draft fields
  • Format activity descriptions and metadata for calendar display
  • Preserve Meander record ID as a calendar event custom field for conflict resolution

Interfaces

activityToCalendarEvent(activity, platform)
eventToCalendarEvent(event, platform)
calendarEventToActivityDraft(calendarEvent)
formatEventTitle(activity)
formatEventDescription(activity)
extractMeanderRecordId(calendarEvent)

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component