@tmlmobilidade/consts 20260920.2153.33 → 20260922.1130.21
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 +14 -0
- package/dist/app-routes.js +16 -0
- package/package.json +1 -1
package/dist/app-routes.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ export declare const API_ROUTES: Readonly<{
|
|
|
145
145
|
};
|
|
146
146
|
readonly hub: {
|
|
147
147
|
readonly BASE: string;
|
|
148
|
+
readonly AGENCIES_LIST: `${string}/v1/agencies`;
|
|
148
149
|
readonly ALERTS_GTFS: `${string}/v1/alerts/gtfs`;
|
|
149
150
|
readonly ALERTS_GTFS_PB: `${string}/v1/alerts/gtfs.pb`;
|
|
150
151
|
readonly ALERTS_LIST: `${string}/v1/alerts`;
|
|
@@ -167,6 +168,19 @@ export declare const API_ROUTES: Readonly<{
|
|
|
167
168
|
readonly PLANS_GTFS: `${string}/v1/plans/gtfs`;
|
|
168
169
|
readonly PLANS_GTFS_CM: `${string}/v1/plans/gtfs/cm`;
|
|
169
170
|
readonly PLANS_LIST: `${string}/v1/plans`;
|
|
171
|
+
readonly REALTIME_ETA: `${string}/v1/realtime/eta`;
|
|
172
|
+
readonly REALTIME_ETA_BY_STOP: (id: string) => string;
|
|
173
|
+
readonly REALTIME_ETA_BY_STOP_GTFS: (id: string) => string;
|
|
174
|
+
readonly REALTIME_ETA_BY_STOP_GTFS_PB: (id: string) => string;
|
|
175
|
+
readonly REALTIME_ETA_BY_TRIP: (id: string) => string;
|
|
176
|
+
readonly REALTIME_ETA_BY_TRIP_GTFS: (id: string) => string;
|
|
177
|
+
readonly REALTIME_ETA_BY_TRIP_GTFS_PB: (id: string) => string;
|
|
178
|
+
readonly REALTIME_ETA_GTFS: `${string}/v1/realtime/eta/gtfs`;
|
|
179
|
+
readonly REALTIME_ETA_GTFS_PB: `${string}/v1/realtime/eta/gtfs.pb`;
|
|
180
|
+
readonly REALTIME_VEHICLES_METADATA: `${string}/v1/realtime/vehicles/metadata`;
|
|
181
|
+
readonly REALTIME_VEHICLES_POSITIONS: `${string}/v1/realtime/vehicles/positions`;
|
|
182
|
+
readonly REALTIME_VEHICLES_POSITIONS_GTFS: `${string}/v1/realtime/vehicles/positions/gtfs`;
|
|
183
|
+
readonly REALTIME_VEHICLES_POSITIONS_GTFS_PB: `${string}/v1/realtime/vehicles/positions/gtfs.pb`;
|
|
170
184
|
readonly VEHICLES_METADATA: `${string}/v1/vehicles/metadata`;
|
|
171
185
|
readonly VEHICLES_POSITIONS: `${string}/v1/vehicles/positions`;
|
|
172
186
|
readonly VEHICLES_POSITIONS_GTFS: `${string}/v1/vehicles/positions/gtfs`;
|
package/dist/app-routes.js
CHANGED
|
@@ -204,6 +204,8 @@ export const API_ROUTES = Object.freeze({
|
|
|
204
204
|
hub: {
|
|
205
205
|
// BASE
|
|
206
206
|
BASE: `${getModuleConfig('hub', 'api_url')}`,
|
|
207
|
+
// AGENCIES
|
|
208
|
+
AGENCIES_LIST: `${getModuleConfig('hub', 'api_url')}/v1/agencies`,
|
|
207
209
|
// ALERTS
|
|
208
210
|
ALERTS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/alerts/gtfs`,
|
|
209
211
|
ALERTS_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/alerts/gtfs.pb`,
|
|
@@ -232,6 +234,20 @@ export const API_ROUTES = Object.freeze({
|
|
|
232
234
|
PLANS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs`,
|
|
233
235
|
PLANS_GTFS_CM: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs/cm`,
|
|
234
236
|
PLANS_LIST: `${getModuleConfig('hub', 'api_url')}/v1/plans`,
|
|
237
|
+
// REALTIME
|
|
238
|
+
REALTIME_ETA: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta`,
|
|
239
|
+
REALTIME_ETA_BY_STOP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-stop/${encodeURIComponent(id)}`,
|
|
240
|
+
REALTIME_ETA_BY_STOP_GTFS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-stop/${encodeURIComponent(id)}/gtfs`,
|
|
241
|
+
REALTIME_ETA_BY_STOP_GTFS_PB: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-stop/${encodeURIComponent(id)}/gtfs.pb`,
|
|
242
|
+
REALTIME_ETA_BY_TRIP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}`,
|
|
243
|
+
REALTIME_ETA_BY_TRIP_GTFS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}/gtfs`,
|
|
244
|
+
REALTIME_ETA_BY_TRIP_GTFS_PB: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}/gtfs.pb`,
|
|
245
|
+
REALTIME_ETA_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/gtfs`,
|
|
246
|
+
REALTIME_ETA_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/gtfs.pb`,
|
|
247
|
+
REALTIME_VEHICLES_METADATA: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/metadata`,
|
|
248
|
+
REALTIME_VEHICLES_POSITIONS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions`,
|
|
249
|
+
REALTIME_VEHICLES_POSITIONS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs`,
|
|
250
|
+
REALTIME_VEHICLES_POSITIONS_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs.pb`,
|
|
235
251
|
// VEHICLES
|
|
236
252
|
VEHICLES_METADATA: `${getModuleConfig('hub', 'api_url')}/v1/vehicles/metadata`,
|
|
237
253
|
VEHICLES_POSITIONS: `${getModuleConfig('hub', 'api_url')}/v1/vehicles/positions`,
|