@tmlmobilidade/types 20250915.1655.9 → 20250916.1040.35

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.
@@ -40,7 +40,6 @@ export declare const RideJustificationSchema: z.ZodObject<{
40
40
  updated_by: z.ZodOptional<z.ZodString>;
41
41
  } & {
42
42
  message: z.ZodString;
43
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
44
43
  type: z.ZodLiteral<"note">;
45
44
  }, "strip", z.ZodTypeAny, {
46
45
  _id: string;
@@ -54,7 +53,6 @@ export declare const RideJustificationSchema: z.ZodObject<{
54
53
  type: "note";
55
54
  created_by?: string | undefined;
56
55
  updated_by?: string | undefined;
57
- metadata?: Record<string, unknown> | null | undefined;
58
56
  }, {
59
57
  _id: string;
60
58
  created_at: number;
@@ -63,39 +61,6 @@ export declare const RideJustificationSchema: z.ZodObject<{
63
61
  type: "note";
64
62
  created_by?: string | undefined;
65
63
  updated_by?: string | undefined;
66
- metadata?: Record<string, unknown> | null | undefined;
67
- }>, z.ZodObject<{
68
- _id: z.ZodString;
69
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
70
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
71
- } & {
72
- created_by: z.ZodLiteral<"system">;
73
- message: z.ZodString;
74
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
75
- type: z.ZodLiteral<"system_info">;
76
- updated_by: z.ZodLiteral<"system">;
77
- }, "strip", z.ZodTypeAny, {
78
- _id: string;
79
- created_at: number & {
80
- __brand: "UnixTimestamp";
81
- };
82
- created_by: "system";
83
- updated_at: number & {
84
- __brand: "UnixTimestamp";
85
- };
86
- updated_by: "system";
87
- message: string;
88
- type: "system_info";
89
- metadata?: Record<string, unknown> | null | undefined;
90
- }, {
91
- _id: string;
92
- created_at: number;
93
- created_by: "system";
94
- updated_at: number;
95
- updated_by: "system";
96
- message: string;
97
- type: "system_info";
98
- metadata?: Record<string, unknown> | null | undefined;
99
64
  }>, z.ZodObject<{
100
65
  _id: z.ZodString;
101
66
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -103,11 +68,11 @@ export declare const RideJustificationSchema: z.ZodObject<{
103
68
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
104
69
  updated_by: z.ZodOptional<z.ZodString>;
105
70
  } & {
106
- accessor: z.ZodString;
107
- curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
71
+ curr_value: z.ZodAny;
72
+ field: z.ZodString;
108
73
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
109
- prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
110
- type: z.ZodLiteral<"status_changed">;
74
+ prev_value: z.ZodAny;
75
+ type: z.ZodLiteral<"field_changed">;
111
76
  }, "strip", z.ZodTypeAny, {
112
77
  _id: string;
113
78
  created_at: number & {
@@ -116,24 +81,24 @@ export declare const RideJustificationSchema: z.ZodObject<{
116
81
  updated_at: number & {
117
82
  __brand: "UnixTimestamp";
118
83
  };
119
- type: "status_changed";
120
- accessor: string;
121
- curr_status: string | boolean;
122
- prev_status: string | boolean;
84
+ type: "field_changed";
85
+ field: string;
123
86
  created_by?: string | undefined;
124
87
  updated_by?: string | undefined;
88
+ curr_value?: any;
125
89
  metadata?: Record<string, unknown> | null | undefined;
90
+ prev_value?: any;
126
91
  }, {
127
92
  _id: string;
128
93
  created_at: number;
129
94
  updated_at: number;
130
- type: "status_changed";
131
- accessor: string;
132
- curr_status: string | boolean;
133
- prev_status: string | boolean;
95
+ type: "field_changed";
96
+ field: string;
134
97
  created_by?: string | undefined;
135
98
  updated_by?: string | undefined;
99
+ curr_value?: any;
136
100
  metadata?: Record<string, unknown> | null | undefined;
101
+ prev_value?: any;
137
102
  }>]>, {
138
103
  _id: string;
139
104
  created_at: number & {
@@ -146,35 +111,21 @@ export declare const RideJustificationSchema: z.ZodObject<{
146
111
  type: "note";
147
112
  created_by?: string | undefined;
148
113
  updated_by?: string | undefined;
149
- metadata?: Record<string, unknown> | null | undefined;
150
114
  } | {
151
115
  _id: string;
152
116
  created_at: number & {
153
117
  __brand: "UnixTimestamp";
154
118
  };
155
- created_by: "system";
156
119
  updated_at: number & {
157
120
  __brand: "UnixTimestamp";
158
121
  };
159
- updated_by: "system";
160
- message: string;
161
- type: "system_info";
162
- metadata?: Record<string, unknown> | null | undefined;
163
- } | {
164
- _id: string;
165
- created_at: number & {
166
- __brand: "UnixTimestamp";
167
- };
168
- updated_at: number & {
169
- __brand: "UnixTimestamp";
170
- };
171
- type: "status_changed";
172
- accessor: string;
173
- curr_status: string | boolean;
174
- prev_status: string | boolean;
122
+ type: "field_changed";
123
+ field: string;
175
124
  created_by?: string | undefined;
176
125
  updated_by?: string | undefined;
126
+ curr_value?: any;
177
127
  metadata?: Record<string, unknown> | null | undefined;
128
+ prev_value?: any;
178
129
  }, {
179
130
  _id: string;
180
131
  created_at: number;
@@ -183,27 +134,17 @@ export declare const RideJustificationSchema: z.ZodObject<{
183
134
  type: "note";
184
135
  created_by?: string | undefined;
185
136
  updated_by?: string | undefined;
186
- metadata?: Record<string, unknown> | null | undefined;
187
137
  } | {
188
138
  _id: string;
189
139
  created_at: number;
190
- created_by: "system";
191
140
  updated_at: number;
192
- updated_by: "system";
193
- message: string;
194
- type: "system_info";
195
- metadata?: Record<string, unknown> | null | undefined;
196
- } | {
197
- _id: string;
198
- created_at: number;
199
- updated_at: number;
200
- type: "status_changed";
201
- accessor: string;
202
- curr_status: string | boolean;
203
- prev_status: string | boolean;
141
+ type: "field_changed";
142
+ field: string;
204
143
  created_by?: string | undefined;
205
144
  updated_by?: string | undefined;
145
+ curr_value?: any;
206
146
  metadata?: Record<string, unknown> | null | undefined;
147
+ prev_value?: any;
207
148
  }>, "many">>;
208
149
  is_locked: z.ZodDefault<z.ZodBoolean>;
209
150
  justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
@@ -231,35 +172,21 @@ export declare const RideJustificationSchema: z.ZodObject<{
231
172
  type: "note";
232
173
  created_by?: string | undefined;
233
174
  updated_by?: string | undefined;
234
- metadata?: Record<string, unknown> | null | undefined;
235
175
  } | {
236
176
  _id: string;
237
177
  created_at: number & {
238
178
  __brand: "UnixTimestamp";
239
179
  };
240
- created_by: "system";
241
180
  updated_at: number & {
242
181
  __brand: "UnixTimestamp";
243
182
  };
244
- updated_by: "system";
245
- message: string;
246
- type: "system_info";
247
- metadata?: Record<string, unknown> | null | undefined;
248
- } | {
249
- _id: string;
250
- created_at: number & {
251
- __brand: "UnixTimestamp";
252
- };
253
- updated_at: number & {
254
- __brand: "UnixTimestamp";
255
- };
256
- type: "status_changed";
257
- accessor: string;
258
- curr_status: string | boolean;
259
- prev_status: string | boolean;
183
+ type: "field_changed";
184
+ field: string;
260
185
  created_by?: string | undefined;
261
186
  updated_by?: string | undefined;
187
+ curr_value?: any;
262
188
  metadata?: Record<string, unknown> | null | undefined;
189
+ prev_value?: any;
263
190
  })[];
264
191
  acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
265
192
  pto_message: string;
@@ -297,27 +224,17 @@ export declare const RideJustificationSchema: z.ZodObject<{
297
224
  type: "note";
298
225
  created_by?: string | undefined;
299
226
  updated_by?: string | undefined;
300
- metadata?: Record<string, unknown> | null | undefined;
301
227
  } | {
302
228
  _id: string;
303
229
  created_at: number;
304
- created_by: "system";
305
230
  updated_at: number;
306
- updated_by: "system";
307
- message: string;
308
- type: "system_info";
309
- metadata?: Record<string, unknown> | null | undefined;
310
- } | {
311
- _id: string;
312
- created_at: number;
313
- updated_at: number;
314
- type: "status_changed";
315
- accessor: string;
316
- curr_status: string | boolean;
317
- prev_status: string | boolean;
231
+ type: "field_changed";
232
+ field: string;
318
233
  created_by?: string | undefined;
319
234
  updated_by?: string | undefined;
235
+ curr_value?: any;
320
236
  metadata?: Record<string, unknown> | null | undefined;
237
+ prev_value?: any;
321
238
  })[] | undefined;
322
239
  pto_message?: string | undefined;
323
240
  }>;
@@ -336,7 +253,6 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
336
253
  updated_by: z.ZodOptional<z.ZodString>;
337
254
  } & {
338
255
  message: z.ZodString;
339
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
340
256
  type: z.ZodLiteral<"note">;
341
257
  }, "strip", z.ZodTypeAny, {
342
258
  _id: string;
@@ -350,7 +266,6 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
350
266
  type: "note";
351
267
  created_by?: string | undefined;
352
268
  updated_by?: string | undefined;
353
- metadata?: Record<string, unknown> | null | undefined;
354
269
  }, {
355
270
  _id: string;
356
271
  created_at: number;
@@ -359,39 +274,6 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
359
274
  type: "note";
360
275
  created_by?: string | undefined;
361
276
  updated_by?: string | undefined;
362
- metadata?: Record<string, unknown> | null | undefined;
363
- }>, z.ZodObject<{
364
- _id: z.ZodString;
365
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
366
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
367
- } & {
368
- created_by: z.ZodLiteral<"system">;
369
- message: z.ZodString;
370
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
371
- type: z.ZodLiteral<"system_info">;
372
- updated_by: z.ZodLiteral<"system">;
373
- }, "strip", z.ZodTypeAny, {
374
- _id: string;
375
- created_at: number & {
376
- __brand: "UnixTimestamp";
377
- };
378
- created_by: "system";
379
- updated_at: number & {
380
- __brand: "UnixTimestamp";
381
- };
382
- updated_by: "system";
383
- message: string;
384
- type: "system_info";
385
- metadata?: Record<string, unknown> | null | undefined;
386
- }, {
387
- _id: string;
388
- created_at: number;
389
- created_by: "system";
390
- updated_at: number;
391
- updated_by: "system";
392
- message: string;
393
- type: "system_info";
394
- metadata?: Record<string, unknown> | null | undefined;
395
277
  }>, z.ZodObject<{
396
278
  _id: z.ZodString;
397
279
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -399,11 +281,11 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
399
281
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
400
282
  updated_by: z.ZodOptional<z.ZodString>;
401
283
  } & {
402
- accessor: z.ZodString;
403
- curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
284
+ curr_value: z.ZodAny;
285
+ field: z.ZodString;
404
286
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
405
- prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
406
- type: z.ZodLiteral<"status_changed">;
287
+ prev_value: z.ZodAny;
288
+ type: z.ZodLiteral<"field_changed">;
407
289
  }, "strip", z.ZodTypeAny, {
408
290
  _id: string;
409
291
  created_at: number & {
@@ -412,24 +294,24 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
412
294
  updated_at: number & {
413
295
  __brand: "UnixTimestamp";
414
296
  };
415
- type: "status_changed";
416
- accessor: string;
417
- curr_status: string | boolean;
418
- prev_status: string | boolean;
297
+ type: "field_changed";
298
+ field: string;
419
299
  created_by?: string | undefined;
420
300
  updated_by?: string | undefined;
301
+ curr_value?: any;
421
302
  metadata?: Record<string, unknown> | null | undefined;
303
+ prev_value?: any;
422
304
  }, {
423
305
  _id: string;
424
306
  created_at: number;
425
307
  updated_at: number;
426
- type: "status_changed";
427
- accessor: string;
428
- curr_status: string | boolean;
429
- prev_status: string | boolean;
308
+ type: "field_changed";
309
+ field: string;
430
310
  created_by?: string | undefined;
431
311
  updated_by?: string | undefined;
312
+ curr_value?: any;
432
313
  metadata?: Record<string, unknown> | null | undefined;
314
+ prev_value?: any;
433
315
  }>]>, {
434
316
  _id: string;
435
317
  created_at: number & {
@@ -442,20 +324,6 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
442
324
  type: "note";
443
325
  created_by?: string | undefined;
444
326
  updated_by?: string | undefined;
445
- metadata?: Record<string, unknown> | null | undefined;
446
- } | {
447
- _id: string;
448
- created_at: number & {
449
- __brand: "UnixTimestamp";
450
- };
451
- created_by: "system";
452
- updated_at: number & {
453
- __brand: "UnixTimestamp";
454
- };
455
- updated_by: "system";
456
- message: string;
457
- type: "system_info";
458
- metadata?: Record<string, unknown> | null | undefined;
459
327
  } | {
460
328
  _id: string;
461
329
  created_at: number & {
@@ -464,13 +332,13 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
464
332
  updated_at: number & {
465
333
  __brand: "UnixTimestamp";
466
334
  };
467
- type: "status_changed";
468
- accessor: string;
469
- curr_status: string | boolean;
470
- prev_status: string | boolean;
335
+ type: "field_changed";
336
+ field: string;
471
337
  created_by?: string | undefined;
472
338
  updated_by?: string | undefined;
339
+ curr_value?: any;
473
340
  metadata?: Record<string, unknown> | null | undefined;
341
+ prev_value?: any;
474
342
  }, {
475
343
  _id: string;
476
344
  created_at: number;
@@ -479,27 +347,17 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
479
347
  type: "note";
480
348
  created_by?: string | undefined;
481
349
  updated_by?: string | undefined;
482
- metadata?: Record<string, unknown> | null | undefined;
483
- } | {
484
- _id: string;
485
- created_at: number;
486
- created_by: "system";
487
- updated_at: number;
488
- updated_by: "system";
489
- message: string;
490
- type: "system_info";
491
- metadata?: Record<string, unknown> | null | undefined;
492
350
  } | {
493
351
  _id: string;
494
352
  created_at: number;
495
353
  updated_at: number;
496
- type: "status_changed";
497
- accessor: string;
498
- curr_status: string | boolean;
499
- prev_status: string | boolean;
354
+ type: "field_changed";
355
+ field: string;
500
356
  created_by?: string | undefined;
501
357
  updated_by?: string | undefined;
358
+ curr_value?: any;
502
359
  metadata?: Record<string, unknown> | null | undefined;
360
+ prev_value?: any;
503
361
  }>, "many">>;
504
362
  acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
505
363
  pto_message: z.ZodDefault<z.ZodString>;
@@ -533,20 +391,6 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
533
391
  type: "note";
534
392
  created_by?: string | undefined;
535
393
  updated_by?: string | undefined;
536
- metadata?: Record<string, unknown> | null | undefined;
537
- } | {
538
- _id: string;
539
- created_at: number & {
540
- __brand: "UnixTimestamp";
541
- };
542
- created_by: "system";
543
- updated_at: number & {
544
- __brand: "UnixTimestamp";
545
- };
546
- updated_by: "system";
547
- message: string;
548
- type: "system_info";
549
- metadata?: Record<string, unknown> | null | undefined;
550
394
  } | {
551
395
  _id: string;
552
396
  created_at: number & {
@@ -555,13 +399,13 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
555
399
  updated_at: number & {
556
400
  __brand: "UnixTimestamp";
557
401
  };
558
- type: "status_changed";
559
- accessor: string;
560
- curr_status: string | boolean;
561
- prev_status: string | boolean;
402
+ type: "field_changed";
403
+ field: string;
562
404
  created_by?: string | undefined;
563
405
  updated_by?: string | undefined;
406
+ curr_value?: any;
564
407
  metadata?: Record<string, unknown> | null | undefined;
408
+ prev_value?: any;
565
409
  })[];
566
410
  acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
567
411
  pto_message: string;
@@ -598,27 +442,17 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
598
442
  type: "note";
599
443
  created_by?: string | undefined;
600
444
  updated_by?: string | undefined;
601
- metadata?: Record<string, unknown> | null | undefined;
602
- } | {
603
- _id: string;
604
- created_at: number;
605
- created_by: "system";
606
- updated_at: number;
607
- updated_by: "system";
608
- message: string;
609
- type: "system_info";
610
- metadata?: Record<string, unknown> | null | undefined;
611
445
  } | {
612
446
  _id: string;
613
447
  created_at: number;
614
448
  updated_at: number;
615
- type: "status_changed";
616
- accessor: string;
617
- curr_status: string | boolean;
618
- prev_status: string | boolean;
449
+ type: "field_changed";
450
+ field: string;
619
451
  created_by?: string | undefined;
620
452
  updated_by?: string | undefined;
453
+ curr_value?: any;
621
454
  metadata?: Record<string, unknown> | null | undefined;
455
+ prev_value?: any;
622
456
  })[] | undefined;
623
457
  pto_message?: string | undefined;
624
458
  }>;
@@ -634,7 +468,6 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
634
468
  updated_by: z.ZodOptional<z.ZodString>;
635
469
  } & {
636
470
  message: z.ZodString;
637
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
638
471
  type: z.ZodLiteral<"note">;
639
472
  }, "strip", z.ZodTypeAny, {
640
473
  _id: string;
@@ -648,7 +481,6 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
648
481
  type: "note";
649
482
  created_by?: string | undefined;
650
483
  updated_by?: string | undefined;
651
- metadata?: Record<string, unknown> | null | undefined;
652
484
  }, {
653
485
  _id: string;
654
486
  created_at: number;
@@ -657,39 +489,6 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
657
489
  type: "note";
658
490
  created_by?: string | undefined;
659
491
  updated_by?: string | undefined;
660
- metadata?: Record<string, unknown> | null | undefined;
661
- }>, z.ZodObject<{
662
- _id: z.ZodString;
663
- created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
664
- updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
665
- } & {
666
- created_by: z.ZodLiteral<"system">;
667
- message: z.ZodString;
668
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
669
- type: z.ZodLiteral<"system_info">;
670
- updated_by: z.ZodLiteral<"system">;
671
- }, "strip", z.ZodTypeAny, {
672
- _id: string;
673
- created_at: number & {
674
- __brand: "UnixTimestamp";
675
- };
676
- created_by: "system";
677
- updated_at: number & {
678
- __brand: "UnixTimestamp";
679
- };
680
- updated_by: "system";
681
- message: string;
682
- type: "system_info";
683
- metadata?: Record<string, unknown> | null | undefined;
684
- }, {
685
- _id: string;
686
- created_at: number;
687
- created_by: "system";
688
- updated_at: number;
689
- updated_by: "system";
690
- message: string;
691
- type: "system_info";
692
- metadata?: Record<string, unknown> | null | undefined;
693
492
  }>, z.ZodObject<{
694
493
  _id: z.ZodString;
695
494
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -697,11 +496,11 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
697
496
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
698
497
  updated_by: z.ZodOptional<z.ZodString>;
699
498
  } & {
700
- accessor: z.ZodString;
701
- curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
499
+ curr_value: z.ZodAny;
500
+ field: z.ZodString;
702
501
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
703
- prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
704
- type: z.ZodLiteral<"status_changed">;
502
+ prev_value: z.ZodAny;
503
+ type: z.ZodLiteral<"field_changed">;
705
504
  }, "strip", z.ZodTypeAny, {
706
505
  _id: string;
707
506
  created_at: number & {
@@ -710,24 +509,24 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
710
509
  updated_at: number & {
711
510
  __brand: "UnixTimestamp";
712
511
  };
713
- type: "status_changed";
714
- accessor: string;
715
- curr_status: string | boolean;
716
- prev_status: string | boolean;
512
+ type: "field_changed";
513
+ field: string;
717
514
  created_by?: string | undefined;
718
515
  updated_by?: string | undefined;
516
+ curr_value?: any;
719
517
  metadata?: Record<string, unknown> | null | undefined;
518
+ prev_value?: any;
720
519
  }, {
721
520
  _id: string;
722
521
  created_at: number;
723
522
  updated_at: number;
724
- type: "status_changed";
725
- accessor: string;
726
- curr_status: string | boolean;
727
- prev_status: string | boolean;
523
+ type: "field_changed";
524
+ field: string;
728
525
  created_by?: string | undefined;
729
526
  updated_by?: string | undefined;
527
+ curr_value?: any;
730
528
  metadata?: Record<string, unknown> | null | undefined;
529
+ prev_value?: any;
731
530
  }>]>, {
732
531
  _id: string;
733
532
  created_at: number & {
@@ -740,35 +539,21 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
740
539
  type: "note";
741
540
  created_by?: string | undefined;
742
541
  updated_by?: string | undefined;
743
- metadata?: Record<string, unknown> | null | undefined;
744
542
  } | {
745
543
  _id: string;
746
544
  created_at: number & {
747
545
  __brand: "UnixTimestamp";
748
546
  };
749
- created_by: "system";
750
547
  updated_at: number & {
751
548
  __brand: "UnixTimestamp";
752
549
  };
753
- updated_by: "system";
754
- message: string;
755
- type: "system_info";
756
- metadata?: Record<string, unknown> | null | undefined;
757
- } | {
758
- _id: string;
759
- created_at: number & {
760
- __brand: "UnixTimestamp";
761
- };
762
- updated_at: number & {
763
- __brand: "UnixTimestamp";
764
- };
765
- type: "status_changed";
766
- accessor: string;
767
- curr_status: string | boolean;
768
- prev_status: string | boolean;
550
+ type: "field_changed";
551
+ field: string;
769
552
  created_by?: string | undefined;
770
553
  updated_by?: string | undefined;
554
+ curr_value?: any;
771
555
  metadata?: Record<string, unknown> | null | undefined;
556
+ prev_value?: any;
772
557
  }, {
773
558
  _id: string;
774
559
  created_at: number;
@@ -777,27 +562,17 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
777
562
  type: "note";
778
563
  created_by?: string | undefined;
779
564
  updated_by?: string | undefined;
780
- metadata?: Record<string, unknown> | null | undefined;
781
- } | {
782
- _id: string;
783
- created_at: number;
784
- created_by: "system";
785
- updated_at: number;
786
- updated_by: "system";
787
- message: string;
788
- type: "system_info";
789
- metadata?: Record<string, unknown> | null | undefined;
790
565
  } | {
791
566
  _id: string;
792
567
  created_at: number;
793
568
  updated_at: number;
794
- type: "status_changed";
795
- accessor: string;
796
- curr_status: string | boolean;
797
- prev_status: string | boolean;
569
+ type: "field_changed";
570
+ field: string;
798
571
  created_by?: string | undefined;
799
572
  updated_by?: string | undefined;
573
+ curr_value?: any;
800
574
  metadata?: Record<string, unknown> | null | undefined;
575
+ prev_value?: any;
801
576
  }>, "many">>>;
802
577
  acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
803
578
  pto_message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
@@ -819,35 +594,21 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
819
594
  type: "note";
820
595
  created_by?: string | undefined;
821
596
  updated_by?: string | undefined;
822
- metadata?: Record<string, unknown> | null | undefined;
823
597
  } | {
824
598
  _id: string;
825
599
  created_at: number & {
826
600
  __brand: "UnixTimestamp";
827
601
  };
828
- created_by: "system";
829
602
  updated_at: number & {
830
603
  __brand: "UnixTimestamp";
831
604
  };
832
- updated_by: "system";
833
- message: string;
834
- type: "system_info";
835
- metadata?: Record<string, unknown> | null | undefined;
836
- } | {
837
- _id: string;
838
- created_at: number & {
839
- __brand: "UnixTimestamp";
840
- };
841
- updated_at: number & {
842
- __brand: "UnixTimestamp";
843
- };
844
- type: "status_changed";
845
- accessor: string;
846
- curr_status: string | boolean;
847
- prev_status: string | boolean;
605
+ type: "field_changed";
606
+ field: string;
848
607
  created_by?: string | undefined;
849
608
  updated_by?: string | undefined;
609
+ curr_value?: any;
850
610
  metadata?: Record<string, unknown> | null | undefined;
611
+ prev_value?: any;
851
612
  })[] | undefined;
852
613
  acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
853
614
  pto_message?: string | undefined;
@@ -865,27 +626,17 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
865
626
  type: "note";
866
627
  created_by?: string | undefined;
867
628
  updated_by?: string | undefined;
868
- metadata?: Record<string, unknown> | null | undefined;
869
- } | {
870
- _id: string;
871
- created_at: number;
872
- created_by: "system";
873
- updated_at: number;
874
- updated_by: "system";
875
- message: string;
876
- type: "system_info";
877
- metadata?: Record<string, unknown> | null | undefined;
878
629
  } | {
879
630
  _id: string;
880
631
  created_at: number;
881
632
  updated_at: number;
882
- type: "status_changed";
883
- accessor: string;
884
- curr_status: string | boolean;
885
- prev_status: string | boolean;
633
+ type: "field_changed";
634
+ field: string;
886
635
  created_by?: string | undefined;
887
636
  updated_by?: string | undefined;
637
+ curr_value?: any;
888
638
  metadata?: Record<string, unknown> | null | undefined;
639
+ prev_value?: any;
889
640
  })[] | undefined;
890
641
  acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
891
642
  pto_message?: string | undefined;