@tmlmobilidade/interfaces 20260126.1852.36 → 20260128.2320.17

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.
Files changed (39) hide show
  1. package/dist/interfaces/agencies/agencies.d.ts +2 -2
  2. package/dist/interfaces/alerts/alerts.d.ts +21 -18
  3. package/dist/interfaces/auth/roles.d.ts +126 -24
  4. package/dist/interfaces/auth/users.d.ts +168 -32
  5. package/dist/interfaces/auth/verification-tokens.d.ts +1 -1
  6. package/dist/interfaces/dates/annotations.d.ts +1 -1
  7. package/dist/interfaces/dates/index.d.ts +1 -0
  8. package/dist/interfaces/dates/index.js +1 -0
  9. package/dist/interfaces/dates/periods.d.ts +38 -0
  10. package/dist/interfaces/dates/periods.js +41 -0
  11. package/dist/interfaces/gtfs-validations/gtfs-validations.d.ts +2 -2
  12. package/dist/interfaces/index.d.ts +3 -0
  13. package/dist/interfaces/index.js +3 -0
  14. package/dist/interfaces/offer/index.d.ts +4 -0
  15. package/dist/interfaces/offer/index.js +4 -0
  16. package/dist/interfaces/offer/lines.d.ts +50 -0
  17. package/dist/interfaces/offer/lines.js +41 -0
  18. package/dist/interfaces/offer/patterns.d.ts +176 -0
  19. package/dist/interfaces/offer/patterns.js +41 -0
  20. package/dist/interfaces/offer/routes.d.ts +45 -0
  21. package/dist/interfaces/offer/routes.js +41 -0
  22. package/dist/interfaces/offer/typologies.d.ts +41 -0
  23. package/dist/interfaces/offer/typologies.js +41 -0
  24. package/dist/interfaces/plans/plans.d.ts +1 -1
  25. package/dist/interfaces/rides/pipelines.d.ts +8 -7
  26. package/dist/interfaces/rides/pipelines.js +56 -25
  27. package/dist/interfaces/rides/rides.d.ts +6 -6
  28. package/dist/interfaces/stops/stops.d.ts +8 -8
  29. package/dist/interfaces/ticketing/fares.d.ts +41 -0
  30. package/dist/interfaces/ticketing/fares.js +41 -0
  31. package/dist/interfaces/ticketing/index.d.ts +1 -0
  32. package/dist/interfaces/ticketing/index.js +1 -0
  33. package/dist/interfaces/vehicles/index.d.ts +1 -0
  34. package/dist/interfaces/vehicles/index.js +1 -0
  35. package/dist/interfaces/vehicles/vehicles.d.ts +16 -0
  36. package/dist/interfaces/vehicles/vehicles.js +34 -0
  37. package/dist/interfaces/zones/zones.d.ts +69 -3
  38. package/dist/providers/storage/storage.factory.js +0 -1
  39. package/package.json +4 -4
@@ -13,6 +13,7 @@ declare class AgenciesClass extends MongoCollectionClass<Agency, CreateAgencyDto
13
13
  created_at: number & {
14
14
  __brand: "UnixTimestamp";
15
15
  };
16
+ created_by: string | null;
16
17
  is_locked: boolean;
17
18
  updated_at: number & {
18
19
  __brand: "UnixTimestamp";
@@ -31,7 +32,6 @@ declare class AgenciesClass extends MongoCollectionClass<Agency, CreateAgencyDto
31
32
  short_name: string;
32
33
  timezone: string;
33
34
  website_url: string;
34
- created_by?: string | undefined;
35
35
  updated_by?: string | undefined;
36
36
  }>>;
