@tmlmobilidade/types 20250917.1116.49 → 20250917.1256.45

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.
@@ -62,16 +62,14 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
62
62
  reason: string;
63
63
  }>>;
64
64
  comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
65
- _id: z.ZodString;
65
+ _id: z.ZodOptional<z.ZodString>;
66
66
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
67
67
  created_by: z.ZodOptional<z.ZodString>;
68
68
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
69
69
  updated_by: z.ZodOptional<z.ZodString>;
70
- } & {
71
70
  message: z.ZodString;
72
71
  type: z.ZodLiteral<"note">;
73
72
  }, "strip", z.ZodTypeAny, {
74
- _id: string;
75
73
  created_at: number & {
76
74
  __brand: "UnixTimestamp";
77
75
  };
@@ -80,30 +78,29 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
80
78
  };
81
79
  message: string;
82
80
  type: "note";
81
+ _id?: string | undefined;
83
82
  created_by?: string | undefined;
84
83
  updated_by?: string | undefined;
85
84
  }, {
86
- _id: string;
87
85
  created_at: number;
88
86
  updated_at: number;
89
87
  message: string;
90
88
  type: "note";
89
+ _id?: string | undefined;
91
90
  created_by?: string | undefined;
92
91
  updated_by?: string | undefined;
93
92
  }>, z.ZodObject<{
94
- _id: z.ZodString;
93
+ _id: z.ZodOptional<z.ZodString>;
95
94
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
96
95
  created_by: z.ZodOptional<z.ZodString>;
97
96
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
98
97
  updated_by: z.ZodOptional<z.ZodString>;
99
- } & {
98
+ type: z.ZodLiteral<"field_changed">;
100
99
  curr_value: z.ZodAny;
101
100
  field: z.ZodString;
102
101
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
103
102
  prev_value: z.ZodAny;
104
- type: z.ZodLiteral<"field_changed">;
105
103
  }, "strip", z.ZodTypeAny, {
106
- _id: string;
107
104
  created_at: number & {
108
105
  __brand: "UnixTimestamp";
109
106
  };
@@ -112,24 +109,52 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
112
109
  };
113
110
  type: "field_changed";
114
111
  field: string;
112
+ _id?: string | undefined;
115
113
  created_by?: string | undefined;
116
114
  updated_by?: string | undefined;
117
115
  curr_value?: any;
118
116
  metadata?: Record<string, unknown> | null | undefined;
119
117
  prev_value?: any;
120
118
  }, {
121
- _id: string;
122
119
  created_at: number;
123
120
  updated_at: number;
124
121
  type: "field_changed";
125
122
  field: string;
123
+ _id?: string | undefined;
126
124
  created_by?: string | undefined;
127
125
  updated_by?: string | undefined;
128
126
  curr_value?: any;
129
127
  metadata?: Record<string, unknown> | null | undefined;
130
128
  prev_value?: any;
129
+ }>, z.ZodObject<{
130
+ _id: z.ZodOptional<z.ZodString>;
131
+ created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
132
+ created_by: z.ZodOptional<z.ZodString>;
133
+ updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
134
+ updated_by: z.ZodOptional<z.ZodString>;
135
+ type: z.ZodLiteral<"crud">;
136
+ action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ created_at: number & {
139
+ __brand: "UnixTimestamp";
140
+ };
141
+ updated_at: number & {
142
+ __brand: "UnixTimestamp";
143
+ };
144
+ type: "crud";
145
+ action: "create" | "update" | "delete" | "archived" | "restored";
146
+ _id?: string | undefined;
147
+ created_by?: string | undefined;
148
+ updated_by?: string | undefined;
149
+ }, {
150
+ created_at: number;
151
+ updated_at: number;
152
+ type: "crud";
153
+ action: "create" | "update" | "delete" | "archived" | "restored";
154
+ _id?: string | undefined;
155
+ created_by?: string | undefined;
156
+ updated_by?: string | undefined;
131
157
  }>]>, {
132
- _id: string;
133
158
  created_at: number & {
134
159
  __brand: "UnixTimestamp";
135
160
  };
@@ -138,10 +163,10 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
138
163
  };
