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;
|
||||
capacity: number;
|
||||
spotsAvailable: number;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export interface IEntityWithOptionalTimestamp {
|
||||
export interface IEntityWithTimestamp {
|
||||
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;
|
||||
color: string;
|
||||
polylineCoordinates: ICoordinates[];
|
||||
systemId: string;
|
||||
}
|
||||
|
||||
export interface IStop extends IEntityWithId, IEntityWithOptionalTimestamp {
|
||||
export interface IStop extends IEntityWithId, IEntityWithTimestamp {
|
||||
name: string;
|
||||
systemId: string;
|
||||
coordinates: ICoordinates;
|
||||
}
|
||||
|
||||
export interface IShuttle extends IEntityWithId, IEntityWithOptionalTimestamp {
|
||||
export interface IShuttle extends IEntityWithId, IEntityWithTimestamp {
|
||||
coordinates: ICoordinates;
|
||||
name: string;
|
||||
routeId: string;
|
||||
@@ -21,14 +21,14 @@ export interface IShuttle extends IEntityWithId, IEntityWithOptionalTimestamp {
|
||||
orientationInDegrees: number;
|
||||
}
|
||||
|
||||
export interface IEta extends IEntityWithOptionalTimestamp {
|
||||
export interface IEta extends IEntityWithTimestamp {
|
||||
secondsRemaining: number;
|
||||
shuttleId: string;
|
||||
stopId: string;
|
||||
systemId: string;
|
||||
}
|
||||
|
||||
export interface IOrderedStop extends IEntityWithOptionalTimestamp {
|
||||
export interface IOrderedStop extends IEntityWithTimestamp {
|
||||
nextStop?: IOrderedStop;
|
||||
previousStop?: IOrderedStop;
|
||||
routeId: string;
|
||||
|
||||
Reference in New Issue
Block a user