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

Description

Server-side infrastructure component responsible for transforming aggregated report data into Bufdir-compliant CSV or Excel files using a library such as exceljs. Column mapping is driven by an external configuration file so the output format can be updated to match Bufdir's current submission requirements without code changes. The generated file is streamed to the client or stored temporarily for async download.

Feature: Admin Bufdir Report Export

export-file-generator

Responsibilities

  • Apply Bufdir column mapping configuration to aggregated data rows
  • Generate Excel (.xlsx) or CSV output using exceljs or equivalent
  • Stream or buffer the output file for client download
  • Update column mapping from configuration without code deployment

Interfaces

generateExcelReport(data, columnMapping)
generateCsvReport(data, columnMapping)
loadColumnMappingConfig()
streamFileToResponse(fileBuffer, res)
writeFileToDisk(fileBuffer, path)
getOutputMimeType(format)

Relationships

Dependents (2)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component