EventService
Component Detail
Service Layer
medium complexity
backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Business logic layer that processes event creation requests from the wizard screen. Enforces authorization rules ensuring only peer mentors and coordinators may create events. Coordinates with EventRepository to persist validated event records.
event-service
Sources & reasoning
Line 297 defines the exact wizard structure for event creation and line 289 places it as a primary entry point in bottom-nav. The blueprint marks this MVP. The mobile architecture section treats event wizards as a core screen alongside activity wizards, confirming launch-critical status.
-
docs/source/likeperson.md ยท line 297Event wizard (multi-step: title โ date โ time โ duration โ location โ summary)
-
docs/source/likeperson.md ยท line 289Bottom nav with 5 tabs: Home, Contacts, Add (modal launcher for Activity and Event wizards), Work, Notifications
Responsibilities
- Validate the completeness and business rules of incoming event payloads
- Enforce role-based access control before allowing event creation
- Delegate persistence of new event records to EventRepository
- Return created event identifiers and error states to callers
Interfaces
createEvent(payload: EventPayload): Promise<Event>
validateEventPayload(payload: EventPayload): ValidationResult
getEventById(eventId: string): Promise<Event>