@tmlmobilidade/consts 20260831.1214.10 → 20260901.934.39
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 +5 -5
- package/dist/app-routes.d.ts +8 -2
- package/dist/app-routes.js +8 -2
- package/package.json +1 -1
package/dist/app-configs.js
CHANGED
|
@@ -117,16 +117,16 @@ const MODULE_CONFIGS = {
|
|
|
117
117
|
api_url: 'http://localhost:52003',
|
|
118
118
|
cors_origin: true,
|
|
119
119
|
frontend_port: 51003,
|
|
120
|
-
frontend_url: 'http://localhost:51003/
|
|
120
|
+
frontend_url: 'http://localhost:51003/infrastructure',
|
|
121
121
|
},
|
|
122
122
|
prd: {
|
|
123
|
-
api_url: 'https://go.tmlmobilidade.pt/
|
|
124
|
-
frontend_url: 'https://go.tmlmobilidade.pt/
|
|
123
|
+
api_url: 'https://go.tmlmobilidade.pt/infrastructure/api',
|
|
124
|
+
frontend_url: 'https://go.tmlmobilidade.pt/infrastructure',
|
|
125
125
|
...DEFAULT_PRD_CONFIG,
|
|
126
126
|
},
|
|
127
127
|
stg: {
|
|
128
|
-
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/
|
|
129
|
-
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/
|
|
128
|
+
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/infrastructure/api`,
|
|
129
|
+
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/infrastructure`,
|
|
130
130
|
...DEFAULT_STG_CONFIG,
|
|
131
131
|
},
|
|
132
132
|
},
|
package/dist/app-routes.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const PAGE_ROUTES: Readonly<{
|
|
|
32
32
|
};
|
|
33
33
|
readonly infrastructure: {
|
|
34
34
|
readonly BASE: string;
|
|
35
|
-
readonly STOPS_DETAIL: (
|
|
35
|
+
readonly STOPS_DETAIL: (stopId: string) => string;
|
|
36
36
|
readonly STOPS_LIST: `${string}/stops`;
|
|
37
37
|
};
|
|
38
38
|
readonly offer: {
|
|
@@ -101,11 +101,13 @@ export declare const API_ROUTES: Readonly<{
|
|
|
101
101
|
readonly PLATFORM_ME: `${string}/platform/me`;
|
|
102
102
|
readonly PLATFORM_NOTIFICATIONS: `${string}/platform/notifications`;
|
|
103
103
|
readonly PLATFORM_SIDEBAR_LOGO: `${string}/platform/sidebar-logo`;
|
|
104
|
+
readonly PLATFORM_UPDATE_ME_PREFERENCES: `${string}/platform/update-me-preferences`;
|
|
104
105
|
readonly ROLES_CREATE: `${string}/roles/create`;
|
|
105
106
|
readonly ROLES_DELETE: (id: string) => string;
|
|
106
107
|
readonly ROLES_DETAIL: (id: string) => string;
|
|
107
108
|
readonly ROLES_LIST: `${string}/roles/list`;
|
|
108
109
|
readonly ROLES_LIST_AGENCIES: `${string}/roles/list-agencies`;
|
|
110
|
+
readonly ROLES_LIST_MUNICIPALITIES: `${string}/roles/list-municipalities`;
|
|
109
111
|
readonly ROLES_LOCK: (id: string) => string;
|
|
110
112
|
readonly ROLES_UPDATE: (id: string) => string;
|
|
111
113
|
readonly USERS_CREATE: `${string}/users/create`;
|
|
@@ -114,6 +116,7 @@ export declare const API_ROUTES: Readonly<{
|
|
|
114
116
|
readonly USERS_DETAIL_SIMPLIFIED: (id: string) => string;
|
|
115
117
|
readonly USERS_LIST: `${string}/users/list`;
|
|
116
118
|
readonly USERS_LIST_AGENCIES: `${string}/users/list-agencies`;
|
|
119
|
+
readonly USERS_LIST_MUNICIPALITIES: `${string}/users/list-municipalities`;
|
|
117
120
|
readonly USERS_LIST_ORGANIZATIONS: `${string}/users/list-organizations`;
|
|
118
121
|
readonly USERS_LIST_ROLES: `${string}/users/list-roles`;
|
|
119
122
|
readonly USERS_LOCK: (id: string) => string;
|
|
@@ -180,9 +183,12 @@ export declare const API_ROUTES: Readonly<{
|
|
|
180
183
|
readonly STOPS_GET_TTS: (id: string) => string;
|
|
181
184
|
readonly STOPS_GET_VALID_ID: `${string}/stops/get/valid-id`;
|
|
182
185
|
readonly STOPS_LIST: `${string}/stops/list`;
|
|
183
|
-
readonly STOPS_LIST_AGENCIES: `${string}/stops/list
|
|
186
|
+
readonly STOPS_LIST_AGENCIES: `${string}/stops/list-agencies`;
|
|
187
|
+
readonly STOPS_LIST_LOCATIONS: `${string}/stops/list-locations`;
|
|
184
188
|
readonly STOPS_LOCK: (id: string) => string;
|
|
185
189
|
readonly STOPS_UPDATE: (id: string) => string;
|
|
190
|
+
readonly STOPS_UPDATE_COORDINATES: (id: string) => string;
|
|
191
|
+
readonly STOPS_UPDATE_NAME: (id: string) => string;
|
|
186
192
|
};
|
|
187
193
|
readonly locations: {
|
|
188
194
|
readonly BASE: string;
|
package/dist/app-routes.js
CHANGED
|
@@ -51,7 +51,7 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
51
51
|
// BASE
|
|
52
52
|
BASE: `${getModuleConfig('infrastructure', 'frontend_url')}`,
|
|
53
53
|
// STOPS
|
|
54
|
-
STOPS_DETAIL: (
|
|
54
|
+
STOPS_DETAIL: (stopId) => `${getModuleConfig('infrastructure', 'frontend_url')}/stops/${encodeURIComponent(stopId)}`,
|
|
55
55
|
STOPS_LIST: `${getModuleConfig('infrastructure', 'frontend_url')}/stops`,
|
|
56
56
|
},
|
|
57
57
|
offer: {
|
|
@@ -149,12 +149,14 @@ export const API_ROUTES = Object.freeze({
|
|
|
149
149
|
PLATFORM_ME: `${getModuleConfig('core', 'api_url')}/platform/me`,
|
|
150
150
|
PLATFORM_NOTIFICATIONS: `${getModuleConfig('core', 'api_url')}/platform/notifications`,
|
|
151
151
|
PLATFORM_SIDEBAR_LOGO: `${getModuleConfig('core', 'api_url')}/platform/sidebar-logo`,
|
|
152
|
+
PLATFORM_UPDATE_ME_PREFERENCES: `${getModuleConfig('core', 'api_url')}/platform/update-me-preferences`,
|
|
152
153
|
// ROLES
|
|
153
154
|
ROLES_CREATE: `${getModuleConfig('core', 'api_url')}/roles/create`,
|
|
154
155
|
ROLES_DELETE: (id) => `${getModuleConfig('core', 'api_url')}/roles/delete/${encodeURIComponent(id)}`,
|
|
155
156
|
ROLES_DETAIL: (id) => `${getModuleConfig('core', 'api_url')}/roles/${encodeURIComponent(id)}`,
|
|
156
157
|
ROLES_LIST: `${getModuleConfig('core', 'api_url')}/roles/list`,
|
|
157
158
|
ROLES_LIST_AGENCIES: `${getModuleConfig('core', 'api_url')}/roles/list-agencies`,
|
|
159
|
+
ROLES_LIST_MUNICIPALITIES: `${getModuleConfig('core', 'api_url')}/roles/list-municipalities`,
|
|
158
160
|
ROLES_LOCK: (id) => `${getModuleConfig('core', 'api_url')}/roles/lock/${encodeURIComponent(id)}`,
|
|
159
161
|
ROLES_UPDATE: (id) => `${getModuleConfig('core', 'api_url')}/roles/update/${encodeURIComponent(id)}`,
|
|
160
162
|
// USERS
|
|
@@ -164,6 +166,7 @@ export const API_ROUTES = Object.freeze({
|
|
|
164
166
|
USERS_DETAIL_SIMPLIFIED: (id) => `${getModuleConfig('core', 'api_url')}/users/${encodeURIComponent(id)}/simplified`,
|
|
165
167
|
USERS_LIST: `${getModuleConfig('core', 'api_url')}/users/list`,
|
|
166
168
|
USERS_LIST_AGENCIES: `${getModuleConfig('core', 'api_url')}/users/list-agencies`,
|
|
169
|
+
USERS_LIST_MUNICIPALITIES: `${getModuleConfig('core', 'api_url')}/users/list-municipalities`,
|
|
167
170
|
USERS_LIST_ORGANIZATIONS: `${getModuleConfig('core', 'api_url')}/users/list-organizations`,
|
|
168
171
|
USERS_LIST_ROLES: `${getModuleConfig('core', 'api_url')}/users/list-roles`,
|
|
169
172
|
USERS_LOCK: (id) => `${getModuleConfig('core', 'api_url')}/users/lock/${encodeURIComponent(id)}`,
|
|
@@ -246,9 +249,12 @@ export const API_ROUTES = Object.freeze({
|
|
|
246
249
|
STOPS_GET_TTS: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/get/tts/${encodeURIComponent(id)}`,
|
|
247
250
|
STOPS_GET_VALID_ID: `${getModuleConfig('infrastructure', 'api_url')}/stops/get/valid-id`,
|
|
248
251
|
STOPS_LIST: `${getModuleConfig('infrastructure', 'api_url')}/stops/list`,
|
|
249
|
-
STOPS_LIST_AGENCIES: `${getModuleConfig('infrastructure', 'api_url')}/stops/list
|
|
252
|
+
STOPS_LIST_AGENCIES: `${getModuleConfig('infrastructure', 'api_url')}/stops/list-agencies`,
|
|
253
|
+
STOPS_LIST_LOCATIONS: `${getModuleConfig('infrastructure', 'api_url')}/stops/list-locations`,
|
|
250
254
|
STOPS_LOCK: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/lock/${encodeURIComponent(id)}`,
|
|
251
255
|
STOPS_UPDATE: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/update/${encodeURIComponent(id)}`,
|
|
256
|
+
STOPS_UPDATE_COORDINATES: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/update-coordinates/${encodeURIComponent(id)}`,
|
|
257
|
+
STOPS_UPDATE_NAME: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/update-name/${encodeURIComponent(id)}`,
|
|
252
258
|
},
|
|
253
259
|
locations: {
|
|
254
260
|
// BASE
|