139
164
  message: string;
140
165
  type: "note";
166
+ _id?: string | undefined;
141
167
  created_by?: string | undefined;
142
168
  updated_by?: string | undefined;
143
169
  } | {
144
- _id: string;
145
170
  created_at: number & {
146
171
  __brand: "UnixTimestamp";
147
172
  };
@@ -150,30 +175,51 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
150
175
  };
151
176
  type: "field_changed";
152
177
  field: string;
178
+ _id?: string | undefined;
153
179
  created_by?: string | undefined;
154
180
  updated_by?: string | undefined;
155
181
  curr_value?: any;
156
182
  metadata?: Record<string, unknown> | null | undefined;
157
183
  prev_value?: any;
184
+ } | {
185
+ created_at: number & {
186
+ __brand: "UnixTimestamp";
187
+ };
188
+ updated_at: number & {
189
+ __brand: "UnixTimestamp";
190
+ };
191
+ type: "crud";
192
+ action: "create" | "update" | "delete" | "archived" | "restored";
193
+ _id?: string | undefined;
194
+ created_by?: string | undefined;
195
+ updated_by?: string | undefined;
158
196
  }, {
159
- _id: string;
160
197
  created_at: number;
161
198
  updated_at: number;
162
199
  message: string;
163
200
  type: "note";
201
+ _id?: string | undefined;
164
202
  created_by?: string | undefined;
165
203
  updated_by?: string | undefined;
166
204
  } | {
167
- _id: string;
168
205
  created_at: number;
169
206
  updated_at: number;
170
207
  type: "field_changed";
171
208
  field: string;
209
+ _id?: string | undefined;
172
210
  created_by?: string | undefined;
173
211
  updated_by?: string | undefined;
174
212
  curr_value?: any;
175
213
  metadata?: Record<string, unknown> | null | undefined;
176
214
  prev_value?: any;
215
+ } | {
216
+ created_at: number;
217
+ updated_at: number;
218
+ type: "crud";
219
+ action: "create" | "update" | "delete" | "archived" | "restored";
220
+ _id?: string | undefined;
221
+ created_by?: string | undefined;
222
+ updated_by?: string | undefined;
177
223
  }>, "many">>;
178
224
  is_locked: z.ZodDefault<z.ZodBoolean>;
179
225
  justification: z.ZodNullable<z.ZodObject<Omit<{
@@ -223,7 +269,6 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
223
269
  reason: string;
224
270
  }>;
225
271
  comments: ({
226
- _id: string;
227
272
  created_at: number & {
228
273
  __brand: "UnixTimestamp";
229
274
  };
@@ -232,10 +277,10 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
232
277
  };
233
278
  message: string;
234
279
  type: "note";
280
+ _id?: string | undefined;
235
281
  created_by?: string | undefined;
236
282
  updated_by?: string | undefined;
237
283
  } | {
238
- _id: string;
239
284
  created_at: number & {
240
285
  __brand: "UnixTimestamp";
241
286
  };
@@ -244,11 +289,24 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
244
289
  };
245
290
  type: "field_changed";
246
291
  field: string;
292
+ _id?: string | undefined;
247
293
  created_by?: string | undefined;
248
294
  updated_by?: string | undefined;
249
295
  curr_value?: any;
250
296
  metadata?: Record<string, unknown> | null | undefined;
251
297
  prev_value?: any;
298
+ } | {
299
+ created_at: number & {
300
+ __brand: "UnixTimestamp";
301
+ };
302
+ updated_at: number & {
303
+ __brand: "UnixTimestamp";
304
+ };
305
+ type: "crud";
306
+ action: "create" | "update" | "delete" | "archived" | "restored";
307
+ _id?: string | undefined;
308
+ created_by?: string | undefined;
309
+ updated_by?: string | undefined;
252
310
  })[];
