Bufdir PDF Template Store
Component Detail
Infrastructure
low complexity
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Versioned server-side asset store for the Bufdir PDF report template. Ensures exported PDFs always use the correct government-approved layout regardless of when the export is triggered. Supports template version pinning per report period to allow retroactive exports to use the layout that was current at time of submission.
bufdir-pdf-template-store
Responsibilities
- Store and serve versioned Bufdir PDF layout templates
- Return the correct template version for a given report period
- Support adding new template versions without breaking existing export jobs
Interfaces
getTemplate(version: string): BufdirPdfTemplate
getTemplateForPeriod(reportPeriod: ReportPeriod): BufdirPdfTemplate
listTemplateVersions(): string[]