@tmlmobilidade/consts 20260508.1103.58 → 20260509.331.19

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.
@@ -221,6 +221,25 @@ const MODULE_CONFIGS = {
221
221
  ...DEFAULT_STG_CONFIG,
222
222
  },
223
223
  },
224
+ root: {
225
+ dev: {
226
+ api_port: 50000,
227
+ api_url: 'http://localhost:50000',
228
+ cors_origin: true,
229
+ frontend_port: 51000,
230
+ frontend_url: 'http://localhost:51000',
231
+ },
232
+ prd: {
233
+ api_url: 'https://go.tmlmobilidade.pt',
234
+ frontend_url: 'https://go.tmlmobilidade.pt',
235
+ ...DEFAULT_PRD_CONFIG,
236
+ },
237
+ stg: {
238
+ api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt`,
239
+ frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt`,
240
+ ...DEFAULT_STG_CONFIG,
241
+ },
242
+ },
224
243
  stops: {
225
244
  dev: {
226
245
  api_port: 52003,
@@ -74,6 +74,10 @@ export declare const PAGE_ROUTES: Readonly<{
74
74
  readonly VALIDATIONS_DETAIL: (id: string) => string;
75
75
  readonly VALIDATIONS_LIST: `${string}/validations`;
76
76
  };
77
+ readonly root: {
78
+ readonly BASE: string;
79
+ readonly REFERENCE_LIST: `${string}/reference`;
80
+ };
77
81
  readonly stops: {
78
82
  readonly BASE: string;
79
83
  readonly STOPS_DETAIL: (id: string) => string;
@@ -5,8 +5,6 @@
5
5
  import { getModuleConfig } from './app-configs.js';
6
6
  /* * */
7
7
  export const PAGE_ROUTES = Object.freeze({
8
- /* * */
9
- /* ALERTS */
10
8
  alerts: {
11
9
  // BASE
12
10
  BASE: `${getModuleConfig('alerts', 'frontend_url')}`,
@@ -14,8 +12,6 @@ export const PAGE_ROUTES = Object.freeze({
14
12
  ALERTS_DETAIL: (id) => `${getModuleConfig('alerts', 'frontend_url')}/${id}`,
15
13
  ALERTS_LIST: `${getModuleConfig('alerts', 'frontend_url')}`,
16
14
  },
17
- /* * */
18
- /* AUTH */
19
15
  auth: {
20
16
  // BASE
21
17
  BASE: `${getModuleConfig('auth', 'frontend_url')}`,
@@ -41,8 +37,6 @@ export const PAGE_ROUTES = Object.freeze({
41
37
  USERS_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/users/${id}`,
42
38
  USERS_LIST: `${getModuleConfig('auth', 'frontend_url')}/users`,
43
39
  },
44
- /* * */
45
- /* CONTROLLER */
46
40
  controller: {
47
41
  // BASE
48
42
  BASE: `${getModuleConfig('controller', 'frontend_url')}`,
@@ -50,8 +44,6 @@ export const PAGE_ROUTES = Object.freeze({
50
44
  RIDES_DETAIL: (id) => `${getModuleConfig('controller', 'frontend_url')}/rides/${id}`,
51
45
  RIDES_LIST: `${getModuleConfig('controller', 'frontend_url')}/rides`,
52
46
  },
53
- /* * */
54
- /* DATES */
55
47
  dates: {
56
48
  // BASE
57
49
  BASE: `${getModuleConfig('dates', 'frontend_url')}`,
@@ -70,8 +62,6 @@ export const PAGE_ROUTES = Object.freeze({
70
62
  YEAR_PERIODS_DETAIL: (id) => `${getModuleConfig('dates', 'frontend_url')}/year-periods/${id}`,
71
63
  YEAR_PERIODS_LIST: `${getModuleConfig('dates', 'frontend_url')}/year-periods`,
72
64
  },
73
- /* * */
74
- /* FLEET */
75
65
  fleet: {
76
66
  // BASE
77
67
  BASE: `${getModuleConfig('fleet', 'frontend_url')}`,
@@ -79,8 +69,6 @@ export const PAGE_ROUTES = Object.freeze({
79
69
  VEHICLES_DETAIL: (id) => `${getModuleConfig('fleet', 'frontend_url')}/vehicles/${id}`,
80
70
  VEHICLES_LIST: `${getModuleConfig('fleet', 'frontend_url')}/vehicles`,
81
71
  },
82
- /* * */
83
- /* OFFER */
84
72
  offer: {
85
73
  // BASE
86
74
  BASE: `${getModuleConfig('offer', 'frontend_url')}`,
@@ -101,8 +89,6 @@ export const PAGE_ROUTES = Object.freeze({
101
89
  ZONES_DETAIL: (id) => `${getModuleConfig('offer', 'frontend_url')}/zones/${id}`,
102
90
  ZONES_LIST: `${getModuleConfig('offer', 'frontend_url')}/zones`,
103
91
  },
104
- /* * */
105
- /* PERFORMANCE */
106
92
  performance: {
107
93
  // BASE
108
94
  BASE: `${getModuleConfig('performance', 'frontend_url')}`,
@@ -117,8 +103,6 @@ export const PAGE_ROUTES = Object.freeze({
117
103
  // SUPPLY
118
104
  SUPPLY_LIST: `${getModuleConfig('performance', 'frontend_url')}/supply`,
119
105
  },
120
- /* * */
121
- /* PLANS */
122
106
  plans: {
123
107
  // BASE
124
108
  BASE: `${getModuleConfig('plans', 'frontend_url')}`,
@@ -129,8 +113,12 @@ export const PAGE_ROUTES = Object.freeze({
129
113
  VALIDATIONS_DETAIL: (id) => `${getModuleConfig('plans', 'frontend_url')}/validations/${id}`,
130
114
  VALIDATIONS_LIST: `${getModuleConfig('plans', 'frontend_url')}/validations`,
131
115
  },
132
- /* * */
133
- /* STOPS */
116
+ root: {
117
+ // BASE
118
+ BASE: `${getModuleConfig('root', 'frontend_url')}`,
119
+ // REFERENCE
120
+ REFERENCE_LIST: `${getModuleConfig('root', 'frontend_url')}/reference`,
121
+ },
134
122
  stops: {
135
123
  // BASE
136
124
  BASE: `${getModuleConfig('stops', 'frontend_url')}`,
@@ -140,8 +128,6 @@ export const PAGE_ROUTES = Object.freeze({
140
128
  },
141
129
  });
142
130
  export const API_ROUTES = Object.freeze({
143
- /* * */
144
- /* ALERTS */
145
131
  alerts: {
146
132
  // BASE
147
133
  BASE: `${getModuleConfig('alerts', 'api_url')}`,
@@ -159,8 +145,6 @@ export const API_ROUTES = Object.freeze({
159
145
  OPERATION_RIDES_WS: `${getModuleConfig('alerts', 'api_url')}/operation/rides/ws`,
160
146
  OPERATION_STOPS: `${getModuleConfig('alerts', 'api_url')}/operation/stops`,
161
147
  },
162
- /* * */
163
- /* AUTH */
164
148
  auth: {
165
149
  // BASE
166
150
  BASE: `${getModuleConfig('auth', 'api_url')}`,
@@ -201,8 +185,6 @@ export const API_ROUTES = Object.freeze({
201
185
  WIKI_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/wiki/${id}`,
202
186
  WIKI_LIST: `${getModuleConfig('auth', 'api_url')}/wiki`,
203
187
  },
204
- /* * */
205
- /* CONTROLLER */
206
188
  controller: {
207
189
  // BASE
208
190
  BASE: `${getModuleConfig('controller', 'api_url')}`,
@@ -226,8 +208,6 @@ export const API_ROUTES = Object.freeze({
226
208
  RIDES_LIST: `${getModuleConfig('controller', 'api_url')}/rides`,
227
209
  RIDES_WS: `${getModuleConfig('controller', 'api_url')}/rides/ws`,
228
210
  },
229
- /* * */
230
- /* DATES */
231
211
  dates: {
232
212
  // BASE
233
213
  BASE: `${getModuleConfig('dates', 'api_url')}`,
@@ -249,8 +229,6 @@ export const API_ROUTES = Object.freeze({
249
229
  YEAR_PERIODS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/year-periods/${id}/lock`,
250
230
  YEAR_PERIODS_LIST: `${getModuleConfig('dates', 'api_url')}/year-periods`,
251
231
  },
252
- /* * */
253
- /* EXPORTER */
254
232
  exporter: {
255
233
  // BASE
256
234
  BASE: `${getModuleConfig('exporter', 'api_url')}`,
@@ -258,8 +236,6 @@ export const API_ROUTES = Object.freeze({
258
236
  EXPORTER_DETAIL_DOWNLOAD: (id) => `${getModuleConfig('exporter', 'api_url')}/exporter/${id}/download`,
259
237
  EXPORTER_LIST: `${getModuleConfig('exporter', 'api_url')}/exporter`,
260
238
  },
261
- /* * */
262
- /* FLEET */
263
239
  fleet: {
264
240
  // BASE
265
241
  BASE: `${getModuleConfig('fleet', 'api_url')}`,
@@ -270,8 +246,6 @@ export const API_ROUTES = Object.freeze({
270
246
  VEHICLES_LIST: `${getModuleConfig('fleet', 'api_url')}/vehicles`,
271
247
  VEHICLES_POSITIONS: `${getModuleConfig('fleet', 'api_url')}/vehicles/positions`,
272
248
  },
273
- /* * */
274
- /* HUB */
275
249
  hub: {
276
250
  // BASE
277
251
  BASE: `${getModuleConfig('hub', 'api_url')}`,
@@ -285,8 +259,6 @@ export const API_ROUTES = Object.freeze({
285
259
  PLANS_GTFS_CM: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs/cm`,
286
260
  PLANS_LIST: `${getModuleConfig('hub', 'api_url')}/v1/plans`,
287
261
  },
288
- /* * */
289
- /* LOCATIONS */
290
262
  locations: {
291
263
  // BASE
292
264
  BASE: `${getModuleConfig('locations', 'api_url')}`,
@@ -297,8 +269,6 @@ export const API_ROUTES = Object.freeze({
297
269
  LOCATIONS_MUNICIPALITIES: `${getModuleConfig('locations', 'api_url')}/locations/municipalities`,
298
270
  LOCATIONS_PARISHES: `${getModuleConfig('locations', 'api_url')}/locations/parishes`,
299
271
  },
300
- /* * */
301
- /* OFFER */
302
272
  offer: {
303
273
  // BASE
304
274
  BASE: `${getModuleConfig('offer', 'api_url')}`,
@@ -332,8 +302,6 @@ export const API_ROUTES = Object.freeze({
332
302
  ZONES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/zones/${id}/lock`,
333
303
  ZONES_LIST: `${getModuleConfig('offer', 'api_url')}/zones`,
334
304
  },
335
- /* * */
336
- /* PERFORMANCE */
337
305
  performance: {
338
306
  // BASE
339
307
  BASE: `${getModuleConfig('performance', 'api_url')}`,
@@ -345,8 +313,6 @@ export const API_ROUTES = Object.freeze({
345
313
  NETWORK_LINES: `${getModuleConfig('performance', 'api_url')}/network/lines`,
346
314
  NETWORK_PATTERNS: `${getModuleConfig('performance', 'api_url')}/network/patterns`,
347
315
  },
348
- /* * */
349
- /* PLANS */
350
316
  plans: {
351
317
  // BASE
352
318
  BASE: `${getModuleConfig('plans', 'api_url')}`,
@@ -368,8 +334,6 @@ export const API_ROUTES = Object.freeze({
368
334
  VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${id}/request-approval`,
369
335
  VALIDATIONS_LIST: `${getModuleConfig('plans', 'api_url')}/validations`,
370
336
  },
371
- /* * */
372
- /* STOPS */
373
337
  stops: {
374
338
  // BASE
375
339
  BASE: `${getModuleConfig('stops', 'api_url')}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/consts",
3
- "version": "20260508.1103.58",
3
+ "version": "20260509.331.19",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"