Reuse service detail type from database in API
This commit is contained in:
parent
899450707a
commit
c4416f66af
@ -1,4 +1,5 @@
|
||||
import type { OB_Pis_SimpleObject } from "./pis";
|
||||
import type { ServiceDetail } from "../database/timetable";
|
||||
|
||||
export interface OB_TrainTT_service {
|
||||
stpIndicator: string;
|
||||
@ -12,15 +13,7 @@ export interface OB_TrainTT_service {
|
||||
daysRun: string[];
|
||||
stops: OB_TrainTT_stopDetail[];
|
||||
pis?: OB_Pis_SimpleObject;
|
||||
serviceDetail: OB_TrainTT_serviceDetail;
|
||||
}
|
||||
|
||||
export interface OB_TrainTT_serviceDetail {
|
||||
firstClass: boolean;
|
||||
catering: boolean;
|
||||
sleeper: boolean;
|
||||
vstp: boolean;
|
||||
guard: boolean;
|
||||
serviceDetail: ServiceDetail;
|
||||
}
|
||||
|
||||
export interface OB_TrainTT_stopDetail {
|
||||
|
Loading…
Reference in New Issue
Block a user