Service Layer medium complexity mobile
2
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Populates the local SQLite store with the user's operational data subset at login time and after successful remote syncs. Seeds contacts, activity types, organization settings, and other reference data needed for offline operation, ensuring the app is immediately functional without network access.

Feature: Offline Data Support

local-data-seeder

Responsibilities

  • Seed contacts, activity types, and organization settings into local SQLite at login
  • Refresh local store after major remote sync completions
  • Determine the minimal data subset required for core offline operations
  • Handle incremental seed updates without duplicating existing records

Interfaces

seedOnLogin(userId: String): Future<void>
seedContacts(userId: String): Future<void>
seedActivityTypes(orgId: String): Future<void>
seedOrganizationSettings(orgId: String): Future<void>
refreshSeed(entityType: String): Future<void>
clearSeed(): Future<void>
getSeedStatus(): SeedStatus

Relationships

Dependencies (2)

Components this component depends on

Related Data Entities (2)

Data entities managed by this component