@golemio/pid
Version:
Golemio PID Module
21 lines (20 loc) • 1.18 kB
TypeScript
import { CisStopGroupRepository } from "../../../ropid-gtfs/data-access/CisStopGroupRepository";
import { GtfsStopsRedisRepository } from "../../../ropid-gtfs/data-access/redis/GtfsStopsRedisRepository";
import { IStopCacheDto } from "../../../../schema-definitions/ropid-gtfs/interfaces/IStopDto";
export declare class StopFacade {
private cisStopGroupsRepository;
private gtfsStopsRedisRepository;
constructor(cisStopGroupsRepository: CisStopGroupRepository, gtfsStopsRedisRepository: GtfsStopsRedisRepository);
getStopIdsForTransferBoards(cisId: string): Promise<string[]>;
/**
* Retrieve ASW node ID for given CIS ID and then returns GTFS stop IDs for this ASW node
*/
getStopIdsForTransferBoardsByCisId(cisId: string): Promise<string[]>;
/**
* Retrieve ASW node ID for given ASW stop ID and then returns GTFS stop IDs for this ASW node
*/
getStopIdsForTransferBoardsByAswId(aswId: string): Promise<string[]>;
getDetailDataFromCacheByStopId(stopId: string[]): Promise<IStopCacheDto[]>;
getDetailDataFromCacheByAswId(aswIds: string[]): Promise<IStopCacheDto[]>;
private getStopIdsForTransferBoardsByAswNode;
}