diff --git a/index.ts b/index.ts index a8c8074..6f45e10 100644 --- a/index.ts +++ b/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 } from './src/database/timetable' +export { Service, Stop, SimpleService } from './src/database/timetable' export { User } from './src/database/user' // Downstream API diff --git a/package.json b/package.json index 5142e66..87e8b99 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/database/timetable.ts b/src/database/timetable.ts index f3d11a6..eae708e 100644 --- a/src/database/timetable.ts +++ b/src/database/timetable.ts @@ -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 } \ No newline at end of file +export { Stop, Service, SimpleService } \ No newline at end of file diff --git a/src/owlboardApi/trainTimetable.ts b/src/owlboardApi/trainTimetable.ts index 6e59e83..09a9eff 100644 --- a/src/owlboardApi/trainTimetable.ts +++ b/src/owlboardApi/trainTimetable.ts @@ -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 {