Infrastructure medium complexity backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Infrastructure service responsible for persisting generated export files and managing their lifecycle. Stores files in a durable object store and provides time-limited download URLs for administrator retrieval. Handles cleanup of expired export files to manage storage costs.

Feature: Accounting Export

export-file-storage-service

Sources & reasoning

The same Fase 3 roadmap entry (line 354) and accounting system requirements (line 72) motivate a manual export interface alongside the automated API. A UI-driven export is needed for reconciliation, audit fallback, and organizations not yet configured for live sync. Fase 3 maps to v1.1.

  • docs/source/likeperson.md · line 72
    API-integrasjon mot regnskapssystem (Xledger for Blindeforbundet, Dynamics-portal for HLF).
  • docs/source/likeperson.md · line 354
    Regnskapsintegrasjon (Xledger for Blindeforbundet, Dynamics accounting for HLF)

Responsibilities

  • Store generated export files in a durable object store with organization-scoped paths
  • Generate secure, time-limited pre-signed download URLs for completed exports
  • Track file metadata including size, format, creation timestamp, and expiry
  • Enforce retention policies and clean up expired or superseded export files

Interfaces

storeExportFile(orgId: string, exportId: string, content: Buffer, format: string): StorageRef
getDownloadUrl(storageRef: StorageRef, ttlSeconds: number): string
deleteExportFile(storageRef: StorageRef): void
listStoredExports(orgId: string): StorageRef[]

Related Data Entities (1)

Data entities managed by this component