@tmlmobilidade/types 20250910.1541.13 → 20250911.1034.51

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.
@@ -6,246 +6,16 @@ export declare const RideAuditSchema: z.ZodObject<{
6
6
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
7
7
  updated_by: z.ZodDefault<z.ZodString>;
8
8
  } & {
9
- analysis: z.ZodObject<{
10
- error_message: z.ZodOptional<z.ZodString>;
11
- grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
12
- reason: z.ZodString;
13
- }, "strict", z.ZodTypeAny, {
14
- grade: "error" | "pass" | "fail" | "skip";
15
- reason: string;
16
- error_message?: string | undefined;
17
- }, {
18
- grade: "error" | "pass" | "fail" | "skip";
19
- reason: string;
20
- error_message?: string | undefined;
21
- }>;
22
- is_locked: z.ZodDefault<z.ZodBoolean>;
23
- justification: z.ZodObject<{
9
+ comments: z.ZodArray<z.ZodObject<{
24
10
  _id: z.ZodString;
25
11
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
26
12
  created_by: z.ZodDefault<z.ZodString>;
27
13
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
28
14
  updated_by: z.ZodDefault<z.ZodString>;
29
15
  } & {
30
- acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
31
- comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
32
- _id: z.ZodString;
33
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
34
- created_by: z.ZodDefault<z.ZodString>;
35
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
36
- updated_by: z.ZodDefault<z.ZodString>;
37
- } & {
38
- message: z.ZodString;
39
- type: z.ZodLiteral<"note">;
40
- }, "strip", z.ZodTypeAny, {
41
- _id: string;
42
- created_at: number & {
43
- __brand: "UnixTimestamp";
44
- };
45
- created_by: string;
46
- updated_at: number & {
47
- __brand: "UnixTimestamp";
48
- };
49
- updated_by: string;
50
- message: string;
51
- type: "note";
52
- }, {
53
- _id: string;
54
- created_at: number;
55
- updated_at: number;
56
- message: string;
57
- type: "note";
58
- created_by?: string | undefined;
59
- updated_by?: string | undefined;
60
- }>, z.ZodObject<{
61
- _id: z.ZodString;
62
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
63
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
64
- } & {
65
- created_by: z.ZodLiteral<"system">;
66
- message: z.ZodString;
67
- type: z.ZodLiteral<"system_info">;
68
- updated_by: z.ZodLiteral<"system">;
69
- }, "strip", z.ZodTypeAny, {
70
- _id: string;
71
- created_at: number & {
72
- __brand: "UnixTimestamp";
73
- };
74
- created_by: "system";
75
- updated_at: number & {
76
- __brand: "UnixTimestamp";
77
- };
78
- updated_by: "system";
79
- message: string;
80
- type: "system_info";
81
- }, {
82
- _id: string;
83
- created_at: number;
84
- created_by: "system";
85
- updated_at: number;
86
- updated_by: "system";
87
- message: string;
88
- type: "system_info";
89
- }>, z.ZodObject<{
90
- _id: z.ZodString;
91
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
92
- created_by: z.ZodDefault<z.ZodString>;
93
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
94
- updated_by: z.ZodDefault<z.ZodString>;
95
- } & {
96
- curr_status: z.ZodString;
97
- prev_status: z.ZodString;
98
- type: z.ZodLiteral<"statusChanged">;
99
- }, "strip", z.ZodTypeAny, {
100
- _id: string;
101
- created_at: number & {
102
- __brand: "UnixTimestamp";
103
- };
104
- created_by: string;
105
- updated_at: number & {
106
- __brand: "UnixTimestamp";
107
- };
108
- updated_by: string;
109
- type: "statusChanged";
110
- curr_status: string;
111
- prev_status: string;
112
- }, {
113
- _id: string;
114
- created_at: number;
115
- updated_at: number;
116
- type: "statusChanged";
117
- curr_status: string;
118
- prev_status: string;
119
- created_by?: string | undefined;
120
- updated_by?: string | undefined;
121
- }>]>, {
122
- _id: string;
123
- created_at: number & {
124
- __brand: "UnixTimestamp";
125
- };
126
- created_by: string;
127
- updated_at: number & {
128
- __brand: "UnixTimestamp";
129
- };
130
- updated_by: string;
131
- message: string;
132
- type: "note";
133
- } | {
134
- _id: string;
135
- created_at: number & {
136
- __brand: "UnixTimestamp";
137
- };
138
- created_by: "system";
139
- updated_at: number & {
140
- __brand: "UnixTimestamp";
141
- };
142
- updated_by: "system";
143
- message: string;
144
- type: "system_info";
145
- } | {
146
- _id: string;
147
- created_at: number & {
148
- __brand: "UnixTimestamp";
149
- };
150
- created_by: string;
151
- updated_at: number & {
152
- __brand: "UnixTimestamp";
153
- };
154
- updated_by: string;
155
- type: "statusChanged";
156
- curr_status: string;
157
- prev_status: string;
158
- }, {
159
- _id: string;
160
- created_at: number;
161
- updated_at: number;
162
- message: string;
163
- type: "note";
164
- created_by?: string | undefined;
165
- updated_by?: string | undefined;
166
- } | {
167
- _id: string;
168
- created_at: number;
169
- created_by: "system";
170
- updated_at: number;
171
- updated_by: "system";
172
- message: string;
173
- type: "system_info";
174
- } | {
175
- _id: string;
176
- created_at: number;
177
- updated_at: number;
178
- type: "statusChanged";
179
- curr_status: string;
180
- prev_status: string;
181
- created_by?: string | undefined;
182
- updated_by?: string | undefined;
183
- }>, {
184
- _id: string;
185
- created_at: number & {
186
- __brand: "UnixTimestamp";
187
- };
188
- created_by: string;
189
- updated_at: number & {
190
- __brand: "UnixTimestamp";
191
- };
192
- updated_by: string;
193
- message: string;
194
- type: "note";
195
- } | {
196
- _id: string;
197
- created_at: number & {
198
- __brand: "UnixTimestamp";
199
- };
200
- created_by: "system";
201
- updated_at: number & {
202
- __brand: "UnixTimestamp";
203
- };
204
- updated_by: "system";
205
- message: string;
206
- type: "system_info";
207
- } | {
208
- _id: string;
209
- created_at: number & {
210
- __brand: "UnixTimestamp";
211
- };
212
- created_by: string;
213
- updated_at: number & {
214
- __brand: "UnixTimestamp";
215
- };
216
- updated_by: string;
217
- type: "statusChanged";
218
- curr_status: string;
219
- prev_status: string;
220
- }, {
221
- _id: string;
222
- created_at: number;
223
- updated_at: number;
224
- message: string;
225
- type: "note";
226
- created_by?: string | undefined;
227
- updated_by?: string | undefined;
228
- } | {
229
- _id: string;
230
- created_at: number;
231
- created_by: "system";
232
- updated_at: number;
233
- updated_by: "system";
234
- message: string;
235
- type: "system_info";
236
- } | {
237
- _id: string;
238
- created_at: number;
239
- updated_at: number;
240
- type: "statusChanged";
241
- curr_status: string;
242
- prev_status: string;
243
- created_by?: string | undefined;
244
- updated_by?: string | undefined;
245
- }>, "many">>;
246
- justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
247
- pto_message: z.ZodDefault<z.ZodString>;
248
- }, "strict", z.ZodTypeAny, {
16
+ message: z.ZodString;
17
+ type: z.ZodLiteral<"note">;
18
+ }, "strip", z.ZodTypeAny, {
249
19
  _id: string;
250
20
  created_at: number & {
251
21
  __brand: "UnixTimestamp";
@@ -255,83 +25,18 @@ export declare const RideAuditSchema: z.ZodObject<{
255
25
  __brand: "UnixTimestamp";
256
26
  };
257
27
  updated_by: string;
258
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
259
- comments: ({
260
- _id: string;
261
- created_at: number & {
262
- __brand: "UnixTimestamp";
263
- };
264
- created_by: string;
265
- updated_at: number & {
266
- __brand: "UnixTimestamp";
267
- };
268
- updated_by: string;
269
- message: string;
270
- type: "note";
271
- } | {
272
- _id: string;
273
- created_at: number & {
274
- __brand: "UnixTimestamp";
275
- };
276
- created_by: "system";
277
- updated_at: number & {
278
- __brand: "UnixTimestamp";
279
- };
280
- updated_by: "system";
281
- message: string;
282
- type: "system_info";
283
- } | {
284
- _id: string;
285
- created_at: number & {
286
- __brand: "UnixTimestamp";
287
- };
288
- created_by: string;
289
- updated_at: number & {
290
- __brand: "UnixTimestamp";
291
- };
292
- updated_by: string;
293
- type: "statusChanged";
294
- curr_status: string;
295
- prev_status: string;
296
- })[];
297
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
298
- pto_message: string;
28
+ message: string;
29
+ type: "note";
299
30
  }, {
300
31
  _id: string;
301
32
  created_at: number;
302
33
  updated_at: number;
303
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
304
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
34
+ message: string;
35
+ type: "note";
305
36
  created_by?: string | undefined;
306
37
  updated_by?: string | undefined;
307
- comments?: ({
308
- _id: string;
309
- created_at: number;
310
- updated_at: number;
311
- message: string;
312
- type: "note";
313
- created_by?: string | undefined;
314
- updated_by?: string | undefined;
315
- } | {
316
- _id: string;
317
- created_at: number;
318
- created_by: "system";
319
- updated_at: number;
320
- updated_by: "system";
321
- message: string;
322
- type: "system_info";
323
- } | {
324
- _id: string;
325
- created_at: number;
326
- updated_at: number;
327
- type: "statusChanged";
328
- curr_status: string;
329
- prev_status: string;
330
- created_by?: string | undefined;
331
- updated_by?: string | undefined;
332
- })[] | undefined;
333
- pto_message?: string | undefined;
334
- }>;
38
+ }>, "many">;
39
+ is_locked: z.ZodDefault<z.ZodBoolean>;
335
40
  ride_id: z.ZodString;
