UNPKG

@golemio/pid

Version:
97 lines 4.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DelayComputationDtoSchema = void 0; const delayComputationDtoSchema = { $schema: "http://json-schema.org/draft-04/schema#", title: "DelayComputationDtoSchema", type: "object", properties: { trip_id: { type: "string" }, stop_times: { type: "array", items: { type: "object", properties: { arrival_time: { type: "string" }, departure_time: { type: "string" }, shape_dist_traveled: { type: "number" }, stop_headsign: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] }, stop_id: { type: "string" }, stop_sequence: { type: "integer" }, arrival_time_seconds: { type: "integer" }, departure_time_seconds: { type: "integer" }, is_no_stop_waypoint: { type: "boolean" }, stop: { type: "object", properties: { stop_id: { type: "string" }, stop_lat: { type: "number" }, stop_lon: { type: "number" }, stop_name: { type: "string" }, zone_id: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] }, wheelchair_boarding: { oneOf: [{ type: "integer" }, { type: "null", nullable: true }] }, }, required: ["stop_id", "stop_lat", "stop_lon", "stop_name", "zone_id", "wheelchair_boarding"], }, }, required: [ "arrival_time", "departure_time", "shape_dist_traveled", "stop_id", "stop_sequence", "arrival_time_seconds", "departure_time_seconds", ], }, }, shapes_anchor_points: { type: "array", items: { type: "object", properties: { index: { type: "integer" }, at_stop: { type: "boolean" }, bearing: { type: "number" }, coordinates: { type: "array", items: { type: "number" } }, distance_from_last_stop: { type: "number" }, last_stop_sequence: { type: "integer" }, next_stop_sequence: { type: "integer" }, shape_dist_traveled: { type: "number" }, this_stop_sequence: { oneOf: [{ type: "integer" }, { type: "null", nullable: true }] }, time_scheduled_seconds: { type: "number" }, }, required: [ "index", "at_stop", "bearing", "coordinates", "distance_from_last_stop", "last_stop_sequence", "next_stop_sequence", "shape_dist_traveled", "time_scheduled_seconds", ], }, }, shapes: { type: "array", items: { type: "object", properties: { dist: { type: "number" }, coords: { type: "array", items: [{ type: "number" }, { type: "number" }], maxItems: 2, minItems: 2, }, }, required: ["dist", "coords"], }, }, }, required: ["trip_id", "stop_times", "shapes_anchor_points", "shapes"], }; exports.DelayComputationDtoSchema = delayComputationDtoSchema; //# sourceMappingURL=DelayComputationDtoSchema.js.map