diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-31 14:38:29 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-31 14:38:29 +0100 |
| commit | 5614fbc76c59a8c0bfe5cafc9af4805e43351c1c (patch) | |
| tree | ea6c627ea530849433ff48c5de0516d60c7fbe77 /src/frontend/app/api | |
| parent | fca243af88be3081dc036eaf50ea8f409ad9e9d0 (diff) | |
feat: Add vehicle information to arrival details and update related components
Diffstat (limited to 'src/frontend/app/api')
| -rw-r--r-- | src/frontend/app/api/schema.ts | 9 |
1 files changed, 9 insertions, 0 deletions
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({ |
