Add exports
This commit is contained in:
10
src/database/corpus.ts
Normal file
10
src/database/corpus.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
interface Corpus {
|
||||
NLC: number;
|
||||
NLCDESC: string;
|
||||
NLCDESC16?: string | null;
|
||||
STANOX?: string | null;
|
||||
TIPLOC?: string | null;
|
||||
UIC?: string | null;
|
||||
}
|
||||
|
||||
export { Corpus }
|
||||
8
src/database/pis.ts
Normal file
8
src/database/pis.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
interface Pis {
|
||||
code: string;
|
||||
stops: string[];
|
||||
tiplocs: string[];
|
||||
operator: string;
|
||||
}
|
||||
|
||||
export { Pis }
|
||||
7
src/database/reasonCode.ts
Normal file
7
src/database/reasonCode.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
interface ReasonCode {
|
||||
code: string;
|
||||
lateReason: string;
|
||||
cancReason: string;
|
||||
}
|
||||
|
||||
export { ReasonCode }
|
||||
8
src/database/station.ts
Normal file
8
src/database/station.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
interface Station {
|
||||
STANOX: string;
|
||||
TIPLOC: string;
|
||||
"3ALPHA": string;
|
||||
NLCDESC: string;
|
||||
}
|
||||
|
||||
export { Station }
|
||||
24
src/database/timetable.ts
Normal file
24
src/database/timetable.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
interface Stop {
|
||||
publicDeparture?: string | null;
|
||||
wttDeparture?: string | null;
|
||||
publicArrival?: string | null;
|
||||
wttArrival?: string | null;
|
||||
isPublic: boolean;
|
||||
tiploc: string;
|
||||
}
|
||||
|
||||
interface Service {
|
||||
transactionType: string;
|
||||
stpIndicator: string;
|
||||
operator: string;
|
||||
trainUid: string;
|
||||
headcode: string;
|
||||
powerType: string;
|
||||
planSpeed: string;
|
||||
scheduleStartDate: Date;
|
||||
scheduleEndDate: Date;
|
||||
daysRun: string[];
|
||||
stops: Stop[];
|
||||
}
|
||||
|
||||
export { Stop, Service }
|
||||
7
src/database/user.ts
Normal file
7
src/database/user.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
interface User {
|
||||
uuid: string;
|
||||
domain: string;
|
||||
atime: Date;
|
||||
}
|
||||
|
||||
export { User }
|
||||
@@ -1,5 +1,10 @@
|
||||
// Database
|
||||
export { Stop } from './database/timetable'
|
||||
export { Corpus } from './database/corpus'
|
||||
export { Pis } from './database/pis'
|
||||
export { ReasonCode } from './database/reasonCode'
|
||||
export { Station } from './database/station'
|
||||
export { Service, Stop } from './database/timetable'
|
||||
export { User } from './database/user'
|
||||
|
||||
// Downstream API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user