Data Layer medium complexity mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Abstracts all read and write operations for resource link data in local storage. Provides a typed interface over the underlying persistence mechanism so the service layer remains storage-agnostic.

Feature: External Resource Links

resource-links-repository

Sources & reasoning

The priority matrix at line 160 shows all five organizations want external resource links and assigns them to Fase 2 (v1.0). The NICE classification and phase-2 placement align with the blueprint target_release v1.0. The feature supports the incremental rollout strategy and the shared need to surface training and guidance materials inside the app without requiring a client release per update.

  • Eksterne lenker til ressurser | โœ“ | โœ“ | โœ“ | โœ“ | โœ“ | NICE | 2

Responsibilities

  • Save a list of resource links for a given organization to local storage
  • Retrieve stored resource links by organization ID
  • Delete stale or organization-specific cache entries
  • Store and expose the cache timestamp for TTL evaluation

Interfaces

saveLinks(organizationId: string, links: ResourceLink[]): Promise<void>
loadLinks(organizationId: string): Promise<ResourceLink[] | null>
clearLinks(organizationId: string): Promise<void>
getCacheTimestamp(organizationId: string): Promise<Date | null>