Data Layer medium complexity Shared Component mobile
2
Dependencies
3
Dependents
1
Entities
0
Integrations

Description

Data access layer for contact entities. Issues REST API calls to `/api/v1/contacts` with pagination, search, and filter query parameters. Caches responses in the local offline storage layer for offline-data-support compatibility. Maps raw API response JSON to typed Contact domain models.

Feature: Contact List & Search

contact-repository

Responsibilities

  • Fetch contacts from REST API with query parameters (page, search, filter, orgId)
  • Cache contact list responses in local SQLite for offline access
  • Map API JSON responses to typed Contact domain model objects
  • Invalidate cache on pull-to-refresh or background sync signal

Interfaces

getContacts({page, pageSize, search, filter})
getContactById(contactId)
invalidateCache()

Relationships

Dependencies (2)

Components this component depends on

Dependents (3)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component