From a04de62634f62018ab0a64a6b635fd755daa6a70 Mon Sep 17 00:00:00 2001 From: Matthias Hochmeister Date: Sat, 28 Mar 2026 17:51:55 +0100 Subject: [PATCH] fix: repair mangled CreateVorlagePayload/UpdateVorlagePayload types after interval union edit --- frontend/src/types/checklist.types.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/frontend/src/types/checklist.types.ts b/frontend/src/types/checklist.types.ts index 14f3c09..b1fd531 100644 --- a/frontend/src/types/checklist.types.ts +++ b/frontend/src/types/checklist.types.ts @@ -33,7 +33,7 @@ export interface ChecklistVorlage { ausruestung_name?: string; ausruestung_typ_id?: number; ausruestung_typ?: string; - intervall?: 'weekly' | 'monthly' | 'yearly' | 'custom'; + intervall?: 'weekly' | 'monthly' | 'quarterly' | 'halfyearly' | 'yearly' | 'custom' | null; intervall_tage?: number; beschreibung?: string; aktiv: boolean; @@ -123,11 +123,17 @@ export interface ChecklistAusfuehrungFilter { export interface CreateVorlagePayload { name: string; - fahrzeug_typ_id?: number; - fahrzeug_id?: string; - ausruestung_typ_id?: number; - ausruestung_id?: string; - intervall?: 'weekly' | 'monthly' | 'quarterly' | 'halfyearly' | 'yearly' | 'custom'; + fahrzeug_typ_id?: number | null; + fahrzeug_id?: string | null; + ausruestung_typ_id?: number | null; + ausruestung_id?: string | null; + intervall?: 'weekly' | 'monthly' | 'quarterly' | 'halfyearly' | 'yearly' | 'custom' | null; + intervall_tage?: number | null; + beschreibung?: string | null; + aktiv?: boolean; +} + +export interface UpdateVorlagePayload { name?: string; fahrzeug_typ_id?: number | null; fahrzeug_id?: string | null;