@tmlmobilidade/types 20250909.1538.52 → 20250910.1344.34

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 (35) hide show
  1. package/dist/src/_common/comment.d.ts +20 -12
  2. package/dist/src/_common/comment.js +0 -1
  3. package/dist/src/_common/document.d.ts +14 -8
  4. package/dist/src/_common/document.js +4 -2
  5. package/dist/src/_common/proposed-change.d.ts +37 -19
  6. package/dist/src/agency.d.ts +30 -12
  7. package/dist/src/alert.d.ts +21 -12
  8. package/dist/src/auth/role.d.ts +30 -12
  9. package/dist/src/auth/session.d.ts +30 -12
  10. package/dist/src/auth/user.d.ts +30 -12
  11. package/dist/src/auth/verification-token.d.ts +30 -12
  12. package/dist/src/file.d.ts +23 -23
  13. package/dist/src/organization.d.ts +30 -12
  14. package/dist/src/plans/gtfs-validation.d.ts +30 -12
  15. package/dist/src/plans/plan.d.ts +30 -12
  16. package/dist/src/rides/index.d.ts +2 -1
  17. package/dist/src/rides/index.js +2 -1
  18. package/dist/src/rides/ride-audit.d.ts +219 -0
  19. package/dist/src/rides/ride-audit.js +12 -0
  20. package/dist/src/rides/ride-justification.d.ts +447 -0
  21. package/dist/src/rides/ride-justification.js +43 -0
  22. package/dist/src/rides/ride-overrides.d.ts +9 -0
  23. package/dist/src/rides/ride-overrides.js +6 -0
  24. package/dist/src/rides/ride.d.ts +38 -20
  25. package/dist/src/sams/sam.d.ts +30 -12
  26. package/dist/src/simplified-apex/simplified-apex-location.d.ts +32 -20
  27. package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +32 -20
  28. package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +32 -20
  29. package/dist/src/simplified-apex/simplified-apex-validation.d.ts +32 -20
  30. package/dist/src/stop.d.ts +146 -101
  31. package/dist/src/vehicle-event.d.ts +18 -12
  32. package/dist/src/zone.d.ts +24 -6
  33. package/package.json +1 -1
  34. package/dist/src/rides/ride-annotation.d.ts +0 -579
  35. package/dist/src/rides/ride-annotation.js +0 -34
