Report Definition Store
Component Detail
Data Layer
medium complexity
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Persistence layer for saved custom report definitions, scoped per organization. Stores dimension/measure/format selections so reports can be re-run on demand.
report-definition-store
Sources & reasoning
Custom Reports are listed in the canonical area taxonomy for admin-reporting. They are not part of the MVP or Core Product roadmap and are most consistent with the Phase 3 'Growth & Engagement' goal of extending platform capability beyond core operational needs.
-
docs/source/likeperson.md · line 377admin-reporting | Reporting & Export | Team Reports, Bufdir Report Generation, Bufdir Export, Custom Reports
Responsibilities
- Persist report definitions with org_id scoping
- Retrieve definitions by id and by organization
- Update existing definitions
- Delete definitions with org-scope verification
- Track creation and last-run metadata
Interfaces
create(definition, orgId): ReportDefinitionId
findById(definitionId, orgId): ReportDefinition
findByOrg(orgId): ReportDefinition[]
update(definitionId, definition, orgId): void
delete(definitionId, orgId): void