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

Description

Abstracts access to privacy policy content, reading from the bundled JSON asset or a remote endpoint. Provides a single read interface so the service layer is decoupled from the storage mechanism.

Feature: Privacy Policy

policy-content-repository

Sources & reasoning

Privacy Policy appears in both the help-support area taxonomy (line 479) and the Sales Website MVP scope (line 336), confirming it is required from launch across all products. GDPR compliance is mandatory given Meander processes health and biometric data for Norwegian organizations.

Responsibilities

  • Read bundled policy JSON from app assets
  • Optionally fetch updated policy from a remote URL
  • Return raw PolicyDocument DTO to the service layer
  • Handle network errors gracefully with fallback to bundled version

Interfaces

fetchLocal(): PolicyDocument
fetchRemote(url: string): Promise<PolicyDocument>