mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
remove "optional" from entity type
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { ICoordinates, IEntityWithId, IEntityWithOptionalTimestamp } from "./SharedEntities";
|
import { ICoordinates, IEntityWithId, IEntityWithTimestamp } from "./SharedEntities";
|
||||||
|
|
||||||
export interface IParkingStructure extends IEntityWithOptionalTimestamp, IEntityWithId {
|
export interface IParkingStructure extends IEntityWithTimestamp, IEntityWithId {
|
||||||
address: string;
|
address: string;
|
||||||
capacity: number;
|
capacity: number;
|
||||||
spotsAvailable: number;
|
spotsAvailable: number;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export interface IEntityWithOptionalTimestamp {
|
export interface IEntityWithTimestamp {
|
||||||
updatedTimeMs: number;
|
updatedTimeMs: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
import { ICoordinates, IEntityWithId, IEntityWithOptionalTimestamp } from "./SharedEntities";
|
import { ICoordinates, IEntityWithId, IEntityWithTimestamp } from "./SharedEntities";
|
||||||
|
|
||||||
export interface IRoute extends IEntityWithId, IEntityWithOptionalTimestamp {
|
export interface IRoute extends IEntityWithId, IEntityWithTimestamp {
|
||||||
name: string;
|
name: string;
|
||||||
color: string;
|
color: string;
|
||||||
polylineCoordinates: ICoordinates[];
|
polylineCoordinates: ICoordinates[];
|
||||||
systemId: string;
|
systemId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IStop extends IEntityWithId, IEntityWithOptionalTimestamp {
|
export interface IStop extends IEntityWithId, IEntityWithTimestamp {
|
||||||
name: string;
|
name: string;
|
||||||
systemId: string;
|
systemId: string;
|
||||||
coordinates: ICoordinates;
|
coordinates: ICoordinates;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IShuttle extends IEntityWithId, IEntityWithOptionalTimestamp {
|
export interface IShuttle extends IEntityWithId, IEntityWithTimestamp {
|
||||||
coordinates: ICoordinates;
|
coordinates: ICoordinates;
|
||||||
name: string;
|
name: string;
|
||||||
routeId: string;
|
routeId: string;
|
||||||
@@ -21,14 +21,14 @@ export interface IShuttle extends IEntityWithId, IEntityWithOptionalTimestamp {
|
|||||||
orientationInDegrees: number;
|
orientationInDegrees: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IEta extends IEntityWithOptionalTimestamp {
|
export interface IEta extends IEntityWithTimestamp {
|
||||||
secondsRemaining: number;
|
secondsRemaining: number;
|
||||||
shuttleId: string;
|
shuttleId: string;
|
||||||
stopId: string;
|
stopId: string;
|
||||||
systemId: string;
|
systemId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IOrderedStop extends IEntityWithOptionalTimestamp {
|
export interface IOrderedStop extends IEntityWithTimestamp {
|
||||||
nextStop?: IOrderedStop;
|
nextStop?: IOrderedStop;
|
||||||
previousStop?: IOrderedStop;
|
previousStop?: IOrderedStop;
|
||||||
routeId: string;
|
routeId: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user