45 lines
1.0 KiB
TypeScript
45 lines
1.0 KiB
TypeScript
interface Stop {
|
|
publicDeparture?: string | null;
|
|
wttDeparture?: string | null;
|
|
publicArrival?: string | null;
|
|
wttArrival?: string | null;
|
|
pass?: string | null;
|
|
platform?: string | null;
|
|
arrLine?: string | null;
|
|
depLine?: string | null;
|
|
isPublic: boolean;
|
|
tiploc: string;
|
|
}
|
|
|
|
interface SimpleService {
|
|
stpIndicator: string;
|
|
trainUid: string;
|
|
operator: string;
|
|
stops: Stop[];
|
|
}
|
|
|
|
|
|
interface Service {
|
|
transactionType: string;
|
|
stpIndicator: string;
|
|
operator: string;
|
|
trainUid: string;
|
|
headcode: string;
|
|
powerType: string;
|
|
planSpeed: string;
|
|
scheduleStartDate: Date;
|
|
scheduleEndDate: Date;
|
|
daysRun: string[];
|
|
stops: Stop[];
|
|
serviceDetail: ServiceDetail;
|
|
}
|
|
|
|
interface ServiceDetail {
|
|
firstClass: boolean;
|
|
catering: boolean;
|
|
sleeper: boolean;
|
|
vstp: boolean;
|
|
guard: boolean
|
|
}
|
|
|
|
export { Stop, Service, SimpleService, ServiceDetail } |