Service Layer medium complexity frontendmobile
3
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

Business logic layer managing event lifecycle operations including creation, updates, cancellation, and attendance tracking. Communicates with /api/v1/events endpoints using the shared REST API client with offline queue support. Enforces role-based access rules restricting association-level event creation to Coordinator and above.

Feature: Event Creation & Management

event-service

Responsibilities

  • Create, update, and cancel events via REST API
  • Manage attendee registration and post-event attendance recording
  • Enforce role-based access control for event operations
  • Queue event mutations for offline support via sync service
  • Provide event data to visualization and reporting layers

Interfaces

createEvent(payload)
updateEvent(eventId, payload)
cancelEvent(eventId)
getEvent(eventId)
listEvents(filters)
addAttendee(eventId, userId)
removeAttendee(eventId, userId)
recordPostEventAttendance(eventId, attendeeIds)
getAttendeesForEvent(eventId)
canUserCreateEvent(userRole)

Relationships

Dependencies (3)

Components this component depends on

Dependents (1)

Components that depend on this component

Sub-Components (1)

Event Wizard State Manager
component medium

Manages the transient in-memory state of the event creation wizard across steps using BLoC/Riverpod state management. Persists draft state for crash recovery and handles step validation triggers.

  • Hold and mutate draft event state across wizard steps
  • Emit step validity and wizard completion states
  • Restore draft from local storage on crash recovery
  • +1 more

Related Data Entities (2)

Data entities managed by this component