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;