253
311
  justification: {
254
312
  created_at: number & {
@@ -289,24 +347,32 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
289
347
  updated_by?: string | undefined;
290
348
  is_locked?: boolean | undefined;
291
349
  comments?: ({
292
- _id: string;
293
350
  created_at: number;
294
351
  updated_at: number;
295
352
  message: string;
296
353
  type: "note";
354
+ _id?: string | undefined;
297
355
  created_by?: string | undefined;
298
356
  updated_by?: string | undefined;
299
357
  } | {
300
- _id: string;
301
358
  created_at: number;
302
359
  updated_at: number;
303
360
  type: "field_changed";
304
361
  field: string;
362
+ _id?: string | undefined;
305
363
  created_by?: string | undefined;
306
364
  updated_by?: string | undefined;
307
365
  curr_value?: any;
308
366
  metadata?: Record<string, unknown> | null | undefined;
309
367
  prev_value?: any;
368
+ } | {
369
+ created_at: number;
370
+ updated_at: number;
371
+ type: "crud";
372
+ action: "create" | "update" | "delete" | "archived" | "restored";
373
+ _id?: string | undefined;
374
+ created_by?: string | undefined;
375
+ updated_by?: string | undefined;
310
376
  })[] | undefined;
311
377
  }>;
312
378
  export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
@@ -328,16 +394,14 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
328
394
  reason: string;
329
395
  }>>;
330
396
  comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
331
- _id: z.ZodString;
397
+ _id: z.ZodOptional<z.ZodString>;
332
398
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
333
399
  created_by: z.ZodOptional<z.ZodString>;
334
400
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
335
401
  updated_by: z.ZodOptional<z.ZodString>;
336
- } & {
337
402
  message: z.ZodString;
338
403
  type: z.ZodLiteral<"note">;
339
404
  }, "strip", z.ZodTypeAny, {
340
- _id: string;
341
405
  created_at: number & {
342
406
  __brand: "UnixTimestamp";
343
407
  };
@@ -346,30 +410,29 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
346
410
  };
347
411
  message: string;
348
412
  type: "note";
413
+ _id?: string | undefined;
349
414
  created_by?: string | undefined;
350
415
  updated_by?: string | undefined;
351
416
  }, {
352
- _id: string;
353
417
  created_at: number;
354
418
  updated_at: number;
355
419
  message: string;
356
420
  type: "note";
421
+ _id?: string | undefined;
357
422
  created_by?: string | undefined;
358
423
  updated_by?: string | undefined;
359
424
  }>, z.ZodObject<{
360
- _id: z.ZodString;
425
+ _id: z.ZodOptional<z.ZodString>;
361
426
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
362
427
  created_by: z.ZodOptional<z.ZodString>;
363
428
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
364
429
  updated_by: z.ZodOptional<z.ZodString>;
365
- } & {
430
+ type: z.ZodLiteral<"field_changed">;
366
431
  curr_value: z.ZodAny;
367
432
  field: z.ZodString;
368
433
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
369
434
  prev_value: z.ZodAny;
370
- type: z.ZodLiteral<"field_changed">;
371
435
  }, "strip", z.ZodTypeAny, {
372
- _id: string;
373
436
  created_at: number & {
374
437
  __brand: "UnixTimestamp";
375
438
  };
@@ -378,24 +441,52 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
378
441
  };
379
442
  type: "field_changed";
380
443
  field: string;
444
+ _id?: string | undefined;
381
445
  created_by?: string | undefined;
382
446
  updated_by?: string | undefined;
383
447
  curr_value?: any;
384
448
  metadata?: Record<string, unknown> | null | undefined;
385
449
  prev_value?: any;
