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.

Feature: Event Creation

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.

  • Event wizard (multi-step: title โ†’ date โ†’ time โ†’ duration โ†’ location โ†’ summary)
  • event-management | Event Management | Event Creation, Event Listing, Event Sign-up
  • Bottom 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[]

Related Data Entities (1)

Data entities managed by this component