aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/api/schema.ts
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-28 15:59:32 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-28 15:59:50 +0100
commit4fb2fe683b75464917dec4b1a0aaee63830f3b9a (patch)
tree40b48d9717061db2bc3434b5db085eeeaae6cd76 /src/frontend/app/api/schema.ts
parent1fd17d4d07d25a810816e4e38ddc31ae72b8c91a (diff)
feat: Refactor NavBar and Planner components; update geocoding services
- Removed unused Navigation2 icon from NavBar. - Updated usePlanner hook to manage route history and improve local storage handling. - Enhanced PlannerApi with new fare properties and improved itinerary handling. - Added recent routes feature in StopList with navigation to planner. - Implemented NominatimGeocodingService for autocomplete and reverse geocoding. - Updated UI components for better user experience and accessibility. - Added translations for recent routes in multiple languages. - Improved CSS styles for map controls and overall layout.
Diffstat (limited to 'src/frontend/app/api/schema.ts')
-rw-r--r--src/frontend/app/api/schema.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frontend/app/api/schema.ts b/src/frontend/app/api/schema.ts
index bb2fbcc..63f4368 100644
--- a/src/frontend/app/api/schema.ts
+++ b/src/frontend/app/api/schema.ts
@@ -163,8 +163,10 @@ export const ItinerarySchema = z.object({
transitTimeSeconds: z.number(),
waitingTimeSeconds: z.number(),
legs: z.array(PlannerLegSchema),
- cashFareEuro: z.number().optional().nullable(),
- cardFareEuro: z.number().optional().nullable(),
+ cashFare: z.number().optional().nullable(),
+ cashFareIsTotal: z.boolean().optional().nullable(),
+ cardFare: z.number().optional().nullable(),
+ cardFareIsTotal: z.boolean().optional().nullable(),
});
export const RoutePlanSchema = z.object({