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