Add database types
This commit is contained in:
parent
55fa0d7607
commit
fd92f859fd
|
@ -21,6 +21,10 @@ module.exports = {
|
||||||
"ecmaVersion": "latest",
|
"ecmaVersion": "latest",
|
||||||
"sourceType": "module"
|
"sourceType": "module"
|
||||||
},
|
},
|
||||||
|
"files": [
|
||||||
|
"./**/*"
|
||||||
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"indent": ["error", 4]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"eslint.format.enable": true,
|
||||||
|
"eslint.lintTask.enable": true,
|
||||||
|
"eslint.onIgnoredFiles": "warn"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
interface Corpus {
|
||||||
|
NLC: number;
|
||||||
|
NLCDESC: string;
|
||||||
|
NLCDESC16?: string | null;
|
||||||
|
STANOX?: string | null;
|
||||||
|
TIPLOC?: string | null;
|
||||||
|
UIC?: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export { Corpus }
|
|
@ -0,0 +1,8 @@
|
||||||
|
interface Pis {
|
||||||
|
code: string;
|
||||||
|
stops: string[];
|
||||||
|
tiplocs: string[];
|
||||||
|
operator: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export { Pis }
|
|
@ -0,0 +1,7 @@
|
||||||
|
interface ReasonCode {
|
||||||
|
code: string;
|
||||||
|
lateReason: string;
|
||||||
|
cancReason: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export { ReasonCode }
|
|
@ -0,0 +1,8 @@
|
||||||
|
interface Station {
|
||||||
|
STANOX: string;
|
||||||
|
TIPLOC: string;
|
||||||
|
"3ALPHA": string;
|
||||||
|
NLCDESC: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export { Station }
|
|
@ -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 }
|
|
@ -0,0 +1,7 @@
|
||||||
|
interface User {
|
||||||
|
uuid: string;
|
||||||
|
domain: string;
|
||||||
|
atime: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
export { User }
|
|
@ -1,6 +0,0 @@
|
||||||
interface Stop {
|
|
||||||
isPublic: boolean,
|
|
||||||
tiploc: string,
|
|
||||||
}
|
|
||||||
|
|
||||||
export { Stop }
|
|
|
@ -1 +0,0 @@
|
||||||
import { Stop } from "./database/timetable"
|
|
|
@ -55,7 +55,7 @@
|
||||||
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
||||||
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
||||||
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
||||||
// "outDir": "./", /* Specify an output folder for all emitted files. */
|
"outDir": "./dist", /* Specify an output folder for all emitted files. */
|
||||||
// "removeComments": true, /* Disable emitting comments. */
|
// "removeComments": true, /* Disable emitting comments. */
|
||||||
// "noEmit": true, /* Disable emitting files from a compilation. */
|
// "noEmit": true, /* Disable emitting files from a compilation. */
|
||||||
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
||||||
|
|
Loading…
Reference in New Issue