import type { AuftragsArt, AuftragsStatus, GastTyp, PhasenStatus } from "@/generated/prisma/enums"; /** Was die API über einen Auftrag herausgibt – geteilt von Server, Web-GUI und (als JSON) CLI. */ export type AuftragSicht = { id: string; kurzId: string; art: AuftragsArt; status: AuftragsStatus; kopf: string; server: { name: string; titel: string }; knoten: string | null; gastTyp: GastTyp | null; vmid: number | null; name: string | null; distributionId: string | null; profile: string[]; ergebnis: unknown; fehler: unknown; erstelltVon: string; erstelltAm: string; gestartetAm: string | null; beendetAm: string | null; phasen: Array<{ schluessel: string; titel: string; status: PhasenStatus; detail: string | null; ursache: string | null; hinweis: string | null; gestartetAm: string | null; beendetAm: string | null; }>; }; export type LogZeile = { id: string; zeit: string; stufe: string; phase: string | null; nachricht: string };