Portal-Synchronisation: unser System führt

- Connector-System (app/Channels, config/channels.php) mit iCal-Connector, robustem Parser und Export-Feed je Portal (ohne eigene Belegungen, ohne Gästedaten)
- Abgleich alle 5 Min. mit Protokoll, Echo-Erkennung, Konflikt-Mail bei möglicher Doppelbuchung
- Überwachung: Störungs-Mail, Status-Endpunkt /health/sync für n8n
- Portal-Aufgaben für Sofortbuchungsportale (FeWo-direkt): automatisch aus Buchungen/Sperren/anderen Portalen, Mail + Erinnerung, Abhaken im Admin
- Optionaler signierter Automatisierungs-Webhook mit Rückmeldung
- Herkunftsmessung: Abfrage im Formular + UTM-Parameter
- Portal-Analyse: AGB-Prüfung Automatisierung, Umsetzungsbeschreibung

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lars StommerandClaude Opus 5.5 committed 2026-10-22 11:13:55 +02:00
1 parent a8e72715ab
commit 0b7205e050
55 files changed
+2290 -3

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
<?php
use App\Channels\ICal\ICalConnector;
return [
/*
|--------------------------------------------------------------------------
| Channel connectors
|--------------------------------------------------------------------------
|
| Every portal is connected through a connector. New connectors (e.g. a
| channel manager API) implement App\Channels\Contracts\ChannelConnector
| and are registered here; they then appear in the admin automatically.
|
*/
'connectors' => [
ICalConnector::class,
],
/*
| Suffix of the UIDs in our own feeds. Events carrying it that come back
| from a portal are echoes of our own export and are ignored on import.
*/
'uid_suffix' => '@fewo-stommer',
];
+24
View File
@@ -46,4 +46,28 @@
*/
'guest_retention_years' => (int) env('FEWO_GUEST_RETENTION_YEARS', 10),
/*
|--------------------------------------------------------------------------
| Portal synchronisation
|--------------------------------------------------------------------------
*/
'channels' => [
// An import without success for this long triggers an alert.
'stale_after_minutes' => (int) env('FEWO_CHANNEL_STALE_AFTER_MINUTES', 60),
// Open manual blocking tasks are reminded after this time.
'task_reminder_after_minutes' => (int) env('FEWO_CHANNEL_TASK_REMINDER_AFTER_MINUTES', 120),
// Token for GET /health/sync (external monitoring, e.g. n8n). Empty = endpoint disabled.
'health_token' => env('FEWO_HEALTH_TOKEN'),
],
/*
| Optional external automation (e.g. a browser bot on a private server) that carries out
| manual blocking tasks. Tasks are POSTed signed with HMAC-SHA256 of the body.
*/
'automation' => [
'webhook_url' => env('FEWO_AUTOMATION_WEBHOOK_URL'),
'secret' => env('FEWO_AUTOMATION_SECRET'),
],
];