Fix timetable types
This commit is contained in:
parent
8409e28136
commit
0a60efae8b
2
index.ts
2
index.ts
|
@ -3,7 +3,7 @@ export { Corpus } from './src/database/corpus'
|
||||||
export { Pis } from './src/database/pis'
|
export { Pis } from './src/database/pis'
|
||||||
export { ReasonCode } from './src/database/reasonCode'
|
export { ReasonCode } from './src/database/reasonCode'
|
||||||
export { Station } from './src/database/station'
|
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'
|
export { User } from './src/database/user'
|
||||||
|
|
||||||
// Downstream API
|
// Downstream API
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@owlboard/ts-types",
|
"name": "@owlboard/ts-types",
|
||||||
"version": "0.1.4",
|
"version": "0.1.6",
|
||||||
"description": "Declares Typescript types for the OwlBoard stack",
|
"description": "Declares Typescript types for the OwlBoard stack",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -7,6 +7,14 @@ interface Stop {
|
||||||
tiploc: string;
|
tiploc: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface SimpleService {
|
||||||
|
stpIndicator: string;
|
||||||
|
trainUid: string;
|
||||||
|
operator: string;
|
||||||
|
stops: Stop[];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
interface Service {
|
interface Service {
|
||||||
transactionType: string;
|
transactionType: string;
|
||||||
stpIndicator: string;
|
stpIndicator: string;
|
||||||
|
@ -19,6 +27,7 @@ interface Service {
|
||||||
scheduleEndDate: Date;
|
scheduleEndDate: Date;
|
||||||
daysRun: string[];
|
daysRun: string[];
|
||||||
stops: Stop[];
|
stops: Stop[];
|
||||||
|
vstp: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export { Stop, Service }
|
export { Stop, Service, SimpleService }
|
|
@ -12,6 +12,7 @@ export interface OB_TrainTT_service {
|
||||||
daysRun: string[];
|
daysRun: string[];
|
||||||
stops: OB_TrainTT_stopDetail[];
|
stops: OB_TrainTT_stopDetail[];
|
||||||
pis?: OB_Pis_SimpleObject;
|
pis?: OB_Pis_SimpleObject;
|
||||||
|
vstp: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OB_TrainTT_stopDetail {
|
export interface OB_TrainTT_stopDetail {
|
||||||
|
|
Loading…
Reference in New Issue