@tmlmobilidade/consts 20260918.1017.37 → 20260918.1329.38
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.
- package/dist/app-routes.d.ts +9 -0
- package/dist/app-routes.js +11 -0
- package/package.json +1 -1
package/dist/app-routes.d.ts
CHANGED
|
@@ -150,6 +150,11 @@ export declare const API_ROUTES: Readonly<{
|
|
|
150
150
|
readonly ALERTS_LIST: `${string}/v1/alerts`;
|
|
151
151
|
readonly ALERTS_RSS: `${string}/v1/alerts.rss`;
|
|
152
152
|
readonly DEBUG_TIME: `${string}/v1/debug/time`;
|
|
153
|
+
readonly ETA_BY_STOP: (id: string) => string;
|
|
154
|
+
readonly ETA_BY_TRIP: (id: string) => string;
|
|
155
|
+
readonly ETA_GTFS: `${string}/v1/eta/gtfs`;
|
|
156
|
+
readonly ETA_GTFS_PB: `${string}/v1/eta/gtfs.pb`;
|
|
157
|
+
readonly ETA_LIST: `${string}/v1/eta`;
|
|
153
158
|
readonly METRICS_DEMAND_BY_AGENCY_BY_OPERATIONAL_DATE: `${string}/v1/metrics/demand-by-agency-by-operational-date`;
|
|
154
159
|
readonly NETWORK_LINES: `${string}/v1/network/lines`;
|
|
155
160
|
readonly NETWORK_LINES_DETAIL: (id: string) => string;
|
|
@@ -175,6 +180,10 @@ export declare const API_ROUTES: Readonly<{
|
|
|
175
180
|
readonly REALTIME_VEHICLES_POSITIONS: `${string}/v1/realtime/vehicles/positions`;
|
|
176
181
|
readonly REALTIME_VEHICLES_POSITIONS_GTFS: `${string}/v1/realtime/vehicles/positions/gtfs`;
|
|
177
182
|
readonly REALTIME_VEHICLES_POSITIONS_GTFS_PB: `${string}/v1/realtime/vehicles/positions/gtfs.pb`;
|
|
183
|
+
readonly VEHICLES_VEHICLES_METADATA: `${string}/v1/vehicles/vehicles/metadata`;
|
|
184
|
+
readonly VEHICLES_VEHICLES_POSITIONS: `${string}/v1/vehicles/vehicles/positions`;
|
|
185
|
+
readonly VEHICLES_VEHICLES_POSITIONS_GTFS: `${string}/v1/vehicles/vehicles/positions/gtfs`;
|
|
186
|
+
readonly VEHICLES_VEHICLES_POSITIONS_GTFS_PB: `${string}/v1/vehicles/vehicles/positions/gtfs.pb`;
|
|
178
187
|
};
|
|
179
188
|
readonly infrastructure: {
|
|
180
189
|
readonly BASE: string;
|
package/dist/app-routes.js
CHANGED
|
@@ -211,6 +211,12 @@ export const API_ROUTES = Object.freeze({
|
|
|
211
211
|
ALERTS_RSS: `${getModuleConfig('hub', 'api_url')}/v1/alerts.rss`,
|
|
212
212
|
// DEBUG
|
|
213
213
|
DEBUG_TIME: `${getModuleConfig('hub', 'api_url')}/v1/debug/time`,
|
|
214
|
+
// ETA
|
|
215
|
+
ETA_BY_STOP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/eta/by-stop/${encodeURIComponent(id)}`,
|
|
216
|
+
ETA_BY_TRIP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/eta/by-trip/${encodeURIComponent(id)}`,
|
|
217
|
+
ETA_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/eta/gtfs`,
|
|
218
|
+
ETA_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/eta/gtfs.pb`,
|
|
219
|
+
ETA_LIST: `${getModuleConfig('hub', 'api_url')}/v1/eta`,
|
|
214
220
|
// METRICS
|
|
215
221
|
METRICS_DEMAND_BY_AGENCY_BY_OPERATIONAL_DATE: `${getModuleConfig('hub', 'api_url')}/v1/metrics/demand-by-agency-by-operational-date`,
|
|
216
222
|
// NETWORK
|
|
@@ -240,6 +246,11 @@ export const API_ROUTES = Object.freeze({
|
|
|
240
246
|
REALTIME_VEHICLES_POSITIONS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions`,
|
|
241
247
|
REALTIME_VEHICLES_POSITIONS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs`,
|
|
242
248
|
REALTIME_VEHICLES_POSITIONS_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs.pb`,
|
|
249
|
+
// VEHICLES
|
|
250
|
+
VEHICLES_VEHICLES_METADATA: `${getModuleConfig('hub', 'api_url')}/v1/vehicles/vehicles/metadata`,
|
|
251
|
+
VEHICLES_VEHICLES_POSITIONS: `${getModuleConfig('hub', 'api_url')}/v1/vehicles/vehicles/positions`,
|
|
252
|
+
VEHICLES_VEHICLES_POSITIONS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/vehicles/vehicles/positions/gtfs`,
|
|
253
|
+
VEHICLES_VEHICLES_POSITIONS_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/vehicles/vehicles/positions/gtfs.pb`,
|
|
243
254
|
},
|
|
244
255
|
infrastructure: {
|
|
245
256
|
// BASE
|