@tmlmobilidade/consts 20260509.340.15 → 20260511.1606.49

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.
@@ -81,11 +81,33 @@ const MODULE_CONFIGS = {
81
81
  api_url: 'https://go.tmlmobilidade.pt/dates/api',
82
82
  frontend_url: 'https://go.tmlmobilidade.pt/dates',
83
83
  ...DEFAULT_PRD_CONFIG,
84
+ cors_origin: true,
84
85
  },
85
86
  stg: {
86
87
  api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/dates/api`,
87
88
  frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/dates`,
88
89
  ...DEFAULT_STG_CONFIG,
90
+ cors_origin: true,
91
+ },
92
+ },
93
+ eta: {
94
+ dev: {
95
+ api_port: 52099,
96
+ api_url: 'http://localhost:52099',
97
+ cors_origin: true,
98
+ frontend_port: 51099,
99
+ frontend_url: 'http://localhost:51099/eta',
100
+ },
101
+ prd: {
102
+ api_url: 'https://go.tmlmobilidade.pt/eta/api',
103
+ cors_origin: DEFAULT_PRD_CONFIG.cors_origin,
104
+ frontend_url: 'https://go.tmlmobilidade.pt/eta',
105
+ ...DEFAULT_PRD_CONFIG,
106
+ },
107
+ stg: {
108
+ api_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/eta/api`,
109
+ frontend_url: `https://${process.env.ENVIRONMENT || process.env.NEXT_PUBLIC_ENVIRONMENT}.go-stg.tmlmobilidade.pt/eta`,
110
+ ...DEFAULT_STG_CONFIG,
89
111
  },
90
112
  },
91
113
  exporter: {
@@ -166,6 +166,11 @@ export declare const API_ROUTES: Readonly<{
166
166
  readonly YEAR_PERIODS_DETAIL_LOCK: (id: string) => string;
167
167
  readonly YEAR_PERIODS_LIST: `${string}/year-periods`;
168
168
  };
169
+ readonly eta: {
170
+ readonly BASE: string;
171
+ readonly ETA_DETAIL: (tripId: string) => string;
172
+ readonly ETA_LIST: `${string}/eta`;
173
+ };
169
174
  readonly exporter: {
170
175
  readonly BASE: string;
171
176
  readonly EXPORTER_DETAIL_DOWNLOAD: (id: string) => string;
@@ -229,6 +229,13 @@ export const API_ROUTES = Object.freeze({
229
229
  YEAR_PERIODS_DETAIL_LOCK: (id) => `${getModuleConfig('dates', 'api_url')}/year-periods/${id}/lock`,
230
230
  YEAR_PERIODS_LIST: `${getModuleConfig('dates', 'api_url')}/year-periods`,
231
231
  },
232
+ eta: {
233
+ // BASE
234
+ BASE: `${getModuleConfig('eta', 'api_url')}`,
235
+ // ETA
236
+ ETA_DETAIL: (tripId) => `${getModuleConfig('eta', 'api_url')}/eta/${tripId}`,
237
+ ETA_LIST: `${getModuleConfig('eta', 'api_url')}/eta`,
238
+ },
232
239
  exporter: {
233
240
  // BASE
234
241
  BASE: `${getModuleConfig('exporter', 'api_url')}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/consts",
3
- "version": "20260509.340.15",
3
+ "version": "20260511.1606.49",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"