/** * @fileoverview Zentrale TypeScript-Definitionen der Website * * Diese Datei enthält die zentralen TypeScript-Schnittstellen für alle Datenstrukturen * der Anwendung, einschließlich Beiträge, Kalenderereignisse und Downloads. */ /** * Metadaten eines Beitrags * @interface PostMetadata * @property {string} id - Eindeutige ID des Beitrags * @property {string} title - Titel des Beitrags * @property {string} author - Name des Autors * @property {Date} createdAt - Erstellungsdatum * @property {Date} updatedAt - Letztes Änderungsdatum * @property {boolean} published - Gibt an, ob der Beitrag veröffentlicht ist * @property {string} [excerpt] - Kurzbeschreibung des Beitrags * @property {string} [plainText] - Reiner Textinhalt (ohne Markdown) */ export interface PostMetadata { id: string; title: string; author: string; createdAt: Date; updatedAt: Date; published: boolean; excerpt?: string; plainText?: string; } /** * Ein Kalenderereignis * @interface CalendarEvent * @property {string} id - Eindeutige ID des Ereignisses * @property {string} title - Titel des Ereignisses * @property {string|null} description - Detailierte Beschreibung des Ereignisses * @property {string|null} location - Ort des Ereignisses * @property {string} start - Startzeitpunkt (ISO-Format) * @property {string} end - Endzeitpunkt (ISO-Format) * @property {boolean} allDay - Gibt an, ob das Ereignis den ganzen Tag dauert * @property {string} timeZone - Zeitzone des Ereignisses (z.B. "Europe/Berlin") */ export interface CalendarEvent { id: string; title: string; description: string | null; location: string | null; start: string; end: string; allDay: boolean; timeZone: string; special: boolean; } /** * Ein Download-Objekt für Dokumente und Dateien * @interface Download * @property {string} name - Dateiname * @property {string} description - Kurzbeschreibung der Datei * @property {string} download_url - URL zum Herunterladen der Datei */ export interface Download { name: string; description: string; download_url: string; }