UNPKG

@tmlmobilidade/utils

Version:

A collection of utility functions and helpers for the TML Mobilidade Go monorepo, providing common functionality for batching operations, caching, HTTP requests, object manipulation, permissions, and more.

60 lines (59 loc) 2.39 kB
/** * Enforces the public trip ID format. * @param planId The ID of the plan this trip belongs to. * @param agencyId The ID of the agency this trip belongs to. * @param tripId The ID of the trip. * @returns The public trip ID. */ export declare function getPublicTripId(planId: string, agencyId: string, tripId: string): string; /** * Enforces the public shape ID format. * @param planId The ID of the plan this shape belongs to. * @param agencyId The ID of the agency this shape belongs to. * @param shapeId The ID of the shape. * @returns The public shape ID. */ export declare function getPublicShapeId(planId: string, agencyId: string, shapeId: string): string; /** * Enforces the public service ID format. * @param planId The ID of the plan this service belongs to. * @param agencyId The ID of the agency this service belongs to. * @param serviceId The ID of the service. * @returns The public service ID. */ export declare function getPublicServiceId(planId: string, agencyId: string, serviceId: string): string; /** * Enforces the public line ID format. * @param agencyId The ID of the agency this line belongs to. * @param lineId The ID of the line. * @returns The public line ID. */ export declare function getPublicLineId(agencyId: string, lineId: string): string; /** * Enforces the public route ID format. * @param agencyId The ID of the agency this route belongs to. * @param routeId The ID of the route. * @returns The public route ID. */ export declare function getPublicRouteId(agencyId: string, routeId: string): string; /** * Enforces the public pattern ID format. * @param agencyId The ID of the agency this pattern belongs to. * @param patternId The ID of the pattern. * @returns The public pattern ID. */ export declare function getPublicPatternId(agencyId: string, patternId: string): string; /** * Enforces the public fare ID format. * @param agencyId The ID of the agency this fare belongs to. * @param fareId The ID of the fare. * @returns The public fare ID. */ export declare function getPublicFareId(agencyId: string, fareId: string): string; /** * Enforces the public vehicle ID format. * @param agencyId The ID of the agency this vehicle belongs to. * @param vehicleId The ID of the vehicle. * @returns The public vehicle ID. */ export declare function getPublicVehicleId(agencyId: string, vehicleId: string): string;