@tmlmobilidade/types 20250910.1344.34 → 20250910.1526.7

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