@tmlmobilidade/interfaces 20260610.1429.48 → 20260611.1337.59

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.
@@ -17,10 +17,10 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
17
17
  findById(id: string, options?: FindOptions): Promise<{
18
18
  permissions: ({
19
19
  scope: "agencies";
20
- action: "create" | "update" | "delete" | "read" | "lock";
20
+ action: "create" | "delete" | "read" | "lock" | "update";
21
21
  } | {
22
22
  scope: "alerts";
23
- action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
23
+ action: "create" | "delete" | "read" | "lock" | "update" | "update_texts" | "update_dates" | "update_publish_status";
24
24
  resources: {
25
25
  agency_ids: string[];
26
26
  reference_types: string[];
@@ -45,80 +45,80 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
45
45
  action: "read_links" | "read_wiki";
46
46
  } | {
47
47
  scope: "organizations";
48
- action: "create" | "update" | "delete" | "read" | "lock";
48
+ action: "create" | "delete" | "read" | "lock" | "update";
49
49
  } | {
50
50
  scope: "performance";
51
51
  action: "read";
52
52
  } | {
53
53
  scope: "plans";
54
- action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
54
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
55
55
  resources: {
56
56
  agency_ids: string[];
57
57
  };
58
58
  } | {
59
59
  scope: "roles";
60
- action: "create" | "update" | "delete" | "read" | "lock";
60
+ action: "create" | "delete" | "read" | "lock" | "update";
61
61
  } | {
62
62
  scope: "stops";
63
- action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
63
+ action: "create" | "delete" | "read" | "lock" | "update" | "export" | "edit_coordinates";
64
64
  resources: {
65
65
  municipality_ids: string[];
66
66
  agency_ids: string[];
67
67
  };
68
68
  } | {
69
69
  scope: "users";
70
- action: "create" | "update" | "delete" | "read" | "lock";
70
+ action: "create" | "delete" | "read" | "lock" | "update";
71
71
  } | {
72
72
  scope: "vehicles";
73
- action: "create" | "update" | "delete" | "read" | "lock";
73
+ action: "create" | "delete" | "read" | "lock" | "update";
74
74
  resources: {
75
75
  agency_ids: string[];
76
76
  };
77
77
  } | {
78
78
  scope: "fares";
79
- action: "create" | "update" | "delete" | "read" | "lock";
79
+ action: "create" | "delete" | "read" | "lock" | "update";
80
80
  resources: {
81
81
  agency_ids: string[];
82
82
  };
83
83
  } | {
84
84
  scope: "annotations";
85
- action: "create" | "update" | "delete" | "read" | "lock";
85
+ action: "create" | "delete" | "read" | "lock" | "update";
86
86
  resources: {
87
87
  agency_ids: string[];
88
88
  };
89
89
  } | {
90
90
  scope: "year_periods";
91
- action: "create" | "update" | "delete" | "read" | "lock";
91
+ action: "create" | "delete" | "read" | "lock" | "update";
92
92
  resources: {
93
93
  agency_ids: string[];
94
94
  };
95
95
  } | {
96
96
  scope: "holidays";
97
- action: "create" | "update" | "delete" | "read" | "lock";
97
+ action: "create" | "delete" | "read" | "lock" | "update";
98
98
  resources: {
99
99
  agency_ids: string[];
100
100
  };
101
101
  } | {
102
102
  scope: "events";
103
- action: "create" | "update" | "delete" | "read" | "lock";
103
+ action: "create" | "delete" | "read" | "lock" | "update";
104
104
  resources: {
105
105
  agency_ids: string[];
106
106
  };
107
107
  } | {
108
108
  scope: "zones";
109
- action: "create" | "update" | "delete" | "read" | "lock";
109
+ action: "create" | "delete" | "read" | "lock" | "update";
110
110
  resources: {
111
111
  agency_ids: string[];
112
112
  };
113
113
  } | {
114
114
  scope: "typologies";
115
- action: "create" | "update" | "delete" | "read" | "lock";
115
+ action: "create" | "delete" | "read" | "lock" | "update";
116
116
  resources: {
117
117
  agency_ids: string[];
118
118
  };
119
119
  } | {
120
120
  scope: "lines";
121
- action: "create" | "update" | "delete" | "read" | "lock";
121
+ action: "create" | "delete" | "read" | "lock" | "update";
122
122
  resources: {
123
123
  agency_ids: string[];
124
124
  };
@@ -147,10 +147,10 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
147
147
  findMany(filter?: Filter<Role>, options?: FindOptions): Promise<{
148
148
  permissions: ({
149
149
  scope: "agencies";
150
- action: "create" | "update" | "delete" | "read" | "lock";
150
+ action: "create" | "delete" | "read" | "lock" | "update";
151
151
  } | {
152
152
  scope: "alerts";
153
- action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
153
+ action: "create" | "delete" | "read" | "lock" | "update" | "update_texts" | "update_dates" | "update_publish_status";
154
154
  resources: {
155
155
  agency_ids: string[];
156
156
  reference_types: string[];
@@ -175,80 +175,80 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
175
175
  action: "read_links" | "read_wiki";
176
176
  } | {
177
177
  scope: "organizations";
178
- action: "create" | "update" | "delete" | "read" | "lock";
178
+ action: "create" | "delete" | "read" | "lock" | "update";
179
179
  } | {
180
180
  scope: "performance";
181
181
  action: "read";
182
182
  } | {
183
183
  scope: "plans";
184
- action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
184
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
185
185
  resources: {
186
186
  agency_ids: string[];
187
187
  };
188
188
  } | {
189
189
  scope: "roles";
190
- action: "create" | "update" | "delete" | "read" | "lock";
190
+ action: "create" | "delete" | "read" | "lock" | "update";
191
191
  } | {
192
192
  scope: "stops";
193
- action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
193
+ action: "create" | "delete" | "read" | "lock" | "update" | "export" | "edit_coordinates";
194
194
  resources: {
195
195
  municipality_ids: string[];
196
196
  agency_ids: string[];
197
197
  };
198
198
  } | {
199
199
  scope: "users";
200
- action: "create" | "update" | "delete" | "read" | "lock";
200
+ action: "create" | "delete" | "read" | "lock" | "update";
201
201
  } | {
202
202
  scope: "vehicles";
203
- action: "create" | "update" | "delete" | "read" | "lock";
203
+ action: "create" | "delete" | "read" | "lock" | "update";
204
204
  resources: {
205
205
  agency_ids: string[];
206
206
  };
207
207
  } | {
208
208
  scope: "fares";
209
- action: "create" | "update" | "delete" | "read" | "lock";
209
+ action: "create" | "delete" | "read" | "lock" | "update";
210
210
  resources: {
211
211
  agency_ids: string[];
212
212
  };
213
213
  } | {
214
214
  scope: "annotations";
215
- action: "create" | "update" | "delete" | "read" | "lock";
215
+ action: "create" | "delete" | "read" | "lock" | "update";
216
216
  resources: {
217
217
  agency_ids: string[];
218
218
  };
219
219
  } | {
220
220
  scope: "year_periods";
221
- action: "create" | "update" | "delete" | "read" | "lock";
221
+ action: "create" | "delete" | "read" | "lock" | "update";
222
222
  resources: {
223
223
  agency_ids: string[];
224
224
  };
225
225
  } | {
226
226
  scope: "holidays";
227
- action: "create" | "update" | "delete" | "read" | "lock";
227
+ action: "create" | "delete" | "read" | "lock" | "update";
228
228
  resources: {
229
229
  agency_ids: string[];
230
230
  };
231
231
  } | {
232
232
  scope: "events";
233
- action: "create" | "update" | "delete" | "read" | "lock";
233
+ action: "create" | "delete" | "read" | "lock" | "update";
234
234
  resources: {
235
235
  agency_ids: string[];
236
236
  };
237
237
  } | {
238
238
  scope: "zones";
239
- action: "create" | "update" | "delete" | "read" | "lock";
239
+ action: "create" | "delete" | "read" | "lock" | "update";
240
240
  resources: {
241
241
  agency_ids: string[];
242
242
  };
243
243
  } | {
244
244
  scope: "typologies";
245
- action: "create" | "update" | "delete" | "read" | "lock";
245
+ action: "create" | "delete" | "read" | "lock" | "update";
246
246
  resources: {
247
247
  agency_ids: string[];
248
248
  };
249
249
  } | {
250
250
  scope: "lines";
251
- action: "create" | "update" | "delete" | "read" | "lock";
251
+ action: "create" | "delete" | "read" | "lock" | "update";
252
252
  resources: {
253
253
  agency_ids: string[];
254
254
  };
@@ -273,10 +273,10 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
273
273
  findOne(filter: Filter<Role>): Promise<{
274
274
  permissions: ({
275
275
  scope: "agencies";
276
- action: "create" | "update" | "delete" | "read" | "lock";
276
+ action: "create" | "delete" | "read" | "lock" | "update";
277
277
  } | {
278
278
  scope: "alerts";
279
- action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
279
+ action: "create" | "delete" | "read" | "lock" | "update" | "update_texts" | "update_dates" | "update_publish_status";
280
280
  resources: {
281
281
  agency_ids: string[];
282
282
  reference_types: string[];
@@ -301,80 +301,80 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
301
301
  action: "read_links" | "read_wiki";
302
302
  } | {
303
303
  scope: "organizations";
304
- action: "create" | "update" | "delete" | "read" | "lock";
304
+ action: "create" | "delete" | "read" | "lock" | "update";
305
305
  } | {
306
306
  scope: "performance";
307
307
  action: "read";
308
308
  } | {
309
309
  scope: "plans";
310
- action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
310
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
311
311
  resources: {
312
312
  agency_ids: string[];
313
313
  };
314
314
  } | {
315
315
  scope: "roles";
316
- action: "create" | "update" | "delete" | "read" | "lock";
316
+ action: "create" | "delete" | "read" | "lock" | "update";
317
317
  } | {
318
318
  scope: "stops";
319
- action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
319
+ action: "create" | "delete" | "read" | "lock" | "update" | "export" | "edit_coordinates";
320
320
  resources: {
321
321
  municipality_ids: string[];
322
322
  agency_ids: string[];
323
323
  };
324
324
  } | {
325
325
  scope: "users";
326
- action: "create" | "update" | "delete" | "read" | "lock";
326
+ action: "create" | "delete" | "read" | "lock" | "update";
327
327
  } | {
328
328
  scope: "vehicles";
329
- action: "create" | "update" | "delete" | "read" | "lock";
329
+ action: "create" | "delete" | "read" | "lock" | "update";
330
330
  resources: {
331
331
  agency_ids: string[];
332
332
  };
333
333
  } | {
334
334
  scope: "fares";
335
- action: "create" | "update" | "delete" | "read" | "lock";
335
+ action: "create" | "delete" | "read" | "lock" | "update";
336
336
  resources: {
337
337
  agency_ids: string[];
338
338
  };
339
339
  } | {
340
340
  scope: "annotations";
341
- action: "create" | "update" | "delete" | "read" | "lock";
341
+ action: "create" | "delete" | "read" | "lock" | "update";
342
342
  resources: {
343
343
  agency_ids: string[];
344
344
  };
345
345
  } | {
346
346
  scope: "year_periods";
347
- action: "create" | "update" | "delete" | "read" | "lock";
347
+ action: "create" | "delete" | "read" | "lock" | "update";
348
348
  resources: {
349
349
  agency_ids: string[];
350
350
  };
351
351
  } | {
352
352
  scope: "holidays";
353
- action: "create" | "update" | "delete" | "read" | "lock";
353
+ action: "create" | "delete" | "read" | "lock" | "update";
354
354
  resources: {
355
355
  agency_ids: string[];
356
356
  };
357
357
  } | {
358
358
  scope: "events";
359
- action: "create" | "update" | "delete" | "read" | "lock";
359
+ action: "create" | "delete" | "read" | "lock" | "update";
360
360
  resources: {
361
361
  agency_ids: string[];
362
362
  };
363
363
  } | {
364
364
  scope: "zones";
365
- action: "create" | "update" | "delete" | "read" | "lock";
365
+ action: "create" | "delete" | "read" | "lock" | "update";
366
366
  resources: {
367
367
  agency_ids: string[];
368
368
  };
369
369
  } | {
370
370
  scope: "typologies";
371
- action: "create" | "update" | "delete" | "read" | "lock";
371
+ action: "create" | "delete" | "read" | "lock" | "update";
372
372
  resources: {
373
373
  agency_ids: string[];
374
374
  };
375
375
  } | {
376
376
  scope: "lines";
377
- action: "create" | "update" | "delete" | "read" | "lock";
377
+ action: "create" | "delete" | "read" | "lock" | "update";
378
378
  resources: {
379
379
  agency_ids: string[];
380
380
  };
@@ -41,10 +41,10 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
41
41
  password_hash: any;
42
42
  permissions: ({
43
43
  scope: "agencies";
44
- action: "create" | "update" | "delete" | "read" | "lock";
44
+ action: "create" | "delete" | "read" | "lock" | "update";
45
45
  } | {
46
46
  scope: "alerts";
47
- action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
47
+ action: "create" | "delete" | "read" | "lock" | "update" | "update_texts" | "update_dates" | "update_publish_status";
48
48
  resources: {
49
49
  agency_ids: string[];
50
50
  reference_types: string[];
@@ -69,80 +69,80 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
69
69
  action: "read_links" | "read_wiki";
70
70
  } | {
71
71
  scope: "organizations";
72
- action: "create" | "update" | "delete" | "read" | "lock";
72
+ action: "create" | "delete" | "read" | "lock" | "update";
73
73
  } | {
74
74
  scope: "performance";
75
75
  action: "read";
76
76
  } | {
77
77
  scope: "plans";
78
- action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
78
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
79
79
  resources: {
80
80
  agency_ids: string[];
81
81
  };
82
82
  } | {
83
83
  scope: "roles";
84
- action: "create" | "update" | "delete" | "read" | "lock";
84
+ action: "create" | "delete" | "read" | "lock" | "update";
85
85
  } | {
86
86
  scope: "stops";
87
- action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
87
+ action: "create" | "delete" | "read" | "lock" | "update" | "export" | "edit_coordinates";
88
88
  resources: {
89
89
  municipality_ids: string[];
90
90
  agency_ids: string[];
91
91
  };
92
92
  } | {
93
93
  scope: "users";
94
- action: "create" | "update" | "delete" | "read" | "lock";
94
+ action: "create" | "delete" | "read" | "lock" | "update";
95
95
  } | {
96
96
  scope: "vehicles";
97
- action: "create" | "update" | "delete" | "read" | "lock";
97
+ action: "create" | "delete" | "read" | "lock" | "update";
98
98
  resources: {
99
99
  agency_ids: string[];
100
100
  };
101
101
  } | {
102
102
  scope: "fares";
103
- action: "create" | "update" | "delete" | "read" | "lock";
103
+ action: "create" | "delete" | "read" | "lock" | "update";
104
104
  resources: {
105
105
  agency_ids: string[];
106
106
  };
107
107
  } | {
108
108
  scope: "annotations";
109
- action: "create" | "update" | "delete" | "read" | "lock";
109
+ action: "create" | "delete" | "read" | "lock" | "update";
110
110
  resources: {
111
111
  agency_ids: string[];
112
112
  };
113
113
  } | {
114
114
  scope: "year_periods";
115
- action: "create" | "update" | "delete" | "read" | "lock";
115
+ action: "create" | "delete" | "read" | "lock" | "update";
116
116
  resources: {
117
117
  agency_ids: string[];
118
118
  };
119
119
  } | {
120
120
  scope: "holidays";
121
- action: "create" | "update" | "delete" | "read" | "lock";
121
+ action: "create" | "delete" | "read" | "lock" | "update";
122
122
  resources: {
123
123
  agency_ids: string[];
124
124
  };
125
125
  } | {
126
126
  scope: "events";
127
- action: "create" | "update" | "delete" | "read" | "lock";
127
+ action: "create" | "delete" | "read" | "lock" | "update";
128
128
  resources: {
129
129
  agency_ids: string[];
130
130
  };
131
131
  } | {
132
132
  scope: "zones";
133
- action: "create" | "update" | "delete" | "read" | "lock";
133
+ action: "create" | "delete" | "read" | "lock" | "update";
134
134
  resources: {
135
135
  agency_ids: string[];
136
136
  };
137
137
  } | {
138
138
  scope: "typologies";
139
- action: "create" | "update" | "delete" | "read" | "lock";
139
+ action: "create" | "delete" | "read" | "lock" | "update";
140
140
  resources: {
141
141
  agency_ids: string[];
142
142
  };
143
143
  } | {
144
144
  scope: "lines";
145
- action: "create" | "update" | "delete" | "read" | "lock";
145
+ action: "create" | "delete" | "read" | "lock" | "update";
146
146
  resources: {
147
147
  agency_ids: string[];
148
148
  };
@@ -164,7 +164,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
164
164
  last_name: string;
165
165
  organization_id: string;
166
166
  phone: string | null;
167
- preferences: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null;
167
+ preferences: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null;
168
168
  role_ids: string[];
169
169
  seen_last_at: import("@tmlmobilidade/types").UnixTimestamp | null;
170
170
  _id: string;
@@ -178,10 +178,10 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
178
178
  password_hash: any;
179
179
  permissions: ({
180
180
  scope: "agencies";
181
- action: "create" | "update" | "delete" | "read" | "lock";
181
+ action: "create" | "delete" | "read" | "lock" | "update";
182
182
  } | {
183
183
  scope: "alerts";
184
- action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
184
+ action: "create" | "delete" | "read" | "lock" | "update" | "update_texts" | "update_dates" | "update_publish_status";
185
185
  resources: {
186
186
  agency_ids: string[];
187
187
  reference_types: string[];
@@ -206,80 +206,80 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
206
206
  action: "read_links" | "read_wiki";
207
207
  } | {
208
208
  scope: "organizations";
209
- action: "create" | "update" | "delete" | "read" | "lock";
209
+ action: "create" | "delete" | "read" | "lock" | "update";
210
210
  } | {
211
211
  scope: "performance";
212
212
  action: "read";
213
213
  } | {
214
214
  scope: "plans";
215
- action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
215
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
216
216
  resources: {
217
217
  agency_ids: string[];
218
218
  };
219
219
  } | {
220
220
  scope: "roles";
221
- action: "create" | "update" | "delete" | "read" | "lock";
221
+ action: "create" | "delete" | "read" | "lock" | "update";
222
222
  } | {
223
223
  scope: "stops";
224
- action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
224
+ action: "create" | "delete" | "read" | "lock" | "update" | "export" | "edit_coordinates";
225
225
  resources: {
226
226
  municipality_ids: string[];
227
227
  agency_ids: string[];
228
228
  };
229
229
  } | {
230
230
  scope: "users";
231
- action: "create" | "update" | "delete" | "read" | "lock";
231
+ action: "create" | "delete" | "read" | "lock" | "update";
232
232
  } | {
233
233
  scope: "vehicles";
234
- action: "create" | "update" | "delete" | "read" | "lock";
234
+ action: "create" | "delete" | "read" | "lock" | "update";
235
235
  resources: {
236
236
  agency_ids: string[];
237
237
  };
238
238
  } | {
239
239
  scope: "fares";
240
- action: "create" | "update" | "delete" | "read" | "lock";
240
+ action: "create" | "delete" | "read" | "lock" | "update";
241
241
  resources: {
242
242
  agency_ids: string[];
243
243
  };
244
244
  } | {
245
245
  scope: "annotations";
246
- action: "create" | "update" | "delete" | "read" | "lock";
246
+ action: "create" | "delete" | "read" | "lock" | "update";
247
247
  resources: {
248
248
  agency_ids: string[];
249
249
  };
250
250
  } | {
251
251
  scope: "year_periods";
252
- action: "create" | "update" | "delete" | "read" | "lock";
252
+ action: "create" | "delete" | "read" | "lock" | "update";
253
253
  resources: {
254
254
  agency_ids: string[];
255
255
  };
256
256
  } | {
257
257
  scope: "holidays";
258
- action: "create" | "update" | "delete" | "read" | "lock";
258
+ action: "create" | "delete" | "read" | "lock" | "update";
259
259
  resources: {
260
260
  agency_ids: string[];
261
261
  };
262
262
  } | {
263
263
  scope: "events";
264
- action: "create" | "update" | "delete" | "read" | "lock";
264
+ action: "create" | "delete" | "read" | "lock" | "update";
265
265
  resources: {
266
266
  agency_ids: string[];
267
267
  };
268
268
  } | {
269
269
  scope: "zones";
270
- action: "create" | "update" | "delete" | "read" | "lock";
270
+ action: "create" | "delete" | "read" | "lock" | "update";
271
271
  resources: {
272
272
  agency_ids: string[];
273
273
  };
274
274
  } | {
275
275
  scope: "typologies";
276
- action: "create" | "update" | "delete" | "read" | "lock";
276
+ action: "create" | "delete" | "read" | "lock" | "update";
277
277
  resources: {
278
278
  agency_ids: string[];
279
279
  };
280
280
  } | {
281
281
  scope: "lines";
282
- action: "create" | "update" | "delete" | "read" | "lock";
282
+ action: "create" | "delete" | "read" | "lock" | "update";
283
283
  resources: {
284
284
  agency_ids: string[];
285
285
  };
@@ -301,7 +301,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
301
301
  last_name: string;
302
302
  organization_id: string;
303
303
  phone: string | null;
304
- preferences: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null;
304
+ preferences: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null;
305
305
  role_ids: string[];
306
306
  seen_last_at: import("@tmlmobilidade/types").UnixTimestamp | null;
307
307
  _id: string;
@@ -319,10 +319,10 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
319
319
  password_hash: any;
320
320
  permissions: ({
321
321
  scope: "agencies";
322
- action: "create" | "update" | "delete" | "read" | "lock";
322
+ action: "create" | "delete" | "read" | "lock" | "update";
323
323
  } | {
324
324
  scope: "alerts";
325
- action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
325
+ action: "create" | "delete" | "read" | "lock" | "update" | "update_texts" | "update_dates" | "update_publish_status";
326
326
  resources: {
327
327
  agency_ids: string[];
328
328
  reference_types: string[];
@@ -347,80 +347,80 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
347
347
  action: "read_links" | "read_wiki";
348
348
  } | {
349
349
  scope: "organizations";
350
- action: "create" | "update" | "delete" | "read" | "lock";
350
+ action: "create" | "delete" | "read" | "lock" | "update";
351
351
  } | {
352
352
  scope: "performance";
353
353
  action: "read";
354
354
  } | {
355
355
  scope: "plans";
356
- action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
356
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
357
357
  resources: {
358
358
  agency_ids: string[];
359
359
  };
360
360
  } | {
361
361
  scope: "roles";
362
- action: "create" | "update" | "delete" | "read" | "lock";
362
+ action: "create" | "delete" | "read" | "lock" | "update";
363
363
  } | {
364
364
  scope: "stops";
365
- action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
365
+ action: "create" | "delete" | "read" | "lock" | "update" | "export" | "edit_coordinates";
366
366
  resources: {
367
367
  municipality_ids: string[];
368
368
  agency_ids: string[];
369
369
  };
370
370
  } | {
371
371
  scope: "users";
372
- action: "create" | "update" | "delete" | "read" | "lock";
372
+ action: "create" | "delete" | "read" | "lock" | "update";
373
373
  } | {
374
374
  scope: "vehicles";
375
- action: "create" | "update" | "delete" | "read" | "lock";
375
+ action: "create" | "delete" | "read" | "lock" | "update";
376
376
  resources: {
377
377
  agency_ids: string[];
378
378
  };
379
379
  } | {
380
380
  scope: "fares";
381
- action: "create" | "update" | "delete" | "read" | "lock";
381
+ action: "create" | "delete" | "read" | "lock" | "update";
382
382
  resources: {
383
383
  agency_ids: string[];
384
384
  };
385
385
  } | {
386
386
  scope: "annotations";
387
- action: "create" | "update" | "delete" | "read" | "lock";
387
+ action: "create" | "delete" | "read" | "lock" | "update";
388
388
  resources: {
389
389
  agency_ids: string[];
390
390
  };
391
391
  } | {
392
392
  scope: "year_periods";
393
- action: "create" | "update" | "delete" | "read" | "lock";
393
+ action: "create" | "delete" | "read" | "lock" | "update";
394
394
  resources: {
395
395
  agency_ids: string[];
396
396
  };
397
397
  } | {
398
398
  scope: "holidays";
399
- action: "create" | "update" | "delete" | "read" | "lock";
399
+ action: "create" | "delete" | "read" | "lock" | "update";
400
400
  resources: {
401
401
  agency_ids: string[];
402
402
  };
403
403
  } | {
404
404
  scope: "events";
405
- action: "create" | "update" | "delete" | "read" | "lock";
405
+ action: "create" | "delete" | "read" | "lock" | "update";
406
406
  resources: {
407
407
  agency_ids: string[];
408
408
  };
409
409
  } | {
410
410
  scope: "zones";
411
- action: "create" | "update" | "delete" | "read" | "lock";
411
+ action: "create" | "delete" | "read" | "lock" | "update";
412
412
  resources: {
413
413
  agency_ids: string[];
414
414
  };
415
415
  } | {
416
416
  scope: "typologies";
417
- action: "create" | "update" | "delete" | "read" | "lock";
417
+ action: "create" | "delete" | "read" | "lock" | "update";
418
418
  resources: {
419
419
  agency_ids: string[];
420
420
  };
421
421
  } | {
422
422
  scope: "lines";
423
- action: "create" | "update" | "delete" | "read" | "lock";
423
+ action: "create" | "delete" | "read" | "lock" | "update";
424
424
  resources: {
425
425
  agency_ids: string[];
426
426
  };
@@ -442,7 +442,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
442
442
  last_name: string;
443
443
  organization_id: string;
444
444
  phone: string | null;
445
- preferences: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null;
445
+ preferences: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null;
446
446
  role_ids: string[];
447
447
  seen_last_at: import("@tmlmobilidade/types").UnixTimestamp | null;
448
448
  _id: string;
@@ -456,10 +456,10 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
456
456
  password_hash: any;
457
457
  permissions: ({
458
458
  scope: "agencies";
459
- action: "create" | "update" | "delete" | "read" | "lock";
459
+ action: "create" | "delete" | "read" | "lock" | "update";
460
460
  } | {
461
461
  scope: "alerts";
462
- action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
462
+ action: "create" | "delete" | "read" | "lock" | "update" | "update_texts" | "update_dates" | "update_publish_status";
463
463
  resources: {
464
464
  agency_ids: string[];
465
465
  reference_types: string[];
@@ -484,80 +484,80 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
484
484
  action: "read_links" | "read_wiki";
485
485
  } | {
486
486
  scope: "organizations";
487
- action: "create" | "update" | "delete" | "read" | "lock";
487
+ action: "create" | "delete" | "read" | "lock" | "update";
488
488
  } | {
489
489
  scope: "performance";
490
490
  action: "read";
491
491
  } | {
492
492
  scope: "plans";
493
- action: "create" | "update" | "delete" | "read" | "lock" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
493
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy";
494
494
  resources: {
495
495
  agency_ids: string[];
496
496
  };
497
497
  } | {
498
498
  scope: "roles";
499
- action: "create" | "update" | "delete" | "read" | "lock";
499
+ action: "create" | "delete" | "read" | "lock" | "update";
500
500
  } | {
501
501
  scope: "stops";
502
- action: "create" | "update" | "delete" | "read" | "lock" | "export" | "edit_coordinates";
502
+ action: "create" | "delete" | "read" | "lock" | "update" | "export" | "edit_coordinates";
503
503
  resources: {
504
504
  municipality_ids: string[];
505
505
  agency_ids: string[];
506
506
  };
507
507
  } | {
508
508
  scope: "users";
509
- action: "create" | "update" | "delete" | "read" | "lock";
509
+ action: "create" | "delete" | "read" | "lock" | "update";
510
510
  } | {
511
511
  scope: "vehicles";
512
- action: "create" | "update" | "delete" | "read" | "lock";
512
+ action: "create" | "delete" | "read" | "lock" | "update";
513
513
  resources: {
514
514
  agency_ids: string[];
515
515
  };
516
516
  } | {
517
517
  scope: "fares";
518
- action: "create" | "update" | "delete" | "read" | "lock";
518
+ action: "create" | "delete" | "read" | "lock" | "update";
519
519
  resources: {
520
520
  agency_ids: string[];
521
521
  };
522
522
  } | {
523
523
  scope: "annotations";
524
- action: "create" | "update" | "delete" | "read" | "lock";
524
+ action: "create" | "delete" | "read" | "lock" | "update";
525
525
  resources: {
526
526
  agency_ids: string[];
527
527
  };
528
528
  } | {
529
529
  scope: "year_periods";
530
- action: "create" | "update" | "delete" | "read" | "lock";
530
+ action: "create" | "delete" | "read" | "lock" | "update";
531
531
  resources: {
532
532
  agency_ids: string[];
533
533
  };
534
534
  } | {
535
535
  scope: "holidays";
536
- action: "create" | "update" | "delete" | "read" | "lock";
536
+ action: "create" | "delete" | "read" | "lock" | "update";
537
537
  resources: {
538
538
  agency_ids: string[];
539
539
  };
540
540
  } | {
541
541
  scope: "events";
542
- action: "create" | "update" | "delete" | "read" | "lock";
542
+ action: "create" | "delete" | "read" | "lock" | "update";
543
543
  resources: {
544
544
  agency_ids: string[];
545
545
  };
546
546
  } | {
547
547
  scope: "zones";
548
- action: "create" | "update" | "delete" | "read" | "lock";
548
+ action: "create" | "delete" | "read" | "lock" | "update";
549
549
  resources: {
550
550
  agency_ids: string[];
551
551
  };
552
552
  } | {
553
553
  scope: "typologies";
554
- action: "create" | "update" | "delete" | "read" | "lock";
554
+ action: "create" | "delete" | "read" | "lock" | "update";
555
555
  resources: {
556
556
  agency_ids: string[];
557
557
  };
558
558
  } | {
559
559
  scope: "lines";
560
- action: "create" | "update" | "delete" | "read" | "lock";
560
+ action: "create" | "delete" | "read" | "lock" | "update";
561
561
  resources: {
562
562
  agency_ids: string[];
563
563
  };
@@ -579,7 +579,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
579
579
  last_name: string;
580
580
  organization_id: string;
581
581
  phone: string | null;
582
- preferences: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null;
582
+ preferences: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null;
583
583
  role_ids: string[];
584
584
  seen_last_at: import("@tmlmobilidade/types").UnixTimestamp | null;
585
585
  _id: string;
@@ -52,7 +52,7 @@ declare class EventsClass extends MongoCollectionClass<Event, CreateEventDto, Up
52
52
  };
53
53
  dates: import("@tmlmobilidade/types").OperationalDate[];
54
54
  kind: "event_replacement";
55
- weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
55
+ weekdays: (1 | 2 | 4 | 3 | 6 | 5 | 7)[];
56
56
  year_period_ids: string[];
57
57
  lines_mode: "exclude" | "include" | "all";
58
58
  _id?: string | undefined;
@@ -24,7 +24,7 @@ declare class GtfValidationsClass extends MongoCollectionClass<GtfsValidation, C
24
24
  __brand: "UnixTimestamp";
25
25
  };
26
26
  file_id: string;
27
- processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
27
+ processing_status: "error" | "waiting" | "processing" | "complete" | "skipped";
28
28
  gtfs_agency: {
29
29
  agency_id: string;
30
30
  agency_name: string;
@@ -53,8 +53,8 @@ declare class GtfValidationsClass extends MongoCollectionClass<GtfsValidation, C
53
53
  summary?: {
54
54
  messages: {
55
55
  message: string;
56
- field: string;
57
56
  file_name: string;
57
+ field: string;
58
58
  rows: number[];
59
59
  rule_id: string;
60
60
  severity: "error" | "warning" | "ignore" | "forbidden";
@@ -37,7 +37,7 @@ declare class LinesClass extends MongoCollectionClass<Line, CreateLineDto, Updat
37
37
  code: string;
38
38
  name: string;
39
39
  }[];
40
- transport_type: "bus" | "subway" | "ferry" | "aerial_lift" | "cable_tram" | "funicular" | "monorail" | "rail" | "tram" | "trolleybus";
40
+ transport_type: "ferry" | "subway" | "aerial_lift" | "bus" | "cable_tram" | "funicular" | "monorail" | "rail" | "tram" | "trolleybus";
41
41
  typology: string | null;
42
42
  updated_by?: string | undefined;
43
43
  }>[]>;
@@ -34,8 +34,8 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
34
34
  year_period_ids: string[];
35
35
  name?: string | undefined;
36
36
  event_id?: string | undefined;
37
- months?: (1 | 2 | 3 | 5 | 4 | 6 | 12 | 11 | 10 | 8 | 7 | 9)[] | undefined;
38
- weekdays?: (1 | 2 | 3 | 5 | 4 | 6 | 7)[] | undefined;
37
+ months?: (1 | 2 | 12 | 11 | 10 | 4 | 3 | 6 | 8 | 5 | 7 | 9)[] | undefined;
38
+ weekdays?: (1 | 2 | 4 | 3 | 6 | 5 | 7)[] | undefined;
39
39
  } | {
40
40
  event: {
41
41
  title: string;
@@ -59,7 +59,7 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
59
59
  };
60
60
  dates: import("@tmlmobilidade/types").OperationalDate[];
61
61
  kind: "event_replacement";
62
- weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
62
+ weekdays: (1 | 2 | 4 | 3 | 6 | 5 | 7)[];
63
63
  year_period_ids: string[];
64
64
  lines_mode: "exclude" | "include" | "all";
65
65
  _id?: string | undefined;
@@ -72,6 +72,8 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
72
72
  headsign: string;
73
73
  route_id: string;
74
74
  comments: ({
75
+ message: string;
76
+ type: "note";
75
77
  created_at: number & {
76
78
  __brand: "UnixTimestamp";
77
79
  };
@@ -79,11 +81,10 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
79
81
  updated_at: number & {
80
82
  __brand: "UnixTimestamp";
81
83
  };
82
- message: string;
83
- type: "note";
84
84
  _id?: string | undefined;
85
85
  updated_by?: string | undefined;
86
86
  } | {
87
+ type: "field_changed";
87
88
  created_at: number & {
88
89
  __brand: "UnixTimestamp";
89
90
  };
@@ -91,10 +92,11 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
91
92
  updated_at: number & {
92
93
  __brand: "UnixTimestamp";
93
94
  };
94
- type: "field_changed";
95
95
  field: string;
96
96
  _id?: string | undefined;
97
97
  updated_by?: string | undefined;
98
+ curr_value?: any;
99
+ prev_value?: any;
98
100
  metadata?: {
99
101
  changes?: {
100
102
  field: string;
@@ -102,9 +104,8 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
102
104
  prev_value?: any;
103
105
  }[] | undefined;
104
106
  } | null | undefined;
105
- curr_value?: any;
106
- prev_value?: any;
107
107
  } | {
108
+ type: "crud";
108
109
  created_at: number & {
109
110
  __brand: "UnixTimestamp";
110
111
  };
@@ -112,7 +113,6 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
112
113
  updated_at: number & {
113
114
  __brand: "UnixTimestamp";
114
115
  };
115
- type: "crud";
116
116
  action: "create" | "update" | "delete" | "archive" | "restore";
117
117
  _id?: string | undefined;
118
118
  updated_by?: string | undefined;
@@ -140,8 +140,6 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
140
140
  __brand: "UnixTimestamp";
141
141
  };
142
142
  name: string;
143
- latitude: number;
144
- longitude: number;
145
143
  short_name: string;
146
144
  associated_patterns: {
147
145
  _id: string;
@@ -151,6 +149,8 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
151
149
  route_id: string;
152
150
  }[];
153
151
  comments: ({
152
+ message: string;
153
+ type: "note";
154
154
  created_at: number & {
155
155
  __brand: "UnixTimestamp";
156
156
  };
@@ -158,11 +158,10 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
158
158
  updated_at: number & {
159
159
  __brand: "UnixTimestamp";
160
160
  };
161
- message: string;
162
- type: "note";
163
161
  _id?: string | undefined;
164
162
  updated_by?: string | undefined;
165
163
  } | {
164
+ type: "field_changed";
166
165
  created_at: number & {
167
166
  __brand: "UnixTimestamp";
168
167
  };
@@ -170,10 +169,11 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
170
169
  updated_at: number & {
171
170
  __brand: "UnixTimestamp";
172
171
  };
173
- type: "field_changed";
174
172
  field: string;
175
173
  _id?: string | undefined;
176
174
  updated_by?: string | undefined;
175
+ curr_value?: any;
176
+ prev_value?: any;
177
177
  metadata?: {
178
178
  changes?: {
179
179
  field: string;
@@ -181,9 +181,8 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
181
181
  prev_value?: any;
182
182
  }[] | undefined;
183
183
  } | null | undefined;
184
- curr_value?: any;
185
- prev_value?: any;
186
184
  } | {
185
+ type: "crud";
187
186
  created_at: number & {
188
187
  __brand: "UnixTimestamp";
189
188
  };
@@ -191,7 +190,6 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
191
190
  updated_at: number & {
192
191
  __brand: "UnixTimestamp";
193
192
  };
194
- type: "crud";
195
193
  action: "create" | "update" | "delete" | "archive" | "restore";
196
194
  _id?: string | undefined;
197
195
  updated_by?: string | undefined;
@@ -210,7 +208,9 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
210
208
  previous_go_id: string | null;
211
209
  tts_name: string;
212
210
  district_id: string;
211
+ latitude: number;
213
212
  locality_id: string | null;
213
+ longitude: number;
214
214
  municipality_id: string;
215
215
  parish_id: string | null;
216
216
  bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
@@ -228,7 +228,7 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
228
228
  last_infrastructure_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
229
229
  last_schedules_check: import("@tmlmobilidade/types").UnixTimestamp | null;
230
230
  last_schedules_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
231
- connections: ("subway" | "train" | "ferry" | "light_rail" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
231
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
232
232
  facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
233
233
  equipment: ("pip" | "mupi" | "mini_pip")[];
234
234
  has_bench: "unknown" | "available" | "unavailable";
@@ -272,7 +272,7 @@ declare class PatternsClass extends MongoCollectionClass<Pattern, CreatePatternD
272
272
  dwell_time: number;
273
273
  }[];
274
274
  kind: "override";
275
- weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
275
+ weekdays: (1 | 2 | 4 | 3 | 6 | 5 | 7)[];
276
276
  year_period_ids: string[];
277
277
  _id?: string | undefined;
278
278
  name?: string | undefined;
@@ -49,22 +49,22 @@ declare class PlansClass extends MongoCollectionClass<Plan, CreatePlanDto, Updat
49
49
  operation_file_id: string;
50
50
  apps: {
51
51
  controller: {
52
- status: "waiting" | "processing" | "complete" | "error" | "skipped";
52
+ status: "error" | "waiting" | "processing" | "complete" | "skipped";
53
53
  timestamp: import("@tmlmobilidade/types").UnixTimestamp | null;
54
54
  last_hash: string | null;
55
55
  };
56
56
  hub_gtfs: {
57
- status: "waiting" | "processing" | "complete" | "error" | "skipped";
57
+ status: "error" | "waiting" | "processing" | "complete" | "skipped";
58
58
  timestamp: import("@tmlmobilidade/types").UnixTimestamp | null;
59
59
  last_hash: string | null;
60
60
  };
61
61
  hub_schedules: {
62
- status: "waiting" | "processing" | "complete" | "error" | "skipped";
62
+ status: "error" | "waiting" | "processing" | "complete" | "skipped";
63
63
  timestamp: import("@tmlmobilidade/types").UnixTimestamp | null;
64
64
  last_hash: string | null;
65
65
  };
66
66
  merger: {
67
- status: "waiting" | "processing" | "complete" | "error" | "skipped";
67
+ status: "error" | "waiting" | "processing" | "complete" | "skipped";
68
68
  timestamp: import("@tmlmobilidade/types").UnixTimestamp | null;
69
69
  last_hash: string | null;
70
70
  };
@@ -155,7 +155,7 @@ declare class RidesClass extends MongoCollectionClass<Ride, CreateRideDto, Updat
155
155
  hashed_pattern_id: string;
156
156
  hashed_shape_id: string;
157
157
  hashed_trip_id: string;
158
- system_status: "waiting" | "processing" | "complete" | "error" | "skipped";
158
+ system_status: "error" | "waiting" | "processing" | "complete" | "skipped";
159
159
  updated_by?: string | undefined;
160
160
  }>[]>;
161
161
  /**
@@ -305,7 +305,7 @@ declare class RidesClass extends MongoCollectionClass<Ride, CreateRideDto, Updat
305
305
  hashed_pattern_id: string;
306
306
  hashed_shape_id: string;
307
307
  hashed_trip_id: string;
308
- system_status: "waiting" | "processing" | "complete" | "error" | "skipped";
308
+ system_status: "error" | "waiting" | "processing" | "complete" | "skipped";
309
309
  updated_by?: string | undefined;
310
310
  }>[]>;
311
311
  /**
@@ -455,7 +455,7 @@ declare class RidesClass extends MongoCollectionClass<Ride, CreateRideDto, Updat
455
455
  hashed_pattern_id: string;
456
456
  hashed_shape_id: string;
457
457
  hashed_trip_id: string;
458
- system_status: "waiting" | "processing" | "complete" | "error" | "skipped";
458
+ system_status: "error" | "waiting" | "processing" | "complete" | "skipped";
459
459
  updated_by?: string | undefined;
460
460
  }>[]>;
461
461
  /**
@@ -605,7 +605,7 @@ declare class RidesClass extends MongoCollectionClass<Ride, CreateRideDto, Updat
605
605
  hashed_pattern_id: string;
606
606
  hashed_shape_id: string;
607
607
  hashed_trip_id: string;
608
- system_status: "waiting" | "processing" | "complete" | "error" | "skipped";
608
+ system_status: "error" | "waiting" | "processing" | "complete" | "skipped";
609
609
  updated_by?: string | undefined;
610
610
  }>[]>;
611
611
  /**
@@ -755,7 +755,7 @@ declare class RidesClass extends MongoCollectionClass<Ride, CreateRideDto, Updat
755
755
  hashed_pattern_id: string;
756
756
  hashed_shape_id: string;
757
757
  hashed_trip_id: string;
758
- system_status: "waiting" | "processing" | "complete" | "error" | "skipped";
758
+ system_status: "error" | "waiting" | "processing" | "complete" | "skipped";
759
759
  updated_by?: string | undefined;
760
760
  }>[]>;
761
761
  /**
@@ -905,7 +905,7 @@ declare class RidesClass extends MongoCollectionClass<Ride, CreateRideDto, Updat
905
905
  hashed_pattern_id: string;
906
906
  hashed_shape_id: string;
907
907
  hashed_trip_id: string;
908
- system_status: "waiting" | "processing" | "complete" | "error" | "skipped";
908
+ system_status: "error" | "waiting" | "processing" | "complete" | "skipped";
909
909
  updated_by?: string | undefined;
910
910
  }>[]>;
911
911
  protected getCollectionIndexes(): IndexDescription[];
@@ -48,8 +48,6 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
48
48
  __brand: "UnixTimestamp";
49
49
  };
50
50
  name: string;
51
- latitude: number;
52
- longitude: number;
53
51
  short_name: string;
54
52
  associated_patterns: {
55
53
  _id: string;
@@ -59,6 +57,8 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
59
57
  route_id: string;
60
58
  }[];
61
59
  comments: ({
60
+ message: string;
61
+ type: "note";
62
62
  created_at: number & {
63
63
  __brand: "UnixTimestamp";
64
64
  };
@@ -66,11 +66,10 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
66
66
  updated_at: number & {
67
67
  __brand: "UnixTimestamp";
68
68
  };
69
- message: string;
70
- type: "note";
71
69
  _id?: string | undefined;
72
70
  updated_by?: string | undefined;
73
71
  } | {
72
+ type: "field_changed";
74
73
  created_at: number & {
75
74
  __brand: "UnixTimestamp";
76
75
  };
@@ -78,10 +77,11 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
78
77
  updated_at: number & {
79
78
  __brand: "UnixTimestamp";
80
79
  };
81
- type: "field_changed";
82
80
  field: string;
83
81
  _id?: string | undefined;
84
82
  updated_by?: string | undefined;
83
+ curr_value?: any;
84
+ prev_value?: any;
85
85
  metadata?: {
86
86
  changes?: {
87
87
  field: string;
@@ -89,9 +89,8 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
89
89
  prev_value?: any;
90
90
  }[] | undefined;
91
91
  } | null | undefined;
92
- curr_value?: any;
93
- prev_value?: any;
94
92
  } | {
93
+ type: "crud";
95
94
  created_at: number & {
96
95
  __brand: "UnixTimestamp";
97
96
  };
@@ -99,7 +98,6 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
99
98
  updated_at: number & {
100
99
  __brand: "UnixTimestamp";
101
100
  };
102
- type: "crud";
103
101
  action: "create" | "update" | "delete" | "archive" | "restore";
104
102
  _id?: string | undefined;
105
103
  updated_by?: string | undefined;
@@ -118,7 +116,9 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
118
116
  previous_go_id: string | null;
119
117
  tts_name: string;
120
118
  district_id: string;
119
+ latitude: number;
121
120
  locality_id: string | null;
121
+ longitude: number;
122
122
  municipality_id: string;
123
123
  parish_id: string | null;
124
124
  bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
@@ -136,7 +136,7 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
136
136
  last_infrastructure_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
137
137
  last_schedules_check: import("@tmlmobilidade/types").UnixTimestamp | null;
138
138
  last_schedules_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
139
- connections: ("subway" | "train" | "ferry" | "light_rail" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
139
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
140
140
  facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
141
141
  equipment: ("pip" | "mupi" | "mini_pip")[];
142
142
  has_bench: "unknown" | "available" | "unavailable";
@@ -167,8 +167,6 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
167
167
  __brand: "UnixTimestamp";
168
168
  };
169
169
  name: string;
170
- latitude: number;
171
- longitude: number;
172
170
  short_name: string;
173
171
  associated_patterns: {
174
172
  _id: string;
@@ -178,6 +176,8 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
178
176
  route_id: string;
179
177
  }[];
180
178
  comments: ({
179
+ message: string;
180
+ type: "note";
181
181
  created_at: number & {
182
182
  __brand: "UnixTimestamp";
183
183
  };
@@ -185,11 +185,10 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
185
185
  updated_at: number & {
186
186
  __brand: "UnixTimestamp";
187
187
  };
188
- message: string;
189
- type: "note";
190
188
  _id?: string | undefined;
191
189
  updated_by?: string | undefined;
192
190
  } | {
191
+ type: "field_changed";
193
192
  created_at: number & {
194
193
  __brand: "UnixTimestamp";
195
194
  };
@@ -197,10 +196,11 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
197
196
  updated_at: number & {
198
197
  __brand: "UnixTimestamp";
199
198
  };
200
- type: "field_changed";
201
199
  field: string;
202
200
  _id?: string | undefined;
203
201
  updated_by?: string | undefined;
202
+ curr_value?: any;
203
+ prev_value?: any;
204
204
  metadata?: {
205
205
  changes?: {
206
206
  field: string;
@@ -208,9 +208,8 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
208
208
  prev_value?: any;
209
209
  }[] | undefined;
210
210
  } | null | undefined;
211
- curr_value?: any;
212
- prev_value?: any;
213
211
  } | {
212
+ type: "crud";
214
213
  created_at: number & {
215
214
  __brand: "UnixTimestamp";
216
215
  };
@@ -218,7 +217,6 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
218
217
  updated_at: number & {
219
218
  __brand: "UnixTimestamp";
220
219
  };
221
- type: "crud";
222
220
  action: "create" | "update" | "delete" | "archive" | "restore";
223
221
  _id?: string | undefined;
224
222
  updated_by?: string | undefined;
@@ -237,7 +235,9 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
237
235
  previous_go_id: string | null;
238
236
  tts_name: string;
239
237
  district_id: string;
238
+ latitude: number;
240
239
  locality_id: string | null;
240
+ longitude: number;
241
241
  municipality_id: string;
242
242
  parish_id: string | null;
243
243
  bench_status: "unknown" | "not_applicable" | "missing" | "damaged" | "ok";
@@ -255,7 +255,7 @@ declare class StopsClass extends MongoCollectionClass<Stop, CreateStopDto, Updat
255
255
  last_infrastructure_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
256
256
  last_schedules_check: import("@tmlmobilidade/types").UnixTimestamp | null;
257
257
  last_schedules_maintenance: import("@tmlmobilidade/types").UnixTimestamp | null;
258
- connections: ("subway" | "train" | "ferry" | "light_rail" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
258
+ connections: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[];
259
259
  facilities: ("fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "school" | "shopping" | "transit_office" | "university" | "beach")[];
260
260
  equipment: ("pip" | "mupi" | "mini_pip")[];
261
261
  has_bench: "unknown" | "available" | "unavailable";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/interfaces",
3
- "version": "20260610.1429.48",
3
+ "version": "20260611.1337.59",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"
@@ -47,9 +47,9 @@
47
47
  "@tmlmobilidade/utils": "*",
48
48
  "@tmlmobilidade/writers": "*",
49
49
  "bcryptjs": "3.0.3",
50
- "mongodb": "7.2.0",
51
- "oci-common": "2.132.0",
52
- "oci-objectstorage": "2.132.0",
50
+ "mongodb": "7.3.0",
51
+ "oci-common": "2.134.1",
52
+ "oci-objectstorage": "2.134.1",
53
53
  "zod": "3.25.76"
54
54
  },
55
55
  "devDependencies": {