Update database types to use ServiceDetail

This commit is contained in:
Fred Boniface 2024-04-21 23:04:11 +01:00
parent 0b4235ef2e
commit be062b17e4
2 changed files with 11 additions and 6 deletions

View File

@ -3,7 +3,7 @@ export { Corpus } from './src/database/corpus'
export { Pis } from './src/database/pis'
export { ReasonCode } from './src/database/reasonCode'
export { Station } from './src/database/station'
export { Service, Stop, SimpleService } from './src/database/timetable'
export { Service, Stop, SimpleService, ServiceDetail } from './src/database/timetable'
export { User } from './src/database/user'
// Downstream API

View File

@ -31,10 +31,15 @@ interface Service {
scheduleEndDate: Date;
daysRun: string[];
stops: Stop[];
vstp: boolean;
firstClass: boolean;
catering: boolean;
sleeper: boolean;
serviceDetail: ServiceDetail;
}
export { Stop, Service, SimpleService }
interface ServiceDetail {
firstClass: boolean;
catering: boolean;
sleeper: boolean;
vstp: boolean;
guard: boolean
}
export { Stop, Service, SimpleService, ServiceDetail }