336
41
  }, "strict", z.ZodTypeAny, {
337
42
  _id: string;
@@ -344,12 +49,7 @@ export declare const RideAuditSchema: z.ZodObject<{
344
49
  };
345
50
  updated_by: string;
346
51
  is_locked: boolean;
347
- analysis: {
348
- grade: "error" | "pass" | "fail" | "skip";
349
- reason: string;
350
- error_message?: string | undefined;
351
- };
352
- justification: {
52
+ comments: {
353
53
  _id: string;
354
54
  created_at: number & {
355
55
  __brand: "UnixTimestamp";
@@ -359,94 +59,23 @@ export declare const RideAuditSchema: z.ZodObject<{
359
59
  __brand: "UnixTimestamp";
360
60
  };
361
61
  updated_by: string;
362
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
363
- comments: ({
364
- _id: string;
365
- created_at: number & {
366
- __brand: "UnixTimestamp";
367
- };
368
- created_by: string;
369
- updated_at: number & {
370
- __brand: "UnixTimestamp";
371
- };
372
- updated_by: string;
373
- message: string;
374
- type: "note";
375
- } | {
376
- _id: string;
377
- created_at: number & {
378
- __brand: "UnixTimestamp";
379
- };
380
- created_by: "system";
381
- updated_at: number & {
382
- __brand: "UnixTimestamp";
383
- };
384
- updated_by: "system";
385
- message: string;
386
- type: "system_info";
387
- } | {
388
- _id: string;
389
- created_at: number & {
390
- __brand: "UnixTimestamp";
391
- };
392
- created_by: string;
393
- updated_at: number & {
394
- __brand: "UnixTimestamp";
395
- };
396
- updated_by: string;
397
- type: "statusChanged";
398
- curr_status: string;
399
- prev_status: string;
400
- })[];
401
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
402
- pto_message: string;
403
- };
62
+ message: string;
63
+ type: "note";
64
+ }[];
404
65
  ride_id: string;
405
66
  }, {
406
67
  _id: string;
407
68
  created_at: number;
408
69
  updated_at: number;
409
- analysis: {
410
- grade: "error" | "pass" | "fail" | "skip";
411
- reason: string;
412
- error_message?: string | undefined;
413
- };
414
- justification: {
70
+ comments: {
415
71
  _id: string;
416
72
  created_at: number;
417
73
  updated_at: number;
418
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
419
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
74
+ message: string;
75
+ type: "note";
420
76
  created_by?: string | undefined;
421
77
  updated_by?: string | undefined;
422
- comments?: ({
423
- _id: string;
424
- created_at: number;
425
- updated_at: number;
426
- message: string;
427
- type: "note";
428
- created_by?: string | undefined;
429
- updated_by?: string | undefined;
430
- } | {
431
- _id: string;
432
- created_at: number;
433
- created_by: "system";
434
- updated_at: number;
435
- updated_by: "system";
436
- message: string;
437
- type: "system_info";
438
- } | {
439
- _id: string;
440
- created_at: number;
441
- updated_at: number;
442
- type: "statusChanged";
443
- curr_status: string;
444
- prev_status: string;
445
- created_by?: string | undefined;
446
- updated_by?: string | undefined;
447
- })[] | undefined;
448
- pto_message?: string | undefined;
449
- };
78
+ }[];
450
79
  ride_id: string;
451
80
  created_by?: string | undefined;
452
81
  updated_by?: string | undefined;
@@ -459,245 +88,16 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
459
88
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
460
89
  updated_by: z.ZodDefault<z.ZodString>;
461
90
  is_locked: z.ZodDefault<z.ZodBoolean>;
462
- analysis: z.ZodObject<{
463
- error_message: z.ZodOptional<z.ZodString>;
464
- grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
465
- reason: z.ZodString;
466
- }, "strict", z.ZodTypeAny, {
467
- grade: "error" | "pass" | "fail" | "skip";
468
- reason: string;
469
- error_message?: string | undefined;
470
- }, {
471
- grade: "error" | "pass" | "fail" | "skip";
472
- reason: string;
473
- error_message?: string | undefined;
474
- }>;
475
- justification: z.ZodObject<{
91
+ comments: z.ZodArray<z.ZodObject<{
476
92
  _id: z.ZodString;
477
93
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
478
94
  created_by: z.ZodDefault<z.ZodString>;
479
95
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
480
96
  updated_by: z.ZodDefault<z.ZodString>;
481
97
  } & {
482
- acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
483
- comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
484
- _id: z.ZodString;
485
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
486
- created_by: z.ZodDefault<z.ZodString>;
487
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
488
- updated_by: z.ZodDefault<z.ZodString>;
489
- } & {
490
- message: z.ZodString;
491
- type: z.ZodLiteral<"note">;
492
- }, "strip", z.ZodTypeAny, {
493
- _id: string;
494
- created_at: number & {
495
- __brand: "UnixTimestamp";
496
- };
497
- created_by: string;
498
- updated_at: number & {
499
- __brand: "UnixTimestamp";
500
- };
501
- updated_by: string;
502
- message: string;
503
- type: "note";
504
- }, {
505
- _id: string;
506
- created_at: number;
507
- updated_at: number;
508
- message: string;
509
- type: "note";
510
- created_by?: string | undefined;
511
- updated_by?: string | undefined;
512
- }>, z.ZodObject<{
513
- _id: z.ZodString;
514
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
515
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
516
- } & {
517
- created_by: z.ZodLiteral<"system">;
518
- message: z.ZodString;
519
- type: z.ZodLiteral<"system_info">;
520
- updated_by: z.ZodLiteral<"system">;
521
- }, "strip", z.ZodTypeAny, {
522
- _id: string;
523
- created_at: number & {
524
- __brand: "UnixTimestamp";
525
- };
526
- created_by: "system";
527
- updated_at: number & {
528
- __brand: "UnixTimestamp";
529
- };
530
- updated_by: "system";
531
- message: string;
532
- type: "system_info";
533
- }, {
534
- _id: string;
535
- created_at: number;
536
- created_by: "system";
537
- updated_at: number;
538
- updated_by: "system";
539
- message: string;
540
- type: "system_info";
541
- }>, z.ZodObject<{
542
- _id: z.ZodString;
543
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
544
- created_by: z.ZodDefault<z.ZodString>;
545
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
546
- updated_by: z.ZodDefault<z.ZodString>;
547
- } & {
548
- curr_status: z.ZodString;
549
- prev_status: z.ZodString;
550
- type: z.ZodLiteral<"statusChanged">;
551
- }, "strip", z.ZodTypeAny, {
552
- _id: string;
553
- created_at: number & {
554
- __brand: "UnixTimestamp";
555
- };
556
- created_by: string;
557
- updated_at: number & {
558
- __brand: "UnixTimestamp";
559
- };
560
- updated_by: string;
561
- type: "statusChanged";
562
- curr_status: string;
563
- prev_status: string;
564
- }, {
565
- _id: string;
566
- created_at: number;
567
- updated_at: number;
568
- type: "statusChanged";
569
- curr_status: string;
570
- prev_status: string;
571
- created_by?: string | undefined;
572
- updated_by?: string | undefined;
573
- }>]>, {
574
- _id: string;
575
- created_at: number & {
576
- __brand: "UnixTimestamp";
577
- };
578
- created_by: string;
579
- updated_at: number & {
580
- __brand: "UnixTimestamp";
581
- };
582
- updated_by: string;
583
- message: string;
584
- type: "note";
585
- } | {
586
- _id: string;
587
- created_at: number & {
588
- __brand: "UnixTimestamp";
589
- };
590
- created_by: "system";
591
- updated_at: number & {
592
- __brand: "UnixTimestamp";
593
- };
594
- updated_by: "system";
595
- message: string;
596
- type: "system_info";
597
- } | {
598
- _id: string;
599
- created_at: number & {
600
- __brand: "UnixTimestamp";
601
- };
602
- created_by: string;
603
- updated_at: number & {
604
- __brand: "UnixTimestamp";
605
- };
606
- updated_by: string;
607
- type: "statusChanged";
608
- curr_status: string;
609
- prev_status: string;
610
- }, {
611
- _id: string;
612
- created_at: number;
613
- updated_at: number;
614
- message: string;
615
- type: "note";
616
- created_by?: string | undefined;
617
- updated_by?: string | undefined;
618
- } | {
619
- _id: string;
620
- created_at: number;
621
- created_by: "system";
622
- updated_at: number;
623
- updated_by: "system";
624
- message: string;
625
- type: "system_info";
626
- } | {
627
- _id: string;
628
- created_at: number;
629
- updated_at: number;
630
- type: "statusChanged";
631
- curr_status: string;
632
- prev_status: string;
633
- created_by?: string | undefined;
634
- updated_by?: string | undefined;
635
- }>, {
636
- _id: string;
637
- created_at: number & {
638
- __brand: "UnixTimestamp";
639
- };
640
- created_by: string;
641
- updated_at: number & {
642
- __brand: "UnixTimestamp";
643
- };
644
- updated_by: string;
645
- message: string;
646
- type: "note";
647
- } | {
648
- _id: string;
649
- created_at: number & {
650
- __brand: "UnixTimestamp";
651
- };
652
- created_by: "system";
653
- updated_at: number & {
654
- __brand: "UnixTimestamp";
655
- };
656
- updated_by: "system";
657
- message: string;
658
- type: "system_info";
659
- } | {
660
- _id: string;
661
- created_at: number & {
662
- __brand: "UnixTimestamp";
663
- };
664
- created_by: string;
665
- updated_at: number & {
666
- __brand: "UnixTimestamp";
667
- };
668
- updated_by: string;
669
- type: "statusChanged";
670
- curr_status: string;
671
- prev_status: string;
672
- }, {
673
- _id: string;
674
- created_at: number;
675
- updated_at: number;
676
- message: string;
677
- type: "note";
678
- created_by?: string | undefined;
679
- updated_by?: string | undefined;
680
- } | {
681
- _id: string;
682
- created_at: number;
683
- created_by: "system";
684
- updated_at: number;
685
- updated_by: "system";
686
- message: string;
687
- type: "system_info";
688
- } | {
689
- _id: string;
690
- created_at: number;
691
- updated_at: number;
692
- type: "statusChanged";
693
- curr_status: string;
694
- prev_status: string;
695
- created_by?: string | undefined;
696
- updated_by?: string | undefined;
697
- }>, "many">>;
698
- justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
699
- pto_message: z.ZodDefault<z.ZodString>;
700
- }, "strict", z.ZodTypeAny, {
98
+ message: z.ZodString;
99
+ type: z.ZodLiteral<"note">;
100
+ }, "strip", z.ZodTypeAny, {
701
101
  _id: string;
702
102
  created_at: number & {
703
103
  __brand: "UnixTimestamp";
@@ -707,94 +107,23 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
707
107
  __brand: "UnixTimestamp";
708
108
  };
709
109
  updated_by: string;
710
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
711
- comments: ({
712
- _id: string;
713
- created_at: number & {
714
- __brand: "UnixTimestamp";
715
- };
716
- created_by: string;
717
- updated_at: number & {
718
- __brand: "UnixTimestamp";
719
- };
720
- updated_by: string;
721
- message: string;
722
- type: "note";
723
- } | {
724
- _id: string;
725
- created_at: number & {
726
- __brand: "UnixTimestamp";
727
- };
728
- created_by: "system";
729
- updated_at: number & {
730
- __brand: "UnixTimestamp";
731
- };
732
- updated_by: "system";
733
- message: string;
734
- type: "system_info";
735
- } | {
736
- _id: string;
737
- created_at: number & {
738
- __brand: "UnixTimestamp";
739
- };
740
- created_by: string;
741
- updated_at: number & {
742
- __brand: "UnixTimestamp";
743
- };
744
- updated_by: string;
745
- type: "statusChanged";
746
- curr_status: string;
747
- prev_status: string;
748
- })[];
749
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
750
- pto_message: string;
110
+ message: string;
111
+ type: "note";
751
112
  }, {
752
113
  _id: string;
753
114
  created_at: number;
754
115
  updated_at: number;
755
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
756
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
116
+ message: string;
117
+ type: "note";
757
118
  created_by?: string | undefined;
758
119
  updated_by?: string | undefined;
759
- comments?: ({
760
- _id: string;
761
- created_at: number;
762
- updated_at: number;
763
- message: string;
764
- type: "note";
765
- created_by?: string | undefined;
766
- updated_by?: string | undefined;
767
- } | {
768
- _id: string;
769
- created_at: number;
770
- created_by: "system";
771
- updated_at: number;
772
- updated_by: "system";
773
- message: string;
774
- type: "system_info";
775
- } | {
776
- _id: string;
777
- created_at: number;
778
- updated_at: number;
779
- type: "statusChanged";
780
- curr_status: string;
781
- prev_status: string;
782
- created_by?: string | undefined;
783
- updated_by?: string | undefined;
784
- })[] | undefined;
785
- pto_message?: string | undefined;
786
- }>;
120
+ }>, "many">;
787
121
  ride_id: z.ZodString;
