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

Description

Infrastructure service that transforms normalized Meander activity and organization data into the exact schema required by Bufdir. Abstracts the output format decision (CSV, Excel, or structured JSON for Bufdir's own API) behind a single interface so the format can be switched without touching the export orchestration logic. Designed to evolve once Norse completes dialogue with Bufdir on the standardized digital reporting format.

Feature: Bufdir Export

bufdir-data-transformer

Responsibilities

  • Map Meander activity records to Bufdir report field definitions
  • Support CSV and Excel output formats; stub JSON API submission path for future use
  • Apply field-level transformations (date formats, code mappings, Norwegian field names)
  • Validate output against Bufdir schema constraints before returning
  • Return a buffer or stream for upload to object storage

Interfaces

transform(data: BufdirExportPayload, format: ExportFormat): Promise<Buffer>
getSupportedFormats(): ExportFormat[]
validateOutput(buffer: Buffer, format: ExportFormat): ValidationResult

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component