@tmlmobilidade/consts 20260410.1133.41 → 20260411.1248.30

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.
@@ -89,9 +89,16 @@ export declare const API_ROUTES: Readonly<{
89
89
  readonly ALERTS_LIST: `${string}/alerts`;
90
90
  readonly ALERTS_RSS: `${string}/alerts.rss`;
91
91
  readonly GTFS_CARRIS_METROPOLITANA: `${string}/gtfs/carris-metropolitana`;
92
+ readonly HASHED_TRIPS_DETAIL: (id: string) => string;
93
+ readonly HASHED_TRIPS_LIST: `${string}/hashed-trips`;
94
+ readonly LINES_HASHED_TRIPS: `${string}/lines/hashed-trips`;
95
+ readonly LINES_LIST: `${string}/lines`;
92
96
  readonly RIDES_DETAIL_RIDE: (id: string) => string;
93
97
  readonly RIDES_LIST: `${string}/rides`;
94
98
  readonly RIDES_WS: `${string}/rides/ws`;
99
+ readonly STOPS_BATCH: `${string}/stops/batch`;
100
+ readonly STOPS_DETAIL: (id: string) => string;
101
+ readonly STOPS_LIST: `${string}/stops`;
95
102
  };
96
103
  readonly auth: {
97
104
  readonly BASE: string;
@@ -153,10 +153,20 @@ export const API_ROUTES = Object.freeze({
153
153
  ALERTS_RSS: `${getAppConfig('alerts', 'api_url')}/alerts.rss`,
154
154
  // GTFS
155
155
  GTFS_CARRIS_METROPOLITANA: `${getAppConfig('alerts', 'api_url')}/gtfs/carris-metropolitana`,
156
+ // HASHED_TRIPS
157
+ HASHED_TRIPS_DETAIL: (id) => `${getAppConfig('alerts', 'api_url')}/hashed-trips/${id}`,
158
+ HASHED_TRIPS_LIST: `${getAppConfig('alerts', 'api_url')}/hashed-trips`,
159
+ // LINES
160
+ LINES_HASHED_TRIPS: `${getAppConfig('alerts', 'api_url')}/lines/hashed-trips`,
161
+ LINES_LIST: `${getAppConfig('alerts', 'api_url')}/lines`,
156
162
  // RIDES
157
163
  RIDES_DETAIL_RIDE: (id) => `${getAppConfig('alerts', 'api_url')}/rides/${id}/ride`,
158
164
  RIDES_LIST: `${getAppConfig('alerts', 'api_url')}/rides`,
159
165
  RIDES_WS: `${getAppConfig('alerts', 'api_url')}/rides/ws`,
166
+ // STOPS
167
+ STOPS_BATCH: `${getAppConfig('alerts', 'api_url')}/stops/batch`,
168
+ STOPS_DETAIL: (id) => `${getAppConfig('alerts', 'api_url')}/stops/${id}`,
169
+ STOPS_LIST: `${getAppConfig('alerts', 'api_url')}/stops`,
160
170
  },
161
171
  /* * */
162
172
  /* AUTH */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/consts",
3
- "version": "20260410.1133.41",
3
+ "version": "20260411.1248.30",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"
@@ -29,6 +29,9 @@
29
29
  ],
30
30
  "main": "./dist/index.js",
31
31
  "types": "./dist/index.d.ts",
32
+ "exports": {
33
+ ".": "./dist/index.js"
34
+ },
32
35
  "scripts": {
33
36
  "build": "tsc && resolve-tspaths",
34
37
  "lint": "eslint ./src/ && tsc --noEmit",
@@ -41,7 +44,7 @@
41
44
  "devDependencies": {
42
45
  "@tmlmobilidade/tsconfig": "*",
43
46
  "@tmlmobilidade/types": "*",
44
- "@types/node": "25.5.0",
47
+ "@types/node": "25.5.2",
45
48
  "resolve-tspaths": "0.8.23",
46
49
  "tsc-watch": "7.2.0",
47
50
  "typescript": "5.9.3"