Data Layer low complexity mobile
0
Dependencies
1
Dependents
1
Entities
0
Integrations

Description

Data access layer that manages local caching and persistence of referral link data. Stores the current active referral link for offline display, syncs link status with the backend, and provides query methods for link retrieval and expiration state.

Feature: Invite Link & QR Sharing

referral-link-repository

Responsibilities

  • Cache active referral link locally for offline access
  • Sync referral link state with backend on connectivity restore
  • Provide CRUD operations for referral link records
  • Track link generation timestamps and TTL expiration

Interfaces

saveReferralLink(link)
getActiveLink(userId)
deleteLink(linkId)
isLinkCached(userId)
updateLinkStatus(linkId, status)
getExpiredLinks()

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component