@tmlmobilidade/consts 20260519.2046.53 → 20260525.1333.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 -6
- package/dist/app-routes.js +12 -9
- package/package.json +2 -2
package/dist/app-routes.d.ts
CHANGED
|
@@ -177,8 +177,10 @@ export declare const API_ROUTES: Readonly<{
|
|
|
177
177
|
};
|
|
178
178
|
readonly eta: {
|
|
179
179
|
readonly BASE: string;
|
|
180
|
-
readonly
|
|
181
|
-
readonly
|
|
180
|
+
readonly ARRIVALS_BY_PATTERN: (patternId: string) => string;
|
|
181
|
+
readonly ARRIVALS_BY_STOP: (stopId: string) => string;
|
|
182
|
+
readonly ARRIVALS_DETAIL: (tripId: string) => string;
|
|
183
|
+
readonly ARRIVALS_LIST: `${string}/arrivals`;
|
|
182
184
|
};
|
|
183
185
|
readonly exporter: {
|
|
184
186
|
readonly BASE: string;
|
|
@@ -201,6 +203,7 @@ export declare const API_ROUTES: Readonly<{
|
|
|
201
203
|
readonly ALERTS_RSS: `${string}/v1/alerts.rss`;
|
|
202
204
|
readonly ARRIVALS_ARRIVALS_BY_PATTERN: (id: string) => string;
|
|
203
205
|
readonly ARRIVALS_ARRIVALS_BY_STOP: (id: string) => string;
|
|
206
|
+
readonly DEBUG_TIME: `${string}/v1/debug/time`;
|
|
204
207
|
readonly DISTRICTS_DISTRICTS: `${string}/districts/districts`;
|
|
205
208
|
readonly FACILITIES_BOAT_STATIONS: `${string}/v1/facilities/boat_stations`;
|
|
206
209
|
readonly FACILITIES_HELPDESKS: `${string}/v1/facilities/helpdesks`;
|
|
@@ -218,17 +221,17 @@ export declare const API_ROUTES: Readonly<{
|
|
|
218
221
|
readonly FEEDS_ROUTES: `${string}/feeds/routes`;
|
|
219
222
|
readonly FEEDS_STOPS: `${string}/feeds/stops`;
|
|
220
223
|
readonly LOCALITIES_LOCALITIES: `${string}/localities/localities`;
|
|
221
|
-
readonly MESSAGE_MESSAGE: `${string}/message/message`;
|
|
222
224
|
readonly MUNICIPALITIES_MUNICIPALITIES: `${string}/municipalities/municipalities`;
|
|
225
|
+
readonly NETWORK_LINES: `${string}/v1/network/lines`;
|
|
226
|
+
readonly NETWORK_STOPS: (id: string) => string;
|
|
223
227
|
readonly PARISHES_PARISHES: `${string}/parishes/parishes`;
|
|
224
228
|
readonly PATTERNS_PATTERNS: (id: string) => string;
|
|
225
229
|
readonly PLANS_GTFS: `${string}/v1/plans/gtfs`;
|
|
226
230
|
readonly PLANS_GTFS_CM: `${string}/v1/plans/gtfs/cm`;
|
|
227
231
|
readonly PLANS_LIST: `${string}/v1/plans`;
|
|
232
|
+
readonly REALTIME_VEHICLES: `${string}/v1/realtime/vehicles`;
|
|
233
|
+
readonly REALTIME_VEHICLES_PB: `${string}/v1/realtime/vehicles.pb`;
|
|
228
234
|
readonly SHAPES_SHAPES: (id: string) => string;
|
|
229
|
-
readonly TIME_TIME: `${string}/time/time`;
|
|
230
|
-
readonly VEHICLES_VEHICLES: `${string}/vehicles/vehicles`;
|
|
231
|
-
readonly VEHICLES_VEHICLES_PB: `${string}/vehicles/vehicles.pb`;
|
|
232
235
|
};
|
|
233
236
|
readonly locations: {
|
|
234
237
|
readonly BASE: string;
|
package/dist/app-routes.js
CHANGED
|
@@ -244,8 +244,10 @@ export const API_ROUTES = Object.freeze({
|
|
|
244
244
|
// BASE
|
|
245
245
|
BASE: `${getModuleConfig('eta', 'api_url')}`,
|
|
246
246
|
// ETA
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
ARRIVALS_BY_PATTERN: (patternId) => `${getModuleConfig('eta', 'api_url')}/arrivals/by_pattern/${patternId}`,
|
|
248
|
+
ARRIVALS_BY_STOP: (stopId) => `${getModuleConfig('eta', 'api_url')}/arrivals/by_stop/${stopId}`,
|
|
249
|
+
ARRIVALS_DETAIL: (tripId) => `${getModuleConfig('eta', 'api_url')}/arrivals/${tripId}`,
|
|
250
|
+
ARRIVALS_LIST: `${getModuleConfig('eta', 'api_url')}/arrivals`,
|
|
249
251
|
},
|
|
250
252
|
exporter: {
|
|
251
253
|
// BASE
|
|
@@ -275,6 +277,8 @@ export const API_ROUTES = Object.freeze({
|
|
|
275
277
|
// ARRIVALS
|
|
276
278
|
ARRIVALS_ARRIVALS_BY_PATTERN: (id) => `${getModuleConfig('hub', 'api_url')}/arrivals/arrivals/by_pattern/${id}`,
|
|
277
279
|
ARRIVALS_ARRIVALS_BY_STOP: (id) => `${getModuleConfig('hub', 'api_url')}/arrivals/arrivals/by_stop/${id}`,
|
|
280
|
+
// DEBUG
|
|
281
|
+
DEBUG_TIME: `${getModuleConfig('hub', 'api_url')}/v1/debug/time`,
|
|
278
282
|
// DISTRICTS
|
|
279
283
|
DISTRICTS_DISTRICTS: `${getModuleConfig('hub', 'api_url')}/districts/districts`,
|
|
280
284
|
// FACILITIES
|
|
@@ -296,10 +300,11 @@ export const API_ROUTES = Object.freeze({
|
|
|
296
300
|
FEEDS_STOPS: `${getModuleConfig('hub', 'api_url')}/feeds/stops`,
|
|
297
301
|
// LOCALITIES
|
|
298
302
|
LOCALITIES_LOCALITIES: `${getModuleConfig('hub', 'api_url')}/localities/localities`,
|
|
299
|
-
// MESSAGE
|
|
300
|
-
MESSAGE_MESSAGE: `${getModuleConfig('hub', 'api_url')}/message/message`,
|
|
301
303
|
// MUNICIPALITIES
|
|
302
304
|
MUNICIPALITIES_MUNICIPALITIES: `${getModuleConfig('hub', 'api_url')}/municipalities/municipalities`,
|
|
305
|
+
// NETWORK
|
|
306
|
+
NETWORK_LINES: `${getModuleConfig('hub', 'api_url')}/v1/network/lines`,
|
|
307
|
+
NETWORK_STOPS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/network/stops/${id}`,
|
|
303
308
|
// PARISHES
|
|
304
309
|
PARISHES_PARISHES: `${getModuleConfig('hub', 'api_url')}/parishes/parishes`,
|
|
305
310
|
// PATTERNS
|
|
@@ -308,13 +313,11 @@ export const API_ROUTES = Object.freeze({
|
|
|
308
313
|
PLANS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs`,
|
|
309
314
|
PLANS_GTFS_CM: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs/cm`,
|
|
310
315
|
PLANS_LIST: `${getModuleConfig('hub', 'api_url')}/v1/plans`,
|
|
316
|
+
// REALTIME
|
|
317
|
+
REALTIME_VEHICLES: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles`,
|
|
318
|
+
REALTIME_VEHICLES_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles.pb`,
|
|
311
319
|
// SHAPES
|
|
312
320
|
SHAPES_SHAPES: (id) => `${getModuleConfig('hub', 'api_url')}/shapes/shapes/${id}`,
|
|
313
|
-
// TIME
|
|
314
|
-
TIME_TIME: `${getModuleConfig('hub', 'api_url')}/time/time`,
|
|
315
|
-
// VEHICLES
|
|
316
|
-
VEHICLES_VEHICLES: `${getModuleConfig('hub', 'api_url')}/vehicles/vehicles`,
|
|
317
|
-
VEHICLES_VEHICLES_PB: `${getModuleConfig('hub', 'api_url')}/vehicles/vehicles.pb`,
|
|
318
321
|
},
|
|
319
322
|
locations: {
|
|
320
323
|
// BASE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmlmobilidade/consts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20260525.1333.38",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "iso@tmlmobilidade.pt",
|
|
6
6
|
"name": "TML-ISO"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@tmlmobilidade/tsconfig": "*",
|
|
46
46
|
"@tmlmobilidade/types": "*",
|
|
47
|
-
"@types/node": "25.
|
|
47
|
+
"@types/node": "25.9.1",
|
|
48
48
|
"resolve-tspaths": "0.8.23",
|
|
49
49
|
"tsc-watch": "7.2.0",
|
|
50
50
|
"typescript": "5.9.3"
|