import type { LotDetailView, LotView, MedicineSuggestion, MedicineView } from "./types"; export function medicine(overrides: Partial = {}): MedicineView { return { id: "m1", name: "Apivar", activeIngredient: "Amitraz", authorisationNumber: null, prescriptionOnly: false, withdrawalPeriodDays: 0, unit: "PIECE", dosePerColony: null, doseNote: null, applicationMethod: null, minTemperatureC: null, maxTemperatureC: null, defaultSupplier: null, notes: null, active: true, createdAt: "2026-01-01T00:00:00.000Z", updatedAt: "2026-01-01T00:00:00.000Z", totalRemaining: 12, nextExpiry: "2028-01-31", lotCount: 1, ...overrides, }; } export function lot(overrides: Partial = {}): LotView { return { id: "l1", medicineId: "m1", medicineName: "Apivar", unit: "PIECE", batchNumber: "CH-42", purchasedOn: "2026-08-01", quantity: 20, remaining: 12, expiresOn: "2028-01-31", supplier: "Tierarzt Muster", purchaseProof: "Rechnung 4711", prescribingVet: null, notes: null, movementCount: 1, ...overrides, }; } export function lotDetail(overrides: Partial = {}): LotDetailView { return { ...lot(), movements: [ { id: "mv1", type: "TREATMENT", quantity: -8, treatmentId: "t1", reason: null, userId: "u1", createdAt: "2026-08-10T08:00:00.000Z", }, ], ...overrides, }; } export function suggestion(overrides: Partial = {}): MedicineSuggestion { return { name: "Thymovar", treatmentCount: 3, latest: { activeIngredient: "Thymol", withdrawalPeriodDays: 7, method: "Streifen", amount: "2 Stück", }, ...overrides, }; }