Add LDB and API Types
This commit is contained in:
5
src/owlboardApi/apiResponse.ts
Normal file
5
src/owlboardApi/apiResponse.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface ApiResponse<T> {
|
||||
obStatus: number,
|
||||
obMsg: string,
|
||||
data?: T
|
||||
}
|
||||
42
src/owlboardApi/staffLdb.ts
Normal file
42
src/owlboardApi/staffLdb.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
export interface StaffLdb {
|
||||
generatedAt: Date;
|
||||
locationName: string;
|
||||
stationManagerCode: string;
|
||||
nrccMessages: NrccMessage[];
|
||||
trainServices: TrainServices[];
|
||||
}
|
||||
|
||||
export interface NrccMessage {
|
||||
severity: string;
|
||||
xhtmlMessage: string;
|
||||
}
|
||||
|
||||
export interface TrainServices {
|
||||
rid: string;
|
||||
uid: string;
|
||||
trainid: string;
|
||||
operatorCode: string;
|
||||
isPassengerService?: string;
|
||||
platform?: string;
|
||||
platformIsHidden?: string;
|
||||
serviceIsSupressed?: string;
|
||||
origin: ServiceLocation[];
|
||||
destination: ServiceLocation[];
|
||||
isCancelled: string;
|
||||
cancelReason?: string;
|
||||
delayReason?: string;
|
||||
arrivalType?: string;
|
||||
departureType?: string;
|
||||
sta?: Date;
|
||||
eta?: Date;
|
||||
ata?: Date;
|
||||
std?: Date;
|
||||
etd?: Date;
|
||||
atd?: Date;
|
||||
|
||||
}
|
||||
|
||||
export interface ServiceLocation {
|
||||
tiploc: string;
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user