@tmlmobilidade/interfaces 20260519.2046.53 → 20260525.1333.38

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.
@@ -60,7 +60,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
60
60
  action: "create" | "update" | "delete" | "read" | "lock";
61
61
  } | {
62
62
  scope: "stops";
63
- action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
63
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
64
64
  resources: {
65
65
  municipality_ids: string[];
66
66
  agency_ids: string[];
@@ -190,7 +190,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
190
190
  action: "create" | "update" | "delete" | "read" | "lock";
191
191
  } | {
192
192
  scope: "stops";
193
- action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
193
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
194
194
  resources: {
195
195
  municipality_ids: string[];
196
196
  agency_ids: string[];
@@ -316,7 +316,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
316
316
  action: "create" | "update" | "delete" | "read" | "lock";
317
317
  } | {
318
318
  scope: "stops";
319
- action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
319
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
320
320
  resources: {
321
321
  municipality_ids: string[];
322
322
  agency_ids: string[];
@@ -84,7 +84,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
84
84
  action: "create" | "update" | "delete" | "read" | "lock";
85
85
  } | {
86
86
  scope: "stops";
87
- action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
87
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
88
88
  resources: {
89
89
  municipality_ids: string[];
90
90
  agency_ids: string[];
@@ -221,7 +221,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
221
221
  action: "create" | "update" | "delete" | "read" | "lock";
222
222
  } | {
223
223
  scope: "stops";
224
- action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
224
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
225
225
  resources: {
226
226
  municipality_ids: string[];
227
227
  agency_ids: string[];
@@ -362,7 +362,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
362
362
  action: "create" | "update" | "delete" | "read" | "lock";
363
363
  } | {
364
364
  scope: "stops";
365
- action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
365
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
366
366
  resources: {
367
367
  municipality_ids: string[];
368
368
  agency_ids: string[];
@@ -499,7 +499,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
499
499
  action: "create" | "update" | "delete" | "read" | "lock";
500
500
  } | {
501
501
  scope: "stops";
502
- action: "create" | "update" | "delete" | "read" | "lock" | "edit_coordinates";
502
+ action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
503
503
  resources: {
504
504
  municipality_ids: string[];
505
505
  agency_ids: string[];
@@ -196,25 +196,13 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
196
196
  _id?: string | undefined;
197
197
  updated_by?: string | undefined;
198
198
  })[];
199
- equipment: ("pip" | "mupi" | "mini_pip")[];
200
- has_bench: "unknown" | "available" | "unavailable";
201
- has_network_map: "unknown" | "available" | "unavailable";
202
- has_schedules: "unknown" | "available" | "unavailable";
203
- has_shelter: "unknown" | "available" | "unavailable";
204
- has_stop_sign: "unknown" | "available" | "unavailable";
205
- municipality_id: string;
206
- observations: string | null;
207
- parish_id: string | null;
208
- shelter_code: string | null;
209
- shelter_maintainer: string | null;
210
199
  flags: {
211
200
  short_name: string;
212
201
  stop_id: string;
213
202
  agency_ids: string[];
214
203
  is_harmonized: boolean;
215
204
  }[];
216
- is_deleted: boolean;
217
- jurisdiction: "unknown" | "municipality" | "ip" | "other";
205
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
218
206
  legacy_id: string | null;
219
207
  legacy_ids: string[];
220
208
  lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
@@ -223,12 +211,16 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
223
211
  tts_name: string;
224
212
  district_id: string;
225
213
  locality_id: string | null;
214
+ municipality_id: string;
215
+ parish_id: string | null;
226
216
  bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
227
217
  electricity_status: "unknown" | "available" | "unavailable";
228
218
  pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
229
219
  road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
220
+ shelter_code: string | null;
230
221
  shelter_frame_size: [number, number] | null;
231
222
  shelter_installation_date: import("@tmlmobilidade/types").UnixTimestamp | null;
223
+ shelter_maintainer: string | null;
232
224
  shelter_make: string | null;
233
225
  shelter_model: string | null;
234
226
  shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
@@ -237,8 +229,16 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
237
229
  last_schedules_check: import("@tmlmobilidade/types").UnixTimestamp | null;
238
230
  last_schedules_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
239
231
  connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
240
- facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
232
+ facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
233
+ equipment: ("pip" | "mupi" | "mini_pip")[];
234
+ has_bench: "unknown" | "available" | "unavailable";
241
235
  has_mupi: "unknown" | "available" | "unavailable";
236
+ has_network_map: "unknown" | "available" | "unavailable";
237
+ has_schedules: "unknown" | "available" | "unavailable";
238
+ has_shelter: "unknown" | "available" | "unavailable";
239
+ has_stop_sign: "unknown" | "available" | "unavailable";
240
+ observations: string | null;
241
+ is_deleted: boolean;
242
242
  file_ids: string[];
243
243
  image_ids: string[];
244
244
  updated_by?: string | undefined;
@@ -51,6 +51,16 @@ declare class PlansClass extends MongoCollectionClass<Plan, CreatePlanDto, Updat
51
51
  timestamp: import("@tmlmobilidade/types").UnixTimestamp | null;
52
52
  last_hash: string | null;
53
53
  };
54
+ hub_gtfs: {
55
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
56
+ timestamp: import("@tmlmobilidade/types").UnixTimestamp | null;
57
+ last_hash: string | null;
58
+ };
59
+ hub_schedules: {
60
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
61
+ timestamp: import("@tmlmobilidade/types").UnixTimestamp | null;
62
+ last_hash: string | null;
63
+ };
54
64
  merger: {
55
65
  status: "waiting" | "processing" | "complete" | "error" | "skipped";
56
66
  timestamp: import("@tmlmobilidade/types").UnixTimestamp | null;
@@ -104,25 +104,13 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
104
104
  _id?: string | undefined;
105
105
  updated_by?: string | undefined;
106
106
  })[];
107
- equipment: ("pip" | "mupi" | "mini_pip")[];
108
- has_bench: "unknown" | "available" | "unavailable";
109
- has_network_map: "unknown" | "available" | "unavailable";
110
- has_schedules: "unknown" | "available" | "unavailable";
111
- has_shelter: "unknown" | "available" | "unavailable";
112
- has_stop_sign: "unknown" | "available" | "unavailable";
113
- municipality_id: string;
114
- observations: string | null;
115
- parish_id: string | null;
116
- shelter_code: string | null;
117
- shelter_maintainer: string | null;
118
107
  flags: {
119
108
  short_name: string;
120
109
  stop_id: string;
121
110
  agency_ids: string[];
122
111
  is_harmonized: boolean;
123
112
  }[];
124
- is_deleted: boolean;
125
- jurisdiction: "unknown" | "municipality" | "ip" | "other";
113
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
126
114
  legacy_id: string | null;
127
115
  legacy_ids: string[];
128
116
  lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
@@ -131,12 +119,16 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
131
119
  tts_name: string;
132
120
  district_id: string;
133
121
  locality_id: string | null;
122
+ municipality_id: string;
123
+ parish_id: string | null;
134
124
  bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
135
125
  electricity_status: "unknown" | "available" | "unavailable";
136
126
  pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
137
127
  road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
128
+ shelter_code: string | null;
138
129
  shelter_frame_size: [number, number] | null;
139
130
  shelter_installation_date: import("@tmlmobilidade/types").UnixTimestamp | null;
131
+ shelter_maintainer: string | null;
140
132
  shelter_make: string | null;
141
133
  shelter_model: string | null;
142
134
  shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
@@ -145,8 +137,16 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
145
137
  last_schedules_check: import("@tmlmobilidade/types").UnixTimestamp | null;
146
138
  last_schedules_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
147
139
  connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
148
- facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
140
+ facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
141
+ equipment: ("pip" | "mupi" | "mini_pip")[];
142
+ has_bench: "unknown" | "available" | "unavailable";
149
143
  has_mupi: "unknown" | "available" | "unavailable";
144
+ has_network_map: "unknown" | "available" | "unavailable";
145
+ has_schedules: "unknown" | "available" | "unavailable";
146
+ has_shelter: "unknown" | "available" | "unavailable";
147
+ has_stop_sign: "unknown" | "available" | "unavailable";
148
+ observations: string | null;
149
+ is_deleted: boolean;
150
150
  file_ids: string[];
151
151
  image_ids: string[];
152
152
  updated_by?: string | undefined;
@@ -223,25 +223,13 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
223
223
  _id?: string | undefined;
224
224
  updated_by?: string | undefined;
225
225
  })[];
226
- equipment: ("pip" | "mupi" | "mini_pip")[];
227
- has_bench: "unknown" | "available" | "unavailable";
228
- has_network_map: "unknown" | "available" | "unavailable";
229
- has_schedules: "unknown" | "available" | "unavailable";
230
- has_shelter: "unknown" | "available" | "unavailable";
231
- has_stop_sign: "unknown" | "available" | "unavailable";
232
- municipality_id: string;
233
- observations: string | null;
234
- parish_id: string | null;
235
- shelter_code: string | null;
236
- shelter_maintainer: string | null;
237
226
  flags: {
238
227
  short_name: string;
239
228
  stop_id: string;
240
229
  agency_ids: string[];
241
230
  is_harmonized: boolean;
242
231
  }[];
243
- is_deleted: boolean;
244
- jurisdiction: "unknown" | "municipality" | "ip" | "other";
232
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
245
233
  legacy_id: string | null;
246
234
  legacy_ids: string[];
247
235
  lifecycle_status: "draft" | "active" | "inactive" | "provisional" | "seasonal" | "voided";
@@ -250,12 +238,16 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
250
238
  tts_name: string;
251
239
  district_id: string;
252
240
  locality_id: string | null;
241
+ municipality_id: string;
242
+ parish_id: string | null;
253
243
  bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
254
244
  electricity_status: "unknown" | "available" | "unavailable";
255
245
  pole_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
256
246
  road_type: "unknown" | "complementary_itinerary" | "highway" | "main_itinerary" | "national_road" | "regional_road" | "secondary_road";
247
+ shelter_code: string | null;
257
248
  shelter_frame_size: [number, number] | null;
258
249
  shelter_installation_date: import("@tmlmobilidade/types").UnixTimestamp | null;
250
+ shelter_maintainer: string | null;
259
251
  shelter_make: string | null;
260
252
  shelter_model: string | null;
261
253
  shelter_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
@@ -264,8 +256,16 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
264
256
  last_schedules_check: import("@tmlmobilidade/types").UnixTimestamp | null;
265
257
  last_schedules_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
266
258
  connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
267
- facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
259
+ facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
260
+ equipment: ("pip" | "mupi" | "mini_pip")[];
261
+ has_bench: "unknown" | "available" | "unavailable";
268
262
  has_mupi: "unknown" | "available" | "unavailable";
263
+ has_network_map: "unknown" | "available" | "unavailable";
264
+ has_schedules: "unknown" | "available" | "unavailable";
265
+ has_shelter: "unknown" | "available" | "unavailable";
266
+ has_stop_sign: "unknown" | "available" | "unavailable";
267
+ observations: string | null;
268
+ is_deleted: boolean;
269
269
  file_ids: string[];
270
270
  image_ids: string[];
271
271
  updated_by?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/interfaces",
3
- "version": "20260519.2046.53",
3
+ "version": "20260525.1333.38",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"
@@ -48,14 +48,14 @@
48
48
  "@tmlmobilidade/writers": "*",
49
49
  "bcryptjs": "3.0.3",
50
50
  "mongodb": "7.2.0",
51
- "oci-common": "2.131.2",
52
- "oci-objectstorage": "2.131.2",
51
+ "oci-common": "2.132.0",
52
+ "oci-objectstorage": "2.132.0",
53
53
  "zod": "3.25.76"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@tmlmobilidade/tsconfig": "*",
57
57
  "@tmlmobilidade/types": "*",
58
- "@types/node": "25.8.0",
58
+ "@types/node": "25.9.1",
59
59
  "resolve-tspaths": "0.8.23",
60
60
  "tsc-watch": "7.2.0",
61
61
  "typescript": "5.9.3"