Files
project-inter-server/src/entities/ParkingRepositoryEntities.ts
Brendan Chen 8ee1f1522e Change ParkingStructureCountOptions and HistoricalParkingAverageQueryResult to use Date objects
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.
2025-07-19 12:12:08 -04:00

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