mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
27 lines
751 B
TypeScript
27 lines
751 B
TypeScript
import { IParkingStructure } from "../../entities/ParkingRepositoryEntities";
|
|
|
|
export interface ParkingStructureCountOptions {
|
|
from: Date;
|
|
to: Date;
|
|
intervalMs: number;
|
|
}
|
|
|
|
export interface HistoricalParkingAverageQueryResult {
|
|
from: Date;
|
|
to: Date;
|
|
averageSpotsAvailable: number;
|
|
}
|
|
|
|
|
|
export interface ParkingGetterRepository {
|
|
getParkingStructures(): Promise<IParkingStructure[]>;
|
|
getParkingStructureById(id: string): Promise<IParkingStructure | null>;
|
|
|
|
/**
|
|
* Get historical averages of parking structure data using the filtering options.
|
|
* @param id
|
|
* @param options
|
|
*/
|
|
getHistoricalAveragesOfParkingStructureCounts(id: string, options: ParkingStructureCountOptions): Promise<HistoricalParkingAverageQueryResult[]>;
|
|
}
|