@tmlmobilidade/consts 20260625.1714.32 → 20260626.1034.45
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-routes.js +102 -102
- package/package.json +1 -1
package/dist/app-routes.js
CHANGED
|
@@ -9,87 +9,87 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
9
9
|
// BASE
|
|
10
10
|
BASE: `${getModuleConfig('alerts', 'frontend_url')}`,
|
|
11
11
|
// ALERTS
|
|
12
|
-
ALERTS_DETAIL: (id) => `${getModuleConfig('alerts', 'frontend_url')}/${id}`,
|
|
12
|
+
ALERTS_DETAIL: (id) => `${getModuleConfig('alerts', 'frontend_url')}/${encodeURIComponent(id)}`,
|
|
13
13
|
ALERTS_LIST: `${getModuleConfig('alerts', 'frontend_url')}`,
|
|
14
14
|
},
|
|
15
15
|
auth: {
|
|
16
16
|
// BASE
|
|
17
17
|
BASE: `${getModuleConfig('auth', 'frontend_url')}`,
|
|
18
18
|
// AGENCIES
|
|
19
|
-
AGENCIES_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/agencies/${id}`,
|
|
19
|
+
AGENCIES_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/agencies/${encodeURIComponent(id)}`,
|
|
20
20
|
AGENCIES_LIST: `${getModuleConfig('auth', 'frontend_url')}/agencies`,
|
|
21
21
|
// CHANGE_PASSWORD
|
|
22
22
|
CHANGE_PASSWORD_LIST: `${getModuleConfig('auth', 'frontend_url')}/change-password`,
|
|
23
23
|
// HOME
|
|
24
|
-
HOME_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/home/${id}`,
|
|
24
|
+
HOME_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/home/${encodeURIComponent(id)}`,
|
|
25
25
|
HOME_LIST: `${getModuleConfig('auth', 'frontend_url')}/home`,
|
|
26
26
|
// LOGIN
|
|
27
27
|
LOGIN_LIST: `${getModuleConfig('auth', 'frontend_url')}/login`,
|
|
28
28
|
// ORGANIZATIONS
|
|
29
|
-
ORGANIZATIONS_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/organizations/${id}`,
|
|
29
|
+
ORGANIZATIONS_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/organizations/${encodeURIComponent(id)}`,
|
|
30
30
|
ORGANIZATIONS_LIST: `${getModuleConfig('auth', 'frontend_url')}/organizations`,
|
|
31
31
|
// RESET_PASSWORD
|
|
32
32
|
RESET_PASSWORD_LIST: `${getModuleConfig('auth', 'frontend_url')}/reset-password`,
|
|
33
33
|
// ROLES
|
|
34
|
-
ROLES_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/roles/${id}`,
|
|
34
|
+
ROLES_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/roles/${encodeURIComponent(id)}`,
|
|
35
35
|
ROLES_LIST: `${getModuleConfig('auth', 'frontend_url')}/roles`,
|
|
36
36
|
// USERS
|
|
37
|
-
USERS_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/users/${id}`,
|
|
37
|
+
USERS_DETAIL: (id) => `${getModuleConfig('auth', 'frontend_url')}/users/${encodeURIComponent(id)}`,
|
|
38
38
|
USERS_LIST: `${getModuleConfig('auth', 'frontend_url')}/users`,
|
|
39
39
|
},
|
|
40
40
|
controller: {
|
|
41
41
|
// BASE
|
|
42
42
|
BASE: `${getModuleConfig('controller', 'frontend_url')}`,
|
|
43
43
|
// RIDES
|
|
44
|
-
RIDES_DETAIL: (id) => `${getModuleConfig('controller', 'frontend_url')}/rides/${id}`,
|
|
44
|
+
RIDES_DETAIL: (id) => `${getModuleConfig('controller', 'frontend_url')}/rides/${encodeURIComponent(id)}`,
|
|
45
45
|
RIDES_LIST: `${getModuleConfig('controller', 'frontend_url')}/rides`,
|
|
46
46
|
// SAMS
|
|
47
|
-
SAMS_DETAIL: (id) => `${getModuleConfig('controller', 'frontend_url')}/sams/${id}`,
|
|
47
|
+
SAMS_DETAIL: (id) => `${getModuleConfig('controller', 'frontend_url')}/sams/${encodeURIComponent(id)}`,
|
|
48
48
|
SAMS_LIST: `${getModuleConfig('controller', 'frontend_url')}/sams`,
|
|
49
49
|
},
|
|
50
50
|
dates: {
|
|
51
51
|
// BASE
|
|
52
52
|
BASE: `${getModuleConfig('dates', 'frontend_url')}`,
|
|
53
53
|
// ANNOTATIONS
|
|
54
|
-
ANNOTATIONS_DETAIL: (id) => `${getModuleConfig('dates', 'frontend_url')}/annotations/${id}`,
|
|
54
|
+
ANNOTATIONS_DETAIL: (id) => `${getModuleConfig('dates', 'frontend_url')}/annotations/${encodeURIComponent(id)}`,
|
|
55
55
|
ANNOTATIONS_LIST: `${getModuleConfig('dates', 'frontend_url')}/annotations`,
|
|
56
56
|
// CALENDAR
|
|
57
57
|
CALENDAR_LIST: `${getModuleConfig('dates', 'frontend_url')}/calendar`,
|
|
58
58
|
// EVENTS
|
|
59
|
-
EVENTS_DETAIL: (id) => `${getModuleConfig('dates', 'frontend_url')}/events/${id}`,
|
|
59
|
+
EVENTS_DETAIL: (id) => `${getModuleConfig('dates', 'frontend_url')}/events/${encodeURIComponent(id)}`,
|
|
60
60
|
EVENTS_LIST: `${getModuleConfig('dates', 'frontend_url')}/events`,
|
|
61
61
|
// HOLIDAYS
|
|
62
|
-
HOLIDAYS_DETAIL: (id) => `${getModuleConfig('dates', 'frontend_url')}/holidays/${id}`,
|
|
62
|
+
HOLIDAYS_DETAIL: (id) => `${getModuleConfig('dates', 'frontend_url')}/holidays/${encodeURIComponent(id)}`,
|
|
63
63
|
HOLIDAYS_LIST: `${getModuleConfig('dates', 'frontend_url')}/holidays`,
|
|
64
64
|
// YEAR_PERIODS
|
|
65
|
-
YEAR_PERIODS_DETAIL: (id) => `${getModuleConfig('dates', 'frontend_url')}/year-periods/${id}`,
|
|
65
|
+
YEAR_PERIODS_DETAIL: (id) => `${getModuleConfig('dates', 'frontend_url')}/year-periods/${encodeURIComponent(id)}`,
|
|
66
66
|
YEAR_PERIODS_LIST: `${getModuleConfig('dates', 'frontend_url')}/year-periods`,
|
|
67
67
|
},
|
|
68
68
|
fleet: {
|
|
69
69
|
// BASE
|
|
70
70
|
BASE: `${getModuleConfig('fleet', 'frontend_url')}`,
|
|
71
71
|
// VEHICLES
|
|
72
|
-
VEHICLES_DETAIL: (id) => `${getModuleConfig('fleet', 'frontend_url')}/vehicles/${id}`,
|
|
72
|
+
VEHICLES_DETAIL: (id) => `${getModuleConfig('fleet', 'frontend_url')}/vehicles/${encodeURIComponent(id)}`,
|
|
73
73
|
VEHICLES_LIST: `${getModuleConfig('fleet', 'frontend_url')}/vehicles`,
|
|
74
74
|
},
|
|
75
75
|
offer: {
|
|
76
76
|
// BASE
|
|
77
77
|
BASE: `${getModuleConfig('offer', 'frontend_url')}`,
|
|
78
78
|
// FARES
|
|
79
|
-
FARES_DETAIL: (id) => `${getModuleConfig('offer', 'frontend_url')}/fares/${id}`,
|
|
79
|
+
FARES_DETAIL: (id) => `${getModuleConfig('offer', 'frontend_url')}/fares/${encodeURIComponent(id)}`,
|
|
80
80
|
FARES_LIST: `${getModuleConfig('offer', 'frontend_url')}/fares`,
|
|
81
81
|
// LINES
|
|
82
|
-
LINES_DETAIL: (id) => `${getModuleConfig('offer', 'frontend_url')}/lines/${id}`,
|
|
82
|
+
LINES_DETAIL: (id) => `${getModuleConfig('offer', 'frontend_url')}/lines/${encodeURIComponent(id)}`,
|
|
83
83
|
LINES_LIST: `${getModuleConfig('offer', 'frontend_url')}/lines`,
|
|
84
84
|
// PATTERN
|
|
85
|
-
PATTERN_DETAIL: (id, patternId, routeId) => `${getModuleConfig('offer', 'frontend_url')}/lines/${id}/${routeId}/${patternId}`,
|
|
85
|
+
PATTERN_DETAIL: (id, patternId, routeId) => `${getModuleConfig('offer', 'frontend_url')}/lines/${encodeURIComponent(id)}/${encodeURIComponent(routeId)}/${encodeURIComponent(patternId)}`,
|
|
86
86
|
// ROUTE
|
|
87
|
-
ROUTE_DETAIL: (id, routeId) => `${getModuleConfig('offer', 'frontend_url')}/lines/${id}/${routeId}`,
|
|
87
|
+
ROUTE_DETAIL: (id, routeId) => `${getModuleConfig('offer', 'frontend_url')}/lines/${encodeURIComponent(id)}/${encodeURIComponent(routeId)}`,
|
|
88
88
|
// TYPOLOGIES
|
|
89
|
-
TYPOLOGIES_DETAIL: (id) => `${getModuleConfig('offer', 'frontend_url')}/typologies/${id}`,
|
|
89
|
+
TYPOLOGIES_DETAIL: (id) => `${getModuleConfig('offer', 'frontend_url')}/typologies/${encodeURIComponent(id)}`,
|
|
90
90
|
TYPOLOGIES_LIST: `${getModuleConfig('offer', 'frontend_url')}/typologies`,
|
|
91
91
|
// ZONES
|
|
92
|
-
ZONES_DETAIL: (id) => `${getModuleConfig('offer', 'frontend_url')}/zones/${id}`,
|
|
92
|
+
ZONES_DETAIL: (id) => `${getModuleConfig('offer', 'frontend_url')}/zones/${encodeURIComponent(id)}`,
|
|
93
93
|
ZONES_LIST: `${getModuleConfig('offer', 'frontend_url')}/zones`,
|
|
94
94
|
},
|
|
95
95
|
performance: {
|
|
@@ -110,10 +110,10 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
110
110
|
// BASE
|
|
111
111
|
BASE: `${getModuleConfig('plans', 'frontend_url')}`,
|
|
112
112
|
// APPROVED
|
|
113
|
-
APPROVED_DETAIL: (id) => `${getModuleConfig('plans', 'frontend_url')}/approved/${id}`,
|
|
113
|
+
APPROVED_DETAIL: (id) => `${getModuleConfig('plans', 'frontend_url')}/approved/${encodeURIComponent(id)}`,
|
|
114
114
|
APPROVED_LIST: `${getModuleConfig('plans', 'frontend_url')}/approved`,
|
|
115
115
|
// VALIDATIONS
|
|
116
|
-
VALIDATIONS_DETAIL: (id) => `${getModuleConfig('plans', 'frontend_url')}/validations/${id}`,
|
|
116
|
+
VALIDATIONS_DETAIL: (id) => `${getModuleConfig('plans', 'frontend_url')}/validations/${encodeURIComponent(id)}`,
|
|
117
117
|
VALIDATIONS_LIST: `${getModuleConfig('plans', 'frontend_url')}/validations`,
|
|
118
118
|
},
|
|
119
119
|
root: {
|
|
@@ -126,7 +126,7 @@ export const PAGE_ROUTES = Object.freeze({
|
|
|
126
126
|
// BASE
|
|
127
127
|
BASE: `${getModuleConfig('stops', 'frontend_url')}`,
|
|
128
128
|
// STOPS
|
|
129
|
-
STOPS_DETAIL: (id) => `${getModuleConfig('stops', 'frontend_url')}/${id}`,
|
|
129
|
+
STOPS_DETAIL: (id) => `${getModuleConfig('stops', 'frontend_url')}/${encodeURIComponent(id)}`,
|
|
130
130
|
STOPS_LIST: `${getModuleConfig('stops', 'frontend_url')}`,
|
|
131
131
|
},
|
|
132
132
|
});
|
|
@@ -136,15 +136,15 @@ export const API_ROUTES = Object.freeze({
|
|
|
136
136
|
BASE: `${getModuleConfig('alerts', 'api_url')}`,
|
|
137
137
|
// ALERTS
|
|
138
138
|
ALERTS_DESCRIBE: `${getModuleConfig('alerts', 'api_url')}/alerts/describe`,
|
|
139
|
-
ALERTS_DETAIL: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${id}`,
|
|
140
|
-
ALERTS_DETAIL_DUPLICATE: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${id}/duplicate`,
|
|
141
|
-
ALERTS_DETAIL_IMAGE: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${id}/image`,
|
|
142
|
-
ALERTS_DETAIL_LOCK: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${id}/lock`,
|
|
139
|
+
ALERTS_DETAIL: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${encodeURIComponent(id)}`,
|
|
140
|
+
ALERTS_DETAIL_DUPLICATE: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${encodeURIComponent(id)}/duplicate`,
|
|
141
|
+
ALERTS_DETAIL_IMAGE: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${encodeURIComponent(id)}/image`,
|
|
142
|
+
ALERTS_DETAIL_LOCK: (id) => `${getModuleConfig('alerts', 'api_url')}/alerts/${encodeURIComponent(id)}/lock`,
|
|
143
143
|
ALERTS_LIST: `${getModuleConfig('alerts', 'api_url')}/alerts`,
|
|
144
144
|
// OPERATION
|
|
145
145
|
OPERATION_LINES: `${getModuleConfig('alerts', 'api_url')}/operation/lines`,
|
|
146
146
|
OPERATION_RIDES: `${getModuleConfig('alerts', 'api_url')}/operation/rides`,
|
|
147
|
-
OPERATION_RIDES_RIDE: (id) => `${getModuleConfig('alerts', 'api_url')}/operation/rides/${id}/ride`,
|
|
147
|
+
OPERATION_RIDES_RIDE: (id) => `${getModuleConfig('alerts', 'api_url')}/operation/rides/${encodeURIComponent(id)}/ride`,
|
|
148
148
|
OPERATION_RIDES_WS: `${getModuleConfig('alerts', 'api_url')}/operation/rides/ws`,
|
|
149
149
|
OPERATION_STOPS: `${getModuleConfig('alerts', 'api_url')}/operation/stops`,
|
|
150
150
|
},
|
|
@@ -152,8 +152,8 @@ export const API_ROUTES = Object.freeze({
|
|
|
152
152
|
// BASE
|
|
153
153
|
BASE: `${getModuleConfig('auth', 'api_url')}`,
|
|
154
154
|
// AGENCIES
|
|
155
|
-
AGENCIES_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/agencies/${id}`,
|
|
156
|
-
AGENCIES_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/agencies/${id}/lock`,
|
|
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
157
|
AGENCIES_LIST: `${getModuleConfig('auth', 'api_url')}/agencies`,
|
|
158
158
|
// AUTH
|
|
159
159
|
AUTH_CHANGE_PASSWORD: `${getModuleConfig('auth', 'api_url')}/auth/change-password`,
|
|
@@ -161,59 +161,59 @@ export const API_ROUTES = Object.freeze({
|
|
|
161
161
|
AUTH_LOGOUT: `${getModuleConfig('auth', 'api_url')}/auth/logout`,
|
|
162
162
|
AUTH_SEND_PASSWORD_RESET_EMAIL: `${getModuleConfig('auth', 'api_url')}/auth/send-password-reset-email`,
|
|
163
163
|
// NOTIFICATIONS
|
|
164
|
-
NOTIFICATIONS_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/notifications/${id}`,
|
|
165
|
-
NOTIFICATIONS_DETAIL_MARK_AS_READ: (id) => `${getModuleConfig('auth', 'api_url')}/notifications/${id}/mark-as-read`,
|
|
164
|
+
NOTIFICATIONS_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/notifications/${encodeURIComponent(id)}`,
|
|
165
|
+
NOTIFICATIONS_DETAIL_MARK_AS_READ: (id) => `${getModuleConfig('auth', 'api_url')}/notifications/${encodeURIComponent(id)}/mark-as-read`,
|
|
166
166
|
NOTIFICATIONS_LIST: `${getModuleConfig('auth', 'api_url')}/notifications`,
|
|
167
167
|
// ORGANIZATIONS
|
|
168
|
-
ORGANIZATIONS_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${id}`,
|
|
169
|
-
ORGANIZATIONS_DETAIL_IMAGE: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${id}/image`,
|
|
170
|
-
ORGANIZATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${id}/lock`,
|
|
171
|
-
ORGANIZATIONS_DETAIL_LOGO: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${id}/logo`,
|
|
172
|
-
ORGANIZATIONS_DETAIL_VAR_IMAGE: (id, theme) => `${getModuleConfig('auth', 'api_url')}/organizations/${id}/${theme}/image`,
|
|
168
|
+
ORGANIZATIONS_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${encodeURIComponent(id)}`,
|
|
169
|
+
ORGANIZATIONS_DETAIL_IMAGE: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${encodeURIComponent(id)}/image`,
|
|
170
|
+
ORGANIZATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${encodeURIComponent(id)}/lock`,
|
|
171
|
+
ORGANIZATIONS_DETAIL_LOGO: (id) => `${getModuleConfig('auth', 'api_url')}/organizations/${encodeURIComponent(id)}/logo`,
|
|
172
|
+
ORGANIZATIONS_DETAIL_VAR_IMAGE: (id, theme) => `${getModuleConfig('auth', 'api_url')}/organizations/${encodeURIComponent(id)}/${encodeURIComponent(theme)}/image`,
|
|
173
173
|
ORGANIZATIONS_LIST: `${getModuleConfig('auth', 'api_url')}/organizations`,
|
|
174
174
|
// PROPOSED-CHANGES
|
|
175
|
-
PROPOSED_CHANGES_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/proposed-changes/${id}`,
|
|
175
|
+
PROPOSED_CHANGES_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/proposed-changes/${encodeURIComponent(id)}`,
|
|
176
176
|
PROPOSED_CHANGES_LIST: `${getModuleConfig('auth', 'api_url')}/proposed-changes`,
|
|
177
177
|
// ROLES
|
|
178
|
-
ROLES_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/roles/${id}`,
|
|
179
|
-
ROLES_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/roles/${id}/lock`,
|
|
178
|
+
ROLES_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/roles/${encodeURIComponent(id)}`,
|
|
179
|
+
ROLES_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/roles/${encodeURIComponent(id)}/lock`,
|
|
180
180
|
ROLES_LIST: `${getModuleConfig('auth', 'api_url')}/roles`,
|
|
181
181
|
// USERS
|
|
182
|
-
USERS_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/users/${id}`,
|
|
183
|
-
USERS_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/users/${id}/lock`,
|
|
184
|
-
USERS_DETAIL_SIMPLIFIED: (id) => `${getModuleConfig('auth', 'api_url')}/users/${id}/simplified`,
|
|
182
|
+
USERS_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/users/${encodeURIComponent(id)}`,
|
|
183
|
+
USERS_DETAIL_LOCK: (id) => `${getModuleConfig('auth', 'api_url')}/users/${encodeURIComponent(id)}/lock`,
|
|
184
|
+
USERS_DETAIL_SIMPLIFIED: (id) => `${getModuleConfig('auth', 'api_url')}/users/${encodeURIComponent(id)}/simplified`,
|
|
185
185
|
USERS_LIST: `${getModuleConfig('auth', 'api_url')}/users`,
|
|
186
186
|
USERS_ME: `${getModuleConfig('auth', 'api_url')}/users/me`,
|
|
187
187
|
// WIKI
|
|
188
|
-
WIKI_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/wiki/${id}`,
|
|
188
|
+
WIKI_DETAIL: (id) => `${getModuleConfig('auth', 'api_url')}/wiki/${encodeURIComponent(id)}`,
|
|
189
189
|
WIKI_LIST: `${getModuleConfig('auth', 'api_url')}/wiki`,
|
|
190
190
|
},
|
|
191
191
|
controller: {
|
|
192
192
|
// BASE
|
|
193
193
|
BASE: `${getModuleConfig('controller', 'api_url')}`,
|
|
194
194
|
// RIDE-ACCEPTANCE
|
|
195
|
-
ACCEPTANCE_CHANGE_STATUS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/acceptance/change-status`,
|
|
196
|
-
ACCEPTANCE_COMMENT: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/acceptance/comment`,
|
|
197
|
-
ACCEPTANCE_DETAIL: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/acceptance`,
|
|
198
|
-
ACCEPTANCE_JUSTIFY: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/acceptance/justify`,
|
|
199
|
-
ACCEPTANCE_LOCK: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/acceptance/lock`,
|
|
195
|
+
ACCEPTANCE_CHANGE_STATUS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/acceptance/change-status`,
|
|
196
|
+
ACCEPTANCE_COMMENT: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/acceptance/comment`,
|
|
197
|
+
ACCEPTANCE_DETAIL: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/acceptance`,
|
|
198
|
+
ACCEPTANCE_JUSTIFY: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/acceptance/justify`,
|
|
199
|
+
ACCEPTANCE_LOCK: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/acceptance/lock`,
|
|
200
200
|
// RIDES
|
|
201
|
-
RIDES_DETAIL_HASHED_SHAPE: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/hashed-shape`,
|
|
202
|
-
RIDES_DETAIL_HASHED_TRIP: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/hashed-trip`,
|
|
203
|
-
RIDES_DETAIL_REPROCESS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/reprocess`,
|
|
204
|
-
RIDES_DETAIL_RIDE: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/ride`,
|
|
205
|
-
RIDES_DETAIL_SIMPLIFIED_APEX_LOCATIONS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/simplified-apex-locations`,
|
|
206
|
-
RIDES_DETAIL_SIMPLIFIED_APEX_ON_BOARD_REFUNDS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/simplified-apex-on-board-refunds`,
|
|
207
|
-
RIDES_DETAIL_SIMPLIFIED_APEX_ON_BOARD_SALES: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/simplified-apex-on-board-sales`,
|
|
208
|
-
RIDES_DETAIL_SIMPLIFIED_APEX_VALIDATIONS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/simplified-apex-validations`,
|
|
209
|
-
RIDES_DETAIL_VEHICLE_EVENTS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${id}/vehicle-events`,
|
|
201
|
+
RIDES_DETAIL_HASHED_SHAPE: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/hashed-shape`,
|
|
202
|
+
RIDES_DETAIL_HASHED_TRIP: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/hashed-trip`,
|
|
203
|
+
RIDES_DETAIL_REPROCESS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/reprocess`,
|
|
204
|
+
RIDES_DETAIL_RIDE: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/ride`,
|
|
205
|
+
RIDES_DETAIL_SIMPLIFIED_APEX_LOCATIONS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/simplified-apex-locations`,
|
|
206
|
+
RIDES_DETAIL_SIMPLIFIED_APEX_ON_BOARD_REFUNDS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/simplified-apex-on-board-refunds`,
|
|
207
|
+
RIDES_DETAIL_SIMPLIFIED_APEX_ON_BOARD_SALES: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/simplified-apex-on-board-sales`,
|
|
208
|
+
RIDES_DETAIL_SIMPLIFIED_APEX_VALIDATIONS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/simplified-apex-validations`,
|
|
209
|
+
RIDES_DETAIL_VEHICLE_EVENTS: (id) => `${getModuleConfig('controller', 'api_url')}/rides/${encodeURIComponent(id)}/vehicle-events`,
|
|
210
210
|
RIDES_FAVORITES: `${getModuleConfig('controller', 'api_url')}/rides/favorites`,
|
|
211
211
|
RIDES_LIST: `${getModuleConfig('controller', 'api_url')}/rides`,
|
|
212
212
|
RIDES_WS: `${getModuleConfig('controller', 'api_url')}/rides/ws`,
|
|
213
213
|
// SAMS
|
|
214
214
|
SAMS_APEX_VERSIONS: `${getModuleConfig('controller', 'api_url')}/sams/apex-versions`,
|
|
215
215
|
SAMS_BASE: `${getModuleConfig('controller', 'api_url')}/sams/base`,
|
|
216
|
-
SAMS_DETAIL: (id) => `${getModuleConfig('controller', 'api_url')}/sams/${id}`,
|
|
216
|
+
SAMS_DETAIL: (id) => `${getModuleConfig('controller', 'api_url')}/sams/${encodeURIComponent(id)}`,
|
|
217
217
|
SAMS_EXPORT_ANALYSIS: `${getModuleConfig('controller', 'api_url')}/sams/export/analysis`,
|
|
218
218
|
SAMS_FAVORITES: `${getModuleConfig('controller', 'api_url')}/sams/favorites`,
|
|
219
219
|
SAMS_LIST: `${getModuleConfig('controller', 'api_url')}/sams`,
|
|
@@ -223,37 +223,37 @@ export const API_ROUTES = Object.freeze({
|
|
|
223
223
|
// BASE
|
|
224
224
|
BASE: `${getModuleConfig('dates', 'api_url')}`,
|
|
225
225
|
// ANNOTATIONS
|
|
226
|
-
ANNOTATIONS_DETAIL: (id) => `${getModuleConfig('dates', 'api_url')}/annotations/${id}`,
|
|
227
|
-
ANNOTATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/annotations/${id}/lock`,
|
|
226
|
+
ANNOTATIONS_DETAIL: (id) => `${getModuleConfig('dates', 'api_url')}/annotations/${encodeURIComponent(id)}`,
|
|
227
|
+
ANNOTATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/annotations/${encodeURIComponent(id)}/lock`,
|
|
228
228
|
ANNOTATIONS_LIST: `${getModuleConfig('dates', 'api_url')}/annotations`,
|
|
229
229
|
// EVENTS
|
|
230
|
-
EVENTS_DETAIL: (id) => `${getModuleConfig('dates', 'api_url')}/events/${id}`,
|
|
231
|
-
EVENTS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/events/${id}/lock`,
|
|
230
|
+
EVENTS_DETAIL: (id) => `${getModuleConfig('dates', 'api_url')}/events/${encodeURIComponent(id)}`,
|
|
231
|
+
EVENTS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/events/${encodeURIComponent(id)}/lock`,
|
|
232
232
|
EVENTS_LIST: `${getModuleConfig('dates', 'api_url')}/events`,
|
|
233
233
|
// HOLIDAYS
|
|
234
|
-
HOLIDAYS_DETAIL: (id) => `${getModuleConfig('dates', 'api_url')}/holidays/${id}`,
|
|
235
|
-
HOLIDAYS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/holidays/${id}/lock`,
|
|
234
|
+
HOLIDAYS_DETAIL: (id) => `${getModuleConfig('dates', 'api_url')}/holidays/${encodeURIComponent(id)}`,
|
|
235
|
+
HOLIDAYS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/holidays/${encodeURIComponent(id)}/lock`,
|
|
236
236
|
HOLIDAYS_LIST: `${getModuleConfig('dates', 'api_url')}/holidays`,
|
|
237
237
|
// YEAR-PERIODS
|
|
238
238
|
YEAR_PERIODS_CHECK_CONFLICTS: `${getModuleConfig('dates', 'api_url')}/year-periods/check-conflicts`,
|
|
239
|
-
YEAR_PERIODS_DETAIL: (id) => `${getModuleConfig('dates', 'api_url')}/year-periods/${id}`,
|
|
240
|
-
YEAR_PERIODS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/year-periods/${id}/lock`,
|
|
239
|
+
YEAR_PERIODS_DETAIL: (id) => `${getModuleConfig('dates', 'api_url')}/year-periods/${encodeURIComponent(id)}`,
|
|
240
|
+
YEAR_PERIODS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/year-periods/${encodeURIComponent(id)}/lock`,
|
|
241
241
|
YEAR_PERIODS_LIST: `${getModuleConfig('dates', 'api_url')}/year-periods`,
|
|
242
242
|
},
|
|
243
243
|
exporter: {
|
|
244
244
|
// BASE
|
|
245
245
|
BASE: `${getModuleConfig('exporter', 'api_url')}`,
|
|
246
246
|
// EXPORTER
|
|
247
|
-
EXPORTER_DETAIL_DOWNLOAD: (id) => `${getModuleConfig('exporter', 'api_url')}/exporter/${id}/download`,
|
|
247
|
+
EXPORTER_DETAIL_DOWNLOAD: (id) => `${getModuleConfig('exporter', 'api_url')}/exporter/${encodeURIComponent(id)}/download`,
|
|
248
248
|
EXPORTER_LIST: `${getModuleConfig('exporter', 'api_url')}/exporter`,
|
|
249
249
|
},
|
|
250
250
|
fleet: {
|
|
251
251
|
// BASE
|
|
252
252
|
BASE: `${getModuleConfig('fleet', 'api_url')}`,
|
|
253
253
|
// VEHICLES
|
|
254
|
-
VEHICLES_DETAIL: (id) => `${getModuleConfig('fleet', 'api_url')}/vehicles/${id}`,
|
|
255
|
-
VEHICLES_DETAIL_LAST_EVENT: (id) => `${getModuleConfig('fleet', 'api_url')}/vehicles/${id}/last-event`,
|
|
256
|
-
VEHICLES_DETAIL_LOCK: (id) => `${getModuleConfig('fleet', 'api_url')}/vehicles/${id}/lock`,
|
|
254
|
+
VEHICLES_DETAIL: (id) => `${getModuleConfig('fleet', 'api_url')}/vehicles/${encodeURIComponent(id)}`,
|
|
255
|
+
VEHICLES_DETAIL_LAST_EVENT: (id) => `${getModuleConfig('fleet', 'api_url')}/vehicles/${encodeURIComponent(id)}/last-event`,
|
|
256
|
+
VEHICLES_DETAIL_LOCK: (id) => `${getModuleConfig('fleet', 'api_url')}/vehicles/${encodeURIComponent(id)}/lock`,
|
|
257
257
|
VEHICLES_LIST: `${getModuleConfig('fleet', 'api_url')}/vehicles`,
|
|
258
258
|
},
|
|
259
259
|
hub: {
|
|
@@ -272,9 +272,9 @@ export const API_ROUTES = Object.freeze({
|
|
|
272
272
|
// NETWORK
|
|
273
273
|
NETWORK_LEGACY_STOPS_MAP: `${getModuleConfig('hub', 'api_url')}/v1/network/legacy-stops-map`,
|
|
274
274
|
NETWORK_LINES: `${getModuleConfig('hub', 'api_url')}/v1/network/lines`,
|
|
275
|
-
NETWORK_PATTERNS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/network/patterns/${id}`,
|
|
275
|
+
NETWORK_PATTERNS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/network/patterns/${encodeURIComponent(id)}`,
|
|
276
276
|
NETWORK_ROUTES: `${getModuleConfig('hub', 'api_url')}/v1/network/routes`,
|
|
277
|
-
NETWORK_SHAPES: (id) => `${getModuleConfig('hub', 'api_url')}/v1/network/shapes/${id}`,
|
|
277
|
+
NETWORK_SHAPES: (id) => `${getModuleConfig('hub', 'api_url')}/v1/network/shapes/${encodeURIComponent(id)}`,
|
|
278
278
|
NETWORK_STOPS: `${getModuleConfig('hub', 'api_url')}/v1/network/stops`,
|
|
279
279
|
// PLANS
|
|
280
280
|
PLANS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs`,
|
|
@@ -302,38 +302,38 @@ export const API_ROUTES = Object.freeze({
|
|
|
302
302
|
// BASE
|
|
303
303
|
BASE: `${getModuleConfig('offer', 'api_url')}`,
|
|
304
304
|
// FARES
|
|
305
|
-
FARES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/fares/${id}`,
|
|
306
|
-
FARES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/fares/${id}/lock`,
|
|
305
|
+
FARES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/fares/${encodeURIComponent(id)}`,
|
|
306
|
+
FARES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/fares/${encodeURIComponent(id)}/lock`,
|
|
307
307
|
FARES_LIST: `${getModuleConfig('offer', 'api_url')}/fares`,
|
|
308
308
|
// GTFS
|
|
309
309
|
GTFS_CREATE_EXPORT: `${getModuleConfig('offer', 'api_url')}/gtfs/create-export`,
|
|
310
310
|
GTFS_PARSE: `${getModuleConfig('offer', 'api_url')}/gtfs/parse`,
|
|
311
311
|
// LINES
|
|
312
|
-
LINES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/lines/${id}`,
|
|
313
|
-
LINES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/lines/${id}/lock`,
|
|
312
|
+
LINES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/lines/${encodeURIComponent(id)}`,
|
|
313
|
+
LINES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/lines/${encodeURIComponent(id)}/lock`,
|
|
314
314
|
LINES_LIST: `${getModuleConfig('offer', 'api_url')}/lines`,
|
|
315
315
|
// PATTERNS
|
|
316
|
-
PATTERNS_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/patterns/${id}`,
|
|
317
|
-
PATTERNS_DETAIL_COMMENT: (id) => `${getModuleConfig('offer', 'api_url')}/patterns/${id}/comment`,
|
|
318
|
-
PATTERNS_DETAIL_IMPORT_GTFS: (id) => `${getModuleConfig('offer', 'api_url')}/patterns/${id}/import-gtfs`,
|
|
319
|
-
PATTERNS_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/patterns/${id}/lock`,
|
|
316
|
+
PATTERNS_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/patterns/${encodeURIComponent(id)}`,
|
|
317
|
+
PATTERNS_DETAIL_COMMENT: (id) => `${getModuleConfig('offer', 'api_url')}/patterns/${encodeURIComponent(id)}/comment`,
|
|
318
|
+
PATTERNS_DETAIL_IMPORT_GTFS: (id) => `${getModuleConfig('offer', 'api_url')}/patterns/${encodeURIComponent(id)}/import-gtfs`,
|
|
319
|
+
PATTERNS_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/patterns/${encodeURIComponent(id)}/lock`,
|
|
320
320
|
PATTERNS_LIST: `${getModuleConfig('offer', 'api_url')}/patterns`,
|
|
321
321
|
PATTERNS_SHAPES: `${getModuleConfig('offer', 'api_url')}/patterns/shapes`,
|
|
322
322
|
// ROUTES
|
|
323
|
-
ROUTES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/routes/${id}`,
|
|
324
|
-
ROUTES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/routes/${id}/lock`,
|
|
323
|
+
ROUTES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/routes/${encodeURIComponent(id)}`,
|
|
324
|
+
ROUTES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/routes/${encodeURIComponent(id)}/lock`,
|
|
325
325
|
ROUTES_LIST: `${getModuleConfig('offer', 'api_url')}/routes`,
|
|
326
326
|
// SHAPES
|
|
327
327
|
SHAPES_ROUTE_PREVIEW: `${getModuleConfig('offer', 'api_url')}/shapes/route-preview`,
|
|
328
328
|
// TYPOLOGIES
|
|
329
|
-
TYPOLOGIES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/typologies/${id}`,
|
|
330
|
-
TYPOLOGIES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/typologies/${id}/lock`,
|
|
329
|
+
TYPOLOGIES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/typologies/${encodeURIComponent(id)}`,
|
|
330
|
+
TYPOLOGIES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/typologies/${encodeURIComponent(id)}/lock`,
|
|
331
331
|
TYPOLOGIES_LIST: `${getModuleConfig('offer', 'api_url')}/typologies`,
|
|
332
332
|
// VKM
|
|
333
333
|
VKM_CALCULATE: `${getModuleConfig('offer', 'api_url')}/vkm/calculate`,
|
|
334
334
|
// ZONES
|
|
335
|
-
ZONES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/zones/${id}`,
|
|
336
|
-
ZONES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/zones/${id}/lock`,
|
|
335
|
+
ZONES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/zones/${encodeURIComponent(id)}`,
|
|
336
|
+
ZONES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/zones/${encodeURIComponent(id)}/lock`,
|
|
337
337
|
ZONES_LIST: `${getModuleConfig('offer', 'api_url')}/zones`,
|
|
338
338
|
},
|
|
339
339
|
performance: {
|
|
@@ -342,7 +342,7 @@ export const API_ROUTES = Object.freeze({
|
|
|
342
342
|
// DATES
|
|
343
343
|
DATES_LIST: `${getModuleConfig('performance', 'api_url')}/dates`,
|
|
344
344
|
// METRICS
|
|
345
|
-
METRICS_DETAIL: (id) => `${getModuleConfig('performance', 'api_url')}/metrics/${id}`,
|
|
345
|
+
METRICS_DETAIL: (id) => `${getModuleConfig('performance', 'api_url')}/metrics/${encodeURIComponent(id)}`,
|
|
346
346
|
// NETWORK
|
|
347
347
|
NETWORK_LINES: `${getModuleConfig('performance', 'api_url')}/network/lines`,
|
|
348
348
|
NETWORK_PATTERNS: `${getModuleConfig('performance', 'api_url')}/network/patterns`,
|
|
@@ -351,29 +351,29 @@ export const API_ROUTES = Object.freeze({
|
|
|
351
351
|
// BASE
|
|
352
352
|
BASE: `${getModuleConfig('plans', 'api_url')}`,
|
|
353
353
|
// PLANS
|
|
354
|
-
PLANS_DETAIL: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}`,
|
|
355
|
-
PLANS_DETAIL_CHANGE_GTFS: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}/change-gtfs`,
|
|
356
|
-
PLANS_DETAIL_CONTROLLER_REPROCESS: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}/controller-reprocess`,
|
|
357
|
-
PLANS_DETAIL_LOCK: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}/lock`,
|
|
358
|
-
PLANS_DETAIL_OPERATION_FILE: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}/operation-file`,
|
|
359
|
-
PLANS_DETAIL_OPERATION_FILE_DOWNLOAD: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${id}/operation-file/download`,
|
|
360
|
-
PLANS_DRT_MODEL: (id) => `${getModuleConfig('plans', 'api_url')}/plans/drt-model/${id}`,
|
|
354
|
+
PLANS_DETAIL: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}`,
|
|
355
|
+
PLANS_DETAIL_CHANGE_GTFS: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/change-gtfs`,
|
|
356
|
+
PLANS_DETAIL_CONTROLLER_REPROCESS: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/controller-reprocess`,
|
|
357
|
+
PLANS_DETAIL_LOCK: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/lock`,
|
|
358
|
+
PLANS_DETAIL_OPERATION_FILE: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/operation-file`,
|
|
359
|
+
PLANS_DETAIL_OPERATION_FILE_DOWNLOAD: (id) => `${getModuleConfig('plans', 'api_url')}/plans/${encodeURIComponent(id)}/operation-file/download`,
|
|
360
|
+
PLANS_DRT_MODEL: (id) => `${getModuleConfig('plans', 'api_url')}/plans/drt-model/${encodeURIComponent(id)}`,
|
|
361
361
|
PLANS_LIST: `${getModuleConfig('plans', 'api_url')}/plans`,
|
|
362
362
|
// VALIDATIONS
|
|
363
|
-
VALIDATIONS_DETAIL: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${id}`,
|
|
364
|
-
VALIDATIONS_DETAIL_FILE: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${id}/file`,
|
|
365
|
-
VALIDATIONS_DETAIL_FILE_DOWNLOAD: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${id}/file/download`,
|
|
366
|
-
VALIDATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${id}/lock`,
|
|
367
|
-
VALIDATIONS_DETAIL_PROCESSING_STATUS: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${id}/processing-status`,
|
|
368
|
-
VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${id}/request-approval`,
|
|
363
|
+
VALIDATIONS_DETAIL: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}`,
|
|
364
|
+
VALIDATIONS_DETAIL_FILE: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/file`,
|
|
365
|
+
VALIDATIONS_DETAIL_FILE_DOWNLOAD: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/file/download`,
|
|
366
|
+
VALIDATIONS_DETAIL_LOCK: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/lock`,
|
|
367
|
+
VALIDATIONS_DETAIL_PROCESSING_STATUS: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/processing-status`,
|
|
368
|
+
VALIDATIONS_DETAIL_REQUEST_APPROVAL: (id) => `${getModuleConfig('plans', 'api_url')}/validations/${encodeURIComponent(id)}/request-approval`,
|
|
369
369
|
VALIDATIONS_LIST: `${getModuleConfig('plans', 'api_url')}/validations`,
|
|
370
370
|
},
|
|
371
371
|
stops: {
|
|
372
372
|
// BASE
|
|
373
373
|
BASE: `${getModuleConfig('stops', 'api_url')}`,
|
|
374
374
|
// STOPS
|
|
375
|
-
STOPS_DETAIL: (id) => `${getModuleConfig('stops', 'api_url')}/stops/${id}`,
|
|
376
|
-
STOPS_DETAIL_LOCK: (id) => `${getModuleConfig('stops', 'api_url')}/stops/${id}/lock`,
|
|
375
|
+
STOPS_DETAIL: (id) => `${getModuleConfig('stops', 'api_url')}/stops/${encodeURIComponent(id)}`,
|
|
376
|
+
STOPS_DETAIL_LOCK: (id) => `${getModuleConfig('stops', 'api_url')}/stops/${encodeURIComponent(id)}/lock`,
|
|
377
377
|
STOPS_LIST: `${getModuleConfig('stops', 'api_url')}/stops`,
|
|
378
378
|
STOPS_VALID_ID: `${getModuleConfig('stops', 'api_url')}/stops/valid-id`,
|
|
379
379
|
},
|