@tmlmobilidade/consts 20260831.956.44 → 20260901.921.29

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.
@@ -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/stops',
120
+ frontend_url: 'http://localhost:51003/infrastructure',
121
121
  },
122
122
  prd: {
123
- api_url: 'https://go.tmlmobilidade.pt/stops/api',
124
- frontend_url: 'https://go.tmlmobilidade.pt/stops',
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/stops/api`,
129
- frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/stops`,
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
  },
@@ -32,8 +32,8 @@ export declare const PAGE_ROUTES: Readonly<{
32
32
  };
33
33
  readonly infrastructure: {
34
34
  readonly BASE: string;
35
- readonly INFRASTRUCTURE_DETAIL: (id: string) => string;
36
- readonly INFRASTRUCTURE_LIST: string;
35
+ readonly STOPS_DETAIL: (stopId: string) => string;
36
+ readonly STOPS_LIST: `${string}/stops`;
37
37
  };
38
38
  readonly offer: {
39
39
  readonly BASE: string;
@@ -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;
@@ -174,11 +177,18 @@ export declare const API_ROUTES: Readonly<{
174
177
  };
175
178
  readonly infrastructure: {
176
179
  readonly BASE: string;
177
- readonly STOPS_DETAIL: (id: string) => string;
178
- readonly STOPS_DETAIL_LOCK: (id: string) => string;
179
- readonly STOPS_LIST: `${string}/stops`;
180
- readonly STOPS_TTS: (id: string) => string;
181
- readonly STOPS_VALID_ID: `${string}/stops/valid-id`;
180
+ readonly STOPS_CREATE: `${string}/stops/create`;
181
+ readonly STOPS_DELETE: (id: string) => string;
182
+ readonly STOPS_GET: (id: string) => string;
183
+ readonly STOPS_GET_TTS: (id: string) => string;
184
+ readonly STOPS_GET_VALID_ID: `${string}/stops/get/valid-id`;
185
+ readonly STOPS_LIST: `${string}/stops/list`;
186
+ readonly STOPS_LIST_AGENCIES: `${string}/stops/list-agencies`;
187
+ readonly STOPS_LIST_LOCATIONS: `${string}/stops/list-locations`;
188
+ readonly STOPS_LOCK: (id: string) => string;
189
+ readonly STOPS_UPDATE: (id: string) => string;
190
+ readonly STOPS_UPDATE_COORDINATES: (id: string) => string;
191
+ readonly STOPS_UPDATE_NAME: (id: string) => string;
182
192
  };
183
193
  readonly locations: {
184
194
  readonly BASE: string;
@@ -50,9 +50,9 @@ export const PAGE_ROUTES = Object.freeze({
50
50
  infrastructure: {
51
51
  // BASE
52
52
  BASE: `${getModuleConfig('infrastructure', 'frontend_url')}`,
53
- // INFRASTRUCTURE
54
- INFRASTRUCTURE_DETAIL: (id) => `${getModuleConfig('infrastructure', 'frontend_url')}/${encodeURIComponent(id)}`,
55
- INFRASTRUCTURE_LIST: `${getModuleConfig('infrastructure', 'frontend_url')}`,
53
+ // STOPS
54
+ STOPS_DETAIL: (stopId) => `${getModuleConfig('infrastructure', 'frontend_url')}/stops/${encodeURIComponent(stopId)}`,
55
+ STOPS_LIST: `${getModuleConfig('infrastructure', 'frontend_url')}/stops`,
56
56
  },
57
57
  offer: {
58
58
  // BASE
@@ -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)}`,
@@ -240,11 +243,18 @@ export const API_ROUTES = Object.freeze({
240
243
  // BASE
241
244
  BASE: `${getModuleConfig('infrastructure', 'api_url')}`,
242
245
  // STOPS
243
- STOPS_DETAIL: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/${encodeURIComponent(id)}`,
244
- STOPS_DETAIL_LOCK: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/${encodeURIComponent(id)}/lock`,
245
- STOPS_LIST: `${getModuleConfig('infrastructure', 'api_url')}/stops`,
246
- STOPS_TTS: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/tts/${encodeURIComponent(id)}`,
247
- STOPS_VALID_ID: `${getModuleConfig('infrastructure', 'api_url')}/stops/valid-id`,
246
+ STOPS_CREATE: `${getModuleConfig('infrastructure', 'api_url')}/stops/create`,
247
+ STOPS_DELETE: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/delete/${encodeURIComponent(id)}`,
248
+ STOPS_GET: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/get/${encodeURIComponent(id)}`,
249
+ STOPS_GET_TTS: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/get/tts/${encodeURIComponent(id)}`,
250
+ STOPS_GET_VALID_ID: `${getModuleConfig('infrastructure', 'api_url')}/stops/get/valid-id`,
251
+ STOPS_LIST: `${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`,
254
+ STOPS_LOCK: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/lock/${encodeURIComponent(id)}`,
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)}`,
248
258
  },
249
259
  locations: {
250
260
  // BASE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/consts",
3
- "version": "20260831.956.44",
3
+ "version": "20260901.921.29",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"