@tmlmobilidade/consts 20260918.1329.38 → 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 +4 -17
- package/dist/app-routes.js +4 -18
- package/package.json +1 -1
package/dist/app-routes.d.ts
CHANGED
|
@@ -167,23 +167,10 @@ export declare const API_ROUTES: Readonly<{
|
|
|
167
167
|
readonly PLANS_GTFS: `${string}/v1/plans/gtfs`;
|
|
168
168
|
readonly PLANS_GTFS_CM: `${string}/v1/plans/gtfs/cm`;
|
|
169
169
|
readonly PLANS_LIST: `${string}/v1/plans`;
|
|
170
|
-
readonly
|
|
171
|
-
readonly
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
174
|
-
readonly REALTIME_ETA_BY_TRIP: (id: string) => string;
|
|
175
|
-
readonly REALTIME_ETA_BY_TRIP_GTFS: (id: string) => string;
|
|
176
|
-
readonly REALTIME_ETA_BY_TRIP_GTFS_PB: (id: string) => string;
|
|
177
|
-
readonly REALTIME_ETA_GTFS: `${string}/v1/realtime/eta/gtfs`;
|
|
178
|
-
readonly REALTIME_ETA_GTFS_PB: `${string}/v1/realtime/eta/gtfs.pb`;
|
|
179
|
-
readonly REALTIME_VEHICLES_METADATA: `${string}/v1/realtime/vehicles/metadata`;
|
|
180
|
-
readonly REALTIME_VEHICLES_POSITIONS: `${string}/v1/realtime/vehicles/positions`;
|
|
181
|
-
readonly REALTIME_VEHICLES_POSITIONS_GTFS: `${string}/v1/realtime/vehicles/positions/gtfs`;
|
|
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`;
|
|
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`;
|
|
187
174
|
};
|
|
188
175
|
readonly infrastructure: {
|
|
189
176
|
readonly BASE: string;
|
package/dist/app-routes.js
CHANGED
|
@@ -232,25 +232,11 @@ export const API_ROUTES = Object.freeze({
|
|
|
232
232
|
PLANS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs`,
|
|
233
233
|
PLANS_GTFS_CM: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs/cm`,
|
|
234
234
|
PLANS_LIST: `${getModuleConfig('hub', 'api_url')}/v1/plans`,
|
|
235
|
-
// REALTIME
|
|
236
|
-
REALTIME_ETA: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta`,
|
|
237
|
-
REALTIME_ETA_BY_STOP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-stop/${encodeURIComponent(id)}`,
|
|
238
|
-
REALTIME_ETA_BY_STOP_GTFS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-stop/${encodeURIComponent(id)}/gtfs`,
|
|
239
|
-
REALTIME_ETA_BY_STOP_GTFS_PB: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-stop/${encodeURIComponent(id)}/gtfs.pb`,
|
|
240
|
-
REALTIME_ETA_BY_TRIP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}`,
|
|
241
|
-
REALTIME_ETA_BY_TRIP_GTFS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}/gtfs`,
|
|
242
|
-
REALTIME_ETA_BY_TRIP_GTFS_PB: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}/gtfs.pb`,
|
|
243
|
-
REALTIME_ETA_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/gtfs`,
|
|
244
|
-
REALTIME_ETA_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/gtfs.pb`,
|
|
245
|
-
REALTIME_VEHICLES_METADATA: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/metadata`,
|
|
246
|
-
REALTIME_VEHICLES_POSITIONS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions`,
|
|
247
|
-
REALTIME_VEHICLES_POSITIONS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs`,
|
|
248
|
-
REALTIME_VEHICLES_POSITIONS_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs.pb`,
|
|
249
235
|
// VEHICLES
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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`,
|
|
254
240
|
},
|
|
255
241
|
infrastructure: {
|
|
256
242
|
// BASE
|