UNPKG

@golemio/pid

Version:
97 lines 3.73 kB
"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"], }, repeat: { nullable: true, oneOf: [ { type: "null", nullable: true }, { type: "object", properties: { enabled: { type: "boolean" }, time_start: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] }, time_end: { oneOf: [{ type: "string" }, { type: "null", nullable: true }] }, }, required: ["enabled"], additionalProperties: false, }, ], }, informed_entity: { type: "object", nullable: true, properties: { stops: { type: "array", nullable: true, items: { type: "object", properties: { id: { type: "string" }, }, additionalProperties: false, required: ["id"], }, }, presets: { type: "array", nullable: true, items: { type: "object", properties: { route_name: { type: "string" }, }, additionalProperties: false, required: ["route_name"], }, }, }, 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