Event Service
Component Detail
Service Layer
medium complexity
backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Backend service that orchestrates event creation, applies business rules, and persists new events as the unit of record for downstream sign-ups and reporting. Exposes APIs consumed by the Event Wizard and feeds activity statistics and Bufdir aggregates.
event-service
Sources & reasoning
The source mobile architecture explicitly lists an Event wizard with the exact steps (title โ date โ time โ duration โ location โ summary) and event-management is an MVP-tier always-available area in the toggle registry. Placed in MVP because the Add modal in the bottom nav launches event creation alongside activity creation as a Phase 1 capability.
-
docs/source/likeperson.md ยท line 222Event wizard (multi-step: title โ date โ time โ duration โ location โ summary)
-
docs/source/likeperson.md ยท line 351event-management | Event Management | Event Creation, Event Listing, Event Sign-up
-
docs/source/likeperson.md ยท line 215Bottom nav with 5 tabs: Home, Contacts, Add (modal launcher for Activity and Event wizards), Work, Notifications
Responsibilities
- Validate event payloads against business rules and role permissions
- Generate unique event identifiers and persist via the Event Store
- Emit events for downstream activity statistics and Bufdir reporting
- Enforce role-based access control on create operations
- Return structured errors for invalid or unauthorized requests
Interfaces
createEvent(draft: EventDraft, actor: User): Event
getEvent(eventId: string): Event
listEventsByOrg(orgId: string): Event[]