@tmlmobilidade/consts 20260829.236.0 → 20260829.1045.9
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 +0 -19
- package/dist/app-routes.d.ts +17 -23
- package/dist/app-routes.js +21 -29
- package/package.json +1 -1
package/dist/app-configs.js
CHANGED
|
@@ -129,25 +129,6 @@ const MODULE_CONFIGS = {
|
|
|
129
129
|
...DEFAULT_STG_CONFIG,
|
|
130
130
|
},
|
|
131
131
|
},
|
|
132
|
-
fleet: {
|
|
133
|
-
dev: {
|
|
134
|
-
api_port: 52009,
|
|
135
|
-
api_url: 'http://localhost:52009',
|
|
136
|
-
cors_origin: true,
|
|
137
|
-
frontend_port: 51009,
|
|
138
|
-
frontend_url: 'http://localhost:51009/fleet',
|
|
139
|
-
},
|
|
140
|
-
prd: {
|
|
141
|
-
api_url: 'https://go.tmlmobilidade.pt/fleet/api',
|
|
142
|
-
frontend_url: 'https://go.tmlmobilidade.pt/fleet',
|
|
143
|
-
...DEFAULT_PRD_CONFIG,
|
|
144
|
-
},
|
|
145
|
-
stg: {
|
|
146
|
-
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/fleet/api`,
|
|
147
|
-
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/fleet`,
|
|
148
|
-
...DEFAULT_STG_CONFIG,
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
132
|
hub: {
|
|
152
133
|
dev: {
|
|
153
134
|
api_port: 52100,
|
package/dist/app-routes.d.ts
CHANGED
|
@@ -42,11 +42,6 @@ export declare const PAGE_ROUTES: Readonly<{
|
|
|
42
42
|
readonly YEAR_PERIODS_DETAIL: (id: string) => string;
|
|
43
43
|
readonly YEAR_PERIODS_LIST: `${string}/year-periods`;
|
|
44
44
|
};
|
|
45
|
-
readonly fleet: {
|
|
46
|
-
readonly BASE: string;
|
|
47
|
-
readonly VEHICLES_DETAIL: (id: string) => string;
|
|
48
|
-
readonly VEHICLES_LIST: `${string}/vehicles`;
|
|
49
|
-
};
|
|
50
45
|
readonly infrastructure: {
|
|
51
46
|
readonly BASE: string;
|
|
52
47
|
readonly INFRASTRUCTURE_DETAIL: (id: string) => string;
|
|
@@ -67,10 +62,12 @@ export declare const PAGE_ROUTES: Readonly<{
|
|
|
67
62
|
};
|
|
68
63
|
readonly operation: {
|
|
69
64
|
readonly BASE: string;
|
|
65
|
+
readonly GTFS_VALIDATIONS_DETAIL: (id: string) => string;
|
|
66
|
+
readonly GTFS_VALIDATIONS_LIST: `${string}/gtfs-validations`;
|
|
70
67
|
readonly PLANS_DETAIL: (id: string) => string;
|
|
71
68
|
readonly PLANS_LIST: `${string}/plans`;
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
69
|
+
readonly VEHICLES_DETAIL: (id: string) => string;
|
|
70
|
+
readonly VEHICLES_LIST: `${string}/vehicles`;
|
|
74
71
|
};
|
|
75
72
|
readonly performance: {
|
|
76
73
|
readonly BASE: string;
|
|
@@ -193,13 +190,6 @@ export declare const API_ROUTES: Readonly<{
|
|
|
193
190
|
readonly EXPORTER_DETAIL_DOWNLOAD: (id: string) => string;
|
|
194
191
|
readonly EXPORTER_LIST: `${string}/exporter`;
|
|
195
192
|
};
|
|
196
|
-
readonly fleet: {
|
|
197
|
-
readonly BASE: string;
|
|
198
|
-
readonly VEHICLES_DETAIL: (id: string) => string;
|
|
199
|
-
readonly VEHICLES_DETAIL_LAST_EVENT: (id: string) => string;
|
|
200
|
-
readonly VEHICLES_DETAIL_LOCK: (id: string) => string;
|
|
201
|
-
readonly VEHICLES_LIST: `${string}/vehicles`;
|
|
202
|
-
};
|
|
203
193
|
readonly hub: {
|
|
204
194
|
readonly BASE: string;
|
|
205
195
|
readonly ALERTS_GTFS: `${string}/v1/alerts/gtfs`;
|
|
@@ -282,6 +272,15 @@ export declare const API_ROUTES: Readonly<{
|
|
|
282
272
|
};
|
|
283
273
|
readonly operation: {
|
|
284
274
|
readonly BASE: string;
|
|
275
|
+
readonly GTFS_VALIDATIONS_CREATE: `${string}/gtfs-validations/create`;
|
|
276
|
+
readonly GTFS_VALIDATIONS_DETAIL: (id: string) => string;
|
|
277
|
+
readonly GTFS_VALIDATIONS_DETAIL_FILE: (id: string) => string;
|
|
278
|
+
readonly GTFS_VALIDATIONS_DETAIL_FILE_DOWNLOAD: (id: string) => string;
|
|
279
|
+
readonly GTFS_VALIDATIONS_DETAIL_LOCK: (id: string) => string;
|
|
280
|
+
readonly GTFS_VALIDATIONS_DETAIL_PROCESSING_STATUS: (id: string) => string;
|
|
281
|
+
readonly GTFS_VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id: string) => string;
|
|
282
|
+
readonly GTFS_VALIDATIONS_LIST: `${string}/gtfs-validations/list`;
|
|
283
|
+
readonly GTFS_VALIDATIONS_LIST_AGENCIES: `${string}/gtfs-validations/list-agencies`;
|
|
285
284
|
readonly PLANS_CREATE: `${string}/plans/create`;
|
|
286
285
|
readonly PLANS_DETAIL: (id: string) => string;
|
|
287
286
|
readonly PLANS_DETAIL_APEX_FILE: (id: string) => string;
|
|
@@ -295,15 +294,10 @@ export declare const API_ROUTES: Readonly<{
|
|
|
295
294
|
readonly PLANS_DRT_MODEL: (id: string) => string;
|
|
296
295
|
readonly PLANS_LIST: `${string}/plans/list`;
|
|
297
296
|
readonly PLANS_LIST_AGENCIES: `${string}/plans/list-agencies`;
|
|
298
|
-
readonly
|
|
299
|
-
readonly
|
|
300
|
-
readonly
|
|
301
|
-
readonly
|
|
302
|
-
readonly VALIDATIONS_DETAIL_LOCK: (id: string) => string;
|
|
303
|
-
readonly VALIDATIONS_DETAIL_PROCESSING_STATUS: (id: string) => string;
|
|
304
|
-
readonly VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id: string) => string;
|
|
305
|
-
readonly VALIDATIONS_LIST: `${string}/validations/list`;
|
|
306
|
-
readonly VALIDATIONS_LIST_AGENCIES: `${string}/validations/list-agencies`;
|
|
297
|
+
readonly VEHICLES_DETAIL: (id: string) => string;
|
|
298
|
+
readonly VEHICLES_DETAIL_LAST_EVENT: (id: string) => string;
|
|
299
|
+
readonly VEHICLES_DETAIL_LOCK: (id: string) => string;
|
|
300
|
+
readonly VEHICLES_LIST: `${string}/vehicles`;
|
|
307
301
|
};
|
|
308
302
|
readonly performance: {
|
|
309
303
|
readonly BASE: string;
|
package/dist/app-routes.js
CHANGED
|
@@ -64,13 +64,6 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
64
64
|
YEAR_PERIODS_DETAIL: (id) => `${getModuleConfig('dates', 'frontend_url')}/year-periods/${encodeURIComponent(id)}`,
|
|
65
65
|
YEAR_PERIODS_LIST: `${getModuleConfig('dates', 'frontend_url')}/year-periods`,
|
|
66
66
|
},
|
|
67
|
-
fleet: {
|
|
68
|
-
// BASE
|
|
69
|
-
BASE: `${getModuleConfig('fleet', 'frontend_url')}`,
|
|
70
|
-
// VEHICLES
|
|
71
|
-
VEHICLES_DETAIL: (id) => `${getModuleConfig('fleet', 'frontend_url')}/vehicles/${encodeURIComponent(id)}`,
|
|
72
|
-
VEHICLES_LIST: `${getModuleConfig('fleet', 'frontend_url')}/vehicles`,
|
|
73
|
-
},
|
|
74
67
|
infrastructure: {
|
|
75
68
|
// BASE
|
|
76
69
|
BASE: `${getModuleConfig('infrastructure', 'frontend_url')}`,
|
|
@@ -101,12 +94,15 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
101
94
|
operation: {
|
|
102
95
|
// BASE
|
|
103
96
|
BASE: `${getModuleConfig('operation', 'frontend_url')}`,
|
|
97
|
+
// GTFS_VALIDATIONS
|
|
98
|
+
GTFS_VALIDATIONS_DETAIL: (id) => `${getModuleConfig('operation', 'frontend_url')}/gtfs-validations/${encodeURIComponent(id)}`,
|
|
99
|
+
GTFS_VALIDATIONS_LIST: `${getModuleConfig('operation', 'frontend_url')}/gtfs-validations`,
|
|
104
100
|
// PLANS
|
|
105
101
|
PLANS_DETAIL: (id) => `${getModuleConfig('operation', 'frontend_url')}/plans/${encodeURIComponent(id)}`,
|
|
106
102
|
PLANS_LIST: `${getModuleConfig('operation', 'frontend_url')}/plans`,
|
|
107
|
-
//
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
// VEHICLES
|
|
104
|
+
VEHICLES_DETAIL: (id) => `${getModuleConfig('operation', 'frontend_url')}/vehicles/${encodeURIComponent(id)}`,
|
|
105
|
+
VEHICLES_LIST: `${getModuleConfig('operation', 'frontend_url')}/vehicles`,
|
|
110
106
|
},
|
|
111
107
|
performance: {
|
|
112
108
|
// BASE
|
|
@@ -260,15 +256,6 @@ export const API_ROUTES = Object.freeze({
|
|
|
260
256
|
EXPORTER_DETAIL_DOWNLOAD: (id) => `${getModuleConfig('exporter', 'api_url')}/exporter/${encodeURIComponent(id)}/download`,
|
|
261
257
|
EXPORTER_LIST: `${getModuleConfig('exporter', 'api_url')}/exporter`,
|
|
262
258
|
},
|
|
263
|
-
fleet: {
|
|
264
|
-
// BASE
|
|
265
|
-
BASE: `${getModuleConfig('fleet', 'api_url')}`,
|
|
266
|
-
// VEHICLES
|
|
267
|
-
VEHICLES_DETAIL: (id) => `${getModuleConfig('fleet', 'api_url')}/vehicles/${encodeURIComponent(id)}`,
|
|
268
|
-
VEHICLES_DETAIL_LAST_EVENT: (id) => `${getModuleConfig('fleet', 'api_url')}/vehicles/${encodeURIComponent(id)}/last-event`,
|
|
269
|
-
VEHICLES_DETAIL_LOCK: (id) => `${getModuleConfig('fleet', 'api_url')}/vehicles/${encodeURIComponent(id)}/lock`,
|
|
270
|
-
VEHICLES_LIST: `${getModuleConfig('fleet', 'api_url')}/vehicles`,
|
|
271
|
-
},
|
|
272
259
|
hub: {
|
|
273
260
|
// BASE
|
|
274
261
|
BASE: `${getModuleConfig('hub', 'api_url')}`,
|
|
@@ -374,6 +361,16 @@ export const API_ROUTES = Object.freeze({
|
|
|
374
361
|
operation: {
|
|
375
362
|
// BASE
|
|
376
363
|
BASE: `${getModuleConfig('operation', 'api_url')}`,
|
|
364
|
+
// GTFS-VALIDATIONS
|
|
365
|
+
GTFS_VALIDATIONS_CREATE: `${getModuleConfig('operation', 'api_url')}/gtfs-validations/create`,
|
|
366
|
+
GTFS_VALIDATIONS_DETAIL: (id) => `${getModuleConfig('operation', 'api_url')}/gtfs-validations/${encodeURIComponent(id)}`,
|
|
367
|
+
GTFS_VALIDATIONS_DETAIL_FILE: (id) => `${getModuleConfig('operation', 'api_url')}/gtfs-validations/${encodeURIComponent(id)}/file`,
|
|
368
|
+
GTFS_VALIDATIONS_DETAIL_FILE_DOWNLOAD: (id) => `${getModuleConfig('operation', 'api_url')}/gtfs-validations/${encodeURIComponent(id)}/file/download`,
|
|
369
|
+
GTFS_VALIDATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('operation', 'api_url')}/gtfs-validations/${encodeURIComponent(id)}/lock`,
|
|
370
|
+
GTFS_VALIDATIONS_DETAIL_PROCESSING_STATUS: (id) => `${getModuleConfig('operation', 'api_url')}/gtfs-validations/${encodeURIComponent(id)}/processing-status`,
|
|
371
|
+
GTFS_VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id) => `${getModuleConfig('operation', 'api_url')}/gtfs-validations/${encodeURIComponent(id)}/request-approval`,
|
|
372
|
+
GTFS_VALIDATIONS_LIST: `${getModuleConfig('operation', 'api_url')}/gtfs-validations/list`,
|
|
373
|
+
GTFS_VALIDATIONS_LIST_AGENCIES: `${getModuleConfig('operation', 'api_url')}/gtfs-validations/list-agencies`,
|
|
377
374
|
// PLANS
|
|
378
375
|
PLANS_CREATE: `${getModuleConfig('operation', 'api_url')}/plans/create`,
|
|
379
376
|
PLANS_DETAIL: (id) => `${getModuleConfig('operation', 'api_url')}/plans/${encodeURIComponent(id)}`,
|
|
@@ -388,16 +385,11 @@ export const API_ROUTES = Object.freeze({
|
|
|
388
385
|
PLANS_DRT_MODEL: (id) => `${getModuleConfig('operation', 'api_url')}/plans/drt-model/${encodeURIComponent(id)}`,
|
|
389
386
|
PLANS_LIST: `${getModuleConfig('operation', 'api_url')}/plans/list`,
|
|
390
387
|
PLANS_LIST_AGENCIES: `${getModuleConfig('operation', 'api_url')}/plans/list-agencies`,
|
|
391
|
-
//
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
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`,
|
|
388
|
+
// VEHICLES
|
|
389
|
+
VEHICLES_DETAIL: (id) => `${getModuleConfig('operation', 'api_url')}/vehicles/${encodeURIComponent(id)}`,
|
|
390
|
+
VEHICLES_DETAIL_LAST_EVENT: (id) => `${getModuleConfig('operation', 'api_url')}/vehicles/${encodeURIComponent(id)}/last-event`,
|
|
391
|
+
VEHICLES_DETAIL_LOCK: (id) => `${getModuleConfig('operation', 'api_url')}/vehicles/${encodeURIComponent(id)}/lock`,
|
|
392
|
+
VEHICLES_LIST: `${getModuleConfig('operation', 'api_url')}/vehicles`,
|
|
401
393
|
},
|
|
402
394
|
performance: {
|
|
403
395
|
// BASE
|