@tmlmobilidade/consts 20260803.15.9 → 20260805.229.7

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.
@@ -97,7 +97,7 @@ export declare const API_ROUTES: Readonly<{
97
97
  readonly ALERTS_LIST: `${string}/alerts`;
98
98
  readonly OPERATION_LINES: `${string}/operation/lines`;
99
99
  readonly OPERATION_RIDES: `${string}/operation/rides`;
100
- readonly OPERATION_RIDES_RIDE: (id: string) => string;
100
+ readonly OPERATION_RIDES_DETAIL_RIDE: (id: string) => string;
101
101
  readonly OPERATION_RIDES_WS: `${string}/operation/rides/ws`;
102
102
  readonly OPERATION_STOPS: `${string}/operation/stops`;
103
103
  };
@@ -215,11 +215,15 @@ export declare const API_ROUTES: Readonly<{
215
215
  };
216
216
  readonly locations: {
217
217
  readonly BASE: string;
218
- readonly LOCATIONS_COORDINATES: `${string}/locations/coordinates`;
219
218
  readonly LOCATIONS_DISTRICTS: `${string}/locations/districts`;
219
+ readonly LOCATIONS_DISTRICTS_DETAIL: (id: string) => string;
220
220
  readonly LOCATIONS_LOCALITIES: `${string}/locations/localities`;
221
+ readonly LOCATIONS_LOCALITIES_DETAIL: (id: string) => string;
222
+ readonly LOCATIONS_LOCATION: `${string}/locations/location`;
221
223
  readonly LOCATIONS_MUNICIPALITIES: `${string}/locations/municipalities`;
224
+ readonly LOCATIONS_MUNICIPALITIES_DETAIL: (id: string) => string;
222
225
  readonly LOCATIONS_PARISHES: `${string}/locations/parishes`;
226
+ readonly LOCATIONS_PARISHES_DETAIL: (id: string) => string;
223
227
  };
224
228
  readonly offer: {
225
229
  readonly BASE: string;
@@ -144,7 +144,7 @@ export const API_ROUTES = Object.freeze({
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/${encodeURIComponent(id)}/ride`,
147
+ OPERATION_RIDES_DETAIL_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
  },
@@ -294,11 +294,15 @@ export const API_ROUTES = Object.freeze({
294
294
  // BASE
295
295
  BASE: `${getModuleConfig('locations', 'api_url')}`,
296
296
  // LOCATIONS
297
- LOCATIONS_COORDINATES: `${getModuleConfig('locations', 'api_url')}/locations/coordinates`,
298
297
  LOCATIONS_DISTRICTS: `${getModuleConfig('locations', 'api_url')}/locations/districts`,
298
+ LOCATIONS_DISTRICTS_DETAIL: (id) => `${getModuleConfig('locations', 'api_url')}/locations/districts/${encodeURIComponent(id)}`,
299
299
  LOCATIONS_LOCALITIES: `${getModuleConfig('locations', 'api_url')}/locations/localities`,
300
+ LOCATIONS_LOCALITIES_DETAIL: (id) => `${getModuleConfig('locations', 'api_url')}/locations/localities/${encodeURIComponent(id)}`,
301
+ LOCATIONS_LOCATION: `${getModuleConfig('locations', 'api_url')}/locations/location`,
300
302
  LOCATIONS_MUNICIPALITIES: `${getModuleConfig('locations', 'api_url')}/locations/municipalities`,
303
+ LOCATIONS_MUNICIPALITIES_DETAIL: (id) => `${getModuleConfig('locations', 'api_url')}/locations/municipalities/${encodeURIComponent(id)}`,
301
304
  LOCATIONS_PARISHES: `${getModuleConfig('locations', 'api_url')}/locations/parishes`,
305
+ LOCATIONS_PARISHES_DETAIL: (id) => `${getModuleConfig('locations', 'api_url')}/locations/parishes/${encodeURIComponent(id)}`,
302
306
  },
303
307
  offer: {
304
308
  // BASE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/consts",
3
- "version": "20260803.15.9",
3
+ "version": "20260805.229.7",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"