@tmlmobilidade/types 20250910.1344.34 → 20250910.1538.31

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.
@@ -1,219 +1,1328 @@
1
- import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
1
  import { z } from 'zod';
3
2
  export declare const RideAuditSchema: z.ZodObject<{
4
3
  _id: z.ZodString;
5
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
4
+ created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
6
5
  created_by: z.ZodDefault<z.ZodString>;
7
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
6
+ updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
8
7
  updated_by: z.ZodDefault<z.ZodString>;
9
8
  } & {
10
- comments: z.ZodDefault<z.ZodArray<z.ZodObject<{
11
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
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<{
24
+ _id: z.ZodString;
25
+ created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
12
26
  created_by: z.ZodDefault<z.ZodString>;
13
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
27
+ updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
14
28
  updated_by: z.ZodDefault<z.ZodString>;
15
29
  } & {
16
- _id: z.ZodString;
17
- text: z.ZodString;
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>;
18
247
  }, "strict", z.ZodTypeAny, {
19
248
  _id: string;
20
249
  created_at: number & {
21
250
  __brand: "UnixTimestamp";
22
- } & z.BRAND<"UnixTimestamp">;
251
+ };
23
252
  created_by: string;
24
253
  updated_at: number & {
25
254
  __brand: "UnixTimestamp";
26
- } & z.BRAND<"UnixTimestamp">;
255
+ };
27
256
  updated_by: string;
28
- text: 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;
29
297
  }, {
30
298
  _id: string;
31
299
  created_at: number;
32
300
  updated_at: number;
33
- text: string;
301
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
34
302
  created_by?: string | undefined;
35
303
  updated_by?: string | undefined;
36
- }>, "many">>;
37
- is_locked: z.ZodDefault<z.ZodBoolean>;
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
332
  ride_id: z.ZodString;
39
333
  }, "strict", z.ZodTypeAny, {
40
334
  _id: string;
41
335
  created_at: number & {
42
336
  __brand: "UnixTimestamp";
43
- } & z.BRAND<"UnixTimestamp">;
337
+ };
44
338
  created_by: string;
45
339
  updated_at: number & {
46
340
  __brand: "UnixTimestamp";
47
- } & z.BRAND<"UnixTimestamp">;
341
+ };
48
342
  updated_by: string;
49
343
  is_locked: boolean;
50
- comments: {
344
+ analysis: {
345
+ grade: "error" | "pass" | "fail" | "skip";
346
+ reason: string;
347
+ error_message?: string | undefined;
348
+ };
349
+ justification: {
51
350
  _id: string;
52
351
  created_at: number & {
53
352
  __brand: "UnixTimestamp";
54
- } & z.BRAND<"UnixTimestamp">;
353
+ };
55
354
  created_by: string;
56
355
  updated_at: number & {
57
356
  __brand: "UnixTimestamp";
58
- } & z.BRAND<"UnixTimestamp">;
357
+ };
59
358
  updated_by: string;
60
- text: string;
61
- }[];
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
400
  ride_id: string;
63
401
  }, {
64
402
  _id: string;
65
403
  created_at: number;
66
404
  updated_at: number;
67
- ride_id: string;
68
- created_by?: string | undefined;
69
- updated_by?: string | undefined;
70
- is_locked?: boolean | undefined;
71
- comments?: {
405
+ analysis: {
406
+ grade: "error" | "pass" | "fail" | "skip";
407
+ reason: string;
408
+ error_message?: string | undefined;
409
+ };
410
+ justification: {
72
411
  _id: string;
73
412
  created_at: number;
74
413
  updated_at: number;
75
- text: string;
414
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
76
415
  created_by?: string | undefined;
77
416
  updated_by?: string | undefined;
78
- }[] | 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
+ };
445
+ ride_id: string;
446
+ created_by?: string | undefined;
447
+ updated_by?: string | undefined;
448
+ is_locked?: boolean | undefined;
79
449
  }>;
80
450
  export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
81
451
  _id: z.ZodOptional<z.ZodString>;
82
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
452
+ created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
83
453
  created_by: z.ZodDefault<z.ZodString>;
84
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
454
+ updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
85
455
  updated_by: z.ZodDefault<z.ZodString>;
86
456
  is_locked: z.ZodDefault<z.ZodBoolean>;
87
- comments: z.ZodDefault<z.ZodArray<z.ZodObject<{
88
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
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<{
471
+ _id: z.ZodString;
472
+ created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
89
473
  created_by: z.ZodDefault<z.ZodString>;
90
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
474
+ updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
91
475
  updated_by: z.ZodDefault<z.ZodString>;
92
476
  } & {
93
- _id: z.ZodString;
94
- text: z.ZodString;
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>;
95
694
  }, "strict", z.ZodTypeAny, {
96
695
  _id: string;
97
696
  created_at: number & {
98
697
  __brand: "UnixTimestamp";
99
- } & z.BRAND<"UnixTimestamp">;
698
+ };
100
699
  created_by: string;
101
700
  updated_at: number & {
102
701
  __brand: "UnixTimestamp";
103
- } & z.BRAND<"UnixTimestamp">;
702
+ };
104
703
  updated_by: string;
105
- text: 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;
106
744
  }, {
107
745
  _id: string;
108
746
  created_at: number;
109
747
  updated_at: number;
110
- text: string;
748
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
111
749
  created_by?: string | undefined;
112
750
  updated_by?: string | undefined;
113
- }>, "many">>;
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
+ }>;
114
779
  ride_id: z.ZodString;
115
780
  }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
116
781
  created_by: string;
