GRO-1326: Extend seed.ts — UAT email+password credentials #23

Merged
The Dogfather merged 7 commits from flea-flicker/uat-email-password-seed into dev 2026-05-20 04:24:21 +00:00
2 changed files with 13 additions and 25 deletions
Showing only changes of commit 9ccbc7a171 - Show all commits
+1 -5
View File
@@ -102,11 +102,7 @@ export function buildPet(overrides: Partial<PetRow> & { clientId: string }): Pet
customFields: {}, customFields: {},
photoKey: null, photoKey: null,
photoUploadedAt: null, photoUploadedAt: null,
coatType: null, image: null,
temperamentScore: null,
temperamentFlags: [],
medicalAlerts: [],
preferredCuts: [],
createdAt: new Date("2025-01-01T00:00:00Z"), createdAt: new Date("2025-01-01T00:00:00Z"),
updatedAt: new Date("2025-01-01T00:00:00Z"), updatedAt: new Date("2025-01-01T00:00:00Z"),
}; };
+12 -20
View File
@@ -26,21 +26,6 @@ export interface Client {
updatedAt: string; 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 { export interface Pet {
id: string; id: string;
clientId: string; clientId: string;
@@ -57,16 +42,23 @@ export interface Pet {
customFields: Record<string, string>; customFields: Record<string, string>;
photoKey?: string; photoKey?: string;
photoUploadedAt?: string; photoUploadedAt?: string;
// Extended fields (GRO-1176/GRO-1178) coatType?: string | null;
coatType?: CoatType | null; temperamentScore?: number | null;
preferredCuts?: string[]; temperamentFlags?: string[];
temperamentScore?: number | null; // 15, read-only (staff-set)
temperamentFlags?: string[]; // read-only (staff-set)
medicalAlerts?: MedicalAlert[]; medicalAlerts?: MedicalAlert[];
preferredCuts?: string[];
createdAt: string; createdAt: string;
updatedAt: string; updatedAt: string;
} }
export type MedicalAlertSeverity = "low" | "medium" | "high";
export interface MedicalAlert {
type: string;
description: string;
severity: MedicalAlertSeverity;
}
export interface GroomingVisitLog { export interface GroomingVisitLog {
id: string; id: string;
petId: string; petId: string;