@tmlmobilidade/consts 20260811.1505.45 → 20260828.1636.54
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.d.ts +1 -1
- package/dist/app-configs.js +38 -38
- package/dist/app-routes.d.ts +92 -72
- package/dist/app-routes.js +117 -98
- package/dist/earliest-date.d.ts +1 -1
- package/dist/earliest-date.js +3 -3
- package/package.json +4 -4
package/dist/app-configs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Environment } from '@tmlmobilidade/types';
|
|
1
|
+
import { type Environment } from '@tmlmobilidade/go-types-shared';
|
|
2
2
|
type FrontendNamedUrlKey = `frontend_${string}_url`;
|
|
3
3
|
type ModuleConfigGroup = Partial<Record<FrontendNamedUrlKey, null | string>> & {
|
|
4
4
|
api_port: number;
|
package/dist/app-configs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import { getCurrentEnvironment } from '@tmlmobilidade/types';
|
|
2
|
+
import { getCurrentEnvironment } from '@tmlmobilidade/go-types-shared';
|
|
3
3
|
/* * */
|
|
4
4
|
const DEFAULT_PRD_CONFIG = {
|
|
5
5
|
api_port: 5050,
|
|
@@ -31,41 +31,41 @@ const MODULE_CONFIGS = {
|
|
|
31
31
|
...DEFAULT_STG_CONFIG,
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
|
-
|
|
34
|
+
controller: {
|
|
35
35
|
dev: {
|
|
36
|
-
api_port:
|
|
37
|
-
api_url: 'http://localhost:
|
|
36
|
+
api_port: 52002,
|
|
37
|
+
api_url: 'http://localhost:52002',
|
|
38
38
|
cors_origin: true,
|
|
39
|
-
frontend_port:
|
|
40
|
-
frontend_url: 'http://localhost:
|
|
39
|
+
frontend_port: 51002,
|
|
40
|
+
frontend_url: 'http://localhost:51002/controller',
|
|
41
41
|
},
|
|
42
42
|
prd: {
|
|
43
|
-
api_url: 'https://go.tmlmobilidade.pt/
|
|
44
|
-
frontend_url: 'https://go.tmlmobilidade.pt/
|
|
43
|
+
api_url: 'https://go.tmlmobilidade.pt/controller/api',
|
|
44
|
+
frontend_url: 'https://go.tmlmobilidade.pt/controller',
|
|
45
45
|
...DEFAULT_PRD_CONFIG,
|
|
46
46
|
},
|
|
47
47
|
stg: {
|
|
48
|
-
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/
|
|
49
|
-
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/
|
|
48
|
+
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/controller/api`,
|
|
49
|
+
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/controller`,
|
|
50
50
|
...DEFAULT_STG_CONFIG,
|
|
51
51
|
},
|
|
52
52
|
},
|
|
53
|
-
|
|
53
|
+
core: {
|
|
54
54
|
dev: {
|
|
55
|
-
api_port:
|
|
56
|
-
api_url: 'http://localhost:
|
|
55
|
+
api_port: 52000,
|
|
56
|
+
api_url: 'http://localhost:52000',
|
|
57
57
|
cors_origin: true,
|
|
58
|
-
frontend_port:
|
|
59
|
-
frontend_url: 'http://localhost:
|
|
58
|
+
frontend_port: 51000,
|
|
59
|
+
frontend_url: 'http://localhost:51000/core',
|
|
60
60
|
},
|
|
61
61
|
prd: {
|
|
62
|
-
api_url: 'https://go.tmlmobilidade.pt/
|
|
63
|
-
frontend_url: 'https://go.tmlmobilidade.pt/
|
|
62
|
+
api_url: 'https://go.tmlmobilidade.pt/core/api',
|
|
63
|
+
frontend_url: 'https://go.tmlmobilidade.pt/core',
|
|
64
64
|
...DEFAULT_PRD_CONFIG,
|
|
65
65
|
},
|
|
66
66
|
stg: {
|
|
67
|
-
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/
|
|
68
|
-
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/
|
|
67
|
+
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/core/api`,
|
|
68
|
+
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/core`,
|
|
69
69
|
...DEFAULT_STG_CONFIG,
|
|
70
70
|
},
|
|
71
71
|
},
|
|
@@ -168,6 +168,25 @@ const MODULE_CONFIGS = {
|
|
|
168
168
|
...DEFAULT_STG_CONFIG,
|
|
169
169
|
},
|
|
170
170
|
},
|
|
171
|
+
infrastructure: {
|
|
172
|
+
dev: {
|
|
173
|
+
api_port: 52003,
|
|
174
|
+
api_url: 'http://localhost:52003',
|
|
175
|
+
cors_origin: true,
|
|
176
|
+
frontend_port: 51003,
|
|
177
|
+
frontend_url: 'http://localhost:51003/stops',
|
|
178
|
+
},
|
|
179
|
+
prd: {
|
|
180
|
+
api_url: 'https://go.tmlmobilidade.pt/stops/api',
|
|
181
|
+
frontend_url: 'https://go.tmlmobilidade.pt/stops',
|
|
182
|
+
...DEFAULT_PRD_CONFIG,
|
|
183
|
+
},
|
|
184
|
+
stg: {
|
|
185
|
+
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/stops/api`,
|
|
186
|
+
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/stops`,
|
|
187
|
+
...DEFAULT_STG_CONFIG,
|
|
188
|
+
},
|
|
189
|
+
},
|
|
171
190
|
locations: {
|
|
172
191
|
dev: {
|
|
173
192
|
api_port: 52005,
|
|
@@ -265,25 +284,6 @@ const MODULE_CONFIGS = {
|
|
|
265
284
|
...DEFAULT_STG_CONFIG,
|
|
266
285
|
},
|
|
267
286
|
},
|
|
268
|
-
stops: {
|
|
269
|
-
dev: {
|
|
270
|
-
api_port: 52003,
|
|
271
|
-
api_url: 'http://localhost:52003',
|
|
272
|
-
cors_origin: true,
|
|
273
|
-
frontend_port: 51003,
|
|
274
|
-
frontend_url: 'http://localhost:51003/stops',
|
|
275
|
-
},
|
|
276
|
-
prd: {
|
|
277
|
-
api_url: 'https://go.tmlmobilidade.pt/stops/api',
|
|
278
|
-
frontend_url: 'https://go.tmlmobilidade.pt/stops',
|
|
279
|
-
...DEFAULT_PRD_CONFIG,
|
|
280
|
-
},
|
|
281
|
-
stg: {
|
|
282
|
-
api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/stops/api`,
|
|
283
|
-
frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/stops`,
|
|
284
|
-
...DEFAULT_STG_CONFIG,
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
287
|
};
|
|
288
288
|
/* * */
|
|
289
289
|
/**
|
package/dist/app-routes.d.ts
CHANGED
|
@@ -5,32 +5,31 @@
|
|
|
5
5
|
export declare const PAGE_ROUTES: Readonly<{
|
|
6
6
|
readonly alerts: {
|
|
7
7
|
readonly BASE: string;
|
|
8
|
-
readonly ALERTS_DETAIL: (
|
|
8
|
+
readonly ALERTS_DETAIL: (alertId: string) => string;
|
|
9
9
|
readonly ALERTS_LIST: string;
|
|
10
10
|
};
|
|
11
|
-
readonly
|
|
11
|
+
readonly controller: {
|
|
12
12
|
readonly BASE: string;
|
|
13
|
-
readonly
|
|
13
|
+
readonly RIDES_DETAIL: (rideId: string) => string;
|
|
14
|
+
readonly RIDES_LIST: `${string}/rides`;
|
|
15
|
+
readonly SAMS_DETAIL: (id: string) => string;
|
|
16
|
+
readonly SAMS_LIST: `${string}/sams`;
|
|
17
|
+
};
|
|
18
|
+
readonly core: {
|
|
19
|
+
readonly BASE: string;
|
|
20
|
+
readonly AGENCIES_DETAIL: (agencyId: string) => string;
|
|
14
21
|
readonly AGENCIES_LIST: `${string}/agencies`;
|
|
15
22
|
readonly CHANGE_PASSWORD_LIST: `${string}/change-password`;
|
|
16
|
-
readonly HOME_DETAIL: (id: string) => string;
|
|
17
23
|
readonly HOME_LIST: `${string}/home`;
|
|
18
24
|
readonly LOGIN_LIST: `${string}/login`;
|
|
19
|
-
readonly ORGANIZATIONS_DETAIL: (
|
|
25
|
+
readonly ORGANIZATIONS_DETAIL: (organizationId: string) => string;
|
|
20
26
|
readonly ORGANIZATIONS_LIST: `${string}/organizations`;
|
|
21
27
|
readonly RESET_PASSWORD_LIST: `${string}/reset-password`;
|
|
22
|
-
readonly ROLES_DETAIL: (
|
|
28
|
+
readonly ROLES_DETAIL: (roleId: string) => string;
|
|
23
29
|
readonly ROLES_LIST: `${string}/roles`;
|
|
24
|
-
readonly USERS_DETAIL: (
|
|
30
|
+
readonly USERS_DETAIL: (userId: string) => string;
|
|
25
31
|
readonly USERS_LIST: `${string}/users`;
|
|
26
32
|
};
|
|
27
|
-
readonly controller: {
|
|
28
|
-
readonly BASE: string;
|
|
29
|
-
readonly RIDES_DETAIL: (id: string) => string;
|
|
30
|
-
readonly RIDES_LIST: `${string}/rides`;
|
|
31
|
-
readonly SAMS_DETAIL: (id: string) => string;
|
|
32
|
-
readonly SAMS_LIST: `${string}/sams`;
|
|
33
|
-
};
|
|
34
33
|
readonly dates: {
|
|
35
34
|
readonly BASE: string;
|
|
36
35
|
readonly ANNOTATIONS_DETAIL: (id: string) => string;
|
|
@@ -48,6 +47,11 @@ export declare const PAGE_ROUTES: Readonly<{
|
|
|
48
47
|
readonly VEHICLES_DETAIL: (id: string) => string;
|
|
49
48
|
readonly VEHICLES_LIST: `${string}/vehicles`;
|
|
50
49
|
};
|
|
50
|
+
readonly infrastructure: {
|
|
51
|
+
readonly BASE: string;
|
|
52
|
+
readonly INFRASTRUCTURE_DETAIL: (id: string) => string;
|
|
53
|
+
readonly INFRASTRUCTURE_LIST: string;
|
|
54
|
+
};
|
|
51
55
|
readonly offer: {
|
|
52
56
|
readonly BASE: string;
|
|
53
57
|
readonly FARES_DETAIL: (id: string) => string;
|
|
@@ -80,59 +84,22 @@ export declare const PAGE_ROUTES: Readonly<{
|
|
|
80
84
|
readonly BASE: string;
|
|
81
85
|
readonly REFERENCE_LIST: `${string}/reference`;
|
|
82
86
|
};
|
|
83
|
-
readonly stops: {
|
|
84
|
-
readonly BASE: string;
|
|
85
|
-
readonly STOPS_DETAIL: (id: string) => string;
|
|
86
|
-
readonly STOPS_LIST: string;
|
|
87
|
-
};
|
|
88
87
|
}>;
|
|
89
88
|
export declare const API_ROUTES: Readonly<{
|
|
90
89
|
readonly alerts: {
|
|
91
90
|
readonly BASE: string;
|
|
92
|
-
readonly
|
|
91
|
+
readonly ALERTS_COMPOSE: `${string}/alerts/compose`;
|
|
92
|
+
readonly ALERTS_CREATE: `${string}/alerts/create`;
|
|
93
93
|
readonly ALERTS_DETAIL: (id: string) => string;
|
|
94
94
|
readonly ALERTS_DETAIL_DUPLICATE: (id: string) => string;
|
|
95
95
|
readonly ALERTS_DETAIL_IMAGE: (id: string) => string;
|
|
96
96
|
readonly ALERTS_DETAIL_LOCK: (id: string) => string;
|
|
97
|
-
readonly ALERTS_LIST: `${string}/alerts`;
|
|
97
|
+
readonly ALERTS_LIST: `${string}/alerts/list`;
|
|
98
|
+
readonly ALERTS_LIST_AGENCIES: `${string}/alerts/list-agencies`;
|
|
98
99
|
readonly OPERATION_LINES: `${string}/operation/lines`;
|
|
99
100
|
readonly OPERATION_RIDES: `${string}/operation/rides`;
|
|
100
|
-
readonly OPERATION_RIDES_DETAIL_RIDE: (id: string) => string;
|
|
101
|
-
readonly OPERATION_RIDES_WS: `${string}/operation/rides/ws`;
|
|
102
101
|
readonly OPERATION_STOPS: `${string}/operation/stops`;
|
|
103
102
|
};
|
|
104
|
-
readonly auth: {
|
|
105
|
-
readonly BASE: string;
|
|
106
|
-
readonly AGENCIES_DETAIL: (id: string) => string;
|
|
107
|
-
readonly AGENCIES_DETAIL_LOCK: (id: string) => string;
|
|
108
|
-
readonly AGENCIES_LIST: `${string}/agencies`;
|
|
109
|
-
readonly APP_CONFIGS_APP_BANNER: `${string}/app-configs/app-banner`;
|
|
110
|
-
readonly AUTH_CHANGE_PASSWORD: `${string}/auth/change-password`;
|
|
111
|
-
readonly AUTH_LOGIN: `${string}/auth/login`;
|
|
112
|
-
readonly AUTH_LOGOUT: `${string}/auth/logout`;
|
|
113
|
-
readonly AUTH_SEND_PASSWORD_RESET_EMAIL: `${string}/auth/send-password-reset-email`;
|
|
114
|
-
readonly NOTIFICATIONS_DETAIL: (id: string) => string;
|
|
115
|
-
readonly NOTIFICATIONS_DETAIL_MARK_AS_READ: (id: string) => string;
|
|
116
|
-
readonly NOTIFICATIONS_LIST: `${string}/notifications`;
|
|
117
|
-
readonly ORGANIZATIONS_DETAIL: (id: string) => string;
|
|
118
|
-
readonly ORGANIZATIONS_DETAIL_IMAGE: (id: string) => string;
|
|
119
|
-
readonly ORGANIZATIONS_DETAIL_LOCK: (id: string) => string;
|
|
120
|
-
readonly ORGANIZATIONS_DETAIL_LOGO: (id: string) => string;
|
|
121
|
-
readonly ORGANIZATIONS_DETAIL_VAR_IMAGE: (id: string, theme: string) => string;
|
|
122
|
-
readonly ORGANIZATIONS_LIST: `${string}/organizations`;
|
|
123
|
-
readonly PROPOSED_CHANGES_DETAIL: (id: string) => string;
|
|
124
|
-
readonly PROPOSED_CHANGES_LIST: `${string}/proposed-changes`;
|
|
125
|
-
readonly ROLES_DETAIL: (id: string) => string;
|
|
126
|
-
readonly ROLES_DETAIL_LOCK: (id: string) => string;
|
|
127
|
-
readonly ROLES_LIST: `${string}/roles`;
|
|
128
|
-
readonly USERS_DETAIL: (id: string) => string;
|
|
129
|
-
readonly USERS_DETAIL_LOCK: (id: string) => string;
|
|
130
|
-
readonly USERS_DETAIL_SIMPLIFIED: (id: string) => string;
|
|
131
|
-
readonly USERS_LIST: `${string}/users`;
|
|
132
|
-
readonly USERS_ME: `${string}/users/me`;
|
|
133
|
-
readonly WIKI_DETAIL: (id: string) => string;
|
|
134
|
-
readonly WIKI_LIST: `${string}/wiki`;
|
|
135
|
-
};
|
|
136
103
|
readonly controller: {
|
|
137
104
|
readonly BASE: string;
|
|
138
105
|
readonly ACCEPTANCE_CHANGE_STATUS: (id: string) => string;
|
|
@@ -140,18 +107,20 @@ export declare const API_ROUTES: Readonly<{
|
|
|
140
107
|
readonly ACCEPTANCE_DETAIL: (id: string) => string;
|
|
141
108
|
readonly ACCEPTANCE_JUSTIFY: (id: string) => string;
|
|
142
109
|
readonly ACCEPTANCE_LOCK: (id: string) => string;
|
|
110
|
+
readonly RIDES_DETAIL_ANALYSES: (id: string) => string;
|
|
111
|
+
readonly RIDES_DETAIL_APEX_BANKING_TAPS: (id: string) => string;
|
|
112
|
+
readonly RIDES_DETAIL_APEX_LOCATIONS: (id: string) => string;
|
|
113
|
+
readonly RIDES_DETAIL_APEX_REFUNDS: (id: string) => string;
|
|
114
|
+
readonly RIDES_DETAIL_APEX_SALES: (id: string) => string;
|
|
115
|
+
readonly RIDES_DETAIL_APEX_VALIDATIONS: (id: string) => string;
|
|
143
116
|
readonly RIDES_DETAIL_HASHED_SHAPE: (id: string) => string;
|
|
144
117
|
readonly RIDES_DETAIL_HASHED_TRIP: (id: string) => string;
|
|
145
118
|
readonly RIDES_DETAIL_REPROCESS: (id: string) => string;
|
|
146
119
|
readonly RIDES_DETAIL_RIDE: (id: string) => string;
|
|
147
|
-
readonly RIDES_DETAIL_SIMPLIFIED_APEX_LOCATIONS: (id: string) => string;
|
|
148
|
-
readonly RIDES_DETAIL_SIMPLIFIED_APEX_ON_BOARD_REFUNDS: (id: string) => string;
|
|
149
|
-
readonly RIDES_DETAIL_SIMPLIFIED_APEX_ON_BOARD_SALES: (id: string) => string;
|
|
150
|
-
readonly RIDES_DETAIL_SIMPLIFIED_APEX_VALIDATIONS: (id: string) => string;
|
|
151
120
|
readonly RIDES_DETAIL_VEHICLE_EVENTS: (id: string) => string;
|
|
152
121
|
readonly RIDES_FAVORITES: `${string}/rides/favorites`;
|
|
153
|
-
readonly RIDES_LIST: `${string}/rides`;
|
|
154
|
-
readonly
|
|
122
|
+
readonly RIDES_LIST: `${string}/rides/list`;
|
|
123
|
+
readonly RIDES_LIST_AGENCIES: `${string}/rides/list-agencies`;
|
|
155
124
|
readonly SAMS_APEX_VERSIONS: `${string}/sams/apex-versions`;
|
|
156
125
|
readonly SAMS_BASE: `${string}/sams/base`;
|
|
157
126
|
readonly SAMS_DETAIL: (id: string) => string;
|
|
@@ -160,11 +129,54 @@ export declare const API_ROUTES: Readonly<{
|
|
|
160
129
|
readonly SAMS_LIST: `${string}/sams`;
|
|
161
130
|
readonly SAMS_TIMELINE_SUMMARY: `${string}/sams/timeline-summary`;
|
|
162
131
|
};
|
|
132
|
+
readonly core: {
|
|
133
|
+
readonly BASE: string;
|
|
134
|
+
readonly AGENCIES_DETAIL: (id: string) => string;
|
|
135
|
+
readonly AGENCIES_DETAIL_LOCK: (id: string) => string;
|
|
136
|
+
readonly AGENCIES_LIST: `${string}/agencies`;
|
|
137
|
+
readonly APP_CONFIGS_BANNER: `${string}/app-configs/banner`;
|
|
138
|
+
readonly AUTH_CHANGE_PASSWORD: `${string}/auth/change-password`;
|
|
139
|
+
readonly AUTH_LOGIN: `${string}/auth/login`;
|
|
140
|
+
readonly AUTH_LOGOUT: `${string}/auth/logout`;
|
|
141
|
+
readonly AUTH_SEND_PASSWORD_RESET_EMAIL: `${string}/auth/send-password-reset-email`;
|
|
142
|
+
readonly HOME_QUICK_LINKS: `${string}/home/quick-links`;
|
|
143
|
+
readonly ORGANIZATIONS_CREATE: `${string}/organizations/create`;
|
|
144
|
+
readonly ORGANIZATIONS_DETAIL_DELETE: (id: string) => string;
|
|
145
|
+
readonly ORGANIZATIONS_DETAIL_DELETE_IMAGE_VAR: (id: string, theme: string) => string;
|
|
146
|
+
readonly ORGANIZATIONS_DETAIL_DETAIL: (id: string) => string;
|
|
147
|
+
readonly ORGANIZATIONS_DETAIL_DETAIL_IMAGE_VAR: (id: string, theme: string) => string;
|
|
148
|
+
readonly ORGANIZATIONS_DETAIL_LOCK: (id: string) => string;
|
|
149
|
+
readonly ORGANIZATIONS_DETAIL_UPDATE: (id: string) => string;
|
|
150
|
+
readonly ORGANIZATIONS_DETAIL_UPDATE_IMAGE: (id: string) => string;
|
|
151
|
+
readonly ORGANIZATIONS_LIST: `${string}/organizations/list`;
|
|
152
|
+
readonly PLATFORM_DOWNLOADS: `${string}/platform/downloads`;
|
|
153
|
+
readonly PLATFORM_ME: `${string}/platform/me`;
|
|
154
|
+
readonly PLATFORM_NOTIFICATIONS: `${string}/platform/notifications`;
|
|
155
|
+
readonly PLATFORM_SIDEBAR_LOGO: `${string}/platform/sidebar-logo`;
|
|
156
|
+
readonly ROLES_CREATE: `${string}/roles/create`;
|
|
157
|
+
readonly ROLES_DELETE: (id: string) => string;
|
|
158
|
+
readonly ROLES_DETAIL: (id: string) => string;
|
|
159
|
+
readonly ROLES_LIST: `${string}/roles/list`;
|
|
160
|
+
readonly ROLES_LIST_AGENCIES: `${string}/roles/list-agencies`;
|
|
161
|
+
readonly ROLES_LOCK: (id: string) => string;
|
|
162
|
+
readonly ROLES_UPDATE: (id: string) => string;
|
|
163
|
+
readonly USERS_CREATE: `${string}/users/create`;
|
|
164
|
+
readonly USERS_DELETE: (id: string) => string;
|
|
165
|
+
readonly USERS_DETAIL: (id: string) => string;
|
|
166
|
+
readonly USERS_DETAIL_SIMPLIFIED: (id: string) => string;
|
|
167
|
+
readonly USERS_LIST: `${string}/users/list`;
|
|
168
|
+
readonly USERS_LIST_AGENCIES: `${string}/users/list-agencies`;
|
|
169
|
+
readonly USERS_LIST_ORGANIZATIONS: `${string}/users/list-organizations`;
|
|
170
|
+
readonly USERS_LIST_ROLES: `${string}/users/list-roles`;
|
|
171
|
+
readonly USERS_LOCK: (id: string) => string;
|
|
172
|
+
readonly USERS_UPDATE: (id: string) => string;
|
|
173
|
+
};
|
|
163
174
|
readonly dates: {
|
|
164
175
|
readonly BASE: string;
|
|
165
176
|
readonly ANNOTATIONS_DETAIL: (id: string) => string;
|
|
166
177
|
readonly ANNOTATIONS_DETAIL_LOCK: (id: string) => string;
|
|
167
|
-
readonly ANNOTATIONS_LIST: `${string}/annotations`;
|
|
178
|
+
readonly ANNOTATIONS_LIST: `${string}/annotations/list`;
|
|
179
|
+
readonly ANNOTATIONS_LIST_AGENCIES: `${string}/annotations/list-agencies`;
|
|
168
180
|
readonly EVENTS_DETAIL: (id: string) => string;
|
|
169
181
|
readonly EVENTS_DETAIL_LOCK: (id: string) => string;
|
|
170
182
|
readonly EVENTS_LIST: `${string}/events`;
|
|
@@ -207,7 +219,11 @@ export declare const API_ROUTES: Readonly<{
|
|
|
207
219
|
readonly PLANS_LIST: `${string}/v1/plans`;
|
|
208
220
|
readonly REALTIME_ETA: `${string}/v1/realtime/eta`;
|
|
209
221
|
readonly REALTIME_ETA_BY_STOP: (id: string) => string;
|
|
222
|
+
readonly REALTIME_ETA_BY_STOP_GTFS: (id: string) => string;
|
|
223
|
+
readonly REALTIME_ETA_BY_STOP_GTFS_PB: (id: string) => string;
|
|
210
224
|
readonly REALTIME_ETA_BY_TRIP: (id: string) => string;
|
|
225
|
+
readonly REALTIME_ETA_BY_TRIP_GTFS: (id: string) => string;
|
|
226
|
+
readonly REALTIME_ETA_BY_TRIP_GTFS_PB: (id: string) => string;
|
|
211
227
|
readonly REALTIME_ETA_GTFS: `${string}/v1/realtime/eta/gtfs`;
|
|
212
228
|
readonly REALTIME_ETA_GTFS_PB: `${string}/v1/realtime/eta/gtfs.pb`;
|
|
213
229
|
readonly REALTIME_VEHICLES_METADATA: `${string}/v1/realtime/vehicles/metadata`;
|
|
@@ -215,6 +231,14 @@ export declare const API_ROUTES: Readonly<{
|
|
|
215
231
|
readonly REALTIME_VEHICLES_POSITIONS_GTFS: `${string}/v1/realtime/vehicles/positions/gtfs`;
|
|
216
232
|
readonly REALTIME_VEHICLES_POSITIONS_GTFS_PB: `${string}/v1/realtime/vehicles/positions/gtfs.pb`;
|
|
217
233
|
};
|
|
234
|
+
readonly infrastructure: {
|
|
235
|
+
readonly BASE: string;
|
|
236
|
+
readonly STOPS_DETAIL: (id: string) => string;
|
|
237
|
+
readonly STOPS_DETAIL_LOCK: (id: string) => string;
|
|
238
|
+
readonly STOPS_LIST: `${string}/stops`;
|
|
239
|
+
readonly STOPS_TTS: (id: string) => string;
|
|
240
|
+
readonly STOPS_VALID_ID: `${string}/stops/valid-id`;
|
|
241
|
+
};
|
|
218
242
|
readonly locations: {
|
|
219
243
|
readonly BASE: string;
|
|
220
244
|
readonly LOCATIONS_DISTRICTS: `${string}/locations/districts`;
|
|
@@ -265,6 +289,7 @@ export declare const API_ROUTES: Readonly<{
|
|
|
265
289
|
};
|
|
266
290
|
readonly plans: {
|
|
267
291
|
readonly BASE: string;
|
|
292
|
+
readonly PLANS_CREATE: `${string}/plans/create`;
|
|
268
293
|
readonly PLANS_DETAIL: (id: string) => string;
|
|
269
294
|
readonly PLANS_DETAIL_APEX_FILE: (id: string) => string;
|
|
270
295
|
readonly PLANS_DETAIL_APEX_FILE_DOWNLOAD: (id: string) => string;
|
|
@@ -275,21 +300,16 @@ export declare const API_ROUTES: Readonly<{
|
|
|
275
300
|
readonly PLANS_DETAIL_OPERATION_FILE: (id: string) => string;
|
|
276
301
|
readonly PLANS_DETAIL_OPERATION_FILE_DOWNLOAD: (id: string) => string;
|
|
277
302
|
readonly PLANS_DRT_MODEL: (id: string) => string;
|
|
278
|
-
readonly PLANS_LIST: `${string}/plans`;
|
|
303
|
+
readonly PLANS_LIST: `${string}/plans/list`;
|
|
304
|
+
readonly PLANS_LIST_AGENCIES: `${string}/plans/list-agencies`;
|
|
305
|
+
readonly VALIDATIONS_CREATE: `${string}/validations/create`;
|
|
279
306
|
readonly VALIDATIONS_DETAIL: (id: string) => string;
|
|
280
307
|
readonly VALIDATIONS_DETAIL_FILE: (id: string) => string;
|
|
281
308
|
readonly VALIDATIONS_DETAIL_FILE_DOWNLOAD: (id: string) => string;
|
|
282
309
|
readonly VALIDATIONS_DETAIL_LOCK: (id: string) => string;
|
|
283
310
|
readonly VALIDATIONS_DETAIL_PROCESSING_STATUS: (id: string) => string;
|
|
284
311
|
readonly VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id: string) => string;
|
|
285
|
-
readonly VALIDATIONS_LIST: `${string}/validations`;
|
|
286
|
-
|
|
287
|
-
readonly stops: {
|
|
288
|
-
readonly BASE: string;
|
|
289
|
-
readonly STOPS_DETAIL: (id: string) => string;
|
|
290
|
-
readonly STOPS_DETAIL_LOCK: (id: string) => string;
|
|
291
|
-
readonly STOPS_LIST: `${string}/stops`;
|
|
292
|
-
readonly STOPS_TTS: (id: string) => string;
|
|
293
|
-
readonly STOPS_VALID_ID: `${string}/stops/valid-id`;
|
|
312
|
+
readonly VALIDATIONS_LIST: `${string}/validations/list`;
|
|
313
|
+
readonly VALIDATIONS_LIST_AGENCIES: `${string}/validations/list-agencies`;
|
|
294
314
|
};
|
|
295
315
|
}>;
|
package/dist/app-routes.js
CHANGED
|
@@ -9,43 +9,42 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
9
9
|
// BASE
|
|
10
10
|
BASE: `${getModuleConfig('alerts', 'frontend_url')}`,
|
|
11
11
|
// ALERTS
|
|
12
|
-
ALERTS_DETAIL: (
|
|
12
|
+
ALERTS_DETAIL: (alertId) => `${getModuleConfig('alerts', 'frontend_url')}/${encodeURIComponent(alertId)}`,
|
|
13
13
|
ALERTS_LIST: `${getModuleConfig('alerts', 'frontend_url')}`,
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
controller: {
|
|
16
|
+
// BASE
|
|
17
|
+
BASE: `${getModuleConfig('controller', 'frontend_url')}`,
|
|
18
|
+
// RIDES
|
|
19
|
+
RIDES_DETAIL: (rideId) => `${getModuleConfig('controller', 'frontend_url')}/rides/${encodeURIComponent(rideId)}`,
|
|
20
|
+
RIDES_LIST: `${getModuleConfig('controller', 'frontend_url')}/rides`,
|
|
21
|
+
// SAMS
|
|
22
|
+
SAMS_DETAIL: (id) => `${getModuleConfig('controller', 'frontend_url')}/sams/${encodeURIComponent(id)}`,
|
|
23
|
+
SAMS_LIST: `${getModuleConfig('controller', 'frontend_url')}/sams`,
|
|
24
|
+
},
|
|
25
|
+
core: {
|
|
16
26
|
// BASE
|
|
17
|
-
BASE: `${getModuleConfig('
|
|
27
|
+
BASE: `${getModuleConfig('core', 'frontend_url')}`,
|
|
18
28
|
// AGENCIES
|
|
19
|
-
AGENCIES_DETAIL: (
|
|
20
|
-
AGENCIES_LIST: `${getModuleConfig('
|
|
29
|
+
AGENCIES_DETAIL: (agencyId) => `${getModuleConfig('core', 'frontend_url')}/agencies/${encodeURIComponent(agencyId)}`,
|
|
30
|
+
AGENCIES_LIST: `${getModuleConfig('core', 'frontend_url')}/agencies`,
|
|
21
31
|
// CHANGE_PASSWORD
|
|
22
|
-
CHANGE_PASSWORD_LIST: `${getModuleConfig('
|
|
32
|
+
CHANGE_PASSWORD_LIST: `${getModuleConfig('core', 'frontend_url')}/change-password`,
|
|
23
33
|
// HOME
|
|
24
|
-
|
|
25
|
-
HOME_LIST: `${getModuleConfig('auth', 'frontend_url')}/home`,
|
|
34
|
+
HOME_LIST: `${getModuleConfig('core', 'frontend_url')}/home`,
|
|
26
35
|
// LOGIN
|
|
27
|
-
LOGIN_LIST: `${getModuleConfig('
|
|
36
|
+
LOGIN_LIST: `${getModuleConfig('core', 'frontend_url')}/login`,
|
|
28
37
|
// ORGANIZATIONS
|
|
29
|
-
ORGANIZATIONS_DETAIL: (
|
|
30
|
-
ORGANIZATIONS_LIST: `${getModuleConfig('
|
|
38
|
+
ORGANIZATIONS_DETAIL: (organizationId) => `${getModuleConfig('core', 'frontend_url')}/organizations/${encodeURIComponent(organizationId)}`,
|
|
39
|
+
ORGANIZATIONS_LIST: `${getModuleConfig('core', 'frontend_url')}/organizations`,
|
|
31
40
|
// RESET_PASSWORD
|
|
32
|
-
RESET_PASSWORD_LIST: `${getModuleConfig('
|
|
41
|
+
RESET_PASSWORD_LIST: `${getModuleConfig('core', 'frontend_url')}/reset-password`,
|
|
33
42
|
// ROLES
|
|
34
|
-
ROLES_DETAIL: (
|
|
35
|
-
ROLES_LIST: `${getModuleConfig('
|
|
43
|
+
ROLES_DETAIL: (roleId) => `${getModuleConfig('core', 'frontend_url')}/roles/${encodeURIComponent(roleId)}`,
|
|
44
|
+
ROLES_LIST: `${getModuleConfig('core', 'frontend_url')}/roles`,
|
|
36
45
|
// USERS
|
|
37
|
-
USERS_DETAIL: (
|
|
38
|
-
USERS_LIST: `${getModuleConfig('
|
|
39
|
-
},
|
|
40
|
-
controller: {
|
|
41
|
-
// BASE
|
|
42
|
-
BASE: `${getModuleConfig('controller', 'frontend_url')}`,
|
|
43
|
-
// RIDES
|
|
44
|
-
RIDES_DETAIL: (id) => `${getModuleConfig('controller', 'frontend_url')}/rides/${encodeURIComponent(id)}`,
|
|
45
|
-
RIDES_LIST: `${getModuleConfig('controller', 'frontend_url')}/rides`,
|
|
46
|
-
// SAMS
|
|
47
|
-
SAMS_DETAIL: (id) => `${getModuleConfig('controller', 'frontend_url')}/sams/${encodeURIComponent(id)}`,
|
|
48
|
-
SAMS_LIST: `${getModuleConfig('controller', 'frontend_url')}/sams`,
|
|
46
|
+
USERS_DETAIL: (userId) => `${getModuleConfig('core', 'frontend_url')}/users/${encodeURIComponent(userId)}`,
|
|
47
|
+
USERS_LIST: `${getModuleConfig('core', 'frontend_url')}/users`,
|
|
49
48
|
},
|
|
50
49
|
dates: {
|
|
51
50
|
// BASE
|
|
@@ -72,6 +71,13 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
72
71
|
VEHICLES_DETAIL: (id) => `${getModuleConfig('fleet', 'frontend_url')}/vehicles/${encodeURIComponent(id)}`,
|
|
73
72
|
VEHICLES_LIST: `${getModuleConfig('fleet', 'frontend_url')}/vehicles`,
|
|
74
73
|
},
|
|
74
|
+
infrastructure: {
|
|
75
|
+
// BASE
|
|
76
|
+
BASE: `${getModuleConfig('infrastructure', 'frontend_url')}`,
|
|
77
|
+
// INFRASTRUCTURE
|
|
78
|
+
INFRASTRUCTURE_DETAIL: (id) => `${getModuleConfig('infrastructure', 'frontend_url')}/${encodeURIComponent(id)}`,
|
|
79
|
+
INFRASTRUCTURE_LIST: `${getModuleConfig('infrastructure', 'frontend_url')}`,
|
|
80
|
+
},
|
|
75
81
|
offer: {
|
|
76
82
|
// BASE
|
|
77
83
|
BASE: `${getModuleConfig('offer', 'frontend_url')}`,
|
|
@@ -122,74 +128,25 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
122
128
|
// REFERENCE
|
|
123
129
|
REFERENCE_LIST: `${getModuleConfig('root', 'frontend_url')}/reference`,
|
|
124
130
|
},
|
|
125
|
-
stops: {
|
|
126
|
-
// BASE
|
|
127
|
-
BASE: `${getModuleConfig('stops', 'frontend_url')}`,
|
|
128
|
-
// STOPS
|
|
129
|
-
STOPS_DETAIL: (id) => `${getModuleConfig('stops', 'frontend_url')}/${encodeURIComponent(id)}`,
|
|
130
|
-
STOPS_LIST: `${getModuleConfig('stops', 'frontend_url')}`,
|
|
131
|
-
},
|
|
132
131
|
});
|
|
133
132
|
export const API_ROUTES = Object.freeze({
|
|
134
133
|
alerts: {
|
|
135
134
|
// BASE
|
|
136
135
|
BASE: `${getModuleConfig('alerts', 'api_url')}`,
|
|
137
136
|
// ALERTS
|
|
138
|
-
|
|
137
|
+
ALERTS_COMPOSE: `${getModuleConfig('alerts', 'api_url')}/alerts/compose`,
|
|
138
|
+
ALERTS_CREATE: `${getModuleConfig('alerts', 'api_url')}/alerts/create`,
|
|
139
139
|
ALERTS_DETAIL: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${encodeURIComponent(id)}`,
|
|
140
140
|
ALERTS_DETAIL_DUPLICATE: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${encodeURIComponent(id)}/duplicate`,
|
|
141
141
|
ALERTS_DETAIL_IMAGE: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${encodeURIComponent(id)}/image`,
|
|
142
142
|
ALERTS_DETAIL_LOCK: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${encodeURIComponent(id)}/lock`,
|
|
143
|
-
ALERTS_LIST: `${getModuleConfig('alerts', 'api_url')}/alerts`,
|
|
143
|
+
ALERTS_LIST: `${getModuleConfig('alerts', 'api_url')}/alerts/list`,
|
|
144
|
+
ALERTS_LIST_AGENCIES: `${getModuleConfig('alerts', 'api_url')}/alerts/list-agencies`,
|
|
144
145
|
// OPERATION
|
|
145
146
|
OPERATION_LINES: `${getModuleConfig('alerts', 'api_url')}/operation/lines`,
|
|
146
147
|
OPERATION_RIDES: `${getModuleConfig('alerts', 'api_url')}/operation/rides`,
|
|
147
|
-
OPERATION_RIDES_DETAIL_RIDE: (id) => `${getModuleConfig('alerts', 'api_url')}/operation/rides/${encodeURIComponent(id)}/ride`,
|
|
148
|
-
OPERATION_RIDES_WS: `${getModuleConfig('alerts', 'api_url')}/operation/rides/ws`,
|
|
149
148
|
OPERATION_STOPS: `${getModuleConfig('alerts', 'api_url')}/operation/stops`,
|
|
150
149
|
},
|
|
151
|
-
auth: {
|
|
152
|
-
// BASE
|
|
153
|
-
BASE: `${getModuleConfig('auth', 'api_url')}`,
|
|
154
|
-
// AGENCIES
|
|
155
|
-
AGENCIES_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/agencies/${encodeURIComponent(id)}`,
|
|
156
|
-
AGENCIES_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/agencies/${encodeURIComponent(id)}/lock`,
|
|
157
|
-
AGENCIES_LIST: `${getModuleConfig('auth', 'api_url')}/agencies`,
|
|
158
|
-
// APP-CONFIGS
|
|
159
|
-
APP_CONFIGS_APP_BANNER: `${getModuleConfig('auth', 'api_url')}/app-configs/app-banner`,
|
|
160
|
-
// AUTH
|
|
161
|
-
AUTH_CHANGE_PASSWORD: `${getModuleConfig('auth', 'api_url')}/auth/change-password`,
|
|
162
|
-
AUTH_LOGIN: `${getModuleConfig('auth', 'api_url')}/auth/login`,
|
|
163
|
-
AUTH_LOGOUT: `${getModuleConfig('auth', 'api_url')}/auth/logout`,
|
|
164
|
-
AUTH_SEND_PASSWORD_RESET_EMAIL: `${getModuleConfig('auth', 'api_url')}/auth/send-password-reset-email`,
|
|
165
|
-
// NOTIFICATIONS
|
|
166
|
-
NOTIFICATIONS_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/notifications/${encodeURIComponent(id)}`,
|
|
167
|
-
NOTIFICATIONS_DETAIL_MARK_AS_READ: (id) => `${getModuleConfig('auth', 'api_url')}/notifications/${encodeURIComponent(id)}/mark-as-read`,
|
|
168
|
-
NOTIFICATIONS_LIST: `${getModuleConfig('auth', 'api_url')}/notifications`,
|
|
169
|
-
// ORGANIZATIONS
|
|
170
|
-
ORGANIZATIONS_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${encodeURIComponent(id)}`,
|
|
171
|
-
ORGANIZATIONS_DETAIL_IMAGE: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${encodeURIComponent(id)}/image`,
|
|
172
|
-
ORGANIZATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${encodeURIComponent(id)}/lock`,
|
|
173
|
-
ORGANIZATIONS_DETAIL_LOGO: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${encodeURIComponent(id)}/logo`,
|
|
174
|
-
ORGANIZATIONS_DETAIL_VAR_IMAGE: (id, theme) => `${getModuleConfig('auth', 'api_url')}/organizations/${encodeURIComponent(id)}/${encodeURIComponent(theme)}/image`,
|
|
175
|
-
ORGANIZATIONS_LIST: `${getModuleConfig('auth', 'api_url')}/organizations`,
|
|
176
|
-
// PROPOSED-CHANGES
|
|
177
|
-
PROPOSED_CHANGES_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/proposed-changes/${encodeURIComponent(id)}`,
|
|
178
|
-
PROPOSED_CHANGES_LIST: `${getModuleConfig('auth', 'api_url')}/proposed-changes`,
|
|
179
|
-
// ROLES
|
|
180
|
-
ROLES_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/roles/${encodeURIComponent(id)}`,
|
|
181
|
-
ROLES_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/roles/${encodeURIComponent(id)}/lock`,
|
|
182
|
-
ROLES_LIST: `${getModuleConfig('auth', 'api_url')}/roles`,
|
|
183
|
-
// USERS
|
|
184
|
-
USERS_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/users/${encodeURIComponent(id)}`,
|
|
185
|
-
USERS_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/users/${encodeURIComponent(id)}/lock`,
|
|
186
|
-
USERS_DETAIL_SIMPLIFIED: (id) => `${getModuleConfig('auth', 'api_url')}/users/${encodeURIComponent(id)}/simplified`,
|
|
187
|
-
USERS_LIST: `${getModuleConfig('auth', 'api_url')}/users`,
|
|
188
|
-
USERS_ME: `${getModuleConfig('auth', 'api_url')}/users/me`,
|
|
189
|
-
// WIKI
|
|
190
|
-
WIKI_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/wiki/${encodeURIComponent(id)}`,
|
|
191
|
-
WIKI_LIST: `${getModuleConfig('auth', 'api_url')}/wiki`,
|
|
192
|
-
},
|
|
193
150
|
controller: {
|
|
194
151
|
// BASE
|
|
195
152
|
BASE: `${getModuleConfig('controller', 'api_url')}`,
|
|
@@ -200,18 +157,20 @@ export const API_ROUTES = Object.freeze({
|
|
|
200
157
|
ACCEPTANCE_JUSTIFY: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/acceptance/justify`,
|
|
201
158
|
ACCEPTANCE_LOCK: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/acceptance/lock`,
|
|
202
159
|
// RIDES
|
|
160
|
+
RIDES_DETAIL_ANALYSES: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/analyses`,
|
|
161
|
+
RIDES_DETAIL_APEX_BANKING_TAPS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/apex-banking-taps`,
|
|
162
|
+
RIDES_DETAIL_APEX_LOCATIONS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/apex-locations`,
|
|
163
|
+
RIDES_DETAIL_APEX_REFUNDS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/apex-refunds`,
|
|
164
|
+
RIDES_DETAIL_APEX_SALES: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/apex-sales`,
|
|
165
|
+
RIDES_DETAIL_APEX_VALIDATIONS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/apex-validations`,
|
|
203
166
|
RIDES_DETAIL_HASHED_SHAPE: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/hashed-shape`,
|
|
204
167
|
RIDES_DETAIL_HASHED_TRIP: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/hashed-trip`,
|
|
205
168
|
RIDES_DETAIL_REPROCESS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/reprocess`,
|
|
206
169
|
RIDES_DETAIL_RIDE: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/ride`,
|
|
207
|
-
RIDES_DETAIL_SIMPLIFIED_APEX_LOCATIONS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/simplified-apex-locations`,
|
|
208
|
-
RIDES_DETAIL_SIMPLIFIED_APEX_ON_BOARD_REFUNDS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/simplified-apex-on-board-refunds`,
|
|
209
|
-
RIDES_DETAIL_SIMPLIFIED_APEX_ON_BOARD_SALES: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/simplified-apex-on-board-sales`,
|
|
210
|
-
RIDES_DETAIL_SIMPLIFIED_APEX_VALIDATIONS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/simplified-apex-validations`,
|
|
211
170
|
RIDES_DETAIL_VEHICLE_EVENTS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/vehicle-events`,
|
|
212
171
|
RIDES_FAVORITES: `${getModuleConfig('controller', 'api_url')}/rides/favorites`,
|
|
213
|
-
RIDES_LIST: `${getModuleConfig('controller', 'api_url')}/rides`,
|
|
214
|
-
|
|
172
|
+
RIDES_LIST: `${getModuleConfig('controller', 'api_url')}/rides/list`,
|
|
173
|
+
RIDES_LIST_AGENCIES: `${getModuleConfig('controller', 'api_url')}/rides/list-agencies`,
|
|
215
174
|
// SAMS
|
|
216
175
|
SAMS_APEX_VERSIONS: `${getModuleConfig('controller', 'api_url')}/sams/apex-versions`,
|
|
217
176
|
SAMS_BASE: `${getModuleConfig('controller', 'api_url')}/sams/base`,
|
|
@@ -221,13 +180,65 @@ export const API_ROUTES = Object.freeze({
|
|
|
221
180
|
SAMS_LIST: `${getModuleConfig('controller', 'api_url')}/sams`,
|
|
222
181
|
SAMS_TIMELINE_SUMMARY: `${getModuleConfig('controller', 'api_url')}/sams/timeline-summary`,
|
|
223
182
|
},
|
|
183
|
+
core: {
|
|
184
|
+
// BASE
|
|
185
|
+
BASE: `${getModuleConfig('core', 'api_url')}`,
|
|
186
|
+
// AGENCIES
|
|
187
|
+
AGENCIES_DETAIL: (id) => `${getModuleConfig('core', 'api_url')}/agencies/${encodeURIComponent(id)}`,
|
|
188
|
+
AGENCIES_DETAIL_LOCK: (id) => `${getModuleConfig('core', 'api_url')}/agencies/${encodeURIComponent(id)}/lock`,
|
|
189
|
+
AGENCIES_LIST: `${getModuleConfig('core', 'api_url')}/agencies`,
|
|
190
|
+
// APP-CONFIGS
|
|
191
|
+
APP_CONFIGS_BANNER: `${getModuleConfig('core', 'api_url')}/app-configs/banner`,
|
|
192
|
+
// AUTH
|
|
193
|
+
AUTH_CHANGE_PASSWORD: `${getModuleConfig('core', 'api_url')}/auth/change-password`,
|
|
194
|
+
AUTH_LOGIN: `${getModuleConfig('core', 'api_url')}/auth/login`,
|
|
195
|
+
AUTH_LOGOUT: `${getModuleConfig('core', 'api_url')}/auth/logout`,
|
|
196
|
+
AUTH_SEND_PASSWORD_RESET_EMAIL: `${getModuleConfig('core', 'api_url')}/auth/send-password-reset-email`,
|
|
197
|
+
// HOME
|
|
198
|
+
HOME_QUICK_LINKS: `${getModuleConfig('core', 'api_url')}/home/quick-links`,
|
|
199
|
+
// ORGANIZATIONS
|
|
200
|
+
ORGANIZATIONS_CREATE: `${getModuleConfig('core', 'api_url')}/organizations/create`,
|
|
201
|
+
ORGANIZATIONS_DETAIL_DELETE: (id) => `${getModuleConfig('core', 'api_url')}/organizations/${encodeURIComponent(id)}/delete`,
|
|
202
|
+
ORGANIZATIONS_DETAIL_DELETE_IMAGE_VAR: (id, theme) => `${getModuleConfig('core', 'api_url')}/organizations/${encodeURIComponent(id)}/delete/image/${encodeURIComponent(theme)}`,
|
|
203
|
+
ORGANIZATIONS_DETAIL_DETAIL: (id) => `${getModuleConfig('core', 'api_url')}/organizations/${encodeURIComponent(id)}/detail`,
|
|
204
|
+
ORGANIZATIONS_DETAIL_DETAIL_IMAGE_VAR: (id, theme) => `${getModuleConfig('core', 'api_url')}/organizations/${encodeURIComponent(id)}/detail/image/${encodeURIComponent(theme)}`,
|
|
205
|
+
ORGANIZATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('core', 'api_url')}/organizations/${encodeURIComponent(id)}/lock`,
|
|
206
|
+
ORGANIZATIONS_DETAIL_UPDATE: (id) => `${getModuleConfig('core', 'api_url')}/organizations/${encodeURIComponent(id)}/update`,
|
|
207
|
+
ORGANIZATIONS_DETAIL_UPDATE_IMAGE: (id) => `${getModuleConfig('core', 'api_url')}/organizations/${encodeURIComponent(id)}/update/image`,
|
|
208
|
+
ORGANIZATIONS_LIST: `${getModuleConfig('core', 'api_url')}/organizations/list`,
|
|
209
|
+
// PLATFORM
|
|
210
|
+
PLATFORM_DOWNLOADS: `${getModuleConfig('core', 'api_url')}/platform/downloads`,
|
|
211
|
+
PLATFORM_ME: `${getModuleConfig('core', 'api_url')}/platform/me`,
|
|
212
|
+
PLATFORM_NOTIFICATIONS: `${getModuleConfig('core', 'api_url')}/platform/notifications`,
|
|
213
|
+
PLATFORM_SIDEBAR_LOGO: `${getModuleConfig('core', 'api_url')}/platform/sidebar-logo`,
|
|
214
|
+
// ROLES
|
|
215
|
+
ROLES_CREATE: `${getModuleConfig('core', 'api_url')}/roles/create`,
|
|
216
|
+
ROLES_DELETE: (id) => `${getModuleConfig('core', 'api_url')}/roles/delete/${encodeURIComponent(id)}`,
|
|
217
|
+
ROLES_DETAIL: (id) => `${getModuleConfig('core', 'api_url')}/roles/${encodeURIComponent(id)}`,
|
|
218
|
+
ROLES_LIST: `${getModuleConfig('core', 'api_url')}/roles/list`,
|
|
219
|
+
ROLES_LIST_AGENCIES: `${getModuleConfig('core', 'api_url')}/roles/list-agencies`,
|
|
220
|
+
ROLES_LOCK: (id) => `${getModuleConfig('core', 'api_url')}/roles/lock/${encodeURIComponent(id)}`,
|
|
221
|
+
ROLES_UPDATE: (id) => `${getModuleConfig('core', 'api_url')}/roles/update/${encodeURIComponent(id)}`,
|
|
222
|
+
// USERS
|
|
223
|
+
USERS_CREATE: `${getModuleConfig('core', 'api_url')}/users/create`,
|
|
224
|
+
USERS_DELETE: (id) => `${getModuleConfig('core', 'api_url')}/users/delete/${encodeURIComponent(id)}`,
|
|
225
|
+
USERS_DETAIL: (id) => `${getModuleConfig('core', 'api_url')}/users/${encodeURIComponent(id)}`,
|
|
226
|
+
USERS_DETAIL_SIMPLIFIED: (id) => `${getModuleConfig('core', 'api_url')}/users/${encodeURIComponent(id)}/simplified`,
|
|
227
|
+
USERS_LIST: `${getModuleConfig('core', 'api_url')}/users/list`,
|
|
228
|
+
USERS_LIST_AGENCIES: `${getModuleConfig('core', 'api_url')}/users/list-agencies`,
|
|
229
|
+
USERS_LIST_ORGANIZATIONS: `${getModuleConfig('core', 'api_url')}/users/list-organizations`,
|
|
230
|
+
USERS_LIST_ROLES: `${getModuleConfig('core', 'api_url')}/users/list-roles`,
|
|
231
|
+
USERS_LOCK: (id) => `${getModuleConfig('core', 'api_url')}/users/lock/${encodeURIComponent(id)}`,
|
|
232
|
+
USERS_UPDATE: (id) => `${getModuleConfig('core', 'api_url')}/users/update/${encodeURIComponent(id)}`,
|
|
233
|
+
},
|
|
224
234
|
dates: {
|
|
225
235
|
// BASE
|
|
226
236
|
BASE: `${getModuleConfig('dates', 'api_url')}`,
|
|
227
237
|
// ANNOTATIONS
|
|
228
238
|
ANNOTATIONS_DETAIL: (id) => `${getModuleConfig('dates', 'api_url')}/annotations/${encodeURIComponent(id)}`,
|
|
229
239
|
ANNOTATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/annotations/${encodeURIComponent(id)}/lock`,
|
|
230
|
-
ANNOTATIONS_LIST: `${getModuleConfig('dates', 'api_url')}/annotations`,
|
|
240
|
+
ANNOTATIONS_LIST: `${getModuleConfig('dates', 'api_url')}/annotations/list`,
|
|
241
|
+
ANNOTATIONS_LIST_AGENCIES: `${getModuleConfig('dates', 'api_url')}/annotations/list-agencies`,
|
|
231
242
|
// EVENTS
|
|
232
243
|
EVENTS_DETAIL: (id) => `${getModuleConfig('dates', 'api_url')}/events/${encodeURIComponent(id)}`,
|
|
233
244
|
EVENTS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/events/${encodeURIComponent(id)}/lock`,
|
|
@@ -284,7 +295,11 @@ export const API_ROUTES = Object.freeze({
|
|
|
284
295
|
// REALTIME
|
|
285
296
|
REALTIME_ETA: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta`,
|
|
286
297
|
REALTIME_ETA_BY_STOP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-stop/${encodeURIComponent(id)}`,
|
|
298
|
+
REALTIME_ETA_BY_STOP_GTFS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-stop/${encodeURIComponent(id)}/gtfs`,
|
|
299
|
+
REALTIME_ETA_BY_STOP_GTFS_PB: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-stop/${encodeURIComponent(id)}/gtfs.pb`,
|
|
287
300
|
REALTIME_ETA_BY_TRIP: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}`,
|
|
301
|
+
REALTIME_ETA_BY_TRIP_GTFS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}/gtfs`,
|
|
302
|
+
REALTIME_ETA_BY_TRIP_GTFS_PB: (id) => `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/by-trip/${encodeURIComponent(id)}/gtfs.pb`,
|
|
288
303
|
REALTIME_ETA_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/gtfs`,
|
|
289
304
|
REALTIME_ETA_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/eta/gtfs.pb`,
|
|
290
305
|
REALTIME_VEHICLES_METADATA: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/metadata`,
|
|
@@ -292,6 +307,16 @@ export const API_ROUTES = Object.freeze({
|
|
|
292
307
|
REALTIME_VEHICLES_POSITIONS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs`,
|
|
293
308
|
REALTIME_VEHICLES_POSITIONS_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/realtime/vehicles/positions/gtfs.pb`,
|
|
294
309
|
},
|
|
310
|
+
infrastructure: {
|
|
311
|
+
// BASE
|
|
312
|
+
BASE: `${getModuleConfig('infrastructure', 'api_url')}`,
|
|
313
|
+
// STOPS
|
|
314
|
+
STOPS_DETAIL: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/${encodeURIComponent(id)}`,
|
|
315
|
+
STOPS_DETAIL_LOCK: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/${encodeURIComponent(id)}/lock`,
|
|
316
|
+
STOPS_LIST: `${getModuleConfig('infrastructure', 'api_url')}/stops`,
|
|
317
|
+
STOPS_TTS: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/tts/${encodeURIComponent(id)}`,
|
|
318
|
+
STOPS_VALID_ID: `${getModuleConfig('infrastructure', 'api_url')}/stops/valid-id`,
|
|
319
|
+
},
|
|
295
320
|
locations: {
|
|
296
321
|
// BASE
|
|
297
322
|
BASE: `${getModuleConfig('locations', 'api_url')}`,
|
|
@@ -361,6 +386,7 @@ export const API_ROUTES = Object.freeze({
|
|
|
361
386
|
// BASE
|
|
362
387
|
BASE: `${getModuleConfig('plans', 'api_url')}`,
|
|
363
388
|
// PLANS
|
|
389
|
+
PLANS_CREATE: `${getModuleConfig('plans', 'api_url')}/plans/create`,
|
|
364
390
|
PLANS_DETAIL: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}`,
|
|
365
391
|
PLANS_DETAIL_APEX_FILE: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/apex-file`,
|
|
366
392
|
PLANS_DETAIL_APEX_FILE_DOWNLOAD: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/apex-file/download`,
|
|
@@ -371,24 +397,17 @@ export const API_ROUTES = Object.freeze({
|
|
|
371
397
|
PLANS_DETAIL_OPERATION_FILE: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/operation-file`,
|
|
372
398
|
PLANS_DETAIL_OPERATION_FILE_DOWNLOAD: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/operation-file/download`,
|
|
373
399
|
PLANS_DRT_MODEL: (id) => `${getModuleConfig('plans', 'api_url')}/plans/drt-model/${encodeURIComponent(id)}`,
|
|
374
|
-
PLANS_LIST: `${getModuleConfig('plans', 'api_url')}/plans`,
|
|
400
|
+
PLANS_LIST: `${getModuleConfig('plans', 'api_url')}/plans/list`,
|
|
401
|
+
PLANS_LIST_AGENCIES: `${getModuleConfig('plans', 'api_url')}/plans/list-agencies`,
|
|
375
402
|
// VALIDATIONS
|
|
403
|
+
VALIDATIONS_CREATE: `${getModuleConfig('plans', 'api_url')}/validations/create`,
|
|
376
404
|
VALIDATIONS_DETAIL: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}`,
|
|
377
405
|
VALIDATIONS_DETAIL_FILE: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/file`,
|
|
378
406
|
VALIDATIONS_DETAIL_FILE_DOWNLOAD: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/file/download`,
|
|
379
407
|
VALIDATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/lock`,
|
|
380
408
|
VALIDATIONS_DETAIL_PROCESSING_STATUS: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/processing-status`,
|
|
381
409
|
VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/request-approval`,
|
|
382
|
-
VALIDATIONS_LIST: `${getModuleConfig('plans', 'api_url')}/validations`,
|
|
383
|
-
|
|
384
|
-
stops: {
|
|
385
|
-
// BASE
|
|
386
|
-
BASE: `${getModuleConfig('stops', 'api_url')}`,
|
|
387
|
-
// STOPS
|
|
388
|
-
STOPS_DETAIL: (id) => `${getModuleConfig('stops', 'api_url')}/stops/${encodeURIComponent(id)}`,
|
|
389
|
-
STOPS_DETAIL_LOCK: (id) => `${getModuleConfig('stops', 'api_url')}/stops/${encodeURIComponent(id)}/lock`,
|
|
390
|
-
STOPS_LIST: `${getModuleConfig('stops', 'api_url')}/stops`,
|
|
391
|
-
STOPS_TTS: (id) => `${getModuleConfig('stops', 'api_url')}/stops/tts/${encodeURIComponent(id)}`,
|
|
392
|
-
STOPS_VALID_ID: `${getModuleConfig('stops', 'api_url')}/stops/valid-id`,
|
|
410
|
+
VALIDATIONS_LIST: `${getModuleConfig('plans', 'api_url')}/validations/list`,
|
|
411
|
+
VALIDATIONS_LIST_AGENCIES: `${getModuleConfig('plans', 'api_url')}/validations/list-agencies`,
|
|
393
412
|
},
|
|
394
413
|
});
|
package/dist/earliest-date.d.ts
CHANGED
package/dist/earliest-date.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getCurrentEnvironment, OperationalDateIntSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
+
import { Dates } from '@tmlmobilidade/go-utils-dates';
|
|
4
4
|
/**
|
|
5
5
|
* Get the earliest date for data synchronization
|
|
6
6
|
* based on the current environment.
|
|
@@ -13,7 +13,7 @@ export function getEarliestDate() {
|
|
|
13
13
|
// 1 January 2024, in the Europe/Lisbon timezone.
|
|
14
14
|
if (getCurrentEnvironment() === 'prd') {
|
|
15
15
|
return Dates
|
|
16
|
-
.
|
|
16
|
+
.fromOperationalDateInt(OperationalDateIntSchema.parse(20240101), 'Europe/Lisbon')
|
|
17
17
|
.set({ hour: 4, millisecond: 0, minute: 0, second: 0 });
|
|
18
18
|
}
|
|
19
19
|
//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmlmobilidade/consts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20260828.1636.54",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "iso@tmlmobilidade.pt",
|
|
6
6
|
"name": "TML-ISO"
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"watch": "tsc-watch --onSuccess 'resolve-tspaths'"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@tmlmobilidade/
|
|
42
|
+
"@tmlmobilidade/go-types-shared": "*",
|
|
43
|
+
"@tmlmobilidade/go-utils-dates": "*"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@tmlmobilidade/tsconfig": "*",
|
|
46
|
-
"@tmlmobilidade/types": "*",
|
|
46
|
+
"@tmlmobilidade/go-utils-tsconfig": "*",
|
|
47
47
|
"@types/node": "26.1.2",
|
|
48
48
|
"resolve-tspaths": "0.8.23",
|
|
49
49
|
"tsc-watch": "7.2.1",
|