"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.jisInfotextsJsonSchema = void 0;
const JISInfotextSeverityLevelEnum_1 = require("../../../helpers/jis/JISInfotextSeverityLevelEnum");
exports.jisInfotextsJsonSchema = {
    type: "array",
    items: {
        type: "object",
        properties: {
            id: { type: "string" },
            severity_level: { type: "string", enum: Object.values(JISInfotextSeverityLevelEnum_1.JISInfotextSeverityLevel) },
            display_type: { type: "string", enum: ["GENERAL", "INLINE"] },
            active_period: {
                type: "object",
                properties: {
                    start: { type: "string", format: "date-time" },
                    end: {
                        oneOf: [
                            { type: "string", format: "date-time" },
                            { type: "null", nullable: true },
                        ],
                    },
                },
                additionalProperties: false,
                required: ["start"],
            },
            description_text: {
                type: "object",
                properties: {
                    cs: { type: "string" },
                    en: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] },
                },
                additionalProperties: false,
                required: ["cs"],
            },
            informed_entity: {
                type: "object",
                nullable: true,
                properties: {
                    stops: {
                        type: "array",
                        nullable: true,
                        items: {
                            type: "object",
                            properties: {
                                id: { type: "string" },
                            },
                            additionalProperties: false,
                            required: ["id"],
                        },
                    },
                },
                additionalProperties: false,
            },
            created_timestamp: { type: "string", format: "date-time" },
            last_modified_timestamp: { type: "string", format: "date-time" },
        },
        required: [
            "id",
            "severity_level",
            "display_type",
            "active_period",
            "description_text",
            "created_timestamp",
            "last_modified_timestamp",
        ],
    },
};
//# sourceMappingURL=JISInfotextsJsonSchema.js.map