@tmlmobilidade/consts 20260917.115.2 → 20260917.1707.13
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.d.ts +4 -7
- package/dist/app-routes.js +4 -9
- package/package.json +1 -1
package/dist/app-routes.d.ts
CHANGED
|
@@ -143,24 +143,22 @@ export declare const API_ROUTES: Readonly<{
|
|
|
143
143
|
readonly YEAR_PERIODS_DETAIL_LOCK: (id: string) => string;
|
|
144
144
|
readonly YEAR_PERIODS_LIST: `${string}/year-periods`;
|
|
145
145
|
};
|
|
146
|
-
readonly exporter: {
|
|
147
|
-
readonly BASE: string;
|
|
148
|
-
readonly EXPORTER_DETAIL_DOWNLOAD: (id: string) => string;
|
|
149
|
-
readonly EXPORTER_LIST: `${string}/exporter`;
|
|
150
|
-
};
|
|
151
146
|
readonly hub: {
|
|
152
147
|
readonly BASE: string;
|
|
153
148
|
readonly ALERTS_GTFS: `${string}/v1/alerts/gtfs`;
|
|
154
|
-
readonly ALERTS_GTFS_CM: `${string}/v1/alerts/gtfs-cm`;
|
|
155
149
|
readonly ALERTS_GTFS_PB: `${string}/v1/alerts/gtfs.pb`;
|
|
156
150
|
readonly ALERTS_LIST: `${string}/v1/alerts`;
|
|
157
151
|
readonly ALERTS_RSS: `${string}/v1/alerts.rss`;
|
|
158
152
|
readonly DEBUG_TIME: `${string}/v1/debug/time`;
|
|
159
153
|
readonly METRICS_DEMAND_BY_AGENCY_BY_OPERATIONAL_DATE: `${string}/v1/metrics/demand-by-agency-by-operational-date`;
|
|
160
154
|
readonly NETWORK_LINES: `${string}/v1/network/lines`;
|
|
155
|
+
readonly NETWORK_LINES_DETAIL: (id: string) => string;
|
|
161
156
|
readonly NETWORK_PATTERNS: (id: string) => string;
|
|
162
157
|
readonly NETWORK_ROUTES: `${string}/v1/network/routes`;
|
|
158
|
+
readonly NETWORK_ROUTES_DETAIL: (id: string) => string;
|
|
159
|
+
readonly NETWORK_SHAPES: (id: string) => string;
|
|
163
160
|
readonly NETWORK_STOPS: `${string}/v1/network/stops`;
|
|
161
|
+
readonly NETWORK_STOPS_DETAIL: (id: string) => string;
|
|
164
162
|
readonly PLANS_GTFS: `${string}/v1/plans/gtfs`;
|
|
165
163
|
readonly PLANS_GTFS_CM: `${string}/v1/plans/gtfs/cm`;
|
|
166
164
|
readonly PLANS_LIST: `${string}/v1/plans`;
|
|
@@ -200,7 +198,6 @@ export declare const API_ROUTES: Readonly<{
|
|
|
200
198
|
readonly FARES_DETAIL: (id: string) => string;
|
|
201
199
|
readonly FARES_DETAIL_LOCK: (id: string) => string;
|
|
202
200
|
readonly FARES_LIST: `${string}/fares`;
|
|
203
|
-
readonly GTFS_CREATE_EXPORT: `${string}/gtfs/create-export`;
|
|
204
201
|
readonly GTFS_PARSE: `${string}/gtfs/parse`;
|
|
205
202
|
readonly LINES_DETAIL: (id: string) => string;
|
|
206
203
|
readonly LINES_DETAIL_LOCK: (id: string) => string;
|
package/dist/app-routes.js
CHANGED
|
@@ -201,19 +201,11 @@ export const API_ROUTES = Object.freeze({
|
|
|
201
201
|
YEAR_PERIODS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/year-periods/${encodeURIComponent(id)}/lock`,
|
|
202
202
|
YEAR_PERIODS_LIST: `${getModuleConfig('dates', 'api_url')}/year-periods`,
|
|
203
203
|
},
|
|
204
|
-
exporter: {
|
|
205
|
-
// BASE
|
|
206
|
-
BASE: `${getModuleConfig('exporter', 'api_url')}`,
|
|
207
|
-
// EXPORTER
|
|
208
|
-
EXPORTER_DETAIL_DOWNLOAD: (id) => `${getModuleConfig('exporter', 'api_url')}/exporter/${encodeURIComponent(id)}/download`,
|
|
209
|
-
EXPORTER_LIST: `${getModuleConfig('exporter', 'api_url')}/exporter`,
|
|
210
|
-
},
|
|
211
204
|
hub: {
|
|
212
205
|
// BASE
|
|
213
206
|
BASE: `${getModuleConfig('hub', 'api_url')}`,
|
|
214
207
|
// ALERTS
|
|
215
208
|
ALERTS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/alerts/gtfs`,
|
|
216
|
-
ALERTS_GTFS_CM: `${getModuleConfig('hub', 'api_url')}/v1/alerts/gtfs-cm`,
|
|
217
209
|
ALERTS_GTFS_PB: `${getModuleConfig('hub', 'api_url')}/v1/alerts/gtfs.pb`,
|
|
218
210
|
ALERTS_LIST: `${getModuleConfig('hub', 'api_url')}/v1/alerts`,
|
|
219
211
|
ALERTS_RSS: `${getModuleConfig('hub', 'api_url')}/v1/alerts.rss`,
|
|
@@ -223,9 +215,13 @@ export const API_ROUTES = Object.freeze({
|
|
|
223
215
|
METRICS_DEMAND_BY_AGENCY_BY_OPERATIONAL_DATE: `${getModuleConfig('hub', 'api_url')}/v1/metrics/demand-by-agency-by-operational-date`,
|
|
224
216
|
// NETWORK
|
|
225
217
|
NETWORK_LINES: `${getModuleConfig('hub', 'api_url')}/v1/network/lines`,
|
|
218
|
+
NETWORK_LINES_DETAIL: (id) => `${getModuleConfig('hub', 'api_url')}/v1/network/lines/${encodeURIComponent(id)}`,
|
|
226
219
|
NETWORK_PATTERNS: (id) => `${getModuleConfig('hub', 'api_url')}/v1/network/patterns/${encodeURIComponent(id)}`,
|
|
227
220
|
NETWORK_ROUTES: `${getModuleConfig('hub', 'api_url')}/v1/network/routes`,
|
|
221
|
+
NETWORK_ROUTES_DETAIL: (id) => `${getModuleConfig('hub', 'api_url')}/v1/network/routes/${encodeURIComponent(id)}`,
|
|
222
|
+
NETWORK_SHAPES: (id) => `${getModuleConfig('hub', 'api_url')}/v1/network/shapes/${encodeURIComponent(id)}`,
|
|
228
223
|
NETWORK_STOPS: `${getModuleConfig('hub', 'api_url')}/v1/network/stops`,
|
|
224
|
+
NETWORK_STOPS_DETAIL: (id) => `${getModuleConfig('hub', 'api_url')}/v1/network/stops/${encodeURIComponent(id)}`,
|
|
229
225
|
// PLANS
|
|
230
226
|
PLANS_GTFS: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs`,
|
|
231
227
|
PLANS_GTFS_CM: `${getModuleConfig('hub', 'api_url')}/v1/plans/gtfs/cm`,
|
|
@@ -273,7 +269,6 @@ export const API_ROUTES = Object.freeze({
|
|
|
273
269
|
FARES_DETAIL_LOCK: (id) => `${getModuleConfig('offer', 'api_url')}/fares/${encodeURIComponent(id)}/lock`,
|
|
274
270
|
FARES_LIST: `${getModuleConfig('offer', 'api_url')}/fares`,
|
|
275
271
|
// GTFS
|
|
276
|
-
GTFS_CREATE_EXPORT: `${getModuleConfig('offer', 'api_url')}/gtfs/create-export`,
|
|
277
272
|
GTFS_PARSE: `${getModuleConfig('offer', 'api_url')}/gtfs/parse`,
|
|
278
273
|
// LINES
|
|
279
274
|
LINES_DETAIL: (id) => `${getModuleConfig('offer', 'api_url')}/lines/${encodeURIComponent(id)}`,
|