@tmlmobilidade/consts 20260911.1742.59 → 20260914.1727.46
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 -42
- package/dist/app-routes.d.ts +9 -17
- package/dist/app-routes.js +13 -20
- package/package.json +1 -1
package/dist/app-configs.js
CHANGED
|
@@ -52,26 +52,6 @@ const MODULE_CONFIGS = {
|
|
|
52
52
|
cors_origin: true,
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
|
-
eta: {
|
|
56
|
-
dev: {
|
|
57
|
-
api_port: 52099,
|
|
58
|
-
api_url: 'http://localhost:52099',
|
|
59
|
-
cors_origin: true,
|
|
60
|
-
frontend_port: 51099,
|
|
61
|
-
frontend_url: 'http://localhost:51099/eta',
|
|
62
|
-
},
|
|
63
|
-
prd: {
|
|
64
|
-
api_url: 'https://go.tmlmobilidade.pt/eta/api',
|
|
65
|
-
cors_origin: DEFAULT_PRD_CONFIG.cors_origin,
|
|
66
|
-
frontend_url: 'https://go.tmlmobilidade.pt/eta',
|
|
67
|
-
...DEFAULT_PRD_CONFIG,
|
|
68
|
-
},
|
|
69
|
-
stg: {
|
|
70
|
-
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/eta/api`,
|
|
71
|
-
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/eta`,
|
|
72
|
-
...DEFAULT_STG_CONFIG,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
55
|
exporter: {
|
|
76
56
|
dev: {
|
|
77
57
|
api_port: 52007,
|
|
@@ -130,27 +110,6 @@ const MODULE_CONFIGS = {
|
|
|
130
110
|
...DEFAULT_STG_CONFIG,
|
|
131
111
|
},
|
|
132
112
|
},
|
|
133
|
-
locations: {
|
|
134
|
-
dev: {
|
|
135
|
-
api_port: 52005,
|
|
136
|
-
api_url: 'http://localhost:52005',
|
|
137
|
-
cors_origin: true,
|
|
138
|
-
frontend_port: 51005,
|
|
139
|
-
frontend_url: 'http://localhost:51005/locations',
|
|
140
|
-
},
|
|
141
|
-
prd: {
|
|
142
|
-
api_url: 'https://go.tmlmobilidade.pt/locations/api',
|
|
143
|
-
frontend_url: 'https://go.tmlmobilidade.pt/locations',
|
|
144
|
-
...DEFAULT_PRD_CONFIG,
|
|
145
|
-
cors_origin: true,
|
|
146
|
-
},
|
|
147
|
-
stg: {
|
|
148
|
-
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/locations/api`,
|
|
149
|
-
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/locations`,
|
|
150
|
-
...DEFAULT_STG_CONFIG,
|
|
151
|
-
cors_origin: true,
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
113
|
offer: {
|
|
155
114
|
dev: {
|
|
156
115
|
api_port: 52010,
|
|
@@ -228,7 +187,6 @@ const MODULE_CONFIGS = {
|
|
|
228
187
|
},
|
|
229
188
|
},
|
|
230
189
|
};
|
|
231
|
-
/* * */
|
|
232
190
|
/**
|
|
233
191
|
* Retrieves the value of a specific property from the module configuration for a given module and environment.
|
|
234
192
|
* @param module The module ID.
|
package/dist/app-routes.d.ts
CHANGED
|
@@ -87,7 +87,15 @@ export declare const API_ROUTES: Readonly<{
|
|
|
87
87
|
readonly AUTH_LOGIN: `${string}/auth/login`;
|
|
88
88
|
readonly AUTH_LOGOUT: `${string}/auth/logout`;
|
|
89
89
|
readonly AUTH_SEND_PASSWORD_RESET_EMAIL: `${string}/auth/send-password-reset-email`;
|
|
90
|
+
readonly EXTRACTIONS_CREATE: `${string}/platform/extractions/create`;
|
|
91
|
+
readonly EXTRACTIONS_DELETE: (id: string) => string;
|
|
92
|
+
readonly EXTRACTIONS_DOWNLOAD: (id: string) => string;
|
|
93
|
+
readonly EXTRACTIONS_LIST: `${string}/platform/extractions/list`;
|
|
94
|
+
readonly EXTRACTIONS_LOCK: (id: string) => string;
|
|
90
95
|
readonly HOME_QUICK_LINKS: `${string}/home/quick-links`;
|
|
96
|
+
readonly ME_LIST: `${string}/platform/me/list`;
|
|
97
|
+
readonly ME_UPDATE_PREFERENCES: `${string}/platform/me/update-preferences`;
|
|
98
|
+
readonly NOTIFICATIONS_LIST: `${string}/platform/notifications/list`;
|
|
91
99
|
readonly ORGANIZATIONS_CREATE: `${string}/organizations/create`;
|
|
92
100
|
readonly ORGANIZATIONS_DETAIL_DELETE: (id: string) => string;
|
|
93
101
|
readonly ORGANIZATIONS_DETAIL_DELETE_IMAGE_VAR: (id: string, theme: string) => string;
|
|
@@ -97,11 +105,6 @@ export declare const API_ROUTES: Readonly<{
|
|
|
97
105
|
readonly ORGANIZATIONS_DETAIL_UPDATE: (id: string) => string;
|
|
98
106
|
readonly ORGANIZATIONS_DETAIL_UPDATE_IMAGE: (id: string) => string;
|
|
99
107
|
readonly ORGANIZATIONS_LIST: `${string}/organizations/list`;
|
|
100
|
-
readonly PLATFORM_DOWNLOADS: `${string}/platform/downloads`;
|
|
101
|
-
readonly PLATFORM_ME: `${string}/platform/me`;
|
|
102
|
-
readonly PLATFORM_NOTIFICATIONS: `${string}/platform/notifications`;
|
|
103
|
-
readonly PLATFORM_SIDEBAR_LOGO: `${string}/platform/sidebar-logo`;
|
|
104
|
-
readonly PLATFORM_UPDATE_ME_PREFERENCES: `${string}/platform/update-me-preferences`;
|
|
105
108
|
readonly ROLES_CREATE: `${string}/roles/create`;
|
|
106
109
|
readonly ROLES_DELETE: (id: string) => string;
|
|
107
110
|
readonly ROLES_DETAIL: (id: string) => string;
|
|
@@ -110,6 +113,7 @@ export declare const API_ROUTES: Readonly<{
|
|
|
110
113
|
readonly ROLES_LIST_MUNICIPALITIES: `${string}/roles/list-municipalities`;
|
|
111
114
|
readonly ROLES_LOCK: (id: string) => string;
|
|
112
115
|
readonly ROLES_UPDATE: (id: string) => string;
|
|
116
|
+
readonly SIDEBAR_LOGO: `${string}/platform/sidebar/logo`;
|
|
113
117
|
readonly USERS_CREATE: `${string}/users/create`;
|
|
114
118
|
readonly USERS_DELETE: (id: string) => string;
|
|
115
119
|
readonly USERS_DETAIL: (id: string) => string;
|
|
@@ -190,18 +194,6 @@ export declare const API_ROUTES: Readonly<{
|
|
|
190
194
|
readonly STOPS_UPDATE_COORDINATES: (id: string) => string;
|
|
191
195
|
readonly STOPS_UPDATE_NAME: (id: string) => string;
|
|
192
196
|
};
|
|
193
|
-
readonly locations: {
|
|
194
|
-
readonly BASE: string;
|
|
195
|
-
readonly LOCATIONS_DISTRICTS: `${string}/locations/districts`;
|
|
196
|
-
readonly LOCATIONS_DISTRICTS_DETAIL: (id: string) => string;
|
|
197
|
-
readonly LOCATIONS_LOCALITIES: `${string}/locations/localities`;
|
|
198
|
-
readonly LOCATIONS_LOCALITIES_DETAIL: (id: string) => string;
|
|
199
|
-
readonly LOCATIONS_LOCATION: `${string}/locations/location`;
|
|
200
|
-
readonly LOCATIONS_MUNICIPALITIES: `${string}/locations/municipalities`;
|
|
201
|
-
readonly LOCATIONS_MUNICIPALITIES_DETAIL: (id: string) => string;
|
|
202
|
-
readonly LOCATIONS_PARISHES: `${string}/locations/parishes`;
|
|
203
|
-
readonly LOCATIONS_PARISHES_DETAIL: (id: string) => string;
|
|
204
|
-
};
|
|
205
197
|
readonly offer: {
|
|
206
198
|
readonly BASE: string;
|
|
207
199
|
readonly AGENCIES_LIST: `${string}/agencies`;
|
package/dist/app-routes.js
CHANGED
|
@@ -132,8 +132,19 @@ export const API_ROUTES = Object.freeze({
|
|
|
132
132
|
AUTH_LOGIN: `${getModuleConfig('core', 'api_url')}/auth/login`,
|
|
133
133
|
AUTH_LOGOUT: `${getModuleConfig('core', 'api_url')}/auth/logout`,
|
|
134
134
|
AUTH_SEND_PASSWORD_RESET_EMAIL: `${getModuleConfig('core', 'api_url')}/auth/send-password-reset-email`,
|
|
135
|
+
// EXTRACTIONS
|
|
136
|
+
EXTRACTIONS_CREATE: `${getModuleConfig('core', 'api_url')}/platform/extractions/create`,
|
|
137
|
+
EXTRACTIONS_DELETE: (id) => `${getModuleConfig('core', 'api_url')}/platform/extractions/delete/${encodeURIComponent(id)}`,
|
|
138
|
+
EXTRACTIONS_DOWNLOAD: (id) => `${getModuleConfig('core', 'api_url')}/platform/extractions/download/${encodeURIComponent(id)}`,
|
|
139
|
+
EXTRACTIONS_LIST: `${getModuleConfig('core', 'api_url')}/platform/extractions/list`,
|
|
140
|
+
EXTRACTIONS_LOCK: (id) => `${getModuleConfig('core', 'api_url')}/platform/extractions/lock/${encodeURIComponent(id)}`,
|
|
135
141
|
// HOME
|
|
136
142
|
HOME_QUICK_LINKS: `${getModuleConfig('core', 'api_url')}/home/quick-links`,
|
|
143
|
+
// ME
|
|
144
|
+
ME_LIST: `${getModuleConfig('core', 'api_url')}/platform/me/list`,
|
|
145
|
+
ME_UPDATE_PREFERENCES: `${getModuleConfig('core', 'api_url')}/platform/me/update-preferences`,
|
|
146
|
+
// NOTIFICATIONS
|
|
147
|
+
NOTIFICATIONS_LIST: `${getModuleConfig('core', 'api_url')}/platform/notifications/list`,
|
|
137
148
|
// ORGANIZATIONS
|
|
138
149
|
ORGANIZATIONS_CREATE: `${getModuleConfig('core', 'api_url')}/organizations/create`,
|
|
139
150
|
ORGANIZATIONS_DETAIL_DELETE: (id) => `${getModuleConfig('core', 'api_url')}/organizations/${encodeURIComponent(id)}/delete`,
|
|
@@ -144,12 +155,6 @@ export const API_ROUTES = Object.freeze({
|
|
|
144
155
|
ORGANIZATIONS_DETAIL_UPDATE: (id) => `${getModuleConfig('core', 'api_url')}/organizations/${encodeURIComponent(id)}/update`,
|
|
145
156
|
ORGANIZATIONS_DETAIL_UPDATE_IMAGE: (id) => `${getModuleConfig('core', 'api_url')}/organizations/${encodeURIComponent(id)}/update/image`,
|
|
146
157
|
ORGANIZATIONS_LIST: `${getModuleConfig('core', 'api_url')}/organizations/list`,
|
|
147
|
-
// PLATFORM
|
|
148
|
-
PLATFORM_DOWNLOADS: `${getModuleConfig('core', 'api_url')}/platform/downloads`,
|
|
149
|
-
PLATFORM_ME: `${getModuleConfig('core', 'api_url')}/platform/me`,
|
|
150
|
-
PLATFORM_NOTIFICATIONS: `${getModuleConfig('core', 'api_url')}/platform/notifications`,
|
|
151
|
-
PLATFORM_SIDEBAR_LOGO: `${getModuleConfig('core', 'api_url')}/platform/sidebar-logo`,
|
|
152
|
-
PLATFORM_UPDATE_ME_PREFERENCES: `${getModuleConfig('core', 'api_url')}/platform/update-me-preferences`,
|
|
153
158
|
// ROLES
|
|
154
159
|
ROLES_CREATE: `${getModuleConfig('core', 'api_url')}/roles/create`,
|
|
155
160
|
ROLES_DELETE: (id) => `${getModuleConfig('core', 'api_url')}/roles/delete/${encodeURIComponent(id)}`,
|
|
@@ -159,6 +164,8 @@ export const API_ROUTES = Object.freeze({
|
|
|
159
164
|
ROLES_LIST_MUNICIPALITIES: `${getModuleConfig('core', 'api_url')}/roles/list-municipalities`,
|
|
160
165
|
ROLES_LOCK: (id) => `${getModuleConfig('core', 'api_url')}/roles/lock/${encodeURIComponent(id)}`,
|
|
161
166
|
ROLES_UPDATE: (id) => `${getModuleConfig('core', 'api_url')}/roles/update/${encodeURIComponent(id)}`,
|
|
167
|
+
// SIDEBAR
|
|
168
|
+
SIDEBAR_LOGO: `${getModuleConfig('core', 'api_url')}/platform/sidebar/logo`,
|
|
162
169
|
// USERS
|
|
163
170
|
USERS_CREATE: `${getModuleConfig('core', 'api_url')}/users/create`,
|
|
164
171
|
USERS_DELETE: (id) => `${getModuleConfig('core', 'api_url')}/users/delete/${encodeURIComponent(id)}`,
|
|
@@ -256,20 +263,6 @@ export const API_ROUTES = Object.freeze({
|
|
|
256
263
|
STOPS_UPDATE_COORDINATES: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/update-coordinates/${encodeURIComponent(id)}`,
|
|
257
264
|
STOPS_UPDATE_NAME: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/update-name/${encodeURIComponent(id)}`,
|
|
258
265
|
},
|
|
259
|
-
locations: {
|
|
260
|
-
// BASE
|
|
261
|
-
BASE: `${getModuleConfig('locations', 'api_url')}`,
|
|
262
|
-
// LOCATIONS
|
|
263
|
-
LOCATIONS_DISTRICTS: `${getModuleConfig('locations', 'api_url')}/locations/districts`,
|
|
264
|
-
LOCATIONS_DISTRICTS_DETAIL: (id) => `${getModuleConfig('locations', 'api_url')}/locations/districts/${encodeURIComponent(id)}`,
|
|
265
|
-
LOCATIONS_LOCALITIES: `${getModuleConfig('locations', 'api_url')}/locations/localities`,
|
|
266
|
-
LOCATIONS_LOCALITIES_DETAIL: (id) => `${getModuleConfig('locations', 'api_url')}/locations/localities/${encodeURIComponent(id)}`,
|
|
267
|
-
LOCATIONS_LOCATION: `${getModuleConfig('locations', 'api_url')}/locations/location`,
|
|
268
|
-
LOCATIONS_MUNICIPALITIES: `${getModuleConfig('locations', 'api_url')}/locations/municipalities`,
|
|
269
|
-
LOCATIONS_MUNICIPALITIES_DETAIL: (id) => `${getModuleConfig('locations', 'api_url')}/locations/municipalities/${encodeURIComponent(id)}`,
|
|
270
|
-
LOCATIONS_PARISHES: `${getModuleConfig('locations', 'api_url')}/locations/parishes`,
|
|
271
|
-
LOCATIONS_PARISHES_DETAIL: (id) => `${getModuleConfig('locations', 'api_url')}/locations/parishes/${encodeURIComponent(id)}`,
|
|
272
|
-
},
|
|
273
266
|
offer: {
|
|
274
267
|
// BASE
|
|
275
268
|
BASE: `${getModuleConfig('offer', 'api_url')}`,
|