Update database types to use ServiceDetail
This commit is contained in:
parent
0b4235ef2e
commit
be062b17e4
2
index.ts
2
index.ts
@ -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
|
||||
|
@ -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 }
|
Loading…
Reference in New Issue
Block a user