386
450
  }, {
387
- _id: string;
388
451
  created_at: number;
389
452
  updated_at: number;
390
453
  type: "field_changed";
391
454
  field: string;
455
+ _id?: string | undefined;
392
456
  created_by?: string | undefined;
393
457
  updated_by?: string | undefined;
394
458
  curr_value?: any;
395
459
  metadata?: Record<string, unknown> | null | undefined;
396
460
  prev_value?: any;
461
+ }>, z.ZodObject<{
462
+ _id: z.ZodOptional<z.ZodString>;
463
+ created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
464
+ created_by: z.ZodOptional<z.ZodString>;
465
+ updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
466
+ updated_by: z.ZodOptional<z.ZodString>;
467
+ type: z.ZodLiteral<"crud">;
468
+ action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ created_at: number & {
471
+ __brand: "UnixTimestamp";
472
+ };
473
+ updated_at: number & {
474
+ __brand: "UnixTimestamp";
475
+ };
476
+ type: "crud";
477
+ action: "create" | "update" | "delete" | "archived" | "restored";
478
+ _id?: string | undefined;
479
+ created_by?: string | undefined;
480
+ updated_by?: string | undefined;
481
+ }, {
482
+ created_at: number;
483
+ updated_at: number;
484
+ type: "crud";
485
+ action: "create" | "update" | "delete" | "archived" | "restored";
486
+ _id?: string | undefined;
487
+ created_by?: string | undefined;
488
+ updated_by?: string | undefined;
397
489
  }>]>, {
398
- _id: string;
399
490
  created_at: number & {
400
491
  __brand: "UnixTimestamp";
401
492
  };
@@ -404,10 +495,10 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
404
495
  };
405
496
  message: string;
406
497
  type: "note";
498
+ _id?: string | undefined;
407
499
  created_by?: string | undefined;
408
500
  updated_by?: string | undefined;
409
501
  } | {
410
- _id: string;
411
502
  created_at: number & {
412
503
  __brand: "UnixTimestamp";
413
504
  };
@@ -416,30 +507,51 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
416
507
  };
417
508
  type: "field_changed";
418
509
  field: string;
510
+ _id?: string | undefined;
419
511
  created_by?: string | undefined;
420
512
  updated_by?: string | undefined;
421
513
  curr_value?: any;
422
514
  metadata?: Record<string, unknown> | null | undefined;
423
515
  prev_value?: any;
516
+ } | {
517
+ created_at: number & {
518
+ __brand: "UnixTimestamp";
519
+ };
520
+ updated_at: number & {
521
+ __brand: "UnixTimestamp";
522
+ };
523
+ type: "crud";
524
+ action: "create" | "update" | "delete" | "archived" | "restored";
525
+ _id?: string | undefined;
526
+ created_by?: string | undefined;
527
+ updated_by?: string | undefined;
424
528
  }, {
425
- _id: string;
426
529
  created_at: number;
427
530
  updated_at: number;
428
531
  message: string;
429
532
  type: "note";
533
+ _id?: string | undefined;
430
534
  created_by?: string | undefined;
431
535
  updated_by?: string | undefined;
432
536
  } | {
433
- _id: string;
434
537
  created_at: number;
435
538
  updated_at: number;
436
539
  type: "field_changed";
437
540
  field: string;
541
+ _id?: string | undefined;
438
542
  created_by?: string | undefined;
439
543
  updated_by?: string | undefined;
440
544
  curr_value?: any;
441
545
  metadata?: Record<string, unknown> | null | undefined;
442
546
  prev_value?: any;
547
+ } | {
548
+ created_at: number;
549
+ updated_at: number;
550
+ type: "crud";
551
+ action: "create" | "update" | "delete" | "archived" | "restored";
552
+ _id?: string | undefined;
553
+ created_by?: string | undefined;
554
+ updated_by?: string | undefined;
443
555
  }>, "many">>;
444
556
  justification: z.ZodNullable<z.ZodObject<Omit<{
445
557
  _id: z.ZodString;
@@ -481,7 +593,6 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
481
593
  reason: string;
482
594
  }>;
