mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
This matches the behavior of `updatedTime` on shuttle objects. When returning API data, dates are converted into milliseconds since Epoch by the DateTime scalar implementation.
18 lines
473 B
TypeScript
18 lines
473 B
TypeScript
import { ICoordinates, IEntityWithId, IEntityWithTimestamp } from "./SharedEntities";
|
|
|
|
export interface IParkingStructure extends IEntityWithTimestamp, IEntityWithId {
|
|
address: string;
|
|
capacity: number;
|
|
spotsAvailable: number;
|
|
coordinates: ICoordinates;
|
|
name: string;
|
|
}
|
|
|
|
export interface IParkingStructureTimestampRecord {
|
|
timestampMs: Date;
|
|
id: string;
|
|
spotsAvailable: number;
|
|
}
|
|
|
|
// In the future, add support for viewing different levels of the structure
|