fix(GRO-1470): add portal PATCH /pets/:id + expand GET /pets response #40

Merged
The Dogfather merged 3 commits from flea-flicker/gro-1162-pet-buffer-time into dev 2026-05-21 20:16:53 +00:00
2 changed files with 17 additions and 4 deletions
Showing only changes of commit 85fc803548 - Show all commits
@@ -164,10 +164,10 @@ vi.mock("../db", async (importOriginal) => {
}),
pets,
appointments,
and: (...conds: unknown[]) => conds,
eq: (col: unknown, val: unknown) => ({ col, val }),
exists: (q: unknown) => q,
or: (...conds: unknown[]) => conds,
and: db.and,
eq: db.eq,
exists: db.exists,
or: db.or,
};
});
+13
View File
@@ -26,6 +26,19 @@ 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;