483
595
  comments: ({
484
- _id: string;
485
596
  created_at: number & {
486
597
  __brand: "UnixTimestamp";
487
598
  };
@@ -490,10 +601,10 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
490
601
  };
491
602
  message: string;
492
603
  type: "note";
604
+ _id?: string | undefined;
493
605
  created_by?: string | undefined;
494
606
  updated_by?: string | undefined;
495
607
  } | {
496
- _id: string;
497
608
  created_at: number & {
498
609
  __brand: "UnixTimestamp";
499
610
  };
@@ -502,11 +613,24 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
502
613
  };
503
614
  type: "field_changed";
504
615
  field: string;
616
+ _id?: string | undefined;
505
617
  created_by?: string | undefined;
506
618
  updated_by?: string | undefined;
507
619
  curr_value?: any;
508
620
  metadata?: Record<string, unknown> | null | undefined;
509
621
  prev_value?: any;
622
+ } | {
623
+ created_at: number & {
624
+ __brand: "UnixTimestamp";
625
+ };
626
+ updated_at: number & {
627
+ __brand: "UnixTimestamp";
628
+ };
629
+ type: "crud";
630
+ action: "create" | "update" | "delete" | "archived" | "restored";
631
+ _id?: string | undefined;
632
+ created_by?: string | undefined;
633
+ updated_by?: string | undefined;
510
634
  })[];
511
635
  justification: {
512
636
  created_at: number & {
@@ -546,24 +670,32 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
546
670
  updated_by?: string | undefined;
547
671
  is_locked?: boolean | undefined;
548
672
  comments?: ({
549
- _id: string;
550
673
  created_at: number;
551
674
  updated_at: number;
552
675
  message: string;
553
676
  type: "note";
677
+ _id?: string | undefined;
554
678
  created_by?: string | undefined;
555
679
  updated_by?: string | undefined;
556
680
  } | {
557
- _id: string;
558
681
  created_at: number;
559
682
  updated_at: number;
560
683
  type: "field_changed";
561
684
  field: string;
685
+ _id?: string | undefined;
562
686
  created_by?: string | undefined;
563
687
  updated_by?: string | undefined;
564
688
  curr_value?: any;
565
689
  metadata?: Record<string, unknown> | null | undefined;
566
690
  prev_value?: any;
691
+ } | {
692
+ created_at: number;
693
+ updated_at: number;
694
+ type: "crud";
695
+ action: "create" | "update" | "delete" | "archived" | "restored";
696
+ _id?: string | undefined;
697
+ created_by?: string | undefined;
698
+ updated_by?: string | undefined;
567
699
  })[] | undefined;
568
700
  }>;
569
701
  export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
@@ -583,16 +715,14 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
583
715
  reason: string;
584
716
  }>>>;
585
717
  comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
586
- _id: z.ZodString;
718
+ _id: z.ZodOptional<z.ZodString>;
587
719
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
588
720
  created_by: z.ZodOptional<z.ZodString>;
589
721
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
590
722
  updated_by: z.ZodOptional<z.ZodString>;
591
- } & {
592
723
  message: z.ZodString;
593
724
  type: z.ZodLiteral<"note">;
594
725
  }, "strip", z.ZodTypeAny, {
595
- _id: string;
596
726
  created_at: number & {
597
727
  __brand: "UnixTimestamp";
598
728
  };
@@ -601,30 +731,29 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
601
731
  };
602
732
  message: string;
603
733
  type: "note";
734
+ _id?: string | undefined;
604
735
  created_by?: string | undefined;
605
736
  updated_by?: string | undefined;
