types: incoming_leg_transport_mode on assignment schema + rows

This commit is contained in:
Ida Rogalska
2026-08-11 18:51:34 +02:00
committed by Maurice
parent a17bfdb1a1
commit bb6b946868
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -111,6 +111,7 @@ export interface DayAssignment {
assignment_time?: string | null;
assignment_end_time?: string | null;
leg_transport_mode?: string | null;
incoming_leg_transport_mode?: string | null;
created_at?: string;
}
@@ -43,6 +43,10 @@ export const assignmentSchema = z.object({
// Per-segment travel mode (#1281): the transport mode of the leg LEAVING this
// stop for the next one. null = inherit the day's default_transport_mode.
leg_transport_mode: z.string().nullable().optional(),
// Per-segment travel mode of the leg ENTERING this stop when its origin is
// not a place (booking arrival / morning hotel). null = inherit the day default.
// Inert when the previous timeline element is a place.
incoming_leg_transport_mode: z.string().nullable().optional(),
participants: z.array(assignmentParticipantSchema).optional(),
created_at: z.string().optional(),
place: assignmentPlaceSchema,