Appearance
@grabm/abm / Variable: tripSchema
ts
const tripSchema: ZodObject<{
activityId: ZodString;
actualMinutes: ZodNullable<ZodNumber>;
agentId: ZodString;
arrivalMinute: ZodNullable<ZodNumber>;
caregiverAgentId: ZodOptional<ZodString>;
cause: ZodEnum<{
anchor: "anchor";
break-outbound: "break-outbound";
break-return: "break-return";
discretionary: "discretionary";
gateway-entry: "gateway-entry";
gateway-exit: "gateway-exit";
home-return: "home-return";
}>;
conditionedJourney: ZodOptional<ZodObject<{
id: ZodString;
initialObservation: ZodOptional<ZodLiteral<true>>;
scope: ZodEnum<{
entry: "entry";
exit: "exit";
internal: "internal";
through: "through";
}>;
sourcePrimaryMode: ZodOptional<ZodString>;
sourcePurpose: ZodOptional<ZodString>;
sourceRevisionId: ZodString;
vehicleContribution: ZodEnum<{
not-applicable: "not-applicable";
source-driver: "source-driver";
source-passenger-unknown: "source-passenger-unknown";
}>;
}, $strict>>;
departureMinute: ZodNumber;
destinationFacilityId: ZodString;
driverAgentId: ZodOptional<ZodString>;
dwellEndMinute: ZodNullable<ZodNumber>;
freeFlowMinutes: ZodNumber;
interruptedAtMinute: ZodOptional<ZodNumber>;
interruptionReason: ZodOptional<ZodEnum<{
presence-exit: "presence-exit";
run-horizon: "run-horizon";
}>>;
journeyId: ZodOptional<ZodString>;
mode: ZodString;
originFacilityId: ZodString;
outcome: ZodEnum<{
cancelled: "cancelled";
capacity-rejected: "capacity-rejected";
completed: "completed";
unreachable: "unreachable";
}>;
scheduleItemId: ZodNullable<ZodString>;
transitLegs: ZodOptional<ZodArray<ZodObject<{
arrivalMinute: ZodNumber;
continuation: ZodOptional<ZodBoolean>;
departureMinute: ZodNumber;
edgeIds: ZodArray<ZodString>;
journeyId: ZodOptional<ZodString>;
mode: ZodEnum<{
ride: "ride";
wait: "wait";
walk: "walk";
}>;
nodeIds: ZodArray<ZodString>;
onboard: ZodOptional<ZodBoolean>;
routeId: ZodOptional<ZodString>;
}, $strict>>>;
traversals: ZodArray<ZodObject<{
completed: ZodDefault<ZodBoolean>;
edgeId: ZodString;
enterMinute: ZodNumber;
exitMinute: ZodNumber;
freeFlowMinutes: ZodOptional<ZodNumber>;
fromNodeId: ZodString;
mode: ZodOptional<ZodString>;
plannedExitMinute: ZodOptional<ZodNumber>;
toNodeId: ZodString;
}, $strict>>;
vehicleId: ZodOptional<ZodString>;
vehicleMovement: ZodOptional<ZodBoolean>;
}, $strict>;