@tmlmobilidade/consts 20260829.136.5 → 20260829.236.0

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.
@@ -227,41 +227,41 @@ const MODULE_CONFIGS = {
227
227
  ...DEFAULT_STG_CONFIG,
228
228
  },
229
229
  },
230
- performance: {
230
+ operation: {
231
231
  dev: {
232
- api_port: 52006,
233
- api_url: 'http://localhost:52006',
232
+ api_port: 52004,
233
+ api_url: 'http://localhost:52004',
234
234
  cors_origin: true,
235
- frontend_port: 51006,
236
- frontend_url: 'http://localhost:51006/performance',
235
+ frontend_port: 51004,
236
+ frontend_url: 'http://localhost:51004/operation',
237
237
  },
238
238
  prd: {
239
- api_url: 'https://go.tmlmobilidade.pt/performance/api',
240
- frontend_url: 'https://go.tmlmobilidade.pt/performance',
239
+ api_url: 'https://go.tmlmobilidade.pt/operation/api',
240
+ frontend_url: 'https://go.tmlmobilidade.pt/operation',
241
241
  ...DEFAULT_PRD_CONFIG,
242
242
  },
243
243
  stg: {
244
- api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/performance/api`,
245
- frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/performance`,
244
+ api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/operation/api`,
245
+ frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/operation`,
246
246
  ...DEFAULT_STG_CONFIG,
247
247
  },
248
248
  },
249
- plans: {
249
+ performance: {
250
250
  dev: {
251
- api_port: 52004,
252
- api_url: 'http://localhost:52004',
251
+ api_port: 52006,
252
+ api_url: 'http://localhost:52006',
253
253
  cors_origin: true,
254
- frontend_port: 51004,
255
- frontend_url: 'http://localhost:51004/plans',
254
+ frontend_port: 51006,
255
+ frontend_url: 'http://localhost:51006/performance',
256
256
  },
257
257
  prd: {
258
- api_url: 'https://go.tmlmobilidade.pt/plans/api',
259
- frontend_url: 'https://go.tmlmobilidade.pt/plans',
258
+ api_url: 'https://go.tmlmobilidade.pt/performance/api',
259
+ frontend_url: 'https://go.tmlmobilidade.pt/performance',
260
260
  ...DEFAULT_PRD_CONFIG,
261
261
  },
262
262
  stg: {
263
- api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/plans/api`,
264
- frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/plans`,
263
+ api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/performance/api`,
264
+ frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/performance`,
265
265
  ...DEFAULT_STG_CONFIG,
266
266
  },
267
267
  },
@@ -65,6 +65,13 @@ export declare const PAGE_ROUTES: Readonly<{
65
65
  readonly ZONES_DETAIL: (id: string) => string;
66
66
  readonly ZONES_LIST: `${string}/zones`;
67
67
  };
68
+ readonly operation: {
69
+ readonly BASE: string;
70
+ readonly PLANS_DETAIL: (id: string) => string;
71
+ readonly PLANS_LIST: `${string}/plans`;
72
+ readonly VALIDATIONS_DETAIL: (id: string) => string;
73
+ readonly VALIDATIONS_LIST: `${string}/validations`;
74
+ };
68
75
  readonly performance: {
69
76
  readonly BASE: string;
70
77
  readonly AREAS_1_LIST: `${string}/areas/1`;
@@ -73,13 +80,6 @@ export declare const PAGE_ROUTES: Readonly<{
73
80
  readonly DEMAND_LIST: `${string}/demand`;
74
81
  readonly SUPPLY_LIST: `${string}/supply`;
75
82
  };
76
- readonly plans: {
77
- readonly BASE: string;
78
- readonly APPROVED_DETAIL: (id: string) => string;
79
- readonly APPROVED_LIST: `${string}/approved`;
80
- readonly VALIDATIONS_DETAIL: (id: string) => string;
81
- readonly VALIDATIONS_LIST: `${string}/validations`;
82
- };
83
83
  readonly root: {
84
84
  readonly BASE: string;
85
85
  readonly REFERENCE_LIST: `${string}/reference`;
@@ -280,14 +280,7 @@ export declare const API_ROUTES: Readonly<{
280
280
  readonly ZONES_DETAIL_LOCK: (id: string) => string;
281
281
  readonly ZONES_LIST: `${string}/zones`;
282
282
  };
283
- readonly performance: {
284
- readonly BASE: string;
285
- readonly DATES_LIST: `${string}/dates`;
286
- readonly METRICS_DETAIL: (id: string) => string;
287
- readonly NETWORK_LINES: `${string}/network/lines`;
288
- readonly NETWORK_PATTERNS: `${string}/network/patterns`;
289
- };
290
- readonly plans: {
283
+ readonly operation: {
291
284
  readonly BASE: string;
292
285
  readonly PLANS_CREATE: `${string}/plans/create`;
293
286
  readonly PLANS_DETAIL: (id: string) => string;
@@ -312,4 +305,11 @@ export declare const API_ROUTES: Readonly<{
312
305
  readonly VALIDATIONS_LIST: `${string}/validations/list`;
313
306
  readonly VALIDATIONS_LIST_AGENCIES: `${string}/validations/list-agencies`;
314
307
  };
308
+ readonly performance: {
309
+ readonly BASE: string;
310
+ readonly DATES_LIST: `${string}/dates`;
311
+ readonly METRICS_DETAIL: (id: string) => string;
312
+ readonly NETWORK_LINES: `${string}/network/lines`;
313
+ readonly NETWORK_PATTERNS: `${string}/network/patterns`;
314
+ };
315
315
  }>;
@@ -98,6 +98,16 @@ export const PAGE_ROUTES = Object.freeze({
98
98
  ZONES_DETAIL: (id) => `${getModuleConfig('offer', 'frontend_url')}/zones/${encodeURIComponent(id)}`,
99
99
  ZONES_LIST: `${getModuleConfig('offer', 'frontend_url')}/zones`,
100
100
  },
101
+ operation: {
102
+ // BASE
103
+ BASE: `${getModuleConfig('operation', 'frontend_url')}`,
104
+ // PLANS
105
+ PLANS_DETAIL: (id) => `${getModuleConfig('operation', 'frontend_url')}/plans/${encodeURIComponent(id)}`,
106
+ PLANS_LIST: `${getModuleConfig('operation', 'frontend_url')}/plans`,
107
+ // VALIDATIONS
108
+ VALIDATIONS_DETAIL: (id) => `${getModuleConfig('operation', 'frontend_url')}/validations/${encodeURIComponent(id)}`,
109
+ VALIDATIONS_LIST: `${getModuleConfig('operation', 'frontend_url')}/validations`,
110
+ },
101
111
  performance: {
102
112
  // BASE
103
113
  BASE: `${getModuleConfig('performance', 'frontend_url')}`,
@@ -112,16 +122,6 @@ export const PAGE_ROUTES = Object.freeze({
112
122
  // SUPPLY
113
123
  SUPPLY_LIST: `${getModuleConfig('performance', 'frontend_url')}/supply`,
114
124
  },
115
- plans: {
116
- // BASE
117
- BASE: `${getModuleConfig('plans', 'frontend_url')}`,
118
- // APPROVED
119
- APPROVED_DETAIL: (id) => `${getModuleConfig('plans', 'frontend_url')}/approved/${encodeURIComponent(id)}`,
120
- APPROVED_LIST: `${getModuleConfig('plans', 'frontend_url')}/approved`,
121
- // VALIDATIONS
122
- VALIDATIONS_DETAIL: (id) => `${getModuleConfig('plans', 'frontend_url')}/validations/${encodeURIComponent(id)}`,
123
- VALIDATIONS_LIST: `${getModuleConfig('plans', 'frontend_url')}/validations`,
124
- },
125
125
  root: {
126
126
  // BASE
127
127
  BASE: `${getModuleConfig('root', 'frontend_url')}`,
@@ -371,6 +371,34 @@ export const API_ROUTES = Object.freeze({
371
371
  ZONES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/zones/${encodeURIComponent(id)}/lock`,
372
372
  ZONES_LIST: `${getModuleConfig('offer', 'api_url')}/zones`,
373
373
  },
374
+ operation: {
375
+ // BASE
376
+ BASE: `${getModuleConfig('operation', 'api_url')}`,
377
+ // PLANS
378
+ PLANS_CREATE: `${getModuleConfig('operation', 'api_url')}/plans/create`,
379
+ PLANS_DETAIL: (id) => `${getModuleConfig('operation', 'api_url')}/plans/${encodeURIComponent(id)}`,
380
+ PLANS_DETAIL_APEX_FILE: (id) => `${getModuleConfig('operation', 'api_url')}/plans/${encodeURIComponent(id)}/apex-file`,
381
+ PLANS_DETAIL_APEX_FILE_DOWNLOAD: (id) => `${getModuleConfig('operation', 'api_url')}/plans/${encodeURIComponent(id)}/apex-file/download`,
382
+ PLANS_DETAIL_APEX_FILE_SEND_NOTIFICATION: (id) => `${getModuleConfig('operation', 'api_url')}/plans/${encodeURIComponent(id)}/apex-file/send-notification`,
383
+ PLANS_DETAIL_CHANGE_GTFS: (id) => `${getModuleConfig('operation', 'api_url')}/plans/${encodeURIComponent(id)}/change-gtfs`,
384
+ PLANS_DETAIL_CONTROLLER_REPROCESS: (id) => `${getModuleConfig('operation', 'api_url')}/plans/${encodeURIComponent(id)}/controller-reprocess`,
385
+ PLANS_DETAIL_LOCK: (id) => `${getModuleConfig('operation', 'api_url')}/plans/${encodeURIComponent(id)}/lock`,
386
+ PLANS_DETAIL_OPERATION_FILE: (id) => `${getModuleConfig('operation', 'api_url')}/plans/${encodeURIComponent(id)}/operation-file`,
387
+ PLANS_DETAIL_OPERATION_FILE_DOWNLOAD: (id) => `${getModuleConfig('operation', 'api_url')}/plans/${encodeURIComponent(id)}/operation-file/download`,
388
+ PLANS_DRT_MODEL: (id) => `${getModuleConfig('operation', 'api_url')}/plans/drt-model/${encodeURIComponent(id)}`,
389
+ PLANS_LIST: `${getModuleConfig('operation', 'api_url')}/plans/list`,
390
+ PLANS_LIST_AGENCIES: `${getModuleConfig('operation', 'api_url')}/plans/list-agencies`,
391
+ // VALIDATIONS
392
+ VALIDATIONS_CREATE: `${getModuleConfig('operation', 'api_url')}/validations/create`,
393
+ VALIDATIONS_DETAIL: (id) => `${getModuleConfig('operation', 'api_url')}/validations/${encodeURIComponent(id)}`,
394
+ VALIDATIONS_DETAIL_FILE: (id) => `${getModuleConfig('operation', 'api_url')}/validations/${encodeURIComponent(id)}/file`,
395
+ VALIDATIONS_DETAIL_FILE_DOWNLOAD: (id) => `${getModuleConfig('operation', 'api_url')}/validations/${encodeURIComponent(id)}/file/download`,
396
+ VALIDATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('operation', 'api_url')}/validations/${encodeURIComponent(id)}/lock`,
397
+ VALIDATIONS_DETAIL_PROCESSING_STATUS: (id) => `${getModuleConfig('operation', 'api_url')}/validations/${encodeURIComponent(id)}/processing-status`,
398
+ VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id) => `${getModuleConfig('operation', 'api_url')}/validations/${encodeURIComponent(id)}/request-approval`,
399
+ VALIDATIONS_LIST: `${getModuleConfig('operation', 'api_url')}/validations/list`,
400
+ VALIDATIONS_LIST_AGENCIES: `${getModuleConfig('operation', 'api_url')}/validations/list-agencies`,
401
+ },
374
402
  performance: {
375
403
  // BASE
376
404
  BASE: `${getModuleConfig('performance', 'api_url')}`,
@@ -382,32 +410,4 @@ export const API_ROUTES = Object.freeze({
382
410
  NETWORK_LINES: `${getModuleConfig('performance', 'api_url')}/network/lines`,
383
411
  NETWORK_PATTERNS: `${getModuleConfig('performance', 'api_url')}/network/patterns`,
384
412
  },
385
- plans: {
386
- // BASE
387
- BASE: `${getModuleConfig('plans', 'api_url')}`,
388
- // PLANS
389
- PLANS_CREATE: `${getModuleConfig('plans', 'api_url')}/plans/create`,
390
- PLANS_DETAIL: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}`,
391
- PLANS_DETAIL_APEX_FILE: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/apex-file`,
392
- PLANS_DETAIL_APEX_FILE_DOWNLOAD: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/apex-file/download`,
393
- PLANS_DETAIL_APEX_FILE_SEND_NOTIFICATION: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/apex-file/send-notification`,
394
- PLANS_DETAIL_CHANGE_GTFS: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/change-gtfs`,
395
- PLANS_DETAIL_CONTROLLER_REPROCESS: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/controller-reprocess`,
396
- PLANS_DETAIL_LOCK: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/lock`,
397
- PLANS_DETAIL_OPERATION_FILE: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/operation-file`,
398
- PLANS_DETAIL_OPERATION_FILE_DOWNLOAD: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/operation-file/download`,
399
- PLANS_DRT_MODEL: (id) => `${getModuleConfig('plans', 'api_url')}/plans/drt-model/${encodeURIComponent(id)}`,
400
- PLANS_LIST: `${getModuleConfig('plans', 'api_url')}/plans/list`,
401
- PLANS_LIST_AGENCIES: `${getModuleConfig('plans', 'api_url')}/plans/list-agencies`,
402
- // VALIDATIONS
403
- VALIDATIONS_CREATE: `${getModuleConfig('plans', 'api_url')}/validations/create`,
404
- VALIDATIONS_DETAIL: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}`,
405
- VALIDATIONS_DETAIL_FILE: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/file`,
406
- VALIDATIONS_DETAIL_FILE_DOWNLOAD: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/file/download`,
407
- VALIDATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/lock`,
408
- VALIDATIONS_DETAIL_PROCESSING_STATUS: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/processing-status`,
409
- VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/request-approval`,
410
- VALIDATIONS_LIST: `${getModuleConfig('plans', 'api_url')}/validations/list`,
411
- VALIDATIONS_LIST_AGENCIES: `${getModuleConfig('plans', 'api_url')}/validations/list-agencies`,
412
- },
413
413
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/consts",
3
- "version": "20260829.136.5",
3
+ "version": "20260829.236.0",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"