@tmlmobilidade/consts 20260829.1027.0 → 20260829.1122.26
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 +6 -12
- package/dist/app-routes.js +8 -16
- 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;
|
|
@@ -71,6 +66,8 @@ export declare const PAGE_ROUTES: Readonly<{
|
|
|
71
66
|
readonly GTFS_VALIDATIONS_LIST: `${string}/gtfs-validations`;
|
|
72
67
|
readonly PLANS_DETAIL: (id: string) => string;
|
|
73
68
|
readonly PLANS_LIST: `${string}/plans`;
|
|
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`;
|
|
@@ -304,6 +294,10 @@ export declare const API_ROUTES: Readonly<{
|
|
|
304
294
|
readonly PLANS_DRT_MODEL: (id: string) => string;
|
|
305
295
|
readonly PLANS_LIST: `${string}/plans/list`;
|
|
306
296
|
readonly PLANS_LIST_AGENCIES: `${string}/plans/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')}`,
|
|
@@ -107,6 +100,9 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
107
100
|
// PLANS
|
|
108
101
|
PLANS_DETAIL: (id) => `${getModuleConfig('operation', 'frontend_url')}/plans/${encodeURIComponent(id)}`,
|
|
109
102
|
PLANS_LIST: `${getModuleConfig('operation', 'frontend_url')}/plans`,
|
|
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')}`,
|
|
@@ -398,6 +385,11 @@ export const API_ROUTES = Object.freeze({
|
|
|
398
385
|
PLANS_DRT_MODEL: (id) => `${getModuleConfig('operation', 'api_url')}/plans/drt-model/${encodeURIComponent(id)}`,
|
|
399
386
|
PLANS_LIST: `${getModuleConfig('operation', 'api_url')}/plans/list`,
|
|
400
387
|
PLANS_LIST_AGENCIES: `${getModuleConfig('operation', 'api_url')}/plans/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
|