788
122
  }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
789
123
  created_by: string;
790
124
  updated_by: string;
791
125
  is_locked: boolean;
792
- analysis: {
793
- grade: "error" | "pass" | "fail" | "skip";
794
- reason: string;
795
- error_message?: string | undefined;
796
- };
797
- justification: {
126
+ comments: {
798
127
  _id: string;
799
128
  created_at: number & {
800
129
  __brand: "UnixTimestamp";
@@ -804,92 +133,21 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
804
133
  __brand: "UnixTimestamp";
805
134
  };
806
135
  updated_by: string;
807
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
808
- comments: ({
809
- _id: string;
810
- created_at: number & {
811
- __brand: "UnixTimestamp";
812
- };
813
- created_by: string;
814
- updated_at: number & {
815
- __brand: "UnixTimestamp";
816
- };
817
- updated_by: string;
818
- message: string;
819
- type: "note";
820
- } | {
821
- _id: string;
822
- created_at: number & {
823
- __brand: "UnixTimestamp";
824
- };
825
- created_by: "system";
826
- updated_at: number & {
827
- __brand: "UnixTimestamp";
828
- };
829
- updated_by: "system";
830
- message: string;
831
- type: "system_info";
832
- } | {
833
- _id: string;
834
- created_at: number & {
835
- __brand: "UnixTimestamp";
836
- };
837
- created_by: string;
838
- updated_at: number & {
839
- __brand: "UnixTimestamp";
840
- };
841
- updated_by: string;
842
- type: "statusChanged";
843
- curr_status: string;
844
- prev_status: string;
845
- })[];
846
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
847
- pto_message: string;
848
- };
136
+ message: string;
137
+ type: "note";
138
+ }[];
849
139
  ride_id: string;