606
737
  }, {
607
- _id: string;
608
738
  created_at: number;
609
739
  updated_at: number;
610
740
  message: string;
611
741
  type: "note";
742
+ _id?: string | undefined;
612
743
  created_by?: string | undefined;
613
744
  updated_by?: string | undefined;
614
745
  }>, z.ZodObject<{
615
- _id: z.ZodString;
746
+ _id: z.ZodOptional<z.ZodString>;
616
747
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
617
748
  created_by: z.ZodOptional<z.ZodString>;
618
749
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
619
750
  updated_by: z.ZodOptional<z.ZodString>;
620
- } & {
751
+ type: z.ZodLiteral<"field_changed">;
621
752
  curr_value: z.ZodAny;
622
753
  field: z.ZodString;
623
754
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
624
755
  prev_value: z.ZodAny;
625
- type: z.ZodLiteral<"field_changed">;
626
756
  }, "strip", z.ZodTypeAny, {
627
- _id: string;
628
757
  created_at: number & {
629
758
  __brand: "UnixTimestamp";
630
759
  };
@@ -633,24 +762,52 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
633
762
  };
634
763
  type: "field_changed";
635
764
  field: string;
765
+ _id?: string | undefined;
636
766
  created_by?: string | undefined;
637
767
  updated_by?: string | undefined;
638
768
  curr_value?: any;
639
769
  metadata?: Record<string, unknown> | null | undefined;
640
770
  prev_value?: any;
641
771
  }, {
642
- _id: string;
643
772
  created_at: number;
644
773
  updated_at: number;
645
774
  type: "field_changed";
646
775
  field: string;
776
+ _id?: string | undefined;
647
777
  created_by?: string | undefined;
648
778
  updated_by?: string | undefined;
649
779
  curr_value?: any;
650
780
  metadata?: Record<string, unknown> | null | undefined;
651
781
  prev_value?: any;
782
+ }>, z.ZodObject<{
783
+ _id: z.ZodOptional<z.ZodString>;
784
+ created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
785
+ created_by: z.ZodOptional<z.ZodString>;
786
+ updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
787
+ updated_by: z.ZodOptional<z.ZodString>;
788
+ type: z.ZodLiteral<"crud">;
789
+ action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
790
+ }, "strip", z.ZodTypeAny, {
791
+ created_at: number & {
792
+ __brand: "UnixTimestamp";
793
+ };
794
+ updated_at: number & {
795
+ __brand: "UnixTimestamp";
796
+ };
797
+ type: "crud";
798
+ action: "create" | "update" | "delete" | "archived" | "restored";
799
+ _id?: string | undefined;
800
+ created_by?: string | undefined;
801
+ updated_by?: string | undefined;
802
+ }, {
803
+ created_at: number;
804
+ updated_at: number;
805
+ type: "crud";
806
+ action: "create" | "update" | "delete" | "archived" | "restored";
807
+ _id?: string | undefined;
808
+ created_by?: string | undefined;
809
+ updated_by?: string | undefined;
652
810
  }>]>, {
653
- _id: string;
654
811
  created_at: number & {
655
812
  __brand: "UnixTimestamp";
656
813
  };
@@ -659,10 +816,10 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
659
816
  };
660
817
  message: string;
661
818
  type: "note";
819
+ _id?: string | undefined;
662
820
  created_by?: string | undefined;
663
821
  updated_by?: string | undefined;
664
822
  } | {
665
- _id: string;
666
823
  created_at: number & {
667
824
  __brand: "UnixTimestamp";
668
825
  };
@@ -671,30 +828,51 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
671
828
  };
672
829
  type: "field_changed";
673
830
  field: string;
831
+ _id?: string | undefined;
674
832
  created_by?: string | undefined;
675
833
  updated_by?: string | undefined;
676
834
  curr_value?: any;
677
835
  metadata?: Record<string, unknown> | null | undefined;
678
836
  prev_value?: any;
