Event Service
Component Detail
Service Layer
medium complexity
mobile
0
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Business logic layer responsible for submitting new events to the backend REST API and coordinating with the Event Repository for offline draft persistence. Sends a POST to /api/v1/events, linking the event to the creating user and organization.
event-service
Responsibilities
- Submit validated event payload via POST /api/v1/events
- Attach authenticated user and organization context to each request
- Delegate offline draft caching to Event Repository when network is unavailable
- Trigger draft sync when connectivity is restored
- Return creation result or error state to the wizard BLoC
Interfaces
createEvent(EventDraft draft)
syncPendingDrafts()
deleteLocalDraft(String draftId)
Related Data Entities (2)
Data entities managed by this component