@tmlmobilidade/types 20250911.1034.51 → 20250911.1425.9

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.
Files changed (54) hide show
  1. package/dist/src/_common/comment.d.ts +20 -20
  2. package/dist/src/_common/document.d.ts +4 -4
  3. package/dist/src/_common/document.js +2 -2
  4. package/dist/src/_common/operational-date.d.ts +1 -1
  5. package/dist/src/_common/operational-date.js +1 -2
  6. package/dist/src/_common/proposed-change.d.ts +18 -40
  7. package/dist/src/_common/proposed-change.js +5 -14
  8. package/dist/src/agency.d.ts +19 -30
  9. package/dist/src/agency.js +1 -1
  10. package/dist/src/alert.d.ts +37 -63
  11. package/dist/src/alert.js +8 -48
  12. package/dist/src/auth/login.js +2 -8
  13. package/dist/src/auth/role.d.ts +15 -22
  14. package/dist/src/auth/role.js +1 -1
  15. package/dist/src/auth/session.d.ts +22 -38
  16. package/dist/src/auth/session.js +3 -3
  17. package/dist/src/auth/user.d.ts +22 -41
  18. package/dist/src/auth/user.js +3 -3
  19. package/dist/src/auth/verification-token.d.ts +22 -34
  20. package/dist/src/auth/verification-token.js +3 -3
  21. package/dist/src/gtfs.d.ts +6 -17
  22. package/dist/src/organization.d.ts +10 -13
  23. package/dist/src/organization.js +1 -1
  24. package/dist/src/plans/gtfs-validation.d.ts +34 -72
  25. package/dist/src/plans/gtfs-validation.js +2 -6
  26. package/dist/src/plans/plan-controller.d.ts +3 -8
  27. package/dist/src/plans/plan-controller.js +2 -2
  28. package/dist/src/plans/plan.d.ts +43 -95
  29. package/dist/src/plans/plan.js +2 -6
  30. package/dist/src/rides/ride-audit.d.ts +27 -30
  31. package/dist/src/rides/ride-audit.js +1 -1
  32. package/dist/src/rides/ride-justification.d.ts +69 -72
  33. package/dist/src/rides/ride-justification.js +1 -1
  34. package/dist/src/rides/ride.d.ts +55 -106
  35. package/dist/src/rides/ride.js +8 -8
  36. package/dist/src/sams/sam-analysis.d.ts +5 -13
  37. package/dist/src/sams/sam-analysis.js +3 -3
  38. package/dist/src/sams/sam.d.ts +46 -97
  39. package/dist/src/sams/sam.js +4 -4
  40. package/dist/src/simplified-apex/simplified-apex-location.d.ts +18 -25
  41. package/dist/src/simplified-apex/simplified-apex-location.js +2 -2
  42. package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +18 -25
  43. package/dist/src/simplified-apex/simplified-apex-on-board-refund.js +2 -2
  44. package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +28 -38
  45. package/dist/src/simplified-apex/simplified-apex-on-board-sale.js +3 -3
  46. package/dist/src/simplified-apex/simplified-apex-validation.d.ts +18 -25
  47. package/dist/src/simplified-apex/simplified-apex-validation.js +2 -2
  48. package/dist/src/stop.d.ts +133 -151
  49. package/dist/src/stop.js +11 -74
  50. package/dist/src/vehicle-event.d.ts +9 -14
  51. package/dist/src/vehicle-event.js +2 -2
  52. package/dist/src/zone.d.ts +9 -12
  53. package/dist/src/zone.js +1 -1
  54. package/package.json +1 -1