837
+ } | {
838
+ created_at: number & {
839
+ __brand: "UnixTimestamp";
840
+ };
841
+ updated_at: number & {
842
+ __brand: "UnixTimestamp";
843
+ };
844
+ type: "crud";
845
+ action: "create" | "update" | "delete" | "archived" | "restored";
846
+ _id?: string | undefined;
847
+ created_by?: string | undefined;
848
+ updated_by?: string | undefined;
679
849
  }, {
680
- _id: string;
681
850
  created_at: number;
682
851
  updated_at: number;
683
852
  message: string;
684
853
  type: "note";
854
+ _id?: string | undefined;
685
855
  created_by?: string | undefined;
686
856
  updated_by?: string | undefined;
687
857
  } | {
688
- _id: string;
689
858
  created_at: number;
690
859
  updated_at: number;
691
860
  type: "field_changed";
692
861
  field: string;
862
+ _id?: string | undefined;
693
863
  created_by?: string | undefined;
694
864
  updated_by?: string | undefined;
695
865
  curr_value?: any;
696
866
  metadata?: Record<string, unknown> | null | undefined;
697
867
  prev_value?: any;
868
+ } | {
869
+ created_at: number;
870
+ updated_at: number;
871
+ type: "crud";
872
+ action: "create" | "update" | "delete" | "archived" | "restored";
873
+ _id?: string | undefined;
874
+ created_by?: string | undefined;
875
+ updated_by?: string | undefined;
698
876
  }>, "many">>>;
699
877
  justification: z.ZodOptional<z.ZodNullable<z.ZodObject<Omit<{
700
878
  _id: z.ZodString;
@@ -739,7 +917,6 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
739
917
  reason: string;
740
918
  }> | undefined;
741
919
  comments?: ({
742
- _id: string;
743
920
  created_at: number & {
744
921
  __brand: "UnixTimestamp";
745
922
  };
@@ -748,10 +925,10 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
748
925
  };
749
926
  message: string;
750
927
  type: "note";
928
+ _id?: string | undefined;
751
929
  created_by?: string | undefined;
752
930
  updated_by?: string | undefined;
753
931
  } | {
754
- _id: string;
755
932
  created_at: number & {
756
933
  __brand: "UnixTimestamp";
757
934
  };
@@ -760,11 +937,24 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
760
937
  };
761
938
  type: "field_changed";
762
939
  field: string;
940
+ _id?: string | undefined;
763
941
  created_by?: string | undefined;
764
942
  updated_by?: string | undefined;
765
943
  curr_value?: any;
766
944
  metadata?: Record<string, unknown> | null | undefined;
767
945
  prev_value?: any;
946
+ } | {
947
+ created_at: number & {
948
+ __brand: "UnixTimestamp";
949
+ };
950
+ updated_at: number & {
951
+ __brand: "UnixTimestamp";
952
+ };
953
+ type: "crud";
954
+ action: "create" | "update" | "delete" | "archived" | "restored";
955
+ _id?: string | undefined;
956
+ created_by?: string | undefined;
957
+ updated_by?: string | undefined;
768
958
  })[] | undefined;
769
959
  justification?: {
770
960
  created_at: number & {
@@ -791,24 +981,32 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
791
981
  reason: string;
792
982
  }> | undefined;
793
983
  comments?: ({
794
- _id: string;
795
984
  created_at: number;
796
985
  updated_at: number;
797
986
  message: string;
798
987
  type: "note";
988
+ _id?: string | undefined;
799
989
  created_by?: string | undefined;
800
990
  updated_by?: string | undefined;
801
991
  } | {
802
- _id: string;
803
992
  created_at: number;
804
993
  updated_at: number;
805
994
  type: "field_changed";
806
995
  field: string;
996
+ _id?: string | undefined;
807
997
  created_by?: string | undefined;
808
998
  updated_by?: string | undefined;
809
999
  curr_value?: any;
810
1000
  metadata?: Record<string, unknown> | null | undefined;
811
1001
  prev_value?: any;
1002
+ } | {
1003
+ created_at: number;
1004
+ updated_at: number;
1005
+ type: "crud";
1006
+ action: "create" | "update" | "delete" | "archived" | "restored";
1007
+ _id?: string | undefined;
1008
+ created_by?: string | undefined;
1009
+ updated_by?: string | undefined;
812
1010
  })[] | undefined;
813
1011
  justification?: {
814
1012
  created_at: number;