850
140
  _id?: string | undefined;
851
141
  }, {
852
- analysis: {
853
- grade: "error" | "pass" | "fail" | "skip";
854
- reason: string;
855
- error_message?: string | undefined;
856
- };
857
- justification: {
142
+ comments: {
858
143
  _id: string;
859
144
  created_at: number;
860
145
  updated_at: number;
861
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
862
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
146
+ message: string;
147
+ type: "note";
863
148
  created_by?: string | undefined;
864
149
  updated_by?: string | undefined;
865
- comments?: ({
866
- _id: string;
867
- created_at: number;
868
- updated_at: number;
869
- message: string;
870
- type: "note";
871
- created_by?: string | undefined;
872
- updated_by?: string | undefined;
873
- } | {
874
- _id: string;
875
- created_at: number;
876
- created_by: "system";
877
- updated_at: number;
878
- updated_by: "system";
879
- message: string;
880
- type: "system_info";
881
- } | {
882
- _id: string;
883
- created_at: number;
884
- updated_at: number;
885
- type: "statusChanged";
886
- curr_status: string;
887
- prev_status: string;
888
- created_by?: string | undefined;
889
- updated_by?: string | undefined;
890
- })[] | undefined;
891
- pto_message?: string | undefined;
892
- };
150
+ }[];
893
151
  ride_id: string;
894
152
  _id?: string | undefined;
895
153
  created_by?: string | undefined;
@@ -901,245 +159,16 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
901
159
  created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
902
160
  updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
903
161
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
904
- analysis: z.ZodOptional<z.ZodObject<{
905
- error_message: z.ZodOptional<z.ZodString>;
906
- grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
907
- reason: z.ZodString;
908
- }, "strict", z.ZodTypeAny, {
909
- grade: "error" | "pass" | "fail" | "skip";
910
- reason: string;
911
- error_message?: string | undefined;
912
- }, {
913
- grade: "error" | "pass" | "fail" | "skip";
914
- reason: string;
915
- error_message?: string | undefined;
916
- }>>;
917
- justification: z.ZodOptional<z.ZodObject<{
162
+ comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
918
163
  _id: z.ZodString;
919
164
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
920
165
  created_by: z.ZodDefault<z.ZodString>;
921
166
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
922
167
  updated_by: z.ZodDefault<z.ZodString>;
923
168
  } & {
924
- acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
925
- comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
926
- _id: z.ZodString;
927
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
928
- created_by: z.ZodDefault<z.ZodString>;
929
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
930
- updated_by: z.ZodDefault<z.ZodString>;
931
- } & {
932
- message: z.ZodString;
933
- type: z.ZodLiteral<"note">;
934
- }, "strip", z.ZodTypeAny, {
935
- _id: string;
936
- created_at: number & {
937
- __brand: "UnixTimestamp";
938
- };
939
- created_by: string;
940
- updated_at: number & {
941
- __brand: "UnixTimestamp";
942
- };
943
- updated_by: string;
944
- message: string;
945
- type: "note";
946
- }, {
947
- _id: string;
948
- created_at: number;
949
- updated_at: number;
950
- message: string;
951
- type: "note";
952
- created_by?: string | undefined;
953
- updated_by?: string | undefined;
954
- }>, z.ZodObject<{
955
- _id: z.ZodString;
956
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
957
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
958
- } & {
959
- created_by: z.ZodLiteral<"system">;
960
- message: z.ZodString;
961
- type: z.ZodLiteral<"system_info">;
962
- updated_by: z.ZodLiteral<"system">;
963
- }, "strip", z.ZodTypeAny, {
964
- _id: string;
965
- created_at: number & {
966
- __brand: "UnixTimestamp";
967
- };
968
- created_by: "system";
969
- updated_at: number & {
970
- __brand: "UnixTimestamp";
971
- };
972
- updated_by: "system";
973
- message: string;
974
- type: "system_info";
975
- }, {
976
- _id: string;
977
- created_at: number;
978
- created_by: "system";
979
- updated_at: number;
980
- updated_by: "system";
981
- message: string;
982
- type: "system_info";
983
- }>, z.ZodObject<{
984
- _id: z.ZodString;
985
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
986
- created_by: z.ZodDefault<z.ZodString>;
987
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
988
- updated_by: z.ZodDefault<z.ZodString>;
989
- } & {
990
- curr_status: z.ZodString;
991
- prev_status: z.ZodString;
992
- type: z.ZodLiteral<"statusChanged">;
993
- }, "strip", z.ZodTypeAny, {
994
- _id: string;
995
- created_at: number & {
996
- __brand: "UnixTimestamp";
997
- };
998
- created_by: string;
999
- updated_at: number & {
1000
- __brand: "UnixTimestamp";
1001
- };
1002
- updated_by: string;
1003
- type: "statusChanged";
1004
- curr_status: string;
1005
- prev_status: string;
1006
- }, {
1007
- _id: string;
1008
- created_at: number;
1009
- updated_at: number;
1010
- type: "statusChanged";
1011
- curr_status: string;
1012
- prev_status: string;
1013
- created_by?: string | undefined;
1014
- updated_by?: string | undefined;
1015
- }>]>, {
1016
- _id: string;
1017
- created_at: number & {
1018
- __brand: "UnixTimestamp";
1019
- };
1020
- created_by: string;
1021
- updated_at: number & {
1022
- __brand: "UnixTimestamp";
1023
- };
1024
- updated_by: string;
1025
- message: string;
1026
- type: "note";
1027
- } | {
1028
- _id: string;
1029
- created_at: number & {
1030
- __brand: "UnixTimestamp";
1031
- };
1032
- created_by: "system";
1033
- updated_at: number & {
1034
- __brand: "UnixTimestamp";
1035
- };
1036
- updated_by: "system";
1037
- message: string;
1038
- type: "system_info";
1039
- } | {
1040
- _id: string;
1041
- created_at: number & {
1042
- __brand: "UnixTimestamp";
1043
- };
1044
- created_by: string;
1045
- updated_at: number & {
1046
- __brand: "UnixTimestamp";
1047
- };
1048
- updated_by: string;
1049
- type: "statusChanged";
1050
- curr_status: string;
1051
- prev_status: string;
1052
- }, {
1053
- _id: string;
1054
- created_at: number;
1055
- updated_at: number;
1056
- message: string;
1057
- type: "note";
1058
- created_by?: string | undefined;
1059
- updated_by?: string | undefined;
1060
- } | {
1061
- _id: string;
1062
- created_at: number;
1063
- created_by: "system";
1064
- updated_at: number;
1065
- updated_by: "system";
1066
- message: string;
1067
- type: "system_info";
1068
- } | {
1069
- _id: string;
1070
- created_at: number;
1071
- updated_at: number;
1072
- type: "statusChanged";
1073
- curr_status: string;
1074
- prev_status: string;
1075
- created_by?: string | undefined;
1076
- updated_by?: string | undefined;
1077
- }>, {
1078
- _id: string;
1079
- created_at: number & {
1080
- __brand: "UnixTimestamp";
1081
- };
1082
- created_by: string;
1083
- updated_at: number & {
1084
- __brand: "UnixTimestamp";
1085
- };
1086
- updated_by: string;
1087
- message: string;
1088
- type: "note";
1089
- } | {
1090
- _id: string;
1091
- created_at: number & {
1092
- __brand: "UnixTimestamp";
1093
- };
1094
- created_by: "system";
1095
- updated_at: number & {
1096
- __brand: "UnixTimestamp";
1097
- };
1098
- updated_by: "system";
1099
- message: string;
1100
- type: "system_info";
1101
- } | {
1102
- _id: string;
1103
- created_at: number & {
1104
- __brand: "UnixTimestamp";
1105
- };
1106
- created_by: string;
1107
- updated_at: number & {
1108
- __brand: "UnixTimestamp";
1109
- };
1110
- updated_by: string;
1111
- type: "statusChanged";
1112
- curr_status: string;
1113
- prev_status: string;
1114
- }, {
1115
- _id: string;
1116
- created_at: number;
1117
- updated_at: number;
1118
- message: string;
1119
- type: "note";
1120
- created_by?: string | undefined;
1121
- updated_by?: string | undefined;
1122
- } | {
1123
- _id: string;
1124
- created_at: number;
1125
- created_by: "system";
1126
- updated_at: number;
1127
- updated_by: "system";
1128
- message: string;
1129
- type: "system_info";
1130
- } | {
1131
- _id: string;
1132
- created_at: number;
1133
- updated_at: number;
1134
- type: "statusChanged";
1135
- curr_status: string;
1136
- prev_status: string;
1137
- created_by?: string | undefined;
1138
- updated_by?: string | undefined;
1139
- }>, "many">>;
1140
- justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
1141
- pto_message: z.ZodDefault<z.ZodString>;
1142
- }, "strict", z.ZodTypeAny, {
169
+ message: z.ZodString;
170
+ type: z.ZodLiteral<"note">;
171
+ }, "strip", z.ZodTypeAny, {
1143
172
  _id: string;
1144
173
  created_at: number & {
1145
174
  __brand: "UnixTimestamp";
@@ -1149,95 +178,24 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
1149
178
  __brand: "UnixTimestamp";
1150
179
  };
1151
180
  updated_by: string;
1152
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
1153
- comments: ({
1154
- _id: string;
1155
- created_at: number & {
1156
- __brand: "UnixTimestamp";
1157
- };
1158
- created_by: string;
1159
- updated_at: number & {
1160
- __brand: "UnixTimestamp";
1161
- };
1162
- updated_by: string;
1163
- message: string;
1164
- type: "note";
1165
- } | {
1166
- _id: string;
1167
- created_at: number & {
1168
- __brand: "UnixTimestamp";
1169
- };
1170
- created_by: "system";
1171
- updated_at: number & {
1172
- __brand: "UnixTimestamp";
1173
- };
1174
- updated_by: "system";
1175
- message: string;
1176
- type: "system_info";
1177
- } | {
1178
- _id: string;
1179
- created_at: number & {
1180
- __brand: "UnixTimestamp";
1181
- };
1182
- created_by: string;
1183
- updated_at: number & {
1184
- __brand: "UnixTimestamp";
1185
- };
1186
- updated_by: string;
1187
- type: "statusChanged";
1188
- curr_status: string;
1189
- prev_status: string;
1190
- })[];
1191
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
1192
- pto_message: string;
181
+ message: string;
182
+ type: "note";
1193
183
  }, {
1194
184
  _id: string;
1195
185
  created_at: number;
1196
186
  updated_at: number;
1197
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
1198
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
187
+ message: string;
188
+ type: "note";
1199
189
  created_by?: string | undefined;
1200
190
  updated_by?: string | undefined;
1201
- comments?: ({
1202
- _id: string;
1203
- created_at: number;
1204
- updated_at: number;
1205
- message: string;
1206
- type: "note";
1207
- created_by?: string | undefined;
1208
- updated_by?: string | undefined;
1209
- } | {
1210
- _id: string;
1211
- created_at: number;
1212
- created_by: "system";
1213
- updated_at: number;
1214
- updated_by: "system";
1215
- message: string;
1216
- type: "system_info";
1217
- } | {
1218
- _id: string;
1219
- created_at: number;
1220
- updated_at: number;
1221
- type: "statusChanged";
1222
- curr_status: string;
1223
- prev_status: string;
1224
- created_by?: string | undefined;
1225
- updated_by?: string | undefined;
1226
- })[] | undefined;
1227
- pto_message?: string | undefined;
1228
- }>>;
191
+ }>, "many">>;
1229
192
  ride_id: z.ZodOptional<z.ZodString>;
