@tmlmobilidade/consts 20260831.920.21 → 20260831.1214.10

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.
@@ -32,8 +32,8 @@ export declare const PAGE_ROUTES: Readonly<{
32
32
  };
33
33
  readonly infrastructure: {
34
34
  readonly BASE: string;
35
- readonly INFRASTRUCTURE_DETAIL: (id: string) => string;
36
- readonly INFRASTRUCTURE_LIST: string;
35
+ readonly STOPS_DETAIL: (id: string) => string;
36
+ readonly STOPS_LIST: `${string}/stops`;
37
37
  };
38
38
  readonly offer: {
39
39
  readonly BASE: string;
@@ -174,11 +174,15 @@ export declare const API_ROUTES: Readonly<{
174
174
  };
175
175
  readonly infrastructure: {
176
176
  readonly BASE: string;
177
- readonly STOPS_DETAIL: (id: string) => string;
178
- readonly STOPS_DETAIL_LOCK: (id: string) => string;
179
- readonly STOPS_LIST: `${string}/stops`;
180
- readonly STOPS_TTS: (id: string) => string;
181
- readonly STOPS_VALID_ID: `${string}/stops/valid-id`;
177
+ readonly STOPS_CREATE: `${string}/stops/create`;
178
+ readonly STOPS_DELETE: (id: string) => string;
179
+ readonly STOPS_GET: (id: string) => string;
180
+ readonly STOPS_GET_TTS: (id: string) => string;
181
+ readonly STOPS_GET_VALID_ID: `${string}/stops/get/valid-id`;
182
+ readonly STOPS_LIST: `${string}/stops/list`;
183
+ readonly STOPS_LIST_AGENCIES: `${string}/stops/list/agencies`;
184
+ readonly STOPS_LOCK: (id: string) => string;
185
+ readonly STOPS_UPDATE: (id: string) => string;
182
186
  };
183
187
  readonly locations: {
184
188
  readonly BASE: string;
@@ -50,9 +50,9 @@ export const PAGE_ROUTES = Object.freeze({
50
50
  infrastructure: {
51
51
  // BASE
52
52
  BASE: `${getModuleConfig('infrastructure', 'frontend_url')}`,
53
- // INFRASTRUCTURE
54
- INFRASTRUCTURE_DETAIL: (id) => `${getModuleConfig('infrastructure', 'frontend_url')}/${encodeURIComponent(id)}`,
55
- INFRASTRUCTURE_LIST: `${getModuleConfig('infrastructure', 'frontend_url')}`,
53
+ // STOPS
54
+ STOPS_DETAIL: (id) => `${getModuleConfig('infrastructure', 'frontend_url')}/stops/${encodeURIComponent(id)}`,
55
+ STOPS_LIST: `${getModuleConfig('infrastructure', 'frontend_url')}/stops`,
56
56
  },
57
57
  offer: {
58
58
  // BASE
@@ -240,11 +240,15 @@ export const API_ROUTES = Object.freeze({
240
240
  // BASE
241
241
  BASE: `${getModuleConfig('infrastructure', 'api_url')}`,
242
242
  // STOPS
243
- STOPS_DETAIL: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/${encodeURIComponent(id)}`,
244
- STOPS_DETAIL_LOCK: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/${encodeURIComponent(id)}/lock`,
245
- STOPS_LIST: `${getModuleConfig('infrastructure', 'api_url')}/stops`,
246
- STOPS_TTS: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/tts/${encodeURIComponent(id)}`,
247
- STOPS_VALID_ID: `${getModuleConfig('infrastructure', 'api_url')}/stops/valid-id`,
243
+ STOPS_CREATE: `${getModuleConfig('infrastructure', 'api_url')}/stops/create`,
244
+ STOPS_DELETE: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/delete/${encodeURIComponent(id)}`,
245
+ STOPS_GET: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/get/${encodeURIComponent(id)}`,
246
+ STOPS_GET_TTS: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/get/tts/${encodeURIComponent(id)}`,
247
+ STOPS_GET_VALID_ID: `${getModuleConfig('infrastructure', 'api_url')}/stops/get/valid-id`,
248
+ STOPS_LIST: `${getModuleConfig('infrastructure', 'api_url')}/stops/list`,
249
+ STOPS_LIST_AGENCIES: `${getModuleConfig('infrastructure', 'api_url')}/stops/list/agencies`,
250
+ STOPS_LOCK: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/lock/${encodeURIComponent(id)}`,
251
+ STOPS_UPDATE: (id) => `${getModuleConfig('infrastructure', 'api_url')}/stops/update/${encodeURIComponent(id)}`,
248
252
  },
249
253
  locations: {
250
254
  // BASE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/consts",
3
- "version": "20260831.920.21",
3
+ "version": "20260831.1214.10",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"