diff --git a/apps/api/src/types/index.ts b/apps/api/src/types/index.ts index 4f60f42..664e5da 100644 --- a/apps/api/src/types/index.ts +++ b/apps/api/src/types/index.ts @@ -26,6 +26,21 @@ export interface Client { updatedAt: string; } +// ─── Medical Alerts ──────────────────────────────────────────────────────────── + +export type AlertSeverity = "low" | "medium" | "high"; + +export interface MedicalAlert { + id: string; + 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; @@ -42,23 +57,16 @@ export interface Pet { customFields: Record; photoKey?: string; photoUploadedAt?: string; - coatType?: string | null; - temperamentScore?: number | null; - temperamentFlags?: string[]; - medicalAlerts?: MedicalAlert[]; + // 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) + medicalAlerts?: MedicalAlert[]; 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;