@@ -10,8 +10,10 @@ export declare const facilitiesSchema: z.ZodEnum<["fire_station", "health_clinic
10
10
  export declare const hasAnySchema: z.ZodEnum<["yes", "no", "unknown"]>;
11
11
  export declare const equipmentSchema: z.ZodEnum<["pip", "mupi", "mini_pip"]>;
12
12
  export declare const StopSchema: z.ZodObject<{
13
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
14
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
13
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
14
+ created_by: z.ZodDefault<z.ZodString>;
15
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
16
+ updated_by: z.ZodDefault<z.ZodString>;
15
17
  } & {
16
18
  _id: z.ZodString;
17
19
  is_archived: z.ZodDefault<z.ZodBoolean>;
@@ -56,32 +58,43 @@ export declare const StopSchema: z.ZodObject<{
56
58
  file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
57
59
  image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
58
60
  comments: z.ZodArray<z.ZodObject<{
59
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
60
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
61
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
62
+ created_by: z.ZodDefault<z.ZodString>;
63
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
64
+ updated_by: z.ZodDefault<z.ZodString>;
61
65
  } & {
62
66
  _id: z.ZodString;
63
67
  text: z.ZodString;
64
- user_id: z.ZodString;
65
68
  }, "strict", z.ZodTypeAny, {
66
69
  _id: string;
67
- text: string;
68
- user_id: string;
69
- created_at?: (number & {
70
+ created_at: number & {
70
71
  __brand: "UnixTimestamp";
71
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
72
- updated_at?: (number & {
72
+ } & z.BRAND<"UnixTimestamp">;
73
+ created_by: string;
74
+ updated_at: number & {
73
75
  __brand: "UnixTimestamp";
74
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
76
+ } & z.BRAND<"UnixTimestamp">;
77
+ updated_by: string;
78
+ text: string;
75
79
  }, {
76
80
  _id: string;
81
+ created_at: number;
82
+ updated_at: number;
77
83
  text: string;
78
- user_id: string;
79
- created_at?: number | null | undefined;
80
- updated_at?: number | null | undefined;
84
+ created_by?: string | undefined;
85
+ updated_by?: string | undefined;
81
86
  }>, "many">;
82
87
  observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
88
  }, "strict", z.ZodTypeAny, {
84
89
  _id: string;
90
+ created_at: number & {
91
+ __brand: "UnixTimestamp";
92
+ } & z.BRAND<"UnixTimestamp">;
93
+ created_by: string;
94
+ updated_at: number & {
95
+ __brand: "UnixTimestamp";
96
+ } & z.BRAND<"UnixTimestamp">;
97
+ updated_by: string;
85
98
  name: string;
86
99
  has_bench: "unknown" | "yes" | "no";
87
100
  has_network_map: "unknown" | "yes" | "no";
@@ -92,16 +105,16 @@ export declare const StopSchema: z.ZodObject<{
92
105
  is_locked: boolean;
93
106
  comments: {
94
107
  _id: string;
95
- text: string;
96
- user_id: string;
97
- created_at?: (number & {
108
+ created_at: number & {
98
109
  __brand: "UnixTimestamp";
99
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
100
- updated_at?: (number & {
110
+ } & z.BRAND<"UnixTimestamp">;
111
+ created_by: string;
112
+ updated_at: number & {
101
113
  __brand: "UnixTimestamp";
102
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
114
+ } & z.BRAND<"UnixTimestamp">;
115
+ updated_by: string;
116
+ text: string;
103
117
  }[];
104
- file_ids: string[];
105
118
  is_archived: boolean;
106
119
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
107
120
  operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
@@ -117,13 +130,8 @@ export declare const StopSchema: z.ZodObject<{
117
130
  facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
118
131
  equipment: ("pip" | "mupi" | "mini_pip")[];
119
132
  has_mupi: "unknown" | "yes" | "no";
133
+ file_ids: string[];
120
134
  image_ids: string[];
121
- created_at?: (number & {
122
- __brand: "UnixTimestamp";
123
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
124
- updated_at?: (number & {
125
- __brand: "UnixTimestamp";
126
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
127
135
  short_name?: string | null | undefined;
128
136
  parish_id?: string | null | undefined;
129
137
  shelter_code?: string | null | undefined;
@@ -153,6 +161,8 @@ export declare const StopSchema: z.ZodObject<{
153
161
  observations?: string | null | undefined;
154
162
  }, {
155
163
  _id: string;
164
+ created_at: number;
165
+ updated_at: number;
156
166
  name: string;
157
167
  has_bench: "unknown" | "yes" | "no";
158
168
  has_network_map: "unknown" | "yes" | "no";
@@ -162,10 +172,11 @@ export declare const StopSchema: z.ZodObject<{
162
172
  municipality_id: string;
163
173
  comments: {
164
174
  _id: string;
175
+ created_at: number;
176
+ updated_at: number;
165
177
  text: string;
166
- user_id: string;
167
- created_at?: number | null | undefined;
168
- updated_at?: number | null | undefined;
178
+ created_by?: string | undefined;
179
+ updated_by?: string | undefined;
169
180
  }[];
170
181
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
171
182
  operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
@@ -181,14 +192,13 @@ export declare const StopSchema: z.ZodObject<{
181
192
  facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
182
193
  equipment: ("pip" | "mupi" | "mini_pip")[];
183
194
  has_mupi: "unknown" | "yes" | "no";
184
- created_at?: number | null | undefined;
185
- updated_at?: number | null | undefined;
195
+ created_by?: string | undefined;
196
+ updated_by?: string | undefined;
186
197
  short_name?: string | null | undefined;
187
198
  parish_id?: string | null | undefined;
188
199
  shelter_code?: string | null | undefined;
189
200
  shelter_maintainer?: string | null | undefined;
190
201
  is_locked?: boolean | undefined;
191
- file_ids?: string[] | undefined;
192
202
  is_archived?: boolean | undefined;
193
203
  legacy_id?: string | null | undefined;
194
204
  new_name?: string | null | undefined;
@@ -202,53 +212,66 @@ export declare const StopSchema: z.ZodObject<{
202
212
  last_infrastructure_maintenance?: number | null | undefined;
203
213
  last_schedules_check?: number | null | undefined;
204
214
  last_schedules_maintenance?: number | null | undefined;
215
+ file_ids?: string[] | undefined;
205
216
  image_ids?: string[] | undefined;
206
217
  observations?: string | null | undefined;
207
218
  }>;
208
219
  export declare const parentStationSchema: z.ZodObject<{
209
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
210
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
220
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
221
+ created_by: z.ZodDefault<z.ZodString>;
222
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
223
+ updated_by: z.ZodDefault<z.ZodString>;
211
224
  } & {
212
225
  _id: z.ZodString;
213
226
  agency_id: z.ZodString;
214
227
  stop_ids: z.ZodArray<z.ZodString, "many">;
215
228
  }, "strict", z.ZodTypeAny, {
216
229
  _id: string;
217
- agency_id: string;
218
- stop_ids: string[];
219
- created_at?: (number & {
230
+ created_at: number & {
220
231
  __brand: "UnixTimestamp";
221
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
222
- updated_at?: (number & {
232
+ } & z.BRAND<"UnixTimestamp">;
233
+ created_by: string;
234
+ updated_at: number & {
223
235
  __brand: "UnixTimestamp";
224
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
236
+ } & z.BRAND<"UnixTimestamp">;
237
+ updated_by: string;
238
+ agency_id: string;
239
+ stop_ids: string[];
225
240
  }, {
226
241
  _id: string;
242
+ created_at: number;
243
+ updated_at: number;
227
244
  agency_id: string;
228
245
  stop_ids: string[];
229
- created_at?: number | null | undefined;
230
- updated_at?: number | null | undefined;
246
+ created_by?: string | undefined;
247
+ updated_by?: string | undefined;
231
248
  }>;
232
249
  export declare const stopAreaSchema: z.ZodObject<{
233
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
234
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
250
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
251
+ created_by: z.ZodDefault<z.ZodString>;
252
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
253
+ updated_by: z.ZodDefault<z.ZodString>;
235
254
  } & {
236
255
  _id: z.ZodString;
237
256
  parent_station_ids: z.ZodArray<z.ZodString, "many">;
238
257
  }, "strict", z.ZodTypeAny, {
239
258
  _id: string;
240
- parent_station_ids: string[];
241
- created_at?: (number & {
259
+ created_at: number & {
242
260
  __brand: "UnixTimestamp";
243
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
244
- updated_at?: (number & {
261
+ } & z.BRAND<"UnixTimestamp">;
262
+ created_by: string;
263
+ updated_at: number & {
245
264
  __brand: "UnixTimestamp";
246
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
265
+ } & z.BRAND<"UnixTimestamp">;
266
+ updated_by: string;
267
+ parent_station_ids: string[];
247
268
  }, {
248
269
  _id: string;
270
+ created_at: number;
271
+ updated_at: number;
249
272
  parent_station_ids: string[];
250
- created_at?: number | null | undefined;
251
- updated_at?: number | null | undefined;
273
+ created_by?: string | undefined;
274
+ updated_by?: string | undefined;
252
275
  }>;
253
276
  export type Jurisdiction = z.infer<typeof jurisdictionSchema>;
254
277
  export type OperationalStatus = z.infer<typeof operationalStatusSchema>;
@@ -259,8 +282,10 @@ export type Connections = z.infer<typeof connectionsSchema>;
259
282
  export type Facilities = z.infer<typeof facilitiesSchema>;
260
283
  export type Equipment = z.infer<typeof equipmentSchema>;
261
284
  export declare const CreateStopSchema: z.ZodObject<Omit<{
262
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
263
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
285
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
286
+ created_by: z.ZodDefault<z.ZodString>;
287
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
288
+ updated_by: z.ZodDefault<z.ZodString>;
264
289
  } & {
265
290
  _id: z.ZodString;
266
291
  is_archived: z.ZodDefault<z.ZodBoolean>;
@@ -305,32 +330,37 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
305
330
  file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
306
331
  image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
307
332
  comments: z.ZodArray<z.ZodObject<{
308
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
309
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
333
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
334
+ created_by: z.ZodDefault<z.ZodString>;
335
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
336
+ updated_by: z.ZodDefault<z.ZodString>;
310
337
  } & {
311
338
  _id: z.ZodString;
312
339
  text: z.ZodString;
313
- user_id: z.ZodString;
314
340
  }, "strict", z.ZodTypeAny, {
315
341
  _id: string;
316
- text: string;
317
- user_id: string;
318
- created_at?: (number & {
342
+ created_at: number & {
319
343
  __brand: "UnixTimestamp";
320
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
321
- updated_at?: (number & {
344
+ } & z.BRAND<"UnixTimestamp">;
345
+ created_by: string;
346
+ updated_at: number & {
322
347
  __brand: "UnixTimestamp";
323
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
348
+ } & z.BRAND<"UnixTimestamp">;
349
+ updated_by: string;
350
+ text: string;
324
351
  }, {
325
352
  _id: string;
353
+ created_at: number;
354
+ updated_at: number;
326
355
  text: string;
327
- user_id: string;
328
- created_at?: number | null | undefined;
329
- updated_at?: number | null | undefined;
356
+ created_by?: string | undefined;
357
+ updated_by?: string | undefined;
330
358
  }>, "many">;
331
359
  observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
360
  }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
333
361
  _id: string;
362
+ created_by: string;
363
+ updated_by: string;
334
364
  name: string;
335
365
  has_bench: "unknown" | "yes" | "no";
336
366
  has_network_map: "unknown" | "yes" | "no";
@@ -341,16 +371,16 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
341
371
  is_locked: boolean;
342
372
  comments: {
343
373
  _id: string;
344
- text: string;
345
- user_id: string;
346
- created_at?: (number & {
374
+ created_at: number & {
347
375
  __brand: "UnixTimestamp";
348
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
349
- updated_at?: (number & {
376
+ } & z.BRAND<"UnixTimestamp">;
377
+ created_by: string;
378
+ updated_at: number & {
350
379
  __brand: "UnixTimestamp";
351
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
380
+ } & z.BRAND<"UnixTimestamp">;
381
+ updated_by: string;
382
+ text: string;
352
383
  }[];
353
- file_ids: string[];
354
384
  is_archived: boolean;
355
385
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
356
386
  operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
@@ -366,6 +396,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
366
396
  facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
367
397
  equipment: ("pip" | "mupi" | "mini_pip")[];
368
398
  has_mupi: "unknown" | "yes" | "no";
399
+ file_ids: string[];
369
400
  image_ids: string[];
370
401
  short_name?: string | null | undefined;
371
402
  parish_id?: string | null | undefined;
@@ -405,10 +436,11 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
405
436
  municipality_id: string;
406
437
  comments: {
407
438
  _id: string;
439
+ created_at: number;
440
+ updated_at: number;
408
441
  text: string;
409
- user_id: string;
410
- created_at?: number | null | undefined;
411
- updated_at?: number | null | undefined;
442
+ created_by?: string | undefined;
443
+ updated_by?: string | undefined;
412
444
  }[];
413
445
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
414
446
  operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
@@ -424,12 +456,13 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
424
456
  facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
425
457
  equipment: ("pip" | "mupi" | "mini_pip")[];
426
458
  has_mupi: "unknown" | "yes" | "no";
459
+ created_by?: string | undefined;
460
+ updated_by?: string | undefined;
427
461
  short_name?: string | null | undefined;
428
462
  parish_id?: string | null | undefined;
429
463
  shelter_code?: string | null | undefined;
430
464
  shelter_maintainer?: string | null | undefined;
431
465
  is_locked?: boolean | undefined;
432
- file_ids?: string[] | undefined;
433
466
  is_archived?: boolean | undefined;
434
467
  legacy_id?: string | null | undefined;
435
468
  new_name?: string | null | undefined;
@@ -443,10 +476,13 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
443
476
  last_infrastructure_maintenance?: number | null | undefined;
444
477
  last_schedules_check?: number | null | undefined;
445
478
  last_schedules_maintenance?: number | null | undefined;
479
+ file_ids?: string[] | undefined;
446
480
  image_ids?: string[] | undefined;
447
481
  observations?: string | null | undefined;
448
482
  }>;
449
483
  export declare const UpdateStopSchema: z.ZodObject<{
484
+ created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
485
+ updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
450
486
  name: z.ZodOptional<z.ZodString>;
451
487
  short_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
452
488
  has_bench: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
@@ -460,30 +496,32 @@ export declare const UpdateStopSchema: z.ZodObject<{
460
496
  shelter_maintainer: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
461
497
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
462
498
  comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
463
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
464
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
499
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
500
+ created_by: z.ZodDefault<z.ZodString>;
501
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
502
+ updated_by: z.ZodDefault<z.ZodString>;
465
503
  } & {
466
504
  _id: z.ZodString;
467
505
  text: z.ZodString;
468
- user_id: z.ZodString;
469
506
  }, "strict", z.ZodTypeAny, {
470
507
  _id: string;
471
- text: string;
472
- user_id: string;
473
- created_at?: (number & {
508
+ created_at: number & {
474
509
  __brand: "UnixTimestamp";
475
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
476
- updated_at?: (number & {
510
+ } & z.BRAND<"UnixTimestamp">;
511
+ created_by: string;
512
+ updated_at: number & {
477
513
  __brand: "UnixTimestamp";
478
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
514
+ } & z.BRAND<"UnixTimestamp">;
515
+ updated_by: string;
516
+ text: string;
479
517
  }, {
480
518
  _id: string;
519
+ created_at: number;
520
+ updated_at: number;
481
521
  text: string;
482
- user_id: string;
483
- created_at?: number | null | undefined;
484
- updated_at?: number | null | undefined;
522
+ created_by?: string | undefined;
523
+ updated_by?: string | undefined;
485
524
  }>, "many">>;
486
- file_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
487
525
  is_archived: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
488
526
  jurisdiction: z.ZodOptional<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
489
527
  legacy_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -511,9 +549,12 @@ export declare const UpdateStopSchema: z.ZodObject<{
511
549
  facilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
512
550
  equipment: z.ZodOptional<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
513
551
  has_mupi: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
552
+ file_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
514
553
  image_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
515
554
  observations: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
516
555
  }, "strict", z.ZodTypeAny, {
556
+ created_by?: string | undefined;
557
+ updated_by?: string | undefined;
517
558
  name?: string | undefined;
518
559
  short_name?: string | null | undefined;
519
560
  has_bench?: "unknown" | "yes" | "no" | undefined;
@@ -528,16 +569,16 @@ export declare const UpdateStopSchema: z.ZodObject<{
528
569
  is_locked?: boolean | undefined;
529
570
  comments?: {
530
571
  _id: string;
531
- text: string;
532
- user_id: string;
533
- created_at?: (number & {
572
+ created_at: number & {
534
573
  __brand: "UnixTimestamp";
535
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
536
- updated_at?: (number & {
574
+ } & z.BRAND<"UnixTimestamp">;
575
+ created_by: string;
576
+ updated_at: number & {
537
577
  __brand: "UnixTimestamp";
538
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
578
+ } & z.BRAND<"UnixTimestamp">;
579
+ updated_by: string;
580
+ text: string;
539
581
  }[] | undefined;
540
- file_ids?: string[] | undefined;
541
582
  is_archived?: boolean | undefined;
542
583
  jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
543
584
  legacy_id?: string | null | undefined;
@@ -575,9 +616,12 @@ export declare const UpdateStopSchema: z.ZodObject<{
575
616
  facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
576
617
  equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
577
618
  has_mupi?: "unknown" | "yes" | "no" | undefined;
619
+ file_ids?: string[] | undefined;
578
620
  image_ids?: string[] | undefined;
579
621
  observations?: string | null | undefined;
580
622
  }, {
623
+ created_by?: string | undefined;
624
+ updated_by?: string | undefined;
581
625
  name?: string | undefined;
582
626
  short_name?: string | null | undefined;
583
627
  has_bench?: "unknown" | "yes" | "no" | undefined;
@@ -592,12 +636,12 @@ export declare const UpdateStopSchema: z.ZodObject<{
592
636
  is_locked?: boolean | undefined;
593
637
  comments?: {
594
638
  _id: string;
639
+ created_at: number;
640
+ updated_at: number;
595
641
  text: string;
596
- user_id: string;
597
- created_at?: number | null | undefined;
598
- updated_at?: number | null | undefined;
642
+ created_by?: string | undefined;
643
+ updated_by?: string | undefined;
599
644
  }[] | undefined;
600
- file_ids?: string[] | undefined;
601
645
  is_archived?: boolean | undefined;
602
646
  jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
603
647
  legacy_id?: string | null | undefined;
@@ -625,6 +669,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
625
669
  facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
626
670
  equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
627
671
  has_mupi?: "unknown" | "yes" | "no" | undefined;
672
+ file_ids?: string[] | undefined;
628
673
  image_ids?: string[] | undefined;
629
674
  observations?: string | null | undefined;
630
675
  }>;
@@ -2,8 +2,10 @@ import { type UnixTimestamp } from './_common/unix-timestamp.js';
2
2
  import { z } from 'zod';
3
3
  export declare const VehicleEventSchema: z.ZodObject<{
4
4
  _id: z.ZodString;
5
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
6
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
5
+ created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
6
+ created_by: z.ZodDefault<z.ZodString>;
7
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
8
+ updated_by: z.ZodDefault<z.ZodString>;
7
9
  } & {
8
10
  agency_id: z.ZodString;
9
11
  driver_id: z.ZodString;
@@ -21,9 +23,17 @@ export declare const VehicleEventSchema: z.ZodObject<{
21
23
  vehicle_id: z.ZodString;
22
24
  }, "strict", z.ZodTypeAny, {
23
25
  _id: string;
26
+ created_at: number & {
27
+ __brand: "UnixTimestamp";
28
+ } & z.BRAND<"UnixTimestamp">;
29
+ created_by: string;
30
+ updated_at: number & {
31
+ __brand: "UnixTimestamp";
32
+ } & z.BRAND<"UnixTimestamp">;
33
+ updated_by: string;
24
34
  agency_id: string;
25
- trip_id: string;
26
35
  pattern_id: string;
36
+ trip_id: string;
27
37
  vehicle_id: string;
28
38
  received_at: number & {
29
39
  __brand: "UnixTimestamp";
@@ -36,18 +46,14 @@ export declare const VehicleEventSchema: z.ZodObject<{
36
46
  odometer: number;
37
47
  trigger_activity: string;
38
48
  trigger_door: string;
39
- created_at?: (number & {
40
- __brand: "UnixTimestamp";
41
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
42
- updated_at?: (number & {
43
- __brand: "UnixTimestamp";
44
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
45
49
  extra_trip_id?: string | null | undefined;
46
50
  }, {
47
51
  _id: string;
52
+ created_at: number;
53
+ updated_at: number;
48
54
  agency_id: string;
49
- trip_id: string;
50
55
  pattern_id: string;
56
+ trip_id: string;
51
57
  vehicle_id: string;
52
58
  received_at: number;
53
59
  stop_id: string;
@@ -58,8 +64,8 @@ export declare const VehicleEventSchema: z.ZodObject<{
58
64
  odometer: number;
59
65
  trigger_activity: string;
60
66
  trigger_door: string;
61
- created_at?: number | null | undefined;
62
- updated_at?: number | null | undefined;
67
+ created_by?: string | undefined;
68
+ updated_by?: string | undefined;
63
69
  extra_trip_id?: string | null | undefined;
64
70
  }>;
65
71
  /**
@@ -2,7 +2,9 @@ import { type GeoJSON } from 'geojson';
2
2
  import { z } from 'zod';
3
3
  export declare const ZoneSchema: z.ZodObject<{
4
4
  _id: z.ZodString;
5
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
5
+ created_by: z.ZodDefault<z.ZodString>;
6
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
7
+ updated_by: z.ZodDefault<z.ZodString>;
6
8
  } & {
7
9
  border_color: z.ZodString;
8
10
  border_opacity: z.ZodNumber;
@@ -18,6 +20,11 @@ export declare const ZoneSchema: z.ZodObject<{
18
20
  _id: string;
19
21
  created_at: Date;
20
22
  code: string;
23
+ created_by: string;
24
+ updated_at: number & {
25
+ __brand: "UnixTimestamp";
26
+ } & z.BRAND<"UnixTimestamp">;
27
+ updated_by: string;
21
28
  name: string;
22
29
  geojson: Record<string, any>;
23
30
  is_locked: boolean;
@@ -26,13 +33,11 @@ export declare const ZoneSchema: z.ZodObject<{
26
33
  border_width: number;
27
34
  fill_color: string;
28
35
  fill_opacity: number;
29
- updated_at?: (number & {
30
- __brand: "UnixTimestamp";
31
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
32
36
  }, {
33
37
  _id: string;
34
38
  created_at: Date;
35
39
  code: string;
40
+ updated_at: number;
36
41
  name: string;
37
42
  geojson: Record<string, any>;
38
43
  is_locked: boolean;
@@ -41,11 +46,14 @@ export declare const ZoneSchema: z.ZodObject<{
41
46
  border_width: number;
42
47
  fill_color: string;
43
48
  fill_opacity: number;
44
- updated_at?: number | null | undefined;
49
+ created_by?: string | undefined;
50
+ updated_by?: string | undefined;
45
51
  }>;
46
52
  export declare const CreateZoneSchema: z.ZodObject<Omit<{
47
53
  _id: z.ZodString;
48
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
54
+ created_by: z.ZodDefault<z.ZodString>;
55
+ updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">;
56
+ updated_by: z.ZodDefault<z.ZodString>;
49
57
  } & {
50
58
  border_color: z.ZodString;
51
59
  border_opacity: z.ZodNumber;
@@ -59,6 +67,8 @@ export declare const CreateZoneSchema: z.ZodObject<Omit<{
59
67
  name: z.ZodString;
60
68
  }, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
61
69
  code: string;
70
+ created_by: string;
71
+ updated_by: string;
62
72
  name: string;
63
73
  geojson: Record<string, any>;
64
74
  is_locked: boolean;
@@ -77,9 +87,13 @@ export declare const CreateZoneSchema: z.ZodObject<Omit<{
77
87
  border_width: number;
78
88
  fill_color: string;
79
89
  fill_opacity: number;
90
+ created_by?: string | undefined;
91
+ updated_by?: string | undefined;
80
92
  }>;
81
93
  export declare const UpdateZoneSchema: z.ZodObject<{
82
94
  code: z.ZodOptional<z.ZodString>;
95
+ created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
96
+ updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
83
97
  name: z.ZodOptional<z.ZodString>;
84
98
  geojson: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
85
99
  is_locked: z.ZodOptional<z.ZodBoolean>;
@@ -90,6 +104,8 @@ export declare const UpdateZoneSchema: z.ZodObject<{
90
104
  fill_opacity: z.ZodOptional<z.ZodNumber>;
91
105
  }, "strict", z.ZodTypeAny, {
92
106
  code?: string | undefined;
107
+ created_by?: string | undefined;
108
+ updated_by?: string | undefined;
93
109
  name?: string | undefined;
94
110
  geojson?: Record<string, any> | undefined;
95
111
  is_locked?: boolean | undefined;
@@ -100,6 +116,8 @@ export declare const UpdateZoneSchema: z.ZodObject<{
100
116
  fill_opacity?: number | undefined;
101
117
  }, {
102
118
  code?: string | undefined;
119
+ created_by?: string | undefined;
120
+ updated_by?: string | undefined;
103
121
  name?: string | undefined;
104
122
  geojson?: Record<string, any> | undefined;
105
123
  is_locked?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20250909.1538.52",
3
+ "version": "20250910.1344.34",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",