From 5614fbc76c59a8c0bfe5cafc9af4805e43351c1c Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Wed, 31 Dec 2025 14:38:29 +0100 Subject: feat: Add vehicle information to arrival details and update related components --- src/frontend/app/api/schema.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/frontend/app/api/schema.ts') diff --git a/src/frontend/app/api/schema.ts b/src/frontend/app/api/schema.ts index 95c7b6f..d9aec89 100644 --- a/src/frontend/app/api/schema.ts +++ b/src/frontend/app/api/schema.ts @@ -40,6 +40,14 @@ export const PositionSchema = z.object({ shapeIndex: z.number(), }); +export const VehicleInformationSchema = z.object({ + identifier: z.string(), + make: z.string().optional().nullable(), + model: z.string().optional().nullable(), + kind: z.string().optional().nullable(), + year: z.string().optional().nullable(), +}); + export const ArrivalSchema = z.object({ tripId: z.string(), route: RouteInfoSchema, @@ -50,6 +58,7 @@ export const ArrivalSchema = z.object({ shape: z.any().optional().nullable(), currentPosition: PositionSchema.optional().nullable(), stopShapeIndex: z.number().optional().nullable(), + vehicleInformation: VehicleInformationSchema.optional().nullable(), }); export const StopArrivalsResponseSchema = z.object({ -- cgit v1.3