Fix timetable types

This commit is contained in:
Fred Boniface 2023-12-01 21:38:17 +00:00
parent 8409e28136
commit 0a60efae8b
4 changed files with 13 additions and 3 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 } from './src/database/timetable'
export { Service, Stop, SimpleService } from './src/database/timetable'
export { User } from './src/database/user'
// Downstream API

View File

@ -1,6 +1,6 @@
{
"name": "@owlboard/ts-types",
"version": "0.1.4",
"version": "0.1.6",
"description": "Declares Typescript types for the OwlBoard stack",
"main": "index.ts",
"scripts": {

View File

@ -7,6 +7,14 @@ interface Stop {
tiploc: string;
}
interface SimpleService {
stpIndicator: string;
trainUid: string;
operator: string;
stops: Stop[];
}
interface Service {
transactionType: string;
stpIndicator: string;
@ -19,6 +27,7 @@ interface Service {
scheduleEndDate: Date;
daysRun: string[];
stops: Stop[];
vstp: boolean;
}
export { Stop, Service }
export { Stop, Service, SimpleService }

View File

@ -12,6 +12,7 @@ export interface OB_TrainTT_service {
daysRun: string[];
stops: OB_TrainTT_stopDetail[];
pis?: OB_Pis_SimpleObject;
vstp: boolean;
}
export interface OB_TrainTT_stopDetail {