mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 17:24:12 +00:00
Phase 3.0a - Scheduled Reports: - ReportSchedules Collection: Zeitplan-Verwaltung für automatische Reports - Frequenz: täglich, wöchentlich, monatlich - Formate: PDF, Excel (CSV), HTML E-Mail - Report-Typen: Übersicht, Sentiment, Response-Metriken, Content-Performance - Multiple Empfänger per E-Mail - Zeitzone-Support - ReportGeneratorService: Report-Generierung - Datensammlung aus community-interactions - HTML-Template für PDF und E-Mail - CSV-Export für Excel-kompatible Daten - Cron-Endpoint: /api/cron/send-reports (stündlich) - Prüft fällige Reports - Automatischer Versand per E-Mail - Status-Tracking und Fehlerbehandlung Phase 3.0b - Real-time Updates: - SSE Stream Endpoint: /api/community/stream - Server-Sent Events für Live-Updates - 5-Sekunden Polling-Intervall - Heartbeat für Verbindungserhalt - Automatische Reconnection - useRealtimeUpdates Hook: - React Hook für SSE-Konsum - Verbindungsstatus-Management - Update-Counter für Badges - Channel-Filterung Vercel Cron aktualisiert: - send-reports: stündlich (0 * * * *) Migrationen: - 20260116_120000_add_report_schedules Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
332 B
JSON
17 lines
332 B
JSON
{
|
|
"$schema": "https://openapi.vercel.sh/vercel.json",
|
|
"crons": [
|
|
{
|
|
"path": "/api/cron/community-sync",
|
|
"schedule": "*/15 * * * *"
|
|
},
|
|
{
|
|
"path": "/api/cron/token-refresh",
|
|
"schedule": "0 6,18 * * *"
|
|
},
|
|
{
|
|
"path": "/api/cron/send-reports",
|
|
"schedule": "0 * * * *"
|
|
}
|
|
]
|
|
}
|