1230
193
  }, "strict", z.ZodTypeAny, {
1231
194
  _id?: string | undefined;
1232
195
  created_by?: string | undefined;
1233
196
  updated_by?: string | undefined;
1234
197
  is_locked?: boolean | undefined;
1235
- analysis?: {
1236
- grade: "error" | "pass" | "fail" | "skip";
1237
- reason: string;
1238
- error_message?: string | undefined;
1239
- } | undefined;
1240
- justification?: {
198
+ comments?: {
1241
199
  _id: string;
1242
200
  created_at: number & {
1243
201
  __brand: "UnixTimestamp";
@@ -1247,95 +205,24 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
1247
205
  __brand: "UnixTimestamp";
1248
206
  };
1249
207
  updated_by: string;
1250
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
1251
- comments: ({
1252
- _id: string;
1253
- created_at: number & {
1254
- __brand: "UnixTimestamp";
1255
- };
1256
- created_by: string;
1257
- updated_at: number & {
1258
- __brand: "UnixTimestamp";
1259
- };
1260
- updated_by: string;
1261
- message: string;
1262
- type: "note";
1263
- } | {
1264
- _id: string;
1265
- created_at: number & {
1266
- __brand: "UnixTimestamp";
1267
- };
1268
- created_by: "system";
1269
- updated_at: number & {
1270
- __brand: "UnixTimestamp";
1271
- };
1272
- updated_by: "system";
1273
- message: string;
1274
- type: "system_info";
1275
- } | {
1276
- _id: string;
1277
- created_at: number & {
1278
- __brand: "UnixTimestamp";
1279
- };
1280
- created_by: string;
1281
- updated_at: number & {
1282
- __brand: "UnixTimestamp";
1283
- };
1284
- updated_by: string;
1285
- type: "statusChanged";
1286
- curr_status: string;
1287
- prev_status: string;
1288
- })[];
1289
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
1290
- pto_message: string;
1291
- } | undefined;
208
+ message: string;
209
+ type: "note";
210
+ }[] | undefined;
1292
211
  ride_id?: string | undefined;
1293
212
  }, {
1294
213
  _id?: string | undefined;
1295
214
  created_by?: string | undefined;
1296
215
  updated_by?: string | undefined;
1297
216
  is_locked?: boolean | undefined;
1298
- analysis?: {
1299
- grade: "error" | "pass" | "fail" | "skip";
1300
- reason: string;
1301
- error_message?: string | undefined;
1302
- } | undefined;
1303
- justification?: {
217
+ comments?: {
1304
218
  _id: string;
1305
219
  created_at: number;
1306
220
  updated_at: number;
1307
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
1308
- justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
221
+ message: string;
222
+ type: "note";
1309
223
  created_by?: string | undefined;
1310
224
  updated_by?: string | undefined;
1311
- comments?: ({
1312
- _id: string;
1313
- created_at: number;
1314
- updated_at: number;
1315
- message: string;
1316
- type: "note";
1317
- created_by?: string | undefined;
1318
- updated_by?: string | undefined;
1319
- } | {
1320
- _id: string;
1321
- created_at: number;
1322
- created_by: "system";
1323
- updated_at: number;
1324
- updated_by: "system";
1325
- message: string;
1326
- type: "system_info";
1327
- } | {
1328
- _id: string;
1329
- created_at: number;
1330
- updated_at: number;
1331
- type: "statusChanged";
1332
- curr_status: string;
1333
- prev_status: string;
1334
- created_by?: string | undefined;
1335
- updated_by?: string | undefined;
1336
- })[] | undefined;
1337
- pto_message?: string | undefined;
1338
- } | undefined;
225
+ }[] | undefined;
1339
226
  ride_id?: string | undefined;
1340
227
  }>;
1341
228
  export type RideAudit = z.infer<typeof RideAuditSchema>;