This commit is contained in:
2025-12-17 23:12:53 +01:00
commit 5807d949ef
323 changed files with 34158 additions and 0 deletions

20
src/types/whisky.ts Normal file
View File

@@ -0,0 +1,20 @@
import { z } from 'zod';
export const BottleMetadataSchema = z.object({
name: z.string().nullable(),
distillery: z.string().nullable(),
category: z.string().nullable(),
abv: z.number().nullable(),
age: z.number().nullable(),
vintage: z.string().nullable(),
bottleCode: z.string().nullable(),
whiskybaseId: z.string().nullable(),
});
export type BottleMetadata = z.infer<typeof BottleMetadataSchema>;
export interface AnalysisResponse {
success: boolean;
data?: BottleMetadata;
error?: string;
}