@tmlmobilidade/consts 20251217.1540.37 → 20251218.110.37
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 +19 -0
- package/dist/app-routes.d.ts +18 -1
- package/dist/app-routes.js +26 -1
- package/package.json +2 -2
package/dist/app-configs.js
CHANGED
|
@@ -69,6 +69,25 @@ const APP_CONFIGS = {
|
|
|
69
69
|
...DEFAULT_STAGING_CONFIG,
|
|
70
70
|
},
|
|
71
71
|
},
|
|
72
|
+
dates: {
|
|
73
|
+
development: {
|
|
74
|
+
api_port: 52008,
|
|
75
|
+
api_url: 'http://localhost:52008',
|
|
76
|
+
cors_origin: true,
|
|
77
|
+
frontend_port: 51008,
|
|
78
|
+
frontend_url: 'http://localhost:51008/dates',
|
|
79
|
+
},
|
|
80
|
+
production: {
|
|
81
|
+
api_url: 'https://go.tmlmobilidade.pt/dates/api',
|
|
82
|
+
frontend_url: 'https://go.tmlmobilidade.pt/dates',
|
|
83
|
+
...DEFAULT_PRODUCTION_CONFIG,
|
|
84
|
+
},
|
|
85
|
+
staging: {
|
|
86
|
+
api_url: 'https://staging.go.tmlmobilidade.pt/dates/api',
|
|
87
|
+
frontend_url: 'https://staging.go.tmlmobilidade.pt/dates',
|
|
88
|
+
...DEFAULT_STAGING_CONFIG,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
72
91
|
exporter: {
|
|
73
92
|
development: {
|
|
74
93
|
api_port: 52007,
|
package/dist/app-routes.d.ts
CHANGED
|
@@ -31,6 +31,11 @@ export declare const PAGE_ROUTES: Readonly<{
|
|
|
31
31
|
readonly RIDES_DETAIL: (id: string) => string;
|
|
32
32
|
readonly RIDES_LIST: `${string}/rides`;
|
|
33
33
|
};
|
|
34
|
+
readonly dates: {
|
|
35
|
+
readonly BASE: string;
|
|
36
|
+
readonly ANNOTATIONS_DETAIL: (id: string) => string;
|
|
37
|
+
readonly ANNOTATIONS_LIST: `${string}/annotations`;
|
|
38
|
+
};
|
|
34
39
|
readonly performance: {
|
|
35
40
|
readonly BASE: string;
|
|
36
41
|
readonly AREAS_1_LIST: `${string}/areas/1`;
|
|
@@ -65,6 +70,7 @@ export declare const API_ROUTES: Readonly<{
|
|
|
65
70
|
readonly auth: {
|
|
66
71
|
readonly BASE: string;
|
|
67
72
|
readonly AGENCIES_DETAIL: (id: string) => string;
|
|
73
|
+
readonly AGENCIES_DETAIL_LOCK: (id: string) => string;
|
|
68
74
|
readonly AGENCIES_LIST: `${string}/agencies`;
|
|
69
75
|
readonly AUTH_CHANGE_PASSWORD: `${string}/auth/change-password`;
|
|
70
76
|
readonly AUTH_LOGIN: `${string}/auth/login`;
|
|
@@ -75,14 +81,17 @@ export declare const API_ROUTES: Readonly<{
|
|
|
75
81
|
readonly NOTIFICATIONS_LIST: `${string}/notifications`;
|
|
76
82
|
readonly ORGANIZATIONS_DETAIL: (id: string) => string;
|
|
77
83
|
readonly ORGANIZATIONS_DETAIL_IMAGE: (id: string) => string;
|
|
84
|
+
readonly ORGANIZATIONS_DETAIL_LOCK: (id: string) => string;
|
|
78
85
|
readonly ORGANIZATIONS_DETAIL_LOGO: (id: string) => string;
|
|
79
86
|
readonly ORGANIZATIONS_DETAIL_VAR_IMAGE: (id: string, theme: string) => string;
|
|
80
87
|
readonly ORGANIZATIONS_LIST: `${string}/organizations`;
|
|
81
88
|
readonly PROPOSED_CHANGES_DETAIL: (id: string) => string;
|
|
82
89
|
readonly PROPOSED_CHANGES_LIST: `${string}/proposed-changes`;
|
|
83
90
|
readonly ROLES_DETAIL: (id: string) => string;
|
|
91
|
+
readonly ROLES_DETAIL_LOCK: (id: string) => string;
|
|
84
92
|
readonly ROLES_LIST: `${string}/roles`;
|
|
85
93
|
readonly USERS_DETAIL: (id: string) => string;
|
|
94
|
+
readonly USERS_DETAIL_LOCK: (id: string) => string;
|
|
86
95
|
readonly USERS_LIST: `${string}/users`;
|
|
87
96
|
readonly USERS_ME: `${string}/users/me`;
|
|
88
97
|
readonly WIKI_DETAIL: (id: string) => string;
|
|
@@ -107,6 +116,12 @@ export declare const API_ROUTES: Readonly<{
|
|
|
107
116
|
readonly RIDES_LIST: `${string}/rides`;
|
|
108
117
|
readonly RIDES_WS: `${string}/rides/ws`;
|
|
109
118
|
};
|
|
119
|
+
readonly dates: {
|
|
120
|
+
readonly BASE: string;
|
|
121
|
+
readonly ANNOTATIONS_DETAIL: (id: string) => string;
|
|
122
|
+
readonly ANNOTATIONS_DETAIL_TOGGLE_LOCK: (id: string) => string;
|
|
123
|
+
readonly ANNOTATIONS_LIST: `${string}/annotations`;
|
|
124
|
+
};
|
|
110
125
|
readonly exporter: {
|
|
111
126
|
readonly BASE: string;
|
|
112
127
|
readonly EXPORTER_DETAIL_DOWNLOAD: (id: string) => string;
|
|
@@ -134,18 +149,20 @@ export declare const API_ROUTES: Readonly<{
|
|
|
134
149
|
readonly PLANS_DETAIL: (id: string) => string;
|
|
135
150
|
readonly PLANS_DETAIL_CHANGE_GTFS: (id: string) => string;
|
|
136
151
|
readonly PLANS_DETAIL_CONTROLLER_REPROCESS: (id: string) => string;
|
|
152
|
+
readonly PLANS_DETAIL_LOCK: (id: string) => string;
|
|
137
153
|
readonly PLANS_DETAIL_OPERATION_FILE: (id: string) => string;
|
|
138
|
-
readonly PLANS_DETAIL_TOGGLE_LOCK: (id: string) => string;
|
|
139
154
|
readonly PLANS_DRT_MODEL_: (id: string) => string;
|
|
140
155
|
readonly PLANS_LIST: `${string}/plans`;
|
|
141
156
|
readonly VALIDATIONS_DETAIL: (id: string) => string;
|
|
142
157
|
readonly VALIDATIONS_DETAIL_FILE: (id: string) => string;
|
|
158
|
+
readonly VALIDATIONS_DETAIL_LOCK: (id: string) => string;
|
|
143
159
|
readonly VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id: string) => string;
|
|
144
160
|
readonly VALIDATIONS_LIST: `${string}/validations`;
|
|
145
161
|
};
|
|
146
162
|
readonly stops: {
|
|
147
163
|
readonly BASE: string;
|
|
148
164
|
readonly STOPS_DETAIL: (id: string) => string;
|
|
165
|
+
readonly STOPS_DETAIL_LOCK: (id: string) => string;
|
|
149
166
|
readonly STOPS_LIST: `${string}/stops`;
|
|
150
167
|
};
|
|
151
168
|
}>;
|
package/dist/app-routes.js
CHANGED
|
@@ -54,6 +54,15 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
54
54
|
RIDES_LIST: `${getAppConfig('controller', 'frontend_url')}/rides`,
|
|
55
55
|
},
|
|
56
56
|
/* * */
|
|
57
|
+
/* DATES */
|
|
58
|
+
dates: {
|
|
59
|
+
// BASE
|
|
60
|
+
BASE: `${getAppConfig('dates', 'frontend_url')}`,
|
|
61
|
+
// ANNOTATIONS
|
|
62
|
+
ANNOTATIONS_DETAIL: (id) => `${getAppConfig('dates', 'frontend_url')}/annotations/${id}`,
|
|
63
|
+
ANNOTATIONS_LIST: `${getAppConfig('dates', 'frontend_url')}/annotations`,
|
|
64
|
+
},
|
|
65
|
+
/* * */
|
|
57
66
|
/* PERFORMANCE */
|
|
58
67
|
performance: {
|
|
59
68
|
// BASE
|
|
@@ -113,6 +122,7 @@ export const API_ROUTES = Object.freeze({
|
|
|
113
122
|
BASE: `${getAppConfig('auth', 'api_url')}`,
|
|
114
123
|
// AGENCIES
|
|
115
124
|
AGENCIES_DETAIL: (id) => `${getAppConfig('auth', 'api_url')}/agencies/${id}`,
|
|
125
|
+
AGENCIES_DETAIL_LOCK: (id) => `${getAppConfig('auth', 'api_url')}/agencies/${id}/lock`,
|
|
116
126
|
AGENCIES_LIST: `${getAppConfig('auth', 'api_url')}/agencies`,
|
|
117
127
|
// AUTH
|
|
118
128
|
AUTH_CHANGE_PASSWORD: `${getAppConfig('auth', 'api_url')}/auth/change-password`,
|
|
@@ -126,6 +136,7 @@ export const API_ROUTES = Object.freeze({
|
|
|
126
136
|
// ORGANIZATIONS
|
|
127
137
|
ORGANIZATIONS_DETAIL: (id) => `${getAppConfig('auth', 'api_url')}/organizations/${id}`,
|
|
128
138
|
ORGANIZATIONS_DETAIL_IMAGE: (id) => `${getAppConfig('auth', 'api_url')}/organizations/${id}/image`,
|
|
139
|
+
ORGANIZATIONS_DETAIL_LOCK: (id) => `${getAppConfig('auth', 'api_url')}/organizations/${id}/lock`,
|
|
129
140
|
ORGANIZATIONS_DETAIL_LOGO: (id) => `${getAppConfig('auth', 'api_url')}/organizations/${id}/logo`,
|
|
130
141
|
ORGANIZATIONS_DETAIL_VAR_IMAGE: (id, theme) => `${getAppConfig('auth', 'api_url')}/organizations/${id}/${theme}/image`,
|
|
131
142
|
ORGANIZATIONS_LIST: `${getAppConfig('auth', 'api_url')}/organizations`,
|
|
@@ -134,9 +145,11 @@ export const API_ROUTES = Object.freeze({
|
|
|
134
145
|
PROPOSED_CHANGES_LIST: `${getAppConfig('auth', 'api_url')}/proposed-changes`,
|
|
135
146
|
// ROLES
|
|
136
147
|
ROLES_DETAIL: (id) => `${getAppConfig('auth', 'api_url')}/roles/${id}`,
|
|
148
|
+
ROLES_DETAIL_LOCK: (id) => `${getAppConfig('auth', 'api_url')}/roles/${id}/lock`,
|
|
137
149
|
ROLES_LIST: `${getAppConfig('auth', 'api_url')}/roles`,
|
|
138
150
|
// USERS
|
|
139
151
|
USERS_DETAIL: (id) => `${getAppConfig('auth', 'api_url')}/users/${id}`,
|
|
152
|
+
USERS_DETAIL_LOCK: (id) => `${getAppConfig('auth', 'api_url')}/users/${id}/lock`,
|
|
140
153
|
USERS_LIST: `${getAppConfig('auth', 'api_url')}/users`,
|
|
141
154
|
USERS_ME: `${getAppConfig('auth', 'api_url')}/users/me`,
|
|
142
155
|
// WIKI
|
|
@@ -168,6 +181,16 @@ export const API_ROUTES = Object.freeze({
|
|
|
168
181
|
RIDES_WS: `${getAppConfig('controller', 'api_url')}/rides/ws`,
|
|
169
182
|
},
|
|
170
183
|
/* * */
|
|
184
|
+
/* DATES */
|
|
185
|
+
dates: {
|
|
186
|
+
// BASE
|
|
187
|
+
BASE: `${getAppConfig('dates', 'api_url')}`,
|
|
188
|
+
// ANNOTATIONS
|
|
189
|
+
ANNOTATIONS_DETAIL: (id) => `${getAppConfig('dates', 'api_url')}/annotations/${id}`,
|
|
190
|
+
ANNOTATIONS_DETAIL_TOGGLE_LOCK: (id) => `${getAppConfig('dates', 'api_url')}/annotations/${id}/toggle-lock`,
|
|
191
|
+
ANNOTATIONS_LIST: `${getAppConfig('dates', 'api_url')}/annotations`,
|
|
192
|
+
},
|
|
193
|
+
/* * */
|
|
171
194
|
/* EXPORTER */
|
|
172
195
|
exporter: {
|
|
173
196
|
// BASE
|
|
@@ -213,13 +236,14 @@ export const API_ROUTES = Object.freeze({
|
|
|
213
236
|
PLANS_DETAIL: (id) => `${getAppConfig('plans', 'api_url')}/plans/${id}`,
|
|
214
237
|
PLANS_DETAIL_CHANGE_GTFS: (id) => `${getAppConfig('plans', 'api_url')}/plans/${id}/change-gtfs`,
|
|
215
238
|
PLANS_DETAIL_CONTROLLER_REPROCESS: (id) => `${getAppConfig('plans', 'api_url')}/plans/${id}/controller-reprocess`,
|
|
239
|
+
PLANS_DETAIL_LOCK: (id) => `${getAppConfig('plans', 'api_url')}/plans/${id}/lock`,
|
|
216
240
|
PLANS_DETAIL_OPERATION_FILE: (id) => `${getAppConfig('plans', 'api_url')}/plans/${id}/operation-file`,
|
|
217
|
-
PLANS_DETAIL_TOGGLE_LOCK: (id) => `${getAppConfig('plans', 'api_url')}/plans/${id}/toggle-lock`,
|
|
218
241
|
PLANS_DRT_MODEL_: (id) => `${getAppConfig('plans', 'api_url')}/ID:/plans/api/plans/drt-model/${id}`,
|
|
219
242
|
PLANS_LIST: `${getAppConfig('plans', 'api_url')}/plans`,
|
|
220
243
|
// VALIDATIONS
|
|
221
244
|
VALIDATIONS_DETAIL: (id) => `${getAppConfig('plans', 'api_url')}/validations/${id}`,
|
|
222
245
|
VALIDATIONS_DETAIL_FILE: (id) => `${getAppConfig('plans', 'api_url')}/validations/${id}/file`,
|
|
246
|
+
VALIDATIONS_DETAIL_LOCK: (id) => `${getAppConfig('plans', 'api_url')}/validations/${id}/lock`,
|
|
223
247
|
VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id) => `${getAppConfig('plans', 'api_url')}/validations/${id}/request-approval`,
|
|
224
248
|
VALIDATIONS_LIST: `${getAppConfig('plans', 'api_url')}/validations`,
|
|
225
249
|
},
|
|
@@ -230,6 +254,7 @@ export const API_ROUTES = Object.freeze({
|
|
|
230
254
|
BASE: `${getAppConfig('stops', 'api_url')}`,
|
|
231
255
|
// STOPS
|
|
232
256
|
STOPS_DETAIL: (id) => `${getAppConfig('stops', 'api_url')}/stops/${id}`,
|
|
257
|
+
STOPS_DETAIL_LOCK: (id) => `${getAppConfig('stops', 'api_url')}/stops/${id}/lock`,
|
|
233
258
|
STOPS_LIST: `${getAppConfig('stops', 'api_url')}/stops`,
|
|
234
259
|
},
|
|
235
260
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmlmobilidade/consts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20251218.110.37",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "iso@tmlmobilidade.pt",
|
|
6
6
|
"name": "TML-ISO"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@tmlmobilidade/tsconfig": "*",
|
|
40
40
|
"@tmlmobilidade/types": "*",
|
|
41
|
-
"@types/node": "25.0.
|
|
41
|
+
"@types/node": "25.0.3",
|
|
42
42
|
"resolve-tspaths": "0.8.23",
|
|
43
43
|
"tsc-watch": "7.2.0",
|
|
44
44
|
"typescript": "5.9.3"
|