37
37
  updateByCode(code: string, fields: Partial<Agency>): Promise<import("mongodb").UpdateResult<{
@@ -39,6 +39,7 @@ declare class AgenciesClass extends MongoCollectionClass<Agency, CreateAgencyDto
39
39
  created_at: number & {
40
40
  __brand: "UnixTimestamp";
41
41
  };
42
+ created_by: string | null;
42
43
  is_locked: boolean;
43
44
  updated_at: number & {
44
45
  __brand: "UnixTimestamp";
@@ -57,7 +58,6 @@ declare class AgenciesClass extends MongoCollectionClass<Agency, CreateAgencyDto
57
58
  short_name: string;
58
59
  timezone: string;
59
60
  website_url: string;
60
- created_by?: string | undefined;
61
61
  updated_by?: string | undefined;
62
62
  }>>;
63
63
  protected getCollectionIndexes(): IndexDescription[];
@@ -18,23 +18,24 @@ declare class AlertsClass extends MongoCollectionClass<Alert, CreateAlertDto, Up
18
18
  updated_at: number & {
19
19
  __brand: "UnixTimestamp";
20
20
  };
21
- type: "PLANNED" | "REALTIME" | null;
21
+ description: string;
22
22
  active_period_end_date: import("@tmlmobilidade/types").UnixTimestamp | null;
23
23
  active_period_start_date: number & {
24
24
  __brand: "UnixTimestamp";
25
25
  };
26
- cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_INCIDENT" | "SYSTEM_FAILURE" | "TRAFFIC_JAM" | "VEHICLE_ISSUE";
26
+ agency_id: string;
27
+ auto_texts: boolean;
28
+ cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER";
27
29
  coordinates: [number, number] | null;
28
- description: string;
29
- effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
30
+ effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
30
31
  external_id: string | null;
31
32
  file_id: string | null;
32
33
  info_url: string | null;
33
34
  municipality_ids: string[];
34
35
  publish_end_date: import("@tmlmobilidade/types").UnixTimestamp | null;
35
36
  publish_start_date: import("@tmlmobilidade/types").UnixTimestamp | null;
36
- publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
37
- reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP" | null;
37
+ publish_status: "published" | "archived" | "draft";
38
+ reference_type: "agency" | "lines" | "stops" | "rides";
38
39
  references: {
39
40
  child_ids: string[];
40
41
  parent_id: string;
@@ -52,23 +53,24 @@ declare class AlertsClass extends MongoCollectionClass<Alert, CreateAlertDto, Up
52
53
  updated_at: number & {
53
54
  __brand: "UnixTimestamp";
54
55
  };
55
- type: "PLANNED" | "REALTIME" | null;
56
+ description: string;
56
57
  active_period_end_date: import("@tmlmobilidade/types").UnixTimestamp | null;
57
58
  active_period_start_date: number & {
58
59
  __brand: "UnixTimestamp";
59
60
  };
60
- cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_INCIDENT" | "SYSTEM_FAILURE" | "TRAFFIC_JAM" | "VEHICLE_ISSUE";
61
+ agency_id: string;
62
+ auto_texts: boolean;
63
+ cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER";
61
64
  coordinates: [number, number] | null;
62
- description: string;
63
- effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
65
+ effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
64
66
  external_id: string | null;
65
67
  file_id: string | null;
66
68
  info_url: string | null;
67
69
  municipality_ids: string[];
68
70
  publish_end_date: import("@tmlmobilidade/types").UnixTimestamp | null;
69
71
  publish_start_date: import("@tmlmobilidade/types").UnixTimestamp | null;
70
- publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
71
- reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP" | null;
72
+ publish_status: "published" | "archived" | "draft";
73
+ reference_type: "agency" | "lines" | "stops" | "rides";
72
74
  references: {
73
75
  child_ids: string[];
74
76
  parent_id: string;
@@ -86,23 +88,24 @@ declare class AlertsClass extends MongoCollectionClass<Alert, CreateAlertDto, Up
86
88
  updated_at: number & {
87
89
  __brand: "UnixTimestamp";
88
90
  };
89
- type: "PLANNED" | "REALTIME" | null;
91
+ description: string;
90
92
  active_period_end_date: import("@tmlmobilidade/types").UnixTimestamp | null;
91
93
  active_period_start_date: number & {
92
94
  __brand: "UnixTimestamp";
93
95
  };
94
- cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_INCIDENT" | "SYSTEM_FAILURE" | "TRAFFIC_JAM" | "VEHICLE_ISSUE";
96
+ agency_id: string;
97
+ auto_texts: boolean;
98
+ cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER";
95
99
  coordinates: [number, number] | null;
96
- description: string;
97
- effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
100
+ effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE";
98
101
  external_id: string | null;
99
102
  file_id: string | null;
100
103
  info_url: string | null;
101
104
  municipality_ids: string[];
102
105
  publish_end_date: import("@tmlmobilidade/types").UnixTimestamp | null;
103
106
  publish_start_date: import("@tmlmobilidade/types").UnixTimestamp | null;
104
- publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
105
- reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP" | null;
107
+ publish_status: "published" | "archived" | "draft";
108
+ reference_type: "agency" | "lines" | "stops" | "rides";
106
109
  references: {
107
110
  child_ids: string[];
108
111
  parent_id: string;
@@ -19,13 +19,11 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
19
19
  scope: "agencies";
20
20
  action: "create" | "update" | "delete" | "read" | "lock";
21
21
  } | {
22
- scope: "alerts_scheduled";
23
- action: "create" | "update" | "delete" | "read" | "lock";
24
- } | {
25
- scope: "alerts_realtime";
26
- action: "create" | "update" | "delete" | "read" | "lock";
22
+ scope: "alerts";
23
+ action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
27
24
  resources: {
28
25
  agency_ids: string[];
26
+ reference_types: string[];
29
27
  };
30
28
  } | {
31
29
  scope: "rides";
@@ -71,8 +69,44 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
71
69
  scope: "users";
72
70
  action: "create" | "update" | "delete" | "read" | "lock";
73
71
  } | {
74
- scope: "dates";
75
- action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
72
+ scope: "vehicles";
73
+ action: "create" | "update" | "delete" | "read" | "lock";
74
+ resources: {
75
+ agency_ids: string[];
76
+ };
77
+ } | {
78
+ scope: "fares";
79
+ action: "create" | "update" | "delete" | "read" | "lock";
80
+ resources: {
81
+ agency_ids: string[];
82
+ };
83
+ } | {
84
+ scope: "annotations";
85
+ action: "create" | "update" | "delete" | "read" | "lock";
86
+ resources: {
87
+ agency_ids: string[];
88
+ };
89
+ } | {
90
+ scope: "periods";
91
+ action: "create" | "update" | "delete" | "read" | "lock";
92
+ resources: {
93
+ agency_ids: string[];
94
+ };
95
+ } | {
96
+ scope: "zones";
97
+ action: "create" | "update" | "delete" | "read" | "lock";
98
+ resources: {
99
+ agency_ids: string[];
100
+ };
101
+ } | {
102
+ scope: "typologies";
103
+ action: "create" | "update" | "delete" | "read" | "lock";
104
+ resources: {
105
+ agency_ids: string[];
106
+ };
107
+ } | {
108
+ scope: "lines";
109
+ action: "create" | "update" | "delete" | "read" | "lock";
76
110
  resources: {
77
111
  agency_ids: string[];
78
112
  };
@@ -80,7 +114,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
80
114
  created_at: number & {
81
115
  __brand: "UnixTimestamp";
82
116
  };
83
- created_by?: string | undefined;
117
+ created_by: string | null;
84
118
  updated_at: number & {
85
119
  __brand: "UnixTimestamp";
86
120
  };
@@ -103,13 +137,11 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
103
137
  scope: "agencies";
104
138
  action: "create" | "update" | "delete" | "read" | "lock";
105
139
  } | {
106
- scope: "alerts_scheduled";
107
- action: "create" | "update" | "delete" | "read" | "lock";
108
- } | {
109
- scope: "alerts_realtime";
110
- action: "create" | "update" | "delete" | "read" | "lock";
140
+ scope: "alerts";
141
+ action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
111
142
  resources: {
112
143
  agency_ids: string[];
144
+ reference_types: string[];
113
145
  };
114
146
  } | {
115
147
  scope: "rides";
@@ -155,8 +187,44 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
155
187
  scope: "users";
156
188
  action: "create" | "update" | "delete" | "read" | "lock";
157
189
  } | {
158
- scope: "dates";
159
- action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
190
+ scope: "vehicles";
191
+ action: "create" | "update" | "delete" | "read" | "lock";
192
+ resources: {
193
+ agency_ids: string[];
194
+ };
195
+ } | {
196
+ scope: "fares";
197
+ action: "create" | "update" | "delete" | "read" | "lock";
198
+ resources: {
199
+ agency_ids: string[];
200
+ };
201
+ } | {
202
+ scope: "annotations";
203
+ action: "create" | "update" | "delete" | "read" | "lock";
204
+ resources: {
205
+ agency_ids: string[];
206
+ };
207
+ } | {
208
+ scope: "periods";
209
+ action: "create" | "update" | "delete" | "read" | "lock";
210
+ resources: {
211
+ agency_ids: string[];
212
+ };
213
+ } | {
214
+ scope: "zones";
215
+ action: "create" | "update" | "delete" | "read" | "lock";
216
+ resources: {
217
+ agency_ids: string[];
218
+ };
219
+ } | {
220
+ scope: "typologies";
221
+ action: "create" | "update" | "delete" | "read" | "lock";
222
+ resources: {
223
+ agency_ids: string[];
224
+ };
225
+ } | {
226
+ scope: "lines";
227
+ action: "create" | "update" | "delete" | "read" | "lock";
160
228
  resources: {
161
229
  agency_ids: string[];
162
230
  };
@@ -164,7 +232,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
164
232
  created_at: number & {
165
233
  __brand: "UnixTimestamp";
166
234
  };
167
- created_by?: string | undefined;
235
+ created_by: string | null;
168
236
  updated_at: number & {
169
237
  __brand: "UnixTimestamp";
170
238
  };
@@ -183,13 +251,11 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
183
251
  scope: "agencies";
184
252
  action: "create" | "update" | "delete" | "read" | "lock";
185
253
  } | {
186
- scope: "alerts_scheduled";
187
- action: "create" | "update" | "delete" | "read" | "lock";
188
- } | {
189
- scope: "alerts_realtime";
190
- action: "create" | "update" | "delete" | "read" | "lock";
254
+ scope: "alerts";
255
+ action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
191
256
  resources: {
192
257
  agency_ids: string[];
258
+ reference_types: string[];
193
259
  };
194
260
  } | {
195
261
  scope: "rides";
@@ -235,8 +301,44 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
235
301
  scope: "users";
236
302
  action: "create" | "update" | "delete" | "read" | "lock";
237
303
  } | {
238
- scope: "dates";
239
- action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
304
+ scope: "vehicles";
305
+ action: "create" | "update" | "delete" | "read" | "lock";
306
+ resources: {
307
+ agency_ids: string[];
308
+ };
309
+ } | {
310
+ scope: "fares";
311
+ action: "create" | "update" | "delete" | "read" | "lock";
312
+ resources: {
313
+ agency_ids: string[];
314
+ };
315
+ } | {
316
+ scope: "annotations";
317
+ action: "create" | "update" | "delete" | "read" | "lock";
318
+ resources: {
319
+ agency_ids: string[];
320
+ };
321
+ } | {
322
+ scope: "periods";
323
+ action: "create" | "update" | "delete" | "read" | "lock";
324
+ resources: {
325
+ agency_ids: string[];
326
+ };
327
+ } | {
328
+ scope: "zones";
329
+ action: "create" | "update" | "delete" | "read" | "lock";
330
+ resources: {
331
+ agency_ids: string[];
332
+ };
333
+ } | {
334
+ scope: "typologies";
335
+ action: "create" | "update" | "delete" | "read" | "lock";
336
+ resources: {
337
+ agency_ids: string[];
338
+ };
339
+ } | {
340
+ scope: "lines";
341
+ action: "create" | "update" | "delete" | "read" | "lock";
240
342
  resources: {
241
343
  agency_ids: string[];
242
344
  };
@@ -244,7 +346,7 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
244
346
  created_at: number & {
245
347
  __brand: "UnixTimestamp";
246
348
  };
247
- created_by?: string | undefined;
349
+ created_by: string | null;
248
350
  updated_at: number & {
249
351
  __brand: "UnixTimestamp";
250
352
  };
@@ -43,13 +43,11 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
43
43
  scope: "agencies";
44
44
  action: "create" | "update" | "delete" | "read" | "lock";
45
45
  } | {
46
- scope: "alerts_scheduled";
47
- action: "create" | "update" | "delete" | "read" | "lock";
48
- } | {
49
- scope: "alerts_realtime";
50
- action: "create" | "update" | "delete" | "read" | "lock";
46
+ scope: "alerts";
47
+ action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
51
48
  resources: {
52
49
  agency_ids: string[];
50
+ reference_types: string[];
53
51
  };
54
52
  } | {
55
53
  scope: "rides";
@@ -95,8 +93,44 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
95
93
  scope: "users";
96
94
  action: "create" | "update" | "delete" | "read" | "lock";
97
95
  } | {
98
- scope: "dates";
99
- action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
96
+ scope: "vehicles";
97
+ action: "create" | "update" | "delete" | "read" | "lock";
98
+ resources: {
99
+ agency_ids: string[];
100
+ };
101
+ } | {
102
+ scope: "fares";
103
+ action: "create" | "update" | "delete" | "read" | "lock";
104
+ resources: {
105
+ agency_ids: string[];
106
+ };
107
+ } | {
108
+ scope: "annotations";
109
+ action: "create" | "update" | "delete" | "read" | "lock";
110
+ resources: {
111
+ agency_ids: string[];
112
+ };
113
+ } | {
114
+ scope: "periods";
115
+ action: "create" | "update" | "delete" | "read" | "lock";
116
+ resources: {
117
+ agency_ids: string[];
118
+ };
119
+ } | {
120
+ scope: "zones";
121
+ action: "create" | "update" | "delete" | "read" | "lock";
122
+ resources: {
123
+ agency_ids: string[];
124
+ };
125
+ } | {
126
+ scope: "typologies";
127
+ action: "create" | "update" | "delete" | "read" | "lock";
128
+ resources: {
129
+ agency_ids: string[];
130
+ };
131
+ } | {
132
+ scope: "lines";
133
+ action: "create" | "update" | "delete" | "read" | "lock";
100
134
  resources: {
101
135
  agency_ids: string[];
102
136
  };
@@ -106,7 +140,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
106
140
  created_at: number & {
107
141
  __brand: "UnixTimestamp";
108
142
  };
109
- created_by?: string | undefined;
143
+ created_by: string | null;
110
144
  updated_at: number & {
111
145
  __brand: "UnixTimestamp";
112
146
  };
@@ -134,13 +168,11 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
134
168
  scope: "agencies";
135
169
  action: "create" | "update" | "delete" | "read" | "lock";
136
170
  } | {
137
- scope: "alerts_scheduled";
138
- action: "create" | "update" | "delete" | "read" | "lock";
139
- } | {
140
- scope: "alerts_realtime";
141
- action: "create" | "update" | "delete" | "read" | "lock";
171
+ scope: "alerts";
172
+ action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
142
173
  resources: {
143
174
  agency_ids: string[];
175
+ reference_types: string[];
144
176
  };
145
177
  } | {
146
178
  scope: "rides";
@@ -186,8 +218,44 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
186
218
  scope: "users";
187
219
  action: "create" | "update" | "delete" | "read" | "lock";
188
220
  } | {
189
- scope: "dates";
190
- action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
221
+ scope: "vehicles";
222
+ action: "create" | "update" | "delete" | "read" | "lock";
223
+ resources: {
224
+ agency_ids: string[];
225
+ };
226
+ } | {
227
+ scope: "fares";
228
+ action: "create" | "update" | "delete" | "read" | "lock";
229
+ resources: {
230
+ agency_ids: string[];
231
+ };
232
+ } | {
233
+ scope: "annotations";
234
+ action: "create" | "update" | "delete" | "read" | "lock";
235
+ resources: {
236
+ agency_ids: string[];
237
+ };
238
+ } | {
239
+ scope: "periods";
240
+ action: "create" | "update" | "delete" | "read" | "lock";
241
+ resources: {
242
+ agency_ids: string[];
243
+ };
244
+ } | {
245
+ scope: "zones";
246
+ action: "create" | "update" | "delete" | "read" | "lock";
247
+ resources: {
248
+ agency_ids: string[];
249
+ };
250
+ } | {
251
+ scope: "typologies";
252
+ action: "create" | "update" | "delete" | "read" | "lock";
253
+ resources: {
254
+ agency_ids: string[];
255
+ };
256
+ } | {
257
+ scope: "lines";
258
+ action: "create" | "update" | "delete" | "read" | "lock";
191
259
  resources: {
192
260
  agency_ids: string[];
193
261
  };
@@ -197,7 +265,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
197
265
  created_at: number & {
198
266
  __brand: "UnixTimestamp";
199
267
  };
200
- created_by?: string | undefined;
268
+ created_by: string | null;
201
269
  updated_at: number & {
202
270
  __brand: "UnixTimestamp";
203
271
  };
@@ -229,13 +297,11 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
229
297
  scope: "agencies";
230
298
  action: "create" | "update" | "delete" | "read" | "lock";
231
299
  } | {
232
- scope: "alerts_scheduled";
233
- action: "create" | "update" | "delete" | "read" | "lock";
234
- } | {
235
- scope: "alerts_realtime";
236
- action: "create" | "update" | "delete" | "read" | "lock";
300
+ scope: "alerts";
301
+ action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
237
302
  resources: {
238
303
  agency_ids: string[];
304
+ reference_types: string[];
239
305
  };
240
306
  } | {
241
307
  scope: "rides";
@@ -281,8 +347,44 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
281
347
  scope: "users";
282
348
  action: "create" | "update" | "delete" | "read" | "lock";
283
349
  } | {
284
- scope: "dates";
285
- action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
350
+ scope: "vehicles";
351
+ action: "create" | "update" | "delete" | "read" | "lock";
352
+ resources: {
353
+ agency_ids: string[];
354
+ };
355
+ } | {
356
+ scope: "fares";
357
+ action: "create" | "update" | "delete" | "read" | "lock";
358
+ resources: {
359
+ agency_ids: string[];
360
+ };
361
+ } | {
362
+ scope: "annotations";
363
+ action: "create" | "update" | "delete" | "read" | "lock";
364
+ resources: {
365
+ agency_ids: string[];
366
+ };
367
+ } | {
368
+ scope: "periods";
369
+ action: "create" | "update" | "delete" | "read" | "lock";
370
+ resources: {
371
+ agency_ids: string[];
372
+ };
373
+ } | {
374
+ scope: "zones";
375
+ action: "create" | "update" | "delete" | "read" | "lock";
376
+ resources: {
377
+ agency_ids: string[];
378
+ };
379
+ } | {
380
+ scope: "typologies";
381
+ action: "create" | "update" | "delete" | "read" | "lock";
382
+ resources: {
383
+ agency_ids: string[];
384
+ };
385
+ } | {
386
+ scope: "lines";
387
+ action: "create" | "update" | "delete" | "read" | "lock";
286
388
  resources: {
287
389
  agency_ids: string[];
288
390
  };
@@ -292,7 +394,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
292
394
  created_at: number & {
293
395
  __brand: "UnixTimestamp";
294
396
  };
295
- created_by?: string | undefined;
397
+ created_by: string | null;
296
398
  updated_at: number & {
297
399
  __brand: "UnixTimestamp";
298
400
  };
@@ -320,13 +422,11 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
320
422
  scope: "agencies";
321
423
  action: "create" | "update" | "delete" | "read" | "lock";
322
424
  } | {
323
- scope: "alerts_scheduled";
324
- action: "create" | "update" | "delete" | "read" | "lock";
325
- } | {
326
- scope: "alerts_realtime";
327
- action: "create" | "update" | "delete" | "read" | "lock";
425
+ scope: "alerts";
426
+ action: "create" | "update" | "delete" | "read" | "lock" | "update_texts" | "update_dates" | "update_publish_status";
328
427
  resources: {
329
428
  agency_ids: string[];
429
+ reference_types: string[];
330
430
  };
331
431
  } | {
332
432
  scope: "rides";
@@ -372,8 +472,44 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
372
472
  scope: "users";
373
473
  action: "create" | "update" | "delete" | "read" | "lock";
374
474
  } | {
375
- scope: "dates";
376
- action: "create_annotations" | "delete_annotations" | "read_annotations" | "update_annotations" | "lock_annotations";
475
+ scope: "vehicles";
476
+ action: "create" | "update" | "delete" | "read" | "lock";
477
+ resources: {
478
+ agency_ids: string[];
479
+ };
480
+ } | {
481
+ scope: "fares";
482
+ action: "create" | "update" | "delete" | "read" | "lock";
483
+ resources: {
484
+ agency_ids: string[];
485
+ };
486
+ } | {
487
+ scope: "annotations";
488
+ action: "create" | "update" | "delete" | "read" | "lock";
489
+ resources: {
490
+ agency_ids: string[];
491
+ };
492
+ } | {
493
+ scope: "periods";
494
+ action: "create" | "update" | "delete" | "read" | "lock";
495
+ resources: {
496
+ agency_ids: string[];
497
+ };
498
+ } | {
499
+ scope: "zones";
500
+ action: "create" | "update" | "delete" | "read" | "lock";
501
+ resources: {
502
+ agency_ids: string[];
503
+ };
504
+ } | {
505
+ scope: "typologies";
506
+ action: "create" | "update" | "delete" | "read" | "lock";
507
+ resources: {
508
+ agency_ids: string[];
509
+ };
510
+ } | {
511
+ scope: "lines";
512
+ action: "create" | "update" | "delete" | "read" | "lock";
377
513
  resources: {
378
514
  agency_ids: string[];
379
515
  };
@@ -383,7 +519,7 @@ declare class UsersClass extends MongoCollectionClass<User_UNSAFE, CreateUserDto
383
519
  created_at: number & {
384
520
  __brand: "UnixTimestamp";
385
521
  };
386
- created_by?: string | undefined;
522
+ created_by: string | null;
387
523
  updated_at: number & {
388
524
  __brand: "UnixTimestamp";
389
525
  };
@@ -18,6 +18,7 @@ declare class VerificationTokensClass extends MongoCollectionClass<VerificationT
18
18
  created_at: number & {
19
19
  __brand: "UnixTimestamp";
20
20
  };
21
+ created_by: string | null;
21
22
  updated_at: number & {
22
23
  __brand: "UnixTimestamp";
23
24
  };
@@ -26,7 +27,6 @@ declare class VerificationTokensClass extends MongoCollectionClass<VerificationT
26
27
  };
27
28
  token: string;
28
29
  user_id: string;
29
- created_by?: string | undefined;
30
30
  updated_by?: string | undefined;
31
31
  }>>;
32
32
  protected getCollectionIndexes(): IndexDescription[];