@tmlmobilidade/consts 20260805.229.7 → 20260805.1509.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205,9 +205,11 @@ export declare const API_ROUTES: Readonly<{
205
205
  readonly PLANS_GTFS: `${string}/v1/plans/gtfs`;
206
206
  readonly PLANS_GTFS_CM: `${string}/v1/plans/gtfs/cm`;
207
207
  readonly PLANS_LIST: `${string}/v1/plans`;
208
- readonly REALTIME_TRIP_UPDATES: `${string}/v1/realtime/trip-updates`;
209
- readonly REALTIME_TRIP_UPDATES_GTFS: `${string}/v1/realtime/trip-updates/gtfs`;
210
- readonly REALTIME_TRIP_UPDATES_GTFS_PB: `${string}/v1/realtime/trip-updates/gtfs.pb`;
208
+ readonly REALTIME_ETA: `${string}/v1/realtime/eta`;
209
+ readonly REALTIME_ETA_BY_STOP: (id: string) => string;
210
+ readonly REALTIME_ETA_BY_TRIP: (id: string) => string;
211
+ readonly REALTIME_ETA_GTFS: `${string}/v1/realtime/eta/gtfs`;
212
+ readonly REALTIME_ETA_GTFS_PB: `${string}/v1/realtime/eta/gtfs.pb`;
211
213
  readonly REALTIME_VEHICLES_METADATA: `${string}/v1/realtime/vehicles/metadata`;
212
214
  readonly REALTIME_VEHICLES_POSITIONS: `${string}/v1/realtime/vehicles/positions`;
213
215
  readonly REALTIME_VEHICLES_POSITIONS_GTFS: `${string}/v1/realtime/vehicles/positions/gtfs`;
@@ -282,9 +282,11 @@ export const API_ROUTES = Object.freeze({
282
282
  PLANS_GTFS_CM: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs/cm`,
283
283
  PLANS_LIST: `${getModuleConfig('hub', 'api_url')}/v1/plans`,
284
284
  // REALTIME
285
- REALTIME_TRIP_UPDATES: `${getModuleConfig('hub', 'api_url')}/v1/realtime/trip-updates`,
286
- REALTIME_TRIP_UPDATES_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/trip-updates/gtfs`,
287
- REALTIME_TRIP_UPDATES_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/trip-updates/gtfs.pb`,
285
+ REALTIME_ETA: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta`,
286
+ REALTIME_ETA_BY_STOP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-stop/${encodeURIComponent(id)}`,
287
+ REALTIME_ETA_BY_TRIP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}`,
288
+ REALTIME_ETA_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/gtfs`,
289
+ REALTIME_ETA_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/gtfs.pb`,
288
290
  REALTIME_VEHICLES_METADATA: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/metadata`,
289
291
  REALTIME_VEHICLES_POSITIONS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions`,
290
292
  REALTIME_VEHICLES_POSITIONS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/consts",
3
- "version": "20260805.229.7",
3
+ "version": "20260805.1509.39",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"