@tmlmobilidade/consts 20260506.2129.32 → 20260507.1753.34

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.
@@ -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,
@@ -89,8 +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
92
  readonly OPERATION_LINES: `${string}/operation/lines`;
95
93
  readonly OPERATION_RIDES: `${string}/operation/rides`;
96
94
  readonly OPERATION_RIDES_RIDE: (id: string) => string;
@@ -168,7 +166,6 @@ export declare const API_ROUTES: Readonly<{
168
166
  readonly BASE: string;
169
167
  readonly EXPORTER_DETAIL_DOWNLOAD: (id: string) => string;
170
168
  readonly EXPORTER_LIST: `${string}/exporter`;
171
- readonly GTFS_MERGED_DOWNLOAD: `${string}/gtfs-merged/download`;
172
169
  };
173
170
  readonly fleet: {
174
171
  readonly BASE: string;
@@ -178,6 +175,16 @@ export declare const API_ROUTES: Readonly<{
178
175
  readonly VEHICLES_LIST: `${string}/vehicles`;
179
176
  readonly VEHICLES_POSITIONS: `${string}/vehicles/positions`;
180
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
+ };
181
188
  readonly locations: {
182
189
  readonly BASE: string;
183
190
  readonly LOCATIONS_COORDINATES: `${string}/locations/coordinates`;
@@ -220,7 +227,6 @@ export declare const API_ROUTES: Readonly<{
220
227
  };
221
228
  readonly plans: {
222
229
  readonly BASE: string;
223
- readonly PLANS_APPROVED: `${string}/plans/approved`;
224
230
  readonly PLANS_DETAIL: (id: string) => string;
225
231
  readonly PLANS_DETAIL_CHANGE_GTFS: (id: string) => string;
226
232
  readonly PLANS_DETAIL_CONTROLLER_REPROCESS: (id: string) => string;
@@ -152,9 +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
155
  // OPERATION
159
156
  OPERATION_LINES: `${getModuleConfig('alerts', 'api_url')}/operation/lines`,
160
157
  OPERATION_RIDES: `${getModuleConfig('alerts', 'api_url')}/operation/rides`,
@@ -260,8 +257,6 @@ export const API_ROUTES = Object.freeze({
260
257
  // EXPORTER
261
258
  EXPORTER_DETAIL_DOWNLOAD: (id) => `${getModuleConfig('exporter', 'api_url')}/exporter/${id}/download`,
262
259
  EXPORTER_LIST: `${getModuleConfig('exporter', 'api_url')}/exporter`,
263
- // GTFS-MERGED
264
- GTFS_MERGED_DOWNLOAD: `${getModuleConfig('exporter', 'api_url')}/gtfs-merged/download`,
265
260
  },
266
261
  /* * */
267
262
  /* FLEET */
@@ -276,6 +271,21 @@ export const API_ROUTES = Object.freeze({
276
271
  VEHICLES_POSITIONS: `${getModuleConfig('fleet', 'api_url')}/vehicles/positions`,
277
272
  },
278
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
+ /* * */
279
289
  /* LOCATIONS */
280
290
  locations: {
281
291
  // BASE
@@ -341,7 +351,6 @@ export const API_ROUTES = Object.freeze({
341
351
  // BASE
342
352
  BASE: `${getModuleConfig('plans', 'api_url')}`,
343
353
  // PLANS
344
- PLANS_APPROVED: `${getModuleConfig('plans', 'api_url')}/plans/approved`,
345
354
  PLANS_DETAIL: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}`,
346
355
  PLANS_DETAIL_CHANGE_GTFS: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}/change-gtfs`,
347
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": "20260506.2129.32",
3
+ "version": "20260507.1753.34",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"