@golemio/pid
Version:
Golemio PID Module
69 lines • 2.57 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.jisInfotextsJsonSchema = void 0;
const InfotextSeverityLevelEnum_1 = require("../../../output-gateway/shared/constants/jis/InfotextSeverityLevelEnum");
exports.jisInfotextsJsonSchema = {
type: "array",
items: {
type: "object",
properties: {
id: { type: "string" },
severity_level: { type: "string", enum: Object.values(InfotextSeverityLevelEnum_1.InfotextSeverityLevel) },
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