@@ -8,9 +8,9 @@ export type RideJustificationCause = z.infer<typeof RideJustificationCauseSchema
8
8
  export declare const RideJustificationSchema: z.ZodObject<{
9
9
  _id: z.ZodString;
10
10
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
11
- created_by: z.ZodDefault<z.ZodString>;
11
+ created_by: z.ZodOptional<z.ZodString>;
12
12
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
13
- updated_by: z.ZodDefault<z.ZodString>;
13
+ updated_by: z.ZodOptional<z.ZodString>;
14
14
  } & {
15
15
  acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
16
16
  analysis: z.ZodObject<{
@@ -29,9 +29,9 @@ export declare const RideJustificationSchema: z.ZodObject<{
29
29
  comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
30
30
  _id: z.ZodString;
31
31
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
32
- created_by: z.ZodDefault<z.ZodString>;
32
+ created_by: z.ZodOptional<z.ZodString>;
33
33
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
34
- updated_by: z.ZodDefault<z.ZodString>;
34
+ updated_by: z.ZodOptional<z.ZodString>;
35
35
  } & {
36
36
  message: z.ZodString;
37
37
  type: z.ZodLiteral<"note">;
@@ -40,13 +40,13 @@ export declare const RideJustificationSchema: z.ZodObject<{
40
40
  created_at: number & {
41
41
  __brand: "UnixTimestamp";
42
42
  };
43
- created_by: string;
44
43
  updated_at: number & {
45
44
  __brand: "UnixTimestamp";
46
45
  };
47
- updated_by: string;
48
46
  message: string;
49
47
  type: "note";
48
+ created_by?: string | undefined;
49
+ updated_by?: string | undefined;
50
50
  }, {
51
51
  _id: string;
52
52
  created_at: number;
@@ -87,9 +87,9 @@ export declare const RideJustificationSchema: z.ZodObject<{
87
87
  }>, z.ZodObject<{
88
88
  _id: z.ZodString;
89
89
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
90
- created_by: z.ZodDefault<z.ZodString>;
90
+ created_by: z.ZodOptional<z.ZodString>;
91
91
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
92
- updated_by: z.ZodDefault<z.ZodString>;
92
+ updated_by: z.ZodOptional<z.ZodString>;
93
93
  } & {
94
94
  curr_status: z.ZodString;
95
95
  prev_status: z.ZodString;
@@ -99,14 +99,14 @@ export declare const RideJustificationSchema: z.ZodObject<{
99
99
  created_at: number & {
100
100
  __brand: "UnixTimestamp";
101
101
  };
102
- created_by: string;
103
102
  updated_at: number & {
104
103
  __brand: "UnixTimestamp";
105
104
  };
106
- updated_by: string;
107
105
  type: "statusChanged";
108
106
  curr_status: string;
109
107
  prev_status: string;
108
+ created_by?: string | undefined;
109
+ updated_by?: string | undefined;
110
110
  }, {
111
111
  _id: string;
112
112
  created_at: number;
@@ -121,13 +121,13 @@ export declare const RideJustificationSchema: z.ZodObject<{
121
121
  created_at: number & {
122
122
  __brand: "UnixTimestamp";
123
123
  };
124
- created_by: string;
125
124
  updated_at: number & {
126
125
  __brand: "UnixTimestamp";
127
126
  };
128
- updated_by: string;
129
127
  message: string;
130
128
  type: "note";
129
+ created_by?: string | undefined;
130
+ updated_by?: string | undefined;
131
131
  } | {
132
132
  _id: string;
133
133
  created_at: number & {
@@ -145,14 +145,14 @@ export declare const RideJustificationSchema: z.ZodObject<{
145
145
  created_at: number & {
146
146
  __brand: "UnixTimestamp";
147
147
  };
148
- created_by: string;
149
148
  updated_at: number & {
150
149
  __brand: "UnixTimestamp";
151
150
  };
152
- updated_by: string;
153
151
  type: "statusChanged";
154
152
  curr_status: string;
155
153
  prev_status: string;
154
+ created_by?: string | undefined;
155
+ updated_by?: string | undefined;
156
156
  }, {
157
157
  _id: string;
158
158
  created_at: number;
@@ -183,13 +183,13 @@ export declare const RideJustificationSchema: z.ZodObject<{
183
183
  created_at: number & {
184
184
  __brand: "UnixTimestamp";
185
185
  };
186
- created_by: string;
187
186
  updated_at: number & {
188
187
  __brand: "UnixTimestamp";
189
188
  };
190
- updated_by: string;
191
189
  message: string;
192
190
  type: "note";
191
+ created_by?: string | undefined;
192
+ updated_by?: string | undefined;
193
193
  } | {
194
194
  _id: string;
195
195
  created_at: number & {
@@ -207,14 +207,14 @@ export declare const RideJustificationSchema: z.ZodObject<{
207
207
  created_at: number & {
208
208
  __brand: "UnixTimestamp";
209
209
  };
210
- created_by: string;
211
210
  updated_at: number & {
212
211
  __brand: "UnixTimestamp";
213
212
  };
214
- updated_by: string;
215
213
  type: "statusChanged";
216
214
  curr_status: string;
217
215
  prev_status: string;
216
+ created_by?: string | undefined;
217
+ updated_by?: string | undefined;
218
218
  }, {
219
219
  _id: string;
220
220
  created_at: number;
@@ -249,23 +249,21 @@ export declare const RideJustificationSchema: z.ZodObject<{
249
249
  created_at: number & {
250
250
  __brand: "UnixTimestamp";
251
251
  };
252
- created_by: string;
253
252
  updated_at: number & {
254
253
  __brand: "UnixTimestamp";
255
254
  };
256
- updated_by: string;
257
255
  comments: ({
258
256
  _id: string;
259
257
  created_at: number & {
260
258
  __brand: "UnixTimestamp";
261
259
  };
262
- created_by: string;
263
260
  updated_at: number & {
264
261
  __brand: "UnixTimestamp";
265
262
  };
266
- updated_by: string;
267
263
  message: string;
268
264
  type: "note";
265
+ created_by?: string | undefined;
266
+ updated_by?: string | undefined;
269
267
  } | {
270
268
  _id: string;
271
269
  created_at: number & {
@@ -283,14 +281,14 @@ export declare const RideJustificationSchema: z.ZodObject<{
283
281
  created_at: number & {
284
282
  __brand: "UnixTimestamp";
285
283
  };
286
- created_by: string;
287
284
  updated_at: number & {
288
285
  __brand: "UnixTimestamp";
289
286
  };
290
- updated_by: string;
291
287
  type: "statusChanged";
292
288
  curr_status: string;
293
289
  prev_status: string;
290
+ created_by?: string | undefined;
291
+ updated_by?: string | undefined;
294
292
  })[];
295
293
  acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
296
294
  analysis: {
@@ -301,6 +299,8 @@ export declare const RideJustificationSchema: z.ZodObject<{
301
299
  justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
302
300
  pto_message: string;
303
301
  trip_id: string;
302
+ created_by?: string | undefined;
303
+ updated_by?: string | undefined;
304
304
  }, {
305
305
  _id: string;
306
306
  created_at: number;
@@ -346,15 +346,15 @@ export declare const RideJustificationSchema: z.ZodObject<{
346
346
  export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
347
347
  _id: z.ZodOptional<z.ZodString>;
348
348
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
349
- created_by: z.ZodDefault<z.ZodString>;
349
+ created_by: z.ZodOptional<z.ZodString>;
350
350
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
351
- updated_by: z.ZodDefault<z.ZodString>;
351
+ updated_by: z.ZodOptional<z.ZodString>;
352
352
  comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
353
353
  _id: z.ZodString;
354
354
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
355
- created_by: z.ZodDefault<z.ZodString>;
355
+ created_by: z.ZodOptional<z.ZodString>;
356
356
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
357
- updated_by: z.ZodDefault<z.ZodString>;
357
+ updated_by: z.ZodOptional<z.ZodString>;
358
358
  } & {
359
359
  message: z.ZodString;
360
360
  type: z.ZodLiteral<"note">;
@@ -363,13 +363,13 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
363
363
  created_at: number & {
364
364
  __brand: "UnixTimestamp";
365
365
  };
366
- created_by: string;
367
366
  updated_at: number & {
368
367
  __brand: "UnixTimestamp";
369
368
  };
370
- updated_by: string;
371
369
  message: string;
372
370
  type: "note";
371
+ created_by?: string | undefined;
372
+ updated_by?: string | undefined;
373
373
  }, {
374
374
  _id: string;
375
375
  created_at: number;
@@ -410,9 +410,9 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
410
410
  }>, z.ZodObject<{
411
411
  _id: z.ZodString;
412
412
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
413
- created_by: z.ZodDefault<z.ZodString>;
413
+ created_by: z.ZodOptional<z.ZodString>;
414
414
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
415
- updated_by: z.ZodDefault<z.ZodString>;
415
+ updated_by: z.ZodOptional<z.ZodString>;
416
416
  } & {
417
417
  curr_status: z.ZodString;
418
418
  prev_status: z.ZodString;
@@ -422,14 +422,14 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
422
422
  created_at: number & {
423
423
  __brand: "UnixTimestamp";
424
424
  };
425
- created_by: string;
426
425
  updated_at: number & {
427
426
  __brand: "UnixTimestamp";
428
427
  };
429
- updated_by: string;
430
428
  type: "statusChanged";
431
429
  curr_status: string;
432
430
  prev_status: string;
431
+ created_by?: string | undefined;
432
+ updated_by?: string | undefined;
433
433
  }, {
434
434
  _id: string;
435
435
  created_at: number;
@@ -444,13 +444,13 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
444
444
  created_at: number & {
445
445
  __brand: "UnixTimestamp";
446
446
  };
447
- created_by: string;
448
447
  updated_at: number & {
449
448
  __brand: "UnixTimestamp";
450
449
  };
451
- updated_by: string;
452
450
  message: string;
453
451
  type: "note";
452
+ created_by?: string | undefined;
453
+ updated_by?: string | undefined;
454
454
  } | {
455
455
  _id: string;
456
456
  created_at: number & {
@@ -468,14 +468,14 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
468
468
  created_at: number & {
469
469
  __brand: "UnixTimestamp";
470
470
  };
471
- created_by: string;
472
471
  updated_at: number & {
473
472
  __brand: "UnixTimestamp";
474
473
  };
475
- updated_by: string;
476
474
  type: "statusChanged";
477
475
  curr_status: string;
478
476
  prev_status: string;
477
+ created_by?: string | undefined;
478
+ updated_by?: string | undefined;
479
479
  }, {
480
480
  _id: string;
481
481
  created_at: number;
@@ -506,13 +506,13 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
506
506
  created_at: number & {
507
507
  __brand: "UnixTimestamp";
508
508
  };
509
- created_by: string;
510
509
  updated_at: number & {
511
510
  __brand: "UnixTimestamp";
512
511
  };
513
- updated_by: string;
514
512
  message: string;
515
513
  type: "note";
514
+ created_by?: string | undefined;
515
+ updated_by?: string | undefined;
516
516
  } | {
517
517
  _id: string;
518
518
  created_at: number & {
@@ -530,14 +530,14 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
530
530
  created_at: number & {
531
531
  __brand: "UnixTimestamp";
532
532
  };
533
- created_by: string;
534
533
  updated_at: number & {
535
534
  __brand: "UnixTimestamp";
536
535
  };
537
- updated_by: string;
538
536
  type: "statusChanged";
539
537
  curr_status: string;
540
538
  prev_status: string;
539
+ created_by?: string | undefined;
540
+ updated_by?: string | undefined;
541
541
  }, {
542
542
  _id: string;
543
543
  created_at: number;
@@ -582,20 +582,18 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
582
582
  pto_message: z.ZodDefault<z.ZodString>;
583
583
  trip_id: z.ZodString;
584
584
  }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
585
- created_by: string;
586
- updated_by: string;
587
585
  comments: ({
588
586
  _id: string;
589
587
  created_at: number & {
590
588
  __brand: "UnixTimestamp";
591
589
  };
592
- created_by: string;
593
590
  updated_at: number & {
594
591
  __brand: "UnixTimestamp";
595
592
  };
596
- updated_by: string;
597
593
  message: string;
598
594
  type: "note";
595
+ created_by?: string | undefined;
596
+ updated_by?: string | undefined;
599
597
  } | {
600
598
  _id: string;
601
599
  created_at: number & {
@@ -613,14 +611,14 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
613
611
  created_at: number & {
614
612
  __brand: "UnixTimestamp";
615
613
  };
616
- created_by: string;
617
614
  updated_at: number & {
618
615
  __brand: "UnixTimestamp";
619
616
  };
620
- updated_by: string;
621
617
  type: "statusChanged";
622
618
  curr_status: string;
623
619
  prev_status: string;
620
+ created_by?: string | undefined;
621
+ updated_by?: string | undefined;
624
622
  })[];
625
623
  acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
626
624
  analysis: {
@@ -632,6 +630,8 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
632
630
  pto_message: string;
633
631
  trip_id: string;
634
632
  _id?: string | undefined;
633
+ created_by?: string | undefined;
634
+ updated_by?: string | undefined;
635
635
  }, {
636
636
  acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
637
637
  analysis: {
@@ -674,14 +674,13 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
674
674
  }>;
675
675
  export declare const UpdateRideJustificationSchema: z.ZodObject<{
676
676
  _id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
677
- created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
678
- updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
677
+ updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
679
678
  comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
680
679
  _id: z.ZodString;
681
680
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
682
- created_by: z.ZodDefault<z.ZodString>;
681
+ created_by: z.ZodOptional<z.ZodString>;
683
682
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
684
- updated_by: z.ZodDefault<z.ZodString>;
683
+ updated_by: z.ZodOptional<z.ZodString>;
685
684
  } & {
686
685
  message: z.ZodString;
687
686
  type: z.ZodLiteral<"note">;
@@ -690,13 +689,13 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
690
689
  created_at: number & {
691
690
  __brand: "UnixTimestamp";
692
691
  };
693
- created_by: string;
694
692
  updated_at: number & {
695
693
  __brand: "UnixTimestamp";
696
694
  };
697
- updated_by: string;
698
695
  message: string;
699
696
  type: "note";
697
+ created_by?: string | undefined;
698
+ updated_by?: string | undefined;
700
699
  }, {
701
700
  _id: string;
702
701
  created_at: number;
@@ -737,9 +736,9 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
737
736
  }>, z.ZodObject<{
738
737
  _id: z.ZodString;
739
738
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
740
- created_by: z.ZodDefault<z.ZodString>;
739
+ created_by: z.ZodOptional<z.ZodString>;
741
740
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
742
- updated_by: z.ZodDefault<z.ZodString>;
741
+ updated_by: z.ZodOptional<z.ZodString>;
743
742
  } & {
744
743
  curr_status: z.ZodString;
745
744
  prev_status: z.ZodString;
@@ -749,14 +748,14 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
749
748
  created_at: number & {
750
749
  __brand: "UnixTimestamp";
751
750
  };
752
- created_by: string;
753
751
  updated_at: number & {
754
752
  __brand: "UnixTimestamp";
755
753
  };
756
- updated_by: string;
757
754
  type: "statusChanged";
758
755
  curr_status: string;
759
756
  prev_status: string;
757
+ created_by?: string | undefined;
758
+ updated_by?: string | undefined;
760
759
  }, {
761
760
  _id: string;
762
761
  created_at: number;
@@ -771,13 +770,13 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
771
770
  created_at: number & {
772
771
  __brand: "UnixTimestamp";
773
772
  };
774
- created_by: string;
775
773
  updated_at: number & {
776
774
  __brand: "UnixTimestamp";
777
775
  };
778
- updated_by: string;
779
776
  message: string;
780
777
  type: "note";
778
+ created_by?: string | undefined;
779
+ updated_by?: string | undefined;
781
780
  } | {
782
781
  _id: string;
783
782
  created_at: number & {
@@ -795,14 +794,14 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
795
794
  created_at: number & {
796
795
  __brand: "UnixTimestamp";
797
796
  };
798
- created_by: string;
799
797
  updated_at: number & {
800
798
  __brand: "UnixTimestamp";
801
799
  };
802
- updated_by: string;
803
800
  type: "statusChanged";
804
801
  curr_status: string;
805
802
  prev_status: string;
803
+ created_by?: string | undefined;
804
+ updated_by?: string | undefined;
806
805
  }, {
807
806
  _id: string;
808
807
  created_at: number;
@@ -833,13 +832,13 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
833
832
  created_at: number & {
834
833
  __brand: "UnixTimestamp";
835
834
  };
836
- created_by: string;
837
835
  updated_at: number & {
838
836
  __brand: "UnixTimestamp";
839
837
  };
840
- updated_by: string;
841
838
  message: string;
842
839
  type: "note";
840
+ created_by?: string | undefined;
841
+ updated_by?: string | undefined;
843
842
  } | {
844
843
  _id: string;
845
844
  created_at: number & {
@@ -857,14 +856,14 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
857
856
  created_at: number & {
858
857
  __brand: "UnixTimestamp";
859
858
  };
860
- created_by: string;
861
859
  updated_at: number & {
862
860
  __brand: "UnixTimestamp";
863
861
  };
864
- updated_by: string;
865
862
  type: "statusChanged";
866
863
  curr_status: string;
867
864
  prev_status: string;
865
+ created_by?: string | undefined;
866
+ updated_by?: string | undefined;
868
867
  }, {
869
868
  _id: string;
870
869
  created_at: number;
@@ -910,20 +909,19 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
910
909
  trip_id: z.ZodOptional<z.ZodString>;
911
910
  }, "strict", z.ZodTypeAny, {
912
911
  _id?: string | undefined;
913
- created_by?: string | undefined;
914
912
  updated_by?: string | undefined;
915
913
  comments?: ({
916
914
  _id: string;
917
915
  created_at: number & {
918
916
  __brand: "UnixTimestamp";
919
917
  };
920
- created_by: string;
921
918
  updated_at: number & {
922
919
  __brand: "UnixTimestamp";
923
920
  };
924
- updated_by: string;
925
921
  message: string;
926
922
  type: "note";
923
+ created_by?: string | undefined;
924
+ updated_by?: string | undefined;
927
925
  } | {
928
926
  _id: string;
929
927
  created_at: number & {
@@ -941,14 +939,14 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
941
939
  created_at: number & {
942
940
  __brand: "UnixTimestamp";
943
941
  };
944
- created_by: string;
945
942
  updated_at: number & {
946
943
  __brand: "UnixTimestamp";
947
944
  };
948
- updated_by: string;
949
945
  type: "statusChanged";
950
946
  curr_status: string;
951
947
  prev_status: string;
948
+ created_by?: string | undefined;
949
+ updated_by?: string | undefined;
952
950
  })[] | undefined;
953
951
  acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
954
952
  analysis?: {
@@ -961,7 +959,6 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
961
959
  trip_id?: string | undefined;
962
960
  }, {
963
961
  _id?: string | undefined;
964
- created_by?: string | undefined;
965
962
  updated_by?: string | undefined;
966
963
  comments?: ({
967
964
  _id: string;
@@ -38,4 +38,4 @@ export const RideJustificationSchema = DocumentSchema.extend({
38
38
  trip_id: z.string(),
39
39
  }).strict();
40
40
  export const CreateRideJustificationSchema = RideJustificationSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
41
- export const UpdateRideJustificationSchema = CreateRideJustificationSchema.partial();
41
+ export const UpdateRideJustificationSchema = CreateRideJustificationSchema.omit({ created_by: true }).partial();