Calendar Event Mapper
Component Detail
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.
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
Related Data Entities (2)
Data entities managed by this component