diff --git a/apps/api/src/types/index.ts b/apps/api/src/types/index.ts index ab23286..4f60f42 100644 --- a/apps/api/src/types/index.ts +++ b/apps/api/src/types/index.ts @@ -26,20 +26,6 @@ export interface Client { updatedAt: string; } -// ─── Medical Alerts ──────────────────────────────────────────────────────────── - -export type AlertSeverity = "low" | "medium" | "high"; - -export interface MedicalAlert { - type: string; - description: string; - severity: AlertSeverity; -} - -// ─── Pet Profile Summary ──────────────────────────────────────────────────── - -export type CoatType = "short" | "medium" | "long" | "double" | "wire" | "silky" | "curly" | "hairless"; - export interface Pet { id: string; clientId: string; @@ -56,16 +42,23 @@ export interface Pet { customFields: Record; photoKey?: string; photoUploadedAt?: string; - // Extended fields (GRO-1176/GRO-1178) - coatType?: CoatType | null; - preferredCuts?: string[]; - temperamentScore?: number | null; // 1–5, read-only (staff-set) - temperamentFlags?: string[]; // read-only (staff-set) + coatType?: string | null; + temperamentScore?: number | null; + temperamentFlags?: string[]; medicalAlerts?: MedicalAlert[]; + preferredCuts?: string[]; createdAt: string; updatedAt: string; } +export type MedicalAlertSeverity = "low" | "medium" | "high"; + +export interface MedicalAlert { + type: string; + description: string; + severity: MedicalAlertSeverity; +} + export interface GroomingVisitLog { id: string; petId: string;