@golemio/pid
Version:
Golemio PID Module
45 lines (44 loc) • 1.35 kB
TypeScript
import { IJISTranslationText } from "../../../schema-definitions/jis/datasources/interfaces";
import { JISInfotextsModel } from "../../../schema-definitions/jis/models/JISInfotextsModel";
import { InfotextDisplayType } from "./InfotextDisplayTypeEnum";
import { InfotextPriority } from "./InfotextPriorityEnum";
export interface IInfotextDepartureInputDto {
data: JISInfotextsModel;
timeZone: string;
}
export interface IInfotextStopDto {
id: string;
name: string;
platform_code: string | null;
}
export interface IInfotextDepartureOutputDto {
display_type: InfotextDisplayType;
text: string;
text_en: string | null;
related_stops: string[];
valid_from: string;
valid_to: string | null;
}
export interface IInfotextTransferOutputDto {
display_type: InfotextDisplayType;
text: string;
text_en: string | null;
}
export interface IV4InfotextTransferOutputDto {
display_type: InfotextDisplayType;
text: IJISTranslationText;
}
export interface IInfotextOverviewOutputDto {
id: string;
priority: InfotextPriority;
display_type: InfotextDisplayType;
text: string;
text_en: string | null;
related_stops: IInfotextStopDto[];
valid_from: string;
valid_to: string | null;
repeat: {
time_start: string | null;
time_end: string | null;
};
}