Event Query Service
Component Detail
Service Layer
low complexity
mobile
2
Dependencies
1
Dependents
2
Entities
0
Integrations
Description
Service layer responsible for fetching, sorting, filtering, and cursor-based pagination of events from the REST API endpoint GET /api/v1/events, scoped by the organization context extracted from the user's JWT claims. Delegates caching of results to the Event Repository for offline access.
event-query-service
Responsibilities
- Fetch events from GET /api/v1/events with organization context from JWT
- Apply sorting and filtering parameters (date range, status)
- Manage cursor-based pagination state
- Coordinate with Event Repository for local caching and offline reads
Interfaces
fetchEvents({EventFilter filter, String? cursor}) -> Future<EventPage>
refreshEvents({EventFilter filter}) -> Future<EventPage>
getNextPage(String cursor) -> Future<EventPage>
Relationships
Dependencies (2)
Components this component depends on
Related Data Entities (2)
Data entities managed by this component