@tmlmobilidade/consts 20260507.11.20 → 20260507.1757.50
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-configs.js +19 -0
- package/dist/app-routes.d.ts +10 -5
- package/dist/app-routes.js +15 -7
- package/package.json +2 -2
package/dist/app-configs.js
CHANGED
|
@@ -126,6 +126,25 @@ const MODULE_CONFIGS = {
|
|
|
126
126
|
...DEFAULT_STG_CONFIG,
|
|
127
127
|
},
|
|
128
128
|
},
|
|
129
|
+
hub: {
|
|
130
|
+
dev: {
|
|
131
|
+
api_port: 52000,
|
|
132
|
+
api_url: 'http://localhost:52000',
|
|
133
|
+
cors_origin: true,
|
|
134
|
+
frontend_port: 51000,
|
|
135
|
+
frontend_url: 'http://localhost:51000/hub',
|
|
136
|
+
},
|
|
137
|
+
prd: {
|
|
138
|
+
api_url: 'https://go.tmlmobilidade.pt/hub/api',
|
|
139
|
+
frontend_url: 'https://go.tmlmobilidade.pt/hub',
|
|
140
|
+
...DEFAULT_PRD_CONFIG,
|
|
141
|
+
},
|
|
142
|
+
stg: {
|
|
143
|
+
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/hub/api`,
|
|
144
|
+
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/hub`,
|
|
145
|
+
...DEFAULT_STG_CONFIG,
|
|
146
|
+
},
|
|
147
|
+
},
|
|
129
148
|
locations: {
|
|
130
149
|
dev: {
|
|
131
150
|
api_port: 52005,
|
package/dist/app-routes.d.ts
CHANGED
|
@@ -89,9 +89,6 @@ export declare const API_ROUTES: Readonly<{
|
|
|
89
89
|
readonly ALERTS_DETAIL_IMAGE: (id: string) => string;
|
|
90
90
|
readonly ALERTS_DETAIL_LOCK: (id: string) => string;
|
|
91
91
|
readonly ALERTS_LIST: `${string}/alerts`;
|
|
92
|
-
readonly ALERTS_RSS: `${string}/alerts.rss`;
|
|
93
|
-
readonly GTFS_CARRIS_METROPOLITANA: `${string}/gtfs/carris-metropolitana`;
|
|
94
|
-
readonly GTFS_CM2: `${string}/gtfs/cm2`;
|
|
95
92
|
readonly OPERATION_LINES: `${string}/operation/lines`;
|
|
96
93
|
readonly OPERATION_RIDES: `${string}/operation/rides`;
|
|
97
94
|
readonly OPERATION_RIDES_RIDE: (id: string) => string;
|
|
@@ -169,7 +166,6 @@ export declare const API_ROUTES: Readonly<{
|
|
|
169
166
|
readonly BASE: string;
|
|
170
167
|
readonly EXPORTER_DETAIL_DOWNLOAD: (id: string) => string;
|
|
171
168
|
readonly EXPORTER_LIST: `${string}/exporter`;
|
|
172
|
-
readonly GTFS_MERGED_DOWNLOAD: `${string}/gtfs-merged/download`;
|
|
173
169
|
};
|
|
174
170
|
readonly fleet: {
|
|
175
171
|
readonly BASE: string;
|
|
@@ -179,6 +175,16 @@ export declare const API_ROUTES: Readonly<{
|
|
|
179
175
|
readonly VEHICLES_LIST: `${string}/vehicles`;
|
|
180
176
|
readonly VEHICLES_POSITIONS: `${string}/vehicles/positions`;
|
|
181
177
|
};
|
|
178
|
+
readonly hub: {
|
|
179
|
+
readonly BASE: string;
|
|
180
|
+
readonly ALERTS_GTFS: `${string}/v1/alerts/gtfs`;
|
|
181
|
+
readonly ALERTS_GTFS_PB: `${string}/v1/alerts/gtfs.pb`;
|
|
182
|
+
readonly ALERTS_LIST: `${string}/v1/alerts`;
|
|
183
|
+
readonly ALERTS_RSS: `${string}/v1/alerts.rss`;
|
|
184
|
+
readonly PLANS_GTFS: `${string}/v1/plans/gtfs`;
|
|
185
|
+
readonly PLANS_GTFS_CM: `${string}/v1/plans/gtfs/cm`;
|
|
186
|
+
readonly PLANS_LIST: `${string}/v1/plans`;
|
|
187
|
+
};
|
|
182
188
|
readonly locations: {
|
|
183
189
|
readonly BASE: string;
|
|
184
190
|
readonly LOCATIONS_COORDINATES: `${string}/locations/coordinates`;
|
|
@@ -221,7 +227,6 @@ export declare const API_ROUTES: Readonly<{
|
|
|
221
227
|
};
|
|
222
228
|
readonly plans: {
|
|
223
229
|
readonly BASE: string;
|
|
224
|
-
readonly PLANS_APPROVED: `${string}/plans/approved`;
|
|
225
230
|
readonly PLANS_DETAIL: (id: string) => string;
|
|
226
231
|
readonly PLANS_DETAIL_CHANGE_GTFS: (id: string) => string;
|
|
227
232
|
readonly PLANS_DETAIL_CONTROLLER_REPROCESS: (id: string) => string;
|
package/dist/app-routes.js
CHANGED
|
@@ -152,10 +152,6 @@ export const API_ROUTES = Object.freeze({
|
|
|
152
152
|
ALERTS_DETAIL_IMAGE: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${id}/image`,
|
|
153
153
|
ALERTS_DETAIL_LOCK: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${id}/lock`,
|
|
154
154
|
ALERTS_LIST: `${getModuleConfig('alerts', 'api_url')}/alerts`,
|
|
155
|
-
ALERTS_RSS: `${getModuleConfig('alerts', 'api_url')}/alerts.rss`,
|
|
156
|
-
// GTFS
|
|
157
|
-
GTFS_CARRIS_METROPOLITANA: `${getModuleConfig('alerts', 'api_url')}/gtfs/carris-metropolitana`,
|
|
158
|
-
GTFS_CM2: `${getModuleConfig('alerts', 'api_url')}/gtfs/cm2`,
|
|
159
155
|
// OPERATION
|
|
160
156
|
OPERATION_LINES: `${getModuleConfig('alerts', 'api_url')}/operation/lines`,
|
|
161
157
|
OPERATION_RIDES: `${getModuleConfig('alerts', 'api_url')}/operation/rides`,
|
|
@@ -261,8 +257,6 @@ export const API_ROUTES = Object.freeze({
|
|
|
261
257
|
// EXPORTER
|
|
262
258
|
EXPORTER_DETAIL_DOWNLOAD: (id) => `${getModuleConfig('exporter', 'api_url')}/exporter/${id}/download`,
|
|
263
259
|
EXPORTER_LIST: `${getModuleConfig('exporter', 'api_url')}/exporter`,
|
|
264
|
-
// GTFS-MERGED
|
|
265
|
-
GTFS_MERGED_DOWNLOAD: `${getModuleConfig('exporter', 'api_url')}/gtfs-merged/download`,
|
|
266
260
|
},
|
|
267
261
|
/* * */
|
|
268
262
|
/* FLEET */
|
|
@@ -277,6 +271,21 @@ export const API_ROUTES = Object.freeze({
|
|
|
277
271
|
VEHICLES_POSITIONS: `${getModuleConfig('fleet', 'api_url')}/vehicles/positions`,
|
|
278
272
|
},
|
|
279
273
|
/* * */
|
|
274
|
+
/* HUB */
|
|
275
|
+
hub: {
|
|
276
|
+
// BASE
|
|
277
|
+
BASE: `${getModuleConfig('hub', 'api_url')}`,
|
|
278
|
+
// ALERTS
|
|
279
|
+
ALERTS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/alerts/gtfs`,
|
|
280
|
+
ALERTS_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/alerts/gtfs.pb`,
|
|
281
|
+
ALERTS_LIST: `${getModuleConfig('hub', 'api_url')}/v1/alerts`,
|
|
282
|
+
ALERTS_RSS: `${getModuleConfig('hub', 'api_url')}/v1/alerts.rss`,
|
|
283
|
+
// PLANS
|
|
284
|
+
PLANS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs`,
|
|
285
|
+
PLANS_GTFS_CM: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs/cm`,
|
|
286
|
+
PLANS_LIST: `${getModuleConfig('hub', 'api_url')}/v1/plans`,
|
|
287
|
+
},
|
|
288
|
+
/* * */
|
|
280
289
|
/* LOCATIONS */
|
|
281
290
|
locations: {
|
|
282
291
|
// BASE
|
|
@@ -342,7 +351,6 @@ export const API_ROUTES = Object.freeze({
|
|
|
342
351
|
// BASE
|
|
343
352
|
BASE: `${getModuleConfig('plans', 'api_url')}`,
|
|
344
353
|
// PLANS
|
|
345
|
-
PLANS_APPROVED: `${getModuleConfig('plans', 'api_url')}/plans/approved`,
|
|
346
354
|
PLANS_DETAIL: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}`,
|
|
347
355
|
PLANS_DETAIL_CHANGE_GTFS: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}/change-gtfs`,
|
|
348
356
|
PLANS_DETAIL_CONTROLLER_REPROCESS: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}/controller-reprocess`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmlmobilidade/consts",
|
|
3
|
-
"version": "20260507.
|
|
3
|
+
"version": "20260507.1757.50",
|
|
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.6.
|
|
47
|
+
"@types/node": "25.6.1",
|
|
48
48
|
"resolve-tspaths": "0.8.23",
|
|
49
49
|
"tsc-watch": "7.2.0",
|
|
50
50
|
"typescript": "5.9.3"
|