export enum CustomerProjectStatus { PLANNED = 'PLANNED', IN_PROGRESS = 'IN_PROGRESS', COMPLETED = 'COMPLETED', ON_HOLD = 'ON_HOLD', CANCELLED = 'CANCELLED' } export interface CustomerProject { id: string; customerId: string; name: string; description: string; status: CustomerProjectStatus; notes?: { text: string; createdBy: number; updatedBy: number; createdAt: string; updatedAt: string; }[]; startDate: string; endDate: string; createdBy: number; lastModifier: string; updatedBy: number; createdAt: string; updatedAt: string; } export function getStatusText(status: CustomerProjectStatus): string { const translations = { [CustomerProjectStatus.PLANNED]: 'Geplant', [CustomerProjectStatus.IN_PROGRESS]: 'In Bearbeitung', [CustomerProjectStatus.COMPLETED]: 'Abgeschlossen', [CustomerProjectStatus.ON_HOLD]: 'Pausiert', [CustomerProjectStatus.CANCELLED]: 'Abgebrochen' }; return translations[status]; }