Service Layer medium complexity mobilebackend
2
Dependencies
3
Dependents
2
Entities
0
Integrations

Description

Handles all business logic for event creation including input validation, offline-first local persistence via Drift, and mutation enqueuing for backend sync. Enforces organization-scoped tenant isolation when writing event records to the backend REST API.

Feature: Event Creation

event-service

Responsibilities

  • Validate event draft data against business rules before any persistence
  • Write new event records to the local Drift encrypted database for offline-first support
  • Enqueue create and update mutations to the mutation outbox for background sync on reconnect
  • Call the backend REST endpoint to persist confirmed events with role membership validation
  • Expose event retrieval and deletion for event lifecycle management

Interfaces

createEvent(EventDraft draft) Future<Event>
updateEvent(String eventId, EventDraft draft) Future<Event>
deleteEvent(String eventId) Future<void>
getEvent(String eventId) Future<Event?>
validateDraft(EventDraft draft) ValidationResult

Relationships

Dependencies (2)

Components this component depends on

Dependents (3)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component