BI Service
NestJS:8006Support
The BI (Business Intelligence) Service generates reports, dashboards, and analytics for correspondence, tasks, and organizational performance.
Key Features
- Dashboards — Real-time analytics dashboards
- Reports — Generate PDF and Excel reports
- Statistics — Correspondence and task performance metrics
- Multi-Language — Reports support multiple languages
- PDF Generation — Puppeteer-based PDF rendering
- Excel Export — ExcelJS for spreadsheet generation
- Template Engine — Handlebars for report templates
API Endpoints
GET
/api/bi/dashboardGet dashboard analytics data
GET
/api/bi/reportsList available reports
POST
/api/bi/reports/generateGenerate a report
GET
/api/bi/statistics/correspondenceCorrespondence statistics
GET
/api/bi/statistics/tasksTask performance statistics
POST
/api/bi/export/pdfExport report as PDF
POST
/api/bi/export/excelExport report as Excel
Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| PORT | number | 8006 | Service listening port |
| DB_HOST | string | localhost | MSSQL server host |
| PUPPETEER_EXECUTABLE | string | - | Chromium path for PDF generation |
Dependencies
No external service dependencies. BI reads directly from tenant databases.