@tmlmobilidade/types 20250909.1559.44 → 20250910.1526.7

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 (37) hide show
  1. package/dist/src/_common/comment.d.ts +247 -16
  2. package/dist/src/_common/comment.js +36 -5
  3. package/dist/src/_common/document.d.ts +14 -8
  4. package/dist/src/_common/document.js +5 -3
  5. package/dist/src/_common/proposed-change.d.ts +37 -19
  6. package/dist/src/_common/unix-timestamp.d.ts +1 -1
  7. package/dist/src/_common/unix-timestamp.js +1 -2
  8. package/dist/src/agency.d.ts +30 -12
  9. package/dist/src/alert.d.ts +52 -59
  10. package/dist/src/auth/role.d.ts +30 -12
  11. package/dist/src/auth/session.d.ts +30 -12
  12. package/dist/src/auth/user.d.ts +30 -12
  13. package/dist/src/auth/verification-token.d.ts +30 -12
  14. package/dist/src/file.d.ts +23 -23
  15. package/dist/src/organization.d.ts +30 -12
  16. package/dist/src/plans/gtfs-validation.d.ts +30 -12
  17. package/dist/src/plans/plan.d.ts +30 -12
  18. package/dist/src/rides/index.d.ts +2 -1
  19. package/dist/src/rides/index.js +2 -1
  20. package/dist/src/rides/ride-audit.d.ts +729 -0
  21. package/dist/src/rides/ride-audit.js +12 -0
  22. package/dist/src/rides/ride-justification.d.ts +959 -0
  23. package/dist/src/rides/ride-justification.js +64 -0
  24. package/dist/src/rides/ride-overrides.d.ts +9 -0
  25. package/dist/src/rides/ride-overrides.js +6 -0
  26. package/dist/src/rides/ride.d.ts +38 -20
  27. package/dist/src/sams/sam.d.ts +30 -12
  28. package/dist/src/simplified-apex/simplified-apex-location.d.ts +32 -24
  29. package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +32 -24
  30. package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +32 -24
  31. package/dist/src/simplified-apex/simplified-apex-validation.d.ts +36 -28
  32. package/dist/src/stop.d.ts +713 -188
  33. package/dist/src/vehicle-event.d.ts +18 -12
  34. package/dist/src/zone.d.ts +24 -6
  35. package/package.json +1 -1
  36. package/dist/src/rides/ride-annotation.d.ts +0 -579
  37. package/dist/src/rides/ride-annotation.js +0 -34
@@ -0,0 +1,729 @@
1
+ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
+ import { z } from 'zod';
3
+ export declare const RideAuditSchema: z.ZodObject<{
4
+ _id: z.ZodString;
5
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
6
+ created_by: z.ZodDefault<z.ZodString>;
7
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
8
+ updated_by: z.ZodDefault<z.ZodString>;
9
+ } & {
10
+ comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11
+ _id: z.ZodString;
12
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
13
+ created_by: z.ZodDefault<z.ZodString>;
14
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
15
+ updated_by: z.ZodDefault<z.ZodString>;
16
+ } & {
17
+ message: z.ZodString;
18
+ type: z.ZodLiteral<"note">;
19
+ }, "strip", z.ZodTypeAny, {
20
+ _id: string;
21
+ created_at: number & {
22
+ __brand: "UnixTimestamp";
23
+ };
24
+ created_by: string;
25
+ updated_at: number & {
26
+ __brand: "UnixTimestamp";
27
+ };
28
+ updated_by: string;
29
+ message: string;
30
+ type: "note";
31
+ }, {
32
+ _id: string;
33
+ created_at: number;
34
+ updated_at: number;
35
+ message: string;
36
+ type: "note";
37
+ created_by?: string | undefined;
38
+ updated_by?: string | undefined;
39
+ }>, z.ZodObject<{
40
+ _id: z.ZodString;
41
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
42
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
43
+ } & {
44
+ created_by: z.ZodLiteral<"system">;
45
+ message: z.ZodString;
46
+ type: z.ZodLiteral<"system_info">;
47
+ updated_by: z.ZodLiteral<"system">;
48
+ }, "strip", z.ZodTypeAny, {
49
+ _id: string;
50
+ created_at: number & {
51
+ __brand: "UnixTimestamp";
52
+ };
53
+ created_by: "system";
54
+ updated_at: number & {
55
+ __brand: "UnixTimestamp";
56
+ };
57
+ updated_by: "system";
58
+ message: string;
59
+ type: "system_info";
60
+ }, {
61
+ _id: string;
62
+ created_at: number;
63
+ created_by: "system";
64
+ updated_at: number;
65
+ updated_by: "system";
66
+ message: string;
67
+ type: "system_info";
68
+ }>, z.ZodObject<{
69
+ _id: z.ZodString;
70
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
71
+ created_by: z.ZodDefault<z.ZodString>;
72
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
73
+ updated_by: z.ZodDefault<z.ZodString>;
74
+ } & {
75
+ curr_status: z.ZodString;
76
+ prev_status: z.ZodString;
77
+ type: z.ZodLiteral<"statusChanged">;
78
+ }, "strip", z.ZodTypeAny, {
79
+ _id: string;
80
+ created_at: number & {
81
+ __brand: "UnixTimestamp";
82
+ };
83
+ created_by: string;
84
+ updated_at: number & {
85
+ __brand: "UnixTimestamp";
86
+ };
87
+ updated_by: string;
88
+ type: "statusChanged";
89
+ curr_status: string;
90
+ prev_status: string;
91
+ }, {
92
+ _id: string;
93
+ created_at: number;
94
+ updated_at: number;
95
+ type: "statusChanged";
96
+ curr_status: string;
97
+ prev_status: string;
98
+ created_by?: string | undefined;
99
+ updated_by?: string | undefined;
100
+ }>]>, {
101
+ _id: string;
102
+ created_at: number & {
103
+ __brand: "UnixTimestamp";
104
+ };
105
+ created_by: string;
106
+ updated_at: number & {
107
+ __brand: "UnixTimestamp";
108
+ };
109
+ updated_by: string;
110
+ message: string;
111
+ type: "note";
112
+ } | {
113
+ _id: string;
114
+ created_at: number & {
115
+ __brand: "UnixTimestamp";
116
+ };
117
+ created_by: "system";
118
+ updated_at: number & {
119
+ __brand: "UnixTimestamp";
120
+ };
121
+ updated_by: "system";
122
+ message: string;
123
+ type: "system_info";
124
+ } | {
125
+ _id: string;
126
+ created_at: number & {
127
+ __brand: "UnixTimestamp";
128
+ };
129
+ created_by: string;
130
+ updated_at: number & {
131
+ __brand: "UnixTimestamp";
132
+ };
133
+ updated_by: string;
134
+ type: "statusChanged";
135
+ curr_status: string;
136
+ prev_status: string;
137
+ }, {
138
+ _id: string;
139
+ created_at: number;
140
+ updated_at: number;
141
+ message: string;
142
+ type: "note";
143
+ created_by?: string | undefined;
144
+ updated_by?: string | undefined;
145
+ } | {
146
+ _id: string;
147
+ created_at: number;
148
+ created_by: "system";
149
+ updated_at: number;
150
+ updated_by: "system";
151
+ message: string;
152
+ type: "system_info";
153
+ } | {
154
+ _id: string;
155
+ created_at: number;
156
+ updated_at: number;
157
+ type: "statusChanged";
158
+ curr_status: string;
159
+ prev_status: string;
160
+ created_by?: string | undefined;
161
+ updated_by?: string | undefined;
162
+ }>, "many">>;
163
+ is_locked: z.ZodDefault<z.ZodBoolean>;
164
+ ride_id: z.ZodString;
165
+ }, "strict", z.ZodTypeAny, {
166
+ _id: string;
167
+ created_at: number & {
168
+ __brand: "UnixTimestamp";
169
+ };
170
+ created_by: string;
171
+ updated_at: number & {
172
+ __brand: "UnixTimestamp";
173
+ };
174
+ updated_by: string;
175
+ is_locked: boolean;
176
+ comments: ({
177
+ _id: string;
178
+ created_at: number & {
179
+ __brand: "UnixTimestamp";
180
+ };
181
+ created_by: string;
182
+ updated_at: number & {
183
+ __brand: "UnixTimestamp";
184
+ };
185
+ updated_by: string;
186
+ message: string;
187
+ type: "note";
188
+ } | {
189
+ _id: string;
190
+ created_at: number & {
191
+ __brand: "UnixTimestamp";
192
+ };
193
+ created_by: "system";
194
+ updated_at: number & {
195
+ __brand: "UnixTimestamp";
196
+ };
197
+ updated_by: "system";
198
+ message: string;
199
+ type: "system_info";
200
+ } | {
201
+ _id: string;
202
+ created_at: number & {
203
+ __brand: "UnixTimestamp";
204
+ };
205
+ created_by: string;
206
+ updated_at: number & {
207
+ __brand: "UnixTimestamp";
208
+ };
209
+ updated_by: string;
210
+ type: "statusChanged";
211
+ curr_status: string;
212
+ prev_status: string;
213
+ })[];
214
+ ride_id: string;
215
+ }, {
216
+ _id: string;
217
+ created_at: number;
218
+ updated_at: number;
219
+ ride_id: string;
220
+ created_by?: string | undefined;
221
+ updated_by?: string | undefined;
222
+ is_locked?: boolean | undefined;
223
+ comments?: ({
224
+ _id: string;
225
+ created_at: number;
226
+ updated_at: number;
227
+ message: string;
228
+ type: "note";
229
+ created_by?: string | undefined;
230
+ updated_by?: string | undefined;
231
+ } | {
232
+ _id: string;
233
+ created_at: number;
234
+ created_by: "system";
235
+ updated_at: number;
236
+ updated_by: "system";
237
+ message: string;
238
+ type: "system_info";
239
+ } | {
240
+ _id: string;
241
+ created_at: number;
242
+ updated_at: number;
243
+ type: "statusChanged";
244
+ curr_status: string;
245
+ prev_status: string;
246
+ created_by?: string | undefined;
247
+ updated_by?: string | undefined;
248
+ })[] | undefined;
249
+ }>;
250
+ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
251
+ _id: z.ZodOptional<z.ZodString>;
252
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
253
+ created_by: z.ZodDefault<z.ZodString>;
254
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
255
+ updated_by: z.ZodDefault<z.ZodString>;
256
+ is_locked: z.ZodDefault<z.ZodBoolean>;
257
+ comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
258
+ _id: z.ZodString;
259
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
260
+ created_by: z.ZodDefault<z.ZodString>;
261
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
262
+ updated_by: z.ZodDefault<z.ZodString>;
263
+ } & {
264
+ message: z.ZodString;
265
+ type: z.ZodLiteral<"note">;
266
+ }, "strip", z.ZodTypeAny, {
267
+ _id: string;
268
+ created_at: number & {
269
+ __brand: "UnixTimestamp";
270
+ };
271
+ created_by: string;
272
+ updated_at: number & {
273
+ __brand: "UnixTimestamp";
274
+ };
275
+ updated_by: string;
276
+ message: string;
277
+ type: "note";
278
+ }, {
279
+ _id: string;
280
+ created_at: number;
281
+ updated_at: number;
282
+ message: string;
283
+ type: "note";
284
+ created_by?: string | undefined;
285
+ updated_by?: string | undefined;
286
+ }>, z.ZodObject<{
287
+ _id: z.ZodString;
288
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
289
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
290
+ } & {
291
+ created_by: z.ZodLiteral<"system">;
292
+ message: z.ZodString;
293
+ type: z.ZodLiteral<"system_info">;
294
+ updated_by: z.ZodLiteral<"system">;
295
+ }, "strip", z.ZodTypeAny, {
296
+ _id: string;
297
+ created_at: number & {
298
+ __brand: "UnixTimestamp";
299
+ };
300
+ created_by: "system";
301
+ updated_at: number & {
302
+ __brand: "UnixTimestamp";
303
+ };
304
+ updated_by: "system";
305
+ message: string;
306
+ type: "system_info";
307
+ }, {
308
+ _id: string;
309
+ created_at: number;
310
+ created_by: "system";
311
+ updated_at: number;
312
+ updated_by: "system";
313
+ message: string;
314
+ type: "system_info";
315
+ }>, z.ZodObject<{
316
+ _id: z.ZodString;
317
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
318
+ created_by: z.ZodDefault<z.ZodString>;
319
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
320
+ updated_by: z.ZodDefault<z.ZodString>;
321
+ } & {
322
+ curr_status: z.ZodString;
323
+ prev_status: z.ZodString;
324
+ type: z.ZodLiteral<"statusChanged">;
325
+ }, "strip", z.ZodTypeAny, {
326
+ _id: string;
327
+ created_at: number & {
328
+ __brand: "UnixTimestamp";
329
+ };
330
+ created_by: string;
331
+ updated_at: number & {
332
+ __brand: "UnixTimestamp";
333
+ };
334
+ updated_by: string;
335
+ type: "statusChanged";
336
+ curr_status: string;
337
+ prev_status: string;
338
+ }, {
339
+ _id: string;
340
+ created_at: number;
341
+ updated_at: number;
342
+ type: "statusChanged";
343
+ curr_status: string;
344
+ prev_status: string;
345
+ created_by?: string | undefined;
346
+ updated_by?: string | undefined;
347
+ }>]>, {
348
+ _id: string;
349
+ created_at: number & {
350
+ __brand: "UnixTimestamp";
351
+ };
352
+ created_by: string;
353
+ updated_at: number & {
354
+ __brand: "UnixTimestamp";
355
+ };
356
+ updated_by: string;
357
+ message: string;
358
+ type: "note";
359
+ } | {
360
+ _id: string;
361
+ created_at: number & {
362
+ __brand: "UnixTimestamp";
363
+ };
364
+ created_by: "system";
365
+ updated_at: number & {
366
+ __brand: "UnixTimestamp";
367
+ };
368
+ updated_by: "system";
369
+ message: string;
370
+ type: "system_info";
371
+ } | {
372
+ _id: string;
373
+ created_at: number & {
374
+ __brand: "UnixTimestamp";
375
+ };
376
+ created_by: string;
377
+ updated_at: number & {
378
+ __brand: "UnixTimestamp";
379
+ };
380
+ updated_by: string;
381
+ type: "statusChanged";
382
+ curr_status: string;
383
+ prev_status: string;
384
+ }, {
385
+ _id: string;
386
+ created_at: number;
387
+ updated_at: number;
388
+ message: string;
389
+ type: "note";
390
+ created_by?: string | undefined;
391
+ updated_by?: string | undefined;
392
+ } | {
393
+ _id: string;
394
+ created_at: number;
395
+ created_by: "system";
396
+ updated_at: number;
397
+ updated_by: "system";
398
+ message: string;
399
+ type: "system_info";
400
+ } | {
401
+ _id: string;
402
+ created_at: number;
403
+ updated_at: number;
404
+ type: "statusChanged";
405
+ curr_status: string;
406
+ prev_status: string;
407
+ created_by?: string | undefined;
408
+ updated_by?: string | undefined;
409
+ }>, "many">>;
410
+ ride_id: z.ZodString;
411
+ }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
412
+ created_by: string;
413
+ updated_by: string;
414
+ is_locked: boolean;
415
+ comments: ({
416
+ _id: string;
417
+ created_at: number & {
418
+ __brand: "UnixTimestamp";
419
+ };
420
+ created_by: string;
421
+ updated_at: number & {
422
+ __brand: "UnixTimestamp";
423
+ };
424
+ updated_by: string;
425
+ message: string;
426
+ type: "note";
427
+ } | {
428
+ _id: string;
429
+ created_at: number & {
430
+ __brand: "UnixTimestamp";
431
+ };
432
+ created_by: "system";
433
+ updated_at: number & {
434
+ __brand: "UnixTimestamp";
435
+ };
436
+ updated_by: "system";
437
+ message: string;
438
+ type: "system_info";
439
+ } | {
440
+ _id: string;
441
+ created_at: number & {
442
+ __brand: "UnixTimestamp";
443
+ };
444
+ created_by: string;
445
+ updated_at: number & {
446
+ __brand: "UnixTimestamp";
447
+ };
448
+ updated_by: string;
449
+ type: "statusChanged";
450
+ curr_status: string;
451
+ prev_status: string;
452
+ })[];
453
+ ride_id: string;
454
+ _id?: string | undefined;
455
+ }, {
456
+ ride_id: string;
457
+ _id?: string | undefined;
458
+ created_by?: string | undefined;
459
+ updated_by?: string | undefined;
460
+ is_locked?: boolean | undefined;
461
+ comments?: ({
462
+ _id: string;
463
+ created_at: number;
464
+ updated_at: number;
465
+ message: string;
466
+ type: "note";
467
+ created_by?: string | undefined;
468
+ updated_by?: string | undefined;
469
+ } | {
470
+ _id: string;
471
+ created_at: number;
472
+ created_by: "system";
473
+ updated_at: number;
474
+ updated_by: "system";
475
+ message: string;
476
+ type: "system_info";
477
+ } | {
478
+ _id: string;
479
+ created_at: number;
480
+ updated_at: number;
481
+ type: "statusChanged";
482
+ curr_status: string;
483
+ prev_status: string;
484
+ created_by?: string | undefined;
485
+ updated_by?: string | undefined;
486
+ })[] | undefined;
487
+ }>;
488
+ export declare const UpdateRideAuditSchema: z.ZodObject<{
489
+ _id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
490
+ created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
491
+ updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
492
+ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
493
+ comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
494
+ _id: z.ZodString;
495
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
496
+ created_by: z.ZodDefault<z.ZodString>;
497
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
498
+ updated_by: z.ZodDefault<z.ZodString>;
499
+ } & {
500
+ message: z.ZodString;
501
+ type: z.ZodLiteral<"note">;
502
+ }, "strip", z.ZodTypeAny, {
503
+ _id: string;
504
+ created_at: number & {
505
+ __brand: "UnixTimestamp";
506
+ };
507
+ created_by: string;
508
+ updated_at: number & {
509
+ __brand: "UnixTimestamp";
510
+ };
511
+ updated_by: string;
512
+ message: string;
513
+ type: "note";
514
+ }, {
515
+ _id: string;
516
+ created_at: number;
517
+ updated_at: number;
518
+ message: string;
519
+ type: "note";
520
+ created_by?: string | undefined;
521
+ updated_by?: string | undefined;
522
+ }>, z.ZodObject<{
523
+ _id: z.ZodString;
524
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
525
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
526
+ } & {
527
+ created_by: z.ZodLiteral<"system">;
528
+ message: z.ZodString;
529
+ type: z.ZodLiteral<"system_info">;
530
+ updated_by: z.ZodLiteral<"system">;
531
+ }, "strip", z.ZodTypeAny, {
532
+ _id: string;
533
+ created_at: number & {
534
+ __brand: "UnixTimestamp";
535
+ };
536
+ created_by: "system";
537
+ updated_at: number & {
538
+ __brand: "UnixTimestamp";
539
+ };
540
+ updated_by: "system";
541
+ message: string;
542
+ type: "system_info";
543
+ }, {
544
+ _id: string;
545
+ created_at: number;
546
+ created_by: "system";
547
+ updated_at: number;
548
+ updated_by: "system";
549
+ message: string;
550
+ type: "system_info";
551
+ }>, z.ZodObject<{
552
+ _id: z.ZodString;
553
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
554
+ created_by: z.ZodDefault<z.ZodString>;
555
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
556
+ updated_by: z.ZodDefault<z.ZodString>;
557
+ } & {
558
+ curr_status: z.ZodString;
559
+ prev_status: z.ZodString;
560
+ type: z.ZodLiteral<"statusChanged">;
561
+ }, "strip", z.ZodTypeAny, {
562
+ _id: string;
563
+ created_at: number & {
564
+ __brand: "UnixTimestamp";
565
+ };
566
+ created_by: string;
567
+ updated_at: number & {
568
+ __brand: "UnixTimestamp";
569
+ };
570
+ updated_by: string;
571
+ type: "statusChanged";
572
+ curr_status: string;
573
+ prev_status: string;
574
+ }, {
575
+ _id: string;
576
+ created_at: number;
577
+ updated_at: number;
578
+ type: "statusChanged";
579
+ curr_status: string;
580
+ prev_status: string;
581
+ created_by?: string | undefined;
582
+ updated_by?: string | undefined;
583
+ }>]>, {
584
+ _id: string;
585
+ created_at: number & {
586
+ __brand: "UnixTimestamp";
587
+ };
588
+ created_by: string;
589
+ updated_at: number & {
590
+ __brand: "UnixTimestamp";
591
+ };
592
+ updated_by: string;
593
+ message: string;
594
+ type: "note";
595
+ } | {
596
+ _id: string;
597
+ created_at: number & {
598
+ __brand: "UnixTimestamp";
599
+ };
600
+ created_by: "system";
601
+ updated_at: number & {
602
+ __brand: "UnixTimestamp";
603
+ };
604
+ updated_by: "system";
605
+ message: string;
606
+ type: "system_info";
607
+ } | {
608
+ _id: string;
609
+ created_at: number & {
610
+ __brand: "UnixTimestamp";
611
+ };
612
+ created_by: string;
613
+ updated_at: number & {
614
+ __brand: "UnixTimestamp";
615
+ };
616
+ updated_by: string;
617
+ type: "statusChanged";
618
+ curr_status: string;
619
+ prev_status: string;
620
+ }, {
621
+ _id: string;
622
+ created_at: number;
623
+ updated_at: number;
624
+ message: string;
625
+ type: "note";
626
+ created_by?: string | undefined;
627
+ updated_by?: string | undefined;
628
+ } | {
629
+ _id: string;
630
+ created_at: number;
631
+ created_by: "system";
632
+ updated_at: number;
633
+ updated_by: "system";
634
+ message: string;
635
+ type: "system_info";
636
+ } | {
637
+ _id: string;
638
+ created_at: number;
639
+ updated_at: number;
640
+ type: "statusChanged";
641
+ curr_status: string;
642
+ prev_status: string;
643
+ created_by?: string | undefined;
644
+ updated_by?: string | undefined;
645
+ }>, "many">>>;
646
+ ride_id: z.ZodOptional<z.ZodString>;
647
+ }, "strict", z.ZodTypeAny, {
648
+ _id?: string | undefined;
649
+ created_by?: string | undefined;
650
+ updated_by?: string | undefined;
651
+ is_locked?: boolean | undefined;
652
+ comments?: ({
653
+ _id: string;
654
+ created_at: number & {
655
+ __brand: "UnixTimestamp";
656
+ };
657
+ created_by: string;
658
+ updated_at: number & {
659
+ __brand: "UnixTimestamp";
660
+ };
661
+ updated_by: string;
662
+ message: string;
663
+ type: "note";
664
+ } | {
665
+ _id: string;
666
+ created_at: number & {
667
+ __brand: "UnixTimestamp";
668
+ };
669
+ created_by: "system";
670
+ updated_at: number & {
671
+ __brand: "UnixTimestamp";
672
+ };
673
+ updated_by: "system";
674
+ message: string;
675
+ type: "system_info";
676
+ } | {
677
+ _id: string;
678
+ created_at: number & {
679
+ __brand: "UnixTimestamp";
680
+ };
681
+ created_by: string;
682
+ updated_at: number & {
683
+ __brand: "UnixTimestamp";
684
+ };
685
+ updated_by: string;
686
+ type: "statusChanged";
687
+ curr_status: string;
688
+ prev_status: string;
689
+ })[] | undefined;
690
+ ride_id?: string | undefined;
691
+ }, {
692
+ _id?: string | undefined;
693
+ created_by?: string | undefined;
694
+ updated_by?: string | undefined;
695
+ is_locked?: boolean | undefined;
696
+ comments?: ({
697
+ _id: string;
698
+ created_at: number;
699
+ updated_at: number;
700
+ message: string;
701
+ type: "note";
702
+ created_by?: string | undefined;
703
+ updated_by?: string | undefined;
704
+ } | {
705
+ _id: string;
706
+ created_at: number;
707
+ created_by: "system";
708
+ updated_at: number;
709
+ updated_by: "system";
710
+ message: string;
711
+ type: "system_info";
712
+ } | {
713
+ _id: string;
714
+ created_at: number;
715
+ updated_at: number;
716
+ type: "statusChanged";
717
+ curr_status: string;
718
+ prev_status: string;
719
+ created_by?: string | undefined;
720
+ updated_by?: string | undefined;
721
+ })[] | undefined;
722
+ ride_id?: string | undefined;
723
+ }>;
724
+ export interface RideAudit extends Omit<z.infer<typeof RideAuditSchema>, 'created_at' | 'updated_at'> {
725
+ created_at: UnixTimestamp;
726
+ updated_at: UnixTimestamp;
727
+ }
728
+ export type CreateRideAuditDto = z.infer<typeof CreateRideAuditSchema>;
729
+ export type UpdateRideAuditDto = Partial<CreateRideAuditDto>;