UNPKG

@golemio/pid

Version:
35 lines (34 loc) 1.23 kB
import { IJISTranslationTextNullable } from "../../../schema-definitions/jis/datasources/interfaces/IJISTranslationTextNullable"; import { IJISTranslationText } from "../../../schema-definitions/jis/models/interfaces"; import { RouteDto } from "../../../schema-definitions/ropid-gtfs/models/RouteDto"; export interface IJISEventCustomFormatDto { id: string; type: string; header_text: IJISTranslationText; cause: IJISTranslationText; cause_detail: IJISTranslationTextNullable; severity_level: string; active_period: { start: string; end?: string | null; }; display_period: { start: string; end?: string | null; }; effects: IJISTranslationText[]; description_text: IJISTranslationText; description_html: IJISTranslationText; organization_name: string; informed_entity?: { routes?: Array<{ id: string; route_short_name: string; route_long_name: string; route_type: number; }>; } | null; last_modified_timestamp: string; created_timestamp: string; } export type IJISEventRouteDto = Pick<RouteDto, "route_long_name" | "route_short_name" | "route_type" | "route_id">;