Contact Search Service
Component Detail
Service Layer
medium complexity
mobile
2
Dependencies
4
Dependents
1
Entities
0
Integrations
Description
Business logic service managing contact list retrieval, search, and filtering. Determines whether search should be performed client-side (small lists) or via debounced API query parameter. Enforces role-based scoping by reading the authenticated user's JWT claims to restrict results to the appropriate organisational boundary.
contact-search-service
Responsibilities
- Fetch paginated contact list from REST API with role-based scoping via JWT claims
- Perform client-side filtering for small datasets or dispatch debounced API search queries
- Apply status and role filters to result sets
- Manage pagination state and infinite scroll triggering
- Coordinate with offline cache when network is unavailable
Interfaces
getContacts({page, pageSize, filter})
searchContacts(query)
applyFilter(filter)
loadNextPage()
clearSearch()
Relationships
Dependencies (2)
Components this component depends on
Dependents (4)
Components that depend on this component