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

Description

Fetches the organization's configured resource links from the backend and caches them for offline access. Serves cached data when the device has no connectivity and invalidates the cache on a configurable TTL.

Feature: External Resource Links

resource-links-service

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

  • Fetch resource links for the authenticated user's organization from the API
  • Persist fetched links to local cache (AsyncStorage or SQLite)
  • Return cached links when the network is unavailable
  • Invalidate and refresh the cache based on TTL or explicit refresh trigger
  • Expose the current connectivity-aware link list to consumers

Interfaces

getResourceLinks(organizationId: string): Promise<ResourceLink[]>
refreshCache(organizationId: string): Promise<void>
getCachedLinks(organizationId: string): ResourceLink[] | null