"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GtfsRunTripCacheDtoSchema = void 0;
const gtfsRunTripCacheDtoSchema = {
    $schema: "http://json-schema.org/draft-04/schema#",
    title: "IGtfsRunTripCacheDto",
    type: "object",
    properties: {
        schedule: {
            type: "array",
            items: {
                type: "object",
                properties: {
                    trip_id: { type: "string" },
                    service_id: { type: "string" },
                    direction_id: { oneOf: [{ type: "number" }, { type: "null", nullable: true }] },
                    shape_id: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
                    date: { type: "string" },
                    route_id: { type: "string" },
                    route_type: { type: "integer" },
                    route_short_name: { type: "string" },
                    origin_route_name: { type: "string" },
                    run_number: { type: "integer" },
                    is_regional: { type: "string" },
                    is_substitute_transport: { type: "string" },
                    is_night: { type: "string" },
                    trip_headsign: { type: "string" },
                    trip_short_name: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
                    block_id: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
                    exceptional: { type: "number" },
                    min_stop_time: {
                        type: "object",
                        properties: { hours: { type: "number" }, minutes: { type: "number", nullable: true } },
                        required: ["hours"],
                    },
                    max_stop_time: {
                        type: "object",
                        properties: { hours: { type: "number" }, minutes: { type: "number", nullable: true } },
                        required: ["hours"],
                    },
                    start_timestamp: { type: "string" },
                    end_timestamp: { type: "string" },
                    first_stop_id: { type: "string" },
                    last_stop_id: { type: "string" },
                    trip_number: { oneOf: [{ type: "number" }, { type: "null", nullable: true }] },
                    route_licence_number: { oneOf: [{ type: "number" }, { type: "null", nullable: true }] },
                    requiredTurnaroundSeconds: { type: "number", nullable: true },
                },
                required: [
                    "trip_id",
                    "service_id",
                    "date",
                    "route_id",
                    "route_type",
                    "route_short_name",
                    "origin_route_name",
                    "run_number",
                    "is_regional",
                    "is_substitute_transport",
                    "is_night",
                    "trip_headsign",
                    "block_id",
                    "exceptional",
                    "min_stop_time",
                    "max_stop_time",
                    "start_timestamp",
                    "end_timestamp",
                    "first_stop_id",
                    "last_stop_id",
                    "trip_number",
                    "route_licence_number",
                ],
            },
        },
    },
    required: ["schedule"],
};
exports.GtfsRunTripCacheDtoSchema = gtfsRunTripCacheDtoSchema;
//# sourceMappingURL=GtfsRunTripCacheDtoSchema.js.map