UNPKG

@golemio/pid

Version:
21 lines (20 loc) 958 B
import { ITransferOutputDto } from "../.."; import { DeparturesRepository } from "../../data-access"; import { Moment } from "@golemio/core/dist/shared/moment-timezone"; import { TransferDepartureTransformation } from "../transformations/TransferDepartureTransformation"; export declare class TransferFacade { private departureRepository; private departureTransformation; constructor(departureRepository: DeparturesRepository, departureTransformation: TransferDepartureTransformation); /** * Retrieves transfer departures for given GTFS stop IDs * - Get transfer departures from DB * - Process them (filter, sort, etc.) * - Transform them to DTO */ getTransferDepartures(stopIds: string[], tripNumber: string | null, currentMoment: Moment, minutesOffset: number, timeZone?: string): Promise<ITransferOutputDto[]>; /** * Fallback options as defined by ROPID */ private get defaultOptions(); }