@tmlmobilidade/consts 20260918.1217.51 → 20260918.1631.53
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 -13
- package/dist/app-routes.js +11 -14
- 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;
|
|
@@ -162,19 +167,10 @@ export declare const API_ROUTES: Readonly<{
|
|
|
162
167
|
readonly PLANS_GTFS: `${string}/v1/plans/gtfs`;
|
|
163
168
|
readonly PLANS_GTFS_CM: `${string}/v1/plans/gtfs/cm`;
|
|
164
169
|
readonly PLANS_LIST: `${string}/v1/plans`;
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
readonly REALTIME_ETA_BY_TRIP: (id: string) => string;
|
|
170
|
-
readonly REALTIME_ETA_BY_TRIP_GTFS: (id: string) => string;
|
|
171
|
-
readonly REALTIME_ETA_BY_TRIP_GTFS_PB: (id: string) => string;
|
|
172
|
-
readonly REALTIME_ETA_GTFS: `${string}/v1/realtime/eta/gtfs`;
|
|
173
|
-
readonly REALTIME_ETA_GTFS_PB: `${string}/v1/realtime/eta/gtfs.pb`;
|
|
174
|
-
readonly REALTIME_VEHICLES_METADATA: `${string}/v1/realtime/vehicles/metadata`;
|
|
175
|
-
readonly REALTIME_VEHICLES_POSITIONS: `${string}/v1/realtime/vehicles/positions`;
|
|
176
|
-
readonly REALTIME_VEHICLES_POSITIONS_GTFS: `${string}/v1/realtime/vehicles/positions/gtfs`;
|
|
177
|
-
readonly REALTIME_VEHICLES_POSITIONS_GTFS_PB: `${string}/v1/realtime/vehicles/positions/gtfs.pb`;
|
|
170
|
+
readonly VEHICLES_METADATA: `${string}/v1/vehicles/metadata`;
|
|
171
|
+
readonly VEHICLES_POSITIONS: `${string}/v1/vehicles/positions`;
|
|
172
|
+
readonly VEHICLES_POSITIONS_GTFS: `${string}/v1/vehicles/positions/gtfs`;
|
|
173
|
+
readonly VEHICLES_POSITIONS_GTFS_PB: `${string}/v1/vehicles/positions/gtfs.pb`;
|
|
178
174
|
};
|
|
179
175
|
readonly infrastructure: {
|
|
180
176
|
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
|
|
@@ -226,20 +232,11 @@ export const API_ROUTES = Object.freeze({
|
|
|
226
232
|
PLANS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs`,
|
|
227
233
|
PLANS_GTFS_CM: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs/cm`,
|
|
228
234
|
PLANS_LIST: `${getModuleConfig('hub', 'api_url')}/v1/plans`,
|
|
229
|
-
//
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
REALTIME_ETA_BY_TRIP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}`,
|
|
235
|
-
REALTIME_ETA_BY_TRIP_GTFS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}/gtfs`,
|
|
236
|
-
REALTIME_ETA_BY_TRIP_GTFS_PB: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}/gtfs.pb`,
|
|
237
|
-
REALTIME_ETA_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/gtfs`,
|
|
238
|
-
REALTIME_ETA_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/gtfs.pb`,
|
|
239
|
-
REALTIME_VEHICLES_METADATA: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/metadata`,
|
|
240
|
-
REALTIME_VEHICLES_POSITIONS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions`,
|
|
241
|
-
REALTIME_VEHICLES_POSITIONS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs`,
|
|
242
|
-
REALTIME_VEHICLES_POSITIONS_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs.pb`,
|
|
235
|
+
// VEHICLES
|
|
236
|
+
VEHICLES_METADATA: `${getModuleConfig('hub', 'api_url')}/v1/vehicles/metadata`,
|
|
237
|
+
VEHICLES_POSITIONS: `${getModuleConfig('hub', 'api_url')}/v1/vehicles/positions`,
|
|
238
|
+
VEHICLES_POSITIONS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/vehicles/positions/gtfs`,
|
|
239
|
+
VEHICLES_POSITIONS_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/vehicles/positions/gtfs.pb`,
|
|
243
240
|
},
|
|
244
241
|
infrastructure: {
|
|
245
242
|
// BASE
|