Reuse service detail type from database in API

This commit is contained in:
Fred Boniface 2024-04-21 23:06:08 +01:00
parent 899450707a
commit c4416f66af

View File

@ -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 {