Add Protection Report Generator with HTML/PDF output and scheduled delivery (FRE-4575)
- Report service: data collection from all three engines, HTML rendering (Handlebars), PDF generation (pdfkit) - REST API: /reports endpoints for generate, history, view, PDF download, scheduling - BullMQ workers: queued report generation with retry, monthly/annual scheduler triggers - DB: SecurityReport model with Prisma schema and type exports - Email: report_ready template in shared-notifications - All dependencies wired through existing packages Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -135,3 +135,16 @@ export async function scheduleWebhookProcessor() {
|
||||
}
|
||||
|
||||
console.log("Job workers started");
|
||||
|
||||
// Report generation workers
|
||||
import {
|
||||
reportGenerationWorker,
|
||||
reportSchedulerWorker,
|
||||
scheduleReportProcessor,
|
||||
scheduleMonthlyReportTrigger,
|
||||
scheduleAnnualReportTrigger,
|
||||
} from './report.jobs';
|
||||
|
||||
scheduleReportProcessor().catch(console.error);
|
||||
scheduleMonthlyReportTrigger().catch(console.error);
|
||||
scheduleAnnualReportTrigger().catch(console.error);
|
||||
|
||||
Reference in New Issue
Block a user