diff --git a/src/repository.ts b/src/repository.ts index 8cc3210..ba58c11 100644 --- a/src/repository.ts +++ b/src/repository.ts @@ -55,24 +55,37 @@ export interface Repository { // Getter methods getSystems(): Promise; - getSystemById(systemId: string): Promise; + getSystemById(systemId: string): Promise; getStopsBySystemId(systemId: string): Promise; - getStopById(stopId: string): Promise; + getStopById(stopId: string): Promise; getRoutesBySystemId(systemId: string): Promise; - getRouteById(routeId: string): Promise; + getRouteById(routeId: string): Promise; getShuttlesBySystemId(systemId: string): Promise; - getShuttleById(shuttleId: string): Promise; + getShuttleById(shuttleId: string): Promise; getEtasForShuttleId(shuttleId: string): Promise; getEtasForStopId(stopId: string): Promise; - getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise; + getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise; - getOrderedStopByRouteAndStopId(routeId: string, stopId: string): Promise; + getOrderedStopByRouteAndStopId(routeId: string, stopId: string): Promise; + + /** + * Get ordered stops with the given stop ID. + * Returns an empty array if no ordered stops found. + * @param stopId + */ getOrderedStopsByStopId(stopId: string): Promise; + + /** + * Get ordered stops with the given route ID. + * Returns an empty array if no ordered stops found. + * @param routeId + */ getOrderedStopsByRouteId(routeId: string): Promise; + getNextOrderedStopFromOrderedStopId(stopId: string): Promise; getPreviousOrderedStopFromOrderedStopId(stopId: string): Promise;