117
782
  updated_by: string;
118
783
  is_locked: boolean;
119
- comments: {
784
+ analysis: {
785
+ grade: "error" | "pass" | "fail" | "skip";
786
+ reason: string;
787
+ error_message?: string | undefined;
788
+ };
789
+ justification: {
120
790
  _id: string;
121
791
  created_at: number & {
122
792
  __brand: "UnixTimestamp";
123
- } & z.BRAND<"UnixTimestamp">;
793
+ };
124
794
  created_by: string;
125
795
  updated_at: number & {
126
796
  __brand: "UnixTimestamp";
127
- } & z.BRAND<"UnixTimestamp">;
797
+ };
128
798
  updated_by: string;
129
- text: string;
130
- }[];
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
+ };
131
840
  ride_id: string;
132
841
  _id?: string | undefined;
133
842
  }, {
134
- ride_id: string;
135
- _id?: string | undefined;
136
- created_by?: string | undefined;
137
- updated_by?: string | undefined;
138
- is_locked?: boolean | undefined;
139
- comments?: {
843
+ analysis: {
844
+ grade: "error" | "pass" | "fail" | "skip";
845
+ reason: string;
846
+ error_message?: string | undefined;
847
+ };
848
+ justification: {
140
849
  _id: string;
141
850
  created_at: number;
142
851
  updated_at: number;
143
- text: string;
852
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
144
853
  created_by?: string | undefined;
145
854
  updated_by?: string | undefined;
146
- }[] | 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
+ };
883
+ ride_id: string;
884
+ _id?: string | undefined;
885
+ created_by?: string | undefined;
886
+ updated_by?: string | undefined;
887
+ is_locked?: boolean | undefined;
147
888
  }>;
148
889
  export declare const UpdateRideAuditSchema: z.ZodObject<{
149
890
  _id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
150
891
  created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
151
892
  updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
152
893
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
153
- comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
154
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
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<{
908
+ _id: z.ZodString;
909
+ created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
155
910
  created_by: z.ZodDefault<z.ZodString>;
156
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
911
+ updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
157
912
  updated_by: z.ZodDefault<z.ZodString>;
158
913
  } & {
159
- _id: z.ZodString;
160
- text: z.ZodString;
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>;
161
1131
  }, "strict", z.ZodTypeAny, {
162
1132
  _id: string;
163
1133
  created_at: number & {
164
1134
  __brand: "UnixTimestamp";
165
- } & z.BRAND<"UnixTimestamp">;
1135
+ };
166
1136
  created_by: string;
167
1137
  updated_at: number & {
168
1138
  __brand: "UnixTimestamp";
169
- } & z.BRAND<"UnixTimestamp">;
1139
+ };
170
1140
  updated_by: string;
171
- text: 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;
172
1181
  }, {
173
1182
  _id: string;
174
1183
  created_at: number;
175
1184
  updated_at: number;
176
- text: string;
1185
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
177
1186
  created_by?: string | undefined;
178
1187
  updated_by?: string | undefined;
179
- }>, "many">>>;
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
+ }>>;
180
1216
  ride_id: z.ZodOptional<z.ZodString>;
181
1217
  }, "strict", z.ZodTypeAny, {
182
1218
  _id?: string | undefined;
183
1219
  created_by?: string | undefined;
184
1220
  updated_by?: string | undefined;
185
1221
  is_locked?: boolean | undefined;
186
- comments?: {
1222
+ analysis?: {
1223
+ grade: "error" | "pass" | "fail" | "skip";
1224
+ reason: string;
1225
+ error_message?: string | undefined;
1226
+ } | undefined;
1227
+ justification?: {
187
1228
  _id: string;
188
1229
  created_at: number & {
189
1230
  __brand: "UnixTimestamp";
190
- } & z.BRAND<"UnixTimestamp">;
1231
+ };
191
1232
  created_by: string;
192
1233
  updated_at: number & {
193
1234
  __brand: "UnixTimestamp";
194
- } & z.BRAND<"UnixTimestamp">;
1235
+ };
195
1236
  updated_by: string;
196
- text: string;
197
- }[] | undefined;
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;
198
1278
  ride_id?: string | undefined;
199
1279
  }, {
200
1280
  _id?: string | undefined;
201
1281
  created_by?: string | undefined;
202
1282
  updated_by?: string | undefined;
203
1283
  is_locked?: boolean | undefined;
204
- comments?: {
1284
+ analysis?: {
1285
+ grade: "error" | "pass" | "fail" | "skip";
1286
+ reason: string;
1287
+ error_message?: string | undefined;
1288
+ } | undefined;
1289
+ justification?: {
205
1290
  _id: string;
206
1291
  created_at: number;
207
1292
  updated_at: number;
208
- text: string;
1293
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
209
1294
  created_by?: string | undefined;
210
1295
  updated_by?: string | undefined;
211
- }[] | 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;
212
1324
  ride_id?: string | undefined;
213
1325
  }>;
214
- export interface RideAudit extends Omit<z.infer<typeof RideAuditSchema>, 'created_at' | 'updated_at'> {
215
- created_at: UnixTimestamp;
216
- updated_at: UnixTimestamp;
217
- }
1326
+ export type RideAudit = z.infer<typeof RideAuditSchema>;
218
1327
  export type CreateRideAuditDto = z.infer<typeof CreateRideAuditSchema>;
219
- export type UpdateRideAuditDto = Partial<CreateRideAuditDto>;
1328
+ export type UpdateRideAuditDto = z.infer<typeof UpdateRideAuditSchema>;