@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.
@@ -65,16 +65,14 @@ export declare const StopSchema: z.ZodObject<{
65
65
  file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
66
66
  image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
67
67
  comments: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
68
- _id: z.ZodString;
68
+ _id: z.ZodOptional<z.ZodString>;
69
69
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
70
70
  created_by: z.ZodOptional<z.ZodString>;
71
71
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
72
72
  updated_by: z.ZodOptional<z.ZodString>;
73
- } & {
74
73
  message: z.ZodString;
75
74
  type: z.ZodLiteral<"note">;
76
75
  }, "strip", z.ZodTypeAny, {
77
- _id: string;
78
76
  created_at: number & {
79
77
  __brand: "UnixTimestamp";
80
78
  };
@@ -83,30 +81,29 @@ export declare const StopSchema: z.ZodObject<{
83
81
  };
84
82
  message: string;
85
83
  type: "note";
84
+ _id?: string | undefined;
86
85
  created_by?: string | undefined;
87
86
  updated_by?: string | undefined;
88
87
  }, {
89
- _id: string;
90
88
  created_at: number;
91
89
  updated_at: number;
92
90
  message: string;
93
91
  type: "note";
92
+ _id?: string | undefined;
94
93
  created_by?: string | undefined;
95
94
  updated_by?: string | undefined;
96
95
  }>, z.ZodObject<{
97
- _id: z.ZodString;
96
+ _id: z.ZodOptional<z.ZodString>;
98
97
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
99
98
  created_by: z.ZodOptional<z.ZodString>;
100
99
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
101
100
  updated_by: z.ZodOptional<z.ZodString>;
102
- } & {
101
+ type: z.ZodLiteral<"field_changed">;
103
102
  curr_value: z.ZodAny;
104
103
  field: z.ZodString;
105
104
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
106
105
  prev_value: z.ZodAny;
107
- type: z.ZodLiteral<"field_changed">;
108
106
  }, "strip", z.ZodTypeAny, {
109
- _id: string;
110
107
  created_at: number & {
111
108
  __brand: "UnixTimestamp";
112
109
  };
@@ -115,24 +112,52 @@ export declare const StopSchema: z.ZodObject<{
115
112
  };
116
113
  type: "field_changed";
117
114
  field: string;
115
+ _id?: string | undefined;
118
116
  created_by?: string | undefined;
119
117
  updated_by?: string | undefined;
120
118
  curr_value?: any;
121
119
  metadata?: Record<string, unknown> | null | undefined;
122
120
  prev_value?: any;
123
121
  }, {
124
- _id: string;
125
122
  created_at: number;
126
123
  updated_at: number;
127
124
  type: "field_changed";
128
125
  field: string;
126
+ _id?: string | undefined;
129
127
  created_by?: string | undefined;
130
128
  updated_by?: string | undefined;
131
129
  curr_value?: any;
132
130
  metadata?: Record<string, unknown> | null | undefined;
133
131
  prev_value?: any;
132
+ }>, z.ZodObject<{
133
+ _id: z.ZodOptional<z.ZodString>;
134
+ created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
135
+ created_by: z.ZodOptional<z.ZodString>;
136
+ updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
137
+ updated_by: z.ZodOptional<z.ZodString>;
138
+ type: z.ZodLiteral<"crud">;
139
+ action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ created_at: number & {
142
+ __brand: "UnixTimestamp";
143
+ };
144
+ updated_at: number & {
145
+ __brand: "UnixTimestamp";
146
+ };
147
+ type: "crud";
148
+ action: "create" | "update" | "delete" | "archived" | "restored";
149
+ _id?: string | undefined;
150
+ created_by?: string | undefined;
151
+ updated_by?: string | undefined;
152
+ }, {
153
+ created_at: number;
154
+ updated_at: number;
155
+ type: "crud";
156
+ action: "create" | "update" | "delete" | "archived" | "restored";
157
+ _id?: string | undefined;
158
+ created_by?: string | undefined;
159
+ updated_by?: string | undefined;
134
160
  }>]>, {
135
- _id: string;
136
161
  created_at: number & {
137
162
  __brand: "UnixTimestamp";
138
163
  };
@@ -141,10 +166,10 @@ export declare const StopSchema: z.ZodObject<{
141
166
  };
142
167
  message: string;
143
168
  type: "note";
169
+ _id?: string | undefined;
144
170
  created_by?: string | undefined;
145
171
  updated_by?: string | undefined;
146
172
  } | {
147
- _id: string;
148
173
  created_at: number & {
149
174
  __brand: "UnixTimestamp";
150
175
  };
@@ -153,30 +178,51 @@ export declare const StopSchema: z.ZodObject<{
153
178
  };
154
179
  type: "field_changed";
155
180
  field: string;
181
+ _id?: string | undefined;
156
182
  created_by?: string | undefined;
157
183
  updated_by?: string | undefined;
158
184
  curr_value?: any;
159
185
  metadata?: Record<string, unknown> | null | undefined;
160
186
  prev_value?: any;
187
+ } | {
188
+ created_at: number & {
189
+ __brand: "UnixTimestamp";
190
+ };
191
+ updated_at: number & {
192
+ __brand: "UnixTimestamp";
193
+ };
194
+ type: "crud";
195
+ action: "create" | "update" | "delete" | "archived" | "restored";
196
+ _id?: string | undefined;
197
+ created_by?: string | undefined;
198
+ updated_by?: string | undefined;
161
199
  }, {
162
- _id: string;
163
200
  created_at: number;
164
201
  updated_at: number;
165
202
  message: string;
166
203
  type: "note";
204
+ _id?: string | undefined;
167
205
  created_by?: string | undefined;
168
206
  updated_by?: string | undefined;
169
207
  } | {
170
- _id: string;
171
208
  created_at: number;
172
209
  updated_at: number;
173
210
  type: "field_changed";
174
211
  field: string;
212
+ _id?: string | undefined;
175
213
  created_by?: string | undefined;
176
214
  updated_by?: string | undefined;
177
215
  curr_value?: any;
178
216
  metadata?: Record<string, unknown> | null | undefined;
179
217
  prev_value?: any;
218
+ } | {
219
+ created_at: number;
220
+ updated_at: number;
221
+ type: "crud";
222
+ action: "create" | "update" | "delete" | "archived" | "restored";
223
+ _id?: string | undefined;
224
+ created_by?: string | undefined;
225
+ updated_by?: string | undefined;
180
226
  }>, "many">;
181
227
  observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
228
  }, "strict", z.ZodTypeAny, {
@@ -196,7 +242,6 @@ export declare const StopSchema: z.ZodObject<{
196
242
  municipality_id: string;
197
243
  is_locked: boolean;
198
244
  comments: ({
199
- _id: string;
200
245
  created_at: number & {
201
246
  __brand: "UnixTimestamp";
202
247
  };
@@ -205,10 +250,10 @@ export declare const StopSchema: z.ZodObject<{
205
250
  };
206
251
  message: string;
207
252
  type: "note";
253
+ _id?: string | undefined;
208
254
  created_by?: string | undefined;
209
255
  updated_by?: string | undefined;
210
256
  } | {
211
- _id: string;
212
257
  created_at: number & {
213
258
  __brand: "UnixTimestamp";
214
259
  };
@@ -217,11 +262,24 @@ export declare const StopSchema: z.ZodObject<{
217
262
  };
218
263
  type: "field_changed";
219
264
  field: string;
265
+ _id?: string | undefined;
220
266
  created_by?: string | undefined;
221
267
  updated_by?: string | undefined;
222
268
  curr_value?: any;
223
269
  metadata?: Record<string, unknown> | null | undefined;
224
270
  prev_value?: any;
271
+ } | {
272
+ created_at: number & {
273
+ __brand: "UnixTimestamp";
274
+ };
275
+ updated_at: number & {
276
+ __brand: "UnixTimestamp";
277
+ };
278
+ type: "crud";
279
+ action: "create" | "update" | "delete" | "archived" | "restored";
280
+ _id?: string | undefined;
281
+ created_by?: string | undefined;
282
+ updated_by?: string | undefined;
225
283
  })[];
226
284
  is_archived: boolean;
227
285
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
@@ -271,24 +329,32 @@ export declare const StopSchema: z.ZodObject<{
271
329
  has_stop_sign: "unknown" | "yes" | "no";
272
330
  municipality_id: string;
273
331
  comments: ({
274
- _id: string;
275
332
  created_at: number;
276
333
  updated_at: number;
277
334
  message: string;
278
335
  type: "note";
336
+ _id?: string | undefined;
279
337
  created_by?: string | undefined;
280
338
  updated_by?: string | undefined;
281
339
  } | {
282
- _id: string;
283
340
  created_at: number;
284
341
  updated_at: number;
285
342
  type: "field_changed";
286
343
  field: string;
344
+ _id?: string | undefined;
287
345
  created_by?: string | undefined;
288
346
  updated_by?: string | undefined;
289
347
  curr_value?: any;
290
348
  metadata?: Record<string, unknown> | null | undefined;
291
349
  prev_value?: any;
350
+ } | {
351
+ created_at: number;
352
+ updated_at: number;
353
+ type: "crud";
354
+ action: "create" | "update" | "delete" | "archived" | "restored";
355
+ _id?: string | undefined;
356
+ created_by?: string | undefined;
357
+ updated_by?: string | undefined;
292
358
  })[];
293
359
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
294
360
  operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
@@ -434,16 +500,14 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
434
500
  file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
435
501
  image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
436
502
  comments: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
437
- _id: z.ZodString;
503
+ _id: z.ZodOptional<z.ZodString>;
438
504
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
439
505
  created_by: z.ZodOptional<z.ZodString>;
440
506
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
441
507
  updated_by: z.ZodOptional<z.ZodString>;
442
- } & {
443
508
  message: z.ZodString;
444
509
  type: z.ZodLiteral<"note">;
445
510
  }, "strip", z.ZodTypeAny, {
446
- _id: string;
447
511
  created_at: number & {
448
512
  __brand: "UnixTimestamp";
449
513
  };
@@ -452,30 +516,29 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
452
516
  };
453
517
  message: string;
454
518
  type: "note";
519
+ _id?: string | undefined;
455
520
  created_by?: string | undefined;
456
521
  updated_by?: string | undefined;
457
522
  }, {
458
- _id: string;
459
523
  created_at: number;
460
524
  updated_at: number;
461
525
  message: string;
462
526
  type: "note";
527
+ _id?: string | undefined;
463
528
  created_by?: string | undefined;
464
529
  updated_by?: string | undefined;
465
530
  }>, z.ZodObject<{
466
- _id: z.ZodString;
531
+ _id: z.ZodOptional<z.ZodString>;
467
532
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
468
533
  created_by: z.ZodOptional<z.ZodString>;
469
534
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
470
535
  updated_by: z.ZodOptional<z.ZodString>;
471
- } & {
536
+ type: z.ZodLiteral<"field_changed">;
472
537
  curr_value: z.ZodAny;
473
538
  field: z.ZodString;
474
539
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
475
540
  prev_value: z.ZodAny;
476
- type: z.ZodLiteral<"field_changed">;
477
541
  }, "strip", z.ZodTypeAny, {
478
- _id: string;
479
542
  created_at: number & {
480
543
  __brand: "UnixTimestamp";
481
544
  };
@@ -484,24 +547,52 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
484
547
  };
485
548
  type: "field_changed";
486
549
  field: string;
550
+ _id?: string | undefined;
487
551
  created_by?: string | undefined;
488
552
  updated_by?: string | undefined;
489
553
  curr_value?: any;
490
554
  metadata?: Record<string, unknown> | null | undefined;
491
555
  prev_value?: any;
492
556
  }, {
493
- _id: string;
494
557
  created_at: number;
495
558
  updated_at: number;
496
559
  type: "field_changed";
497
560
  field: string;
561
+ _id?: string | undefined;
498
562
  created_by?: string | undefined;
499
563
  updated_by?: string | undefined;
500
564
  curr_value?: any;
501
565
  metadata?: Record<string, unknown> | null | undefined;
502
566
  prev_value?: any;
567
+ }>, z.ZodObject<{
568
+ _id: z.ZodOptional<z.ZodString>;
569
+ created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
570
+ created_by: z.ZodOptional<z.ZodString>;
571
+ updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
572
+ updated_by: z.ZodOptional<z.ZodString>;
573
+ type: z.ZodLiteral<"crud">;
574
+ action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ created_at: number & {
577
+ __brand: "UnixTimestamp";
578
+ };
579
+ updated_at: number & {
580
+ __brand: "UnixTimestamp";
581
+ };
582
+ type: "crud";
583
+ action: "create" | "update" | "delete" | "archived" | "restored";
584
+ _id?: string | undefined;
585
+ created_by?: string | undefined;
586
+ updated_by?: string | undefined;
587
+ }, {
588
+ created_at: number;
589
+ updated_at: number;
590
+ type: "crud";
591
+ action: "create" | "update" | "delete" | "archived" | "restored";
592
+ _id?: string | undefined;
593
+ created_by?: string | undefined;
594
+ updated_by?: string | undefined;
503
595
  }>]>, {
504
- _id: string;
505
596
  created_at: number & {
506
597
  __brand: "UnixTimestamp";
507
598
  };
@@ -510,10 +601,10 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
510
601
  };
511
602
  message: string;
512
603
  type: "note";
604
+ _id?: string | undefined;
513
605
  created_by?: string | undefined;
514
606
  updated_by?: string | undefined;
515
607
  } | {
516
- _id: string;
517
608
  created_at: number & {
518
609
  __brand: "UnixTimestamp";
519
610
  };
@@ -522,30 +613,51 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
522
613
  };
523
614
  type: "field_changed";
524
615
  field: string;
616
+ _id?: string | undefined;
525
617
  created_by?: string | undefined;
526
618
  updated_by?: string | undefined;
527
619
  curr_value?: any;
528
620
  metadata?: Record<string, unknown> | null | undefined;
529
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;
530
634
  }, {
531
- _id: string;
532
635
  created_at: number;
533
636
  updated_at: number;
534
637
  message: string;
535
638
  type: "note";
639
+ _id?: string | undefined;
536
640
  created_by?: string | undefined;
537
641
  updated_by?: string | undefined;
538
642
  } | {
539
- _id: string;
540
643
  created_at: number;
541
644
  updated_at: number;
542
645
  type: "field_changed";
543
646
  field: string;
647
+ _id?: string | undefined;
544
648
  created_by?: string | undefined;
545
649
  updated_by?: string | undefined;
546
650
  curr_value?: any;
547
651
  metadata?: Record<string, unknown> | null | undefined;
548
652
  prev_value?: any;
653
+ } | {
654
+ created_at: number;
655
+ updated_at: number;
656
+ type: "crud";
657
+ action: "create" | "update" | "delete" | "archived" | "restored";
658
+ _id?: string | undefined;
659
+ created_by?: string | undefined;
660
+ updated_by?: string | undefined;
549
661
  }>, "many">;
550
662
  observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
663
  }, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
@@ -558,7 +670,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
558
670
  municipality_id: string;
559
671
  is_locked: boolean;
560
672
  comments: ({
561
- _id: string;
562
673
  created_at: number & {
563
674
  __brand: "UnixTimestamp";
564
675
  };
@@ -567,10 +678,10 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
567
678
  };
568
679
  message: string;
569
680
  type: "note";
681
+ _id?: string | undefined;
570
682
  created_by?: string | undefined;
571
683
  updated_by?: string | undefined;
572
684
  } | {
573
- _id: string;
574
685
  created_at: number & {
575
686
  __brand: "UnixTimestamp";
576
687
  };
@@ -579,11 +690,24 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
579
690
  };
580
691
  type: "field_changed";
581
692
  field: string;
693
+ _id?: string | undefined;
582
694
  created_by?: string | undefined;
583
695
  updated_by?: string | undefined;
584
696
  curr_value?: any;
585
697
  metadata?: Record<string, unknown> | null | undefined;
586
698
  prev_value?: any;
699
+ } | {
700
+ created_at: number & {
701
+ __brand: "UnixTimestamp";
702
+ };
703
+ updated_at: number & {
704
+ __brand: "UnixTimestamp";
705
+ };
706
+ type: "crud";
707
+ action: "create" | "update" | "delete" | "archived" | "restored";
708
+ _id?: string | undefined;
709
+ created_by?: string | undefined;
710
+ updated_by?: string | undefined;
587
711
  })[];
588
712
  is_archived: boolean;
589
713
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
@@ -630,24 +754,32 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
630
754
  has_stop_sign: "unknown" | "yes" | "no";
631
755
  municipality_id: string;
632
756
  comments: ({
633
- _id: string;
634
757
  created_at: number;
635
758
  updated_at: number;
636
759
  message: string;
637
760
  type: "note";
761
+ _id?: string | undefined;
638
762
  created_by?: string | undefined;
639
763
  updated_by?: string | undefined;
640
764
  } | {
641
- _id: string;
642
765
  created_at: number;
643
766
  updated_at: number;
644
767
  type: "field_changed";
645
768
  field: string;
769
+ _id?: string | undefined;
646
770
  created_by?: string | undefined;
647
771
  updated_by?: string | undefined;
648
772
  curr_value?: any;
649
773
  metadata?: Record<string, unknown> | null | undefined;
650
774
  prev_value?: any;
775
+ } | {
776
+ created_at: number;
777
+ updated_at: number;
778
+ type: "crud";
779
+ action: "create" | "update" | "delete" | "archived" | "restored";
780
+ _id?: string | undefined;
781
+ created_by?: string | undefined;
782
+ updated_by?: string | undefined;
651
783
  })[];
652
784
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
653
785
  operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
@@ -702,16 +834,14 @@ export declare const UpdateStopSchema: z.ZodObject<{
702
834
  shelter_maintainer: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
703
835
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
704
836
  comments: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
705
- _id: z.ZodString;
837
+ _id: z.ZodOptional<z.ZodString>;
706
838
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
707
839
  created_by: z.ZodOptional<z.ZodString>;
708
840
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
709
841
  updated_by: z.ZodOptional<z.ZodString>;
710
- } & {
711
842
  message: z.ZodString;
712
843
  type: z.ZodLiteral<"note">;
713
844
  }, "strip", z.ZodTypeAny, {
714
- _id: string;
715
845
  created_at: number & {
716
846
  __brand: "UnixTimestamp";
717
847
  };
@@ -720,30 +850,29 @@ export declare const UpdateStopSchema: z.ZodObject<{
720
850
  };
721
851
  message: string;
722
852
  type: "note";
853
+ _id?: string | undefined;
723
854
  created_by?: string | undefined;
724
855
  updated_by?: string | undefined;
725
856
  }, {
726
- _id: string;
727
857
  created_at: number;
728
858
  updated_at: number;
729
859
  message: string;
730
860
  type: "note";
861
+ _id?: string | undefined;
731
862
  created_by?: string | undefined;
732
863
  updated_by?: string | undefined;
733
864
  }>, z.ZodObject<{
734
- _id: z.ZodString;
865
+ _id: z.ZodOptional<z.ZodString>;
735
866
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
736
867
  created_by: z.ZodOptional<z.ZodString>;
737
868
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
738
869
  updated_by: z.ZodOptional<z.ZodString>;
739
- } & {
870
+ type: z.ZodLiteral<"field_changed">;
740
871
  curr_value: z.ZodAny;
741
872
  field: z.ZodString;
742
873
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
743
874
  prev_value: z.ZodAny;
744
- type: z.ZodLiteral<"field_changed">;
745
875
  }, "strip", z.ZodTypeAny, {
746
- _id: string;
747
876
  created_at: number & {
748
877
  __brand: "UnixTimestamp";
749
878
  };
@@ -752,24 +881,52 @@ export declare const UpdateStopSchema: z.ZodObject<{
752
881
  };
753
882
  type: "field_changed";
754
883
  field: string;
884
+ _id?: string | undefined;
755
885
  created_by?: string | undefined;
756
886
  updated_by?: string | undefined;
757
887
  curr_value?: any;
758
888
  metadata?: Record<string, unknown> | null | undefined;
759
889
  prev_value?: any;
760
890
  }, {
761
- _id: string;
762
891
  created_at: number;
763
892
  updated_at: number;
764
893
  type: "field_changed";
765
894
  field: string;
895
+ _id?: string | undefined;
766
896
  created_by?: string | undefined;
767
897
  updated_by?: string | undefined;
768
898
  curr_value?: any;
769
899
  metadata?: Record<string, unknown> | null | undefined;
770
900
  prev_value?: any;
901
+ }>, z.ZodObject<{
902
+ _id: z.ZodOptional<z.ZodString>;
903
+ created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
904
+ created_by: z.ZodOptional<z.ZodString>;
905
+ updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
906
+ updated_by: z.ZodOptional<z.ZodString>;
907
+ type: z.ZodLiteral<"crud">;
908
+ action: z.ZodEnum<["create", "update", "delete", "archived", "restored"]>;
909
+ }, "strip", z.ZodTypeAny, {
910
+ created_at: number & {
911
+ __brand: "UnixTimestamp";
912
+ };
913
+ updated_at: number & {
914
+ __brand: "UnixTimestamp";
915
+ };
916
+ type: "crud";
917
+ action: "create" | "update" | "delete" | "archived" | "restored";
918
+ _id?: string | undefined;
919
+ created_by?: string | undefined;
920
+ updated_by?: string | undefined;
921
+ }, {
922
+ created_at: number;
923
+ updated_at: number;
924
+ type: "crud";
925
+ action: "create" | "update" | "delete" | "archived" | "restored";
926
+ _id?: string | undefined;
927
+ created_by?: string | undefined;
928
+ updated_by?: string | undefined;
771
929
  }>]>, {
772
- _id: string;
773
930
  created_at: number & {
774
931
  __brand: "UnixTimestamp";
775
932
  };
@@ -778,10 +935,10 @@ export declare const UpdateStopSchema: z.ZodObject<{
778
935
  };
779
936
  message: string;
780
937
  type: "note";
938
+ _id?: string | undefined;
781
939
  created_by?: string | undefined;
782
940
  updated_by?: string | undefined;
783
941
  } | {
784
- _id: string;
785
942
  created_at: number & {
786
943
  __brand: "UnixTimestamp";
787
944
  };
@@ -790,30 +947,51 @@ export declare const UpdateStopSchema: z.ZodObject<{
790
947
  };
791
948
  type: "field_changed";
792
949
  field: string;
950
+ _id?: string | undefined;
793
951
  created_by?: string | undefined;
794
952
  updated_by?: string | undefined;
795
953
  curr_value?: any;
796
954
  metadata?: Record<string, unknown> | null | undefined;
797
955
  prev_value?: any;
956
+ } | {
957
+ created_at: number & {
958
+ __brand: "UnixTimestamp";
959
+ };
960
+ updated_at: number & {
961
+ __brand: "UnixTimestamp";
962
+ };
963
+ type: "crud";
964
+ action: "create" | "update" | "delete" | "archived" | "restored";
965
+ _id?: string | undefined;
966
+ created_by?: string | undefined;
967
+ updated_by?: string | undefined;
798
968
  }, {
799
- _id: string;
800
969
  created_at: number;
801
970
  updated_at: number;
802
971
  message: string;
803
972
  type: "note";
973
+ _id?: string | undefined;
804
974
  created_by?: string | undefined;
805
975
  updated_by?: string | undefined;
806
976
  } | {
807
- _id: string;
808
977
  created_at: number;
809
978
  updated_at: number;
810
979
  type: "field_changed";
811
980
  field: string;
981
+ _id?: string | undefined;
812
982
  created_by?: string | undefined;
813
983
  updated_by?: string | undefined;
814
984
  curr_value?: any;
815
985
  metadata?: Record<string, unknown> | null | undefined;
816
986
  prev_value?: any;
987
+ } | {
988
+ created_at: number;
989
+ updated_at: number;
990
+ type: "crud";
991
+ action: "create" | "update" | "delete" | "archived" | "restored";
992
+ _id?: string | undefined;
993
+ created_by?: string | undefined;
994
+ updated_by?: string | undefined;
817
995
  }>, "many">>;
818
996
  is_archived: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
819
997
  jurisdiction: z.ZodOptional<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
@@ -860,7 +1038,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
860
1038
  shelter_maintainer?: string | null | undefined;
861
1039
  is_locked?: boolean | undefined;
862
1040
  comments?: ({
863
- _id: string;
864
1041
  created_at: number & {
865
1042
  __brand: "UnixTimestamp";
866
1043
  };
@@ -869,10 +1046,10 @@ export declare const UpdateStopSchema: z.ZodObject<{
869
1046
  };
870
1047
  message: string;
871
1048
  type: "note";
1049
+ _id?: string | undefined;
872
1050
  created_by?: string | undefined;
873
1051
  updated_by?: string | undefined;
874
1052
  } | {
875
- _id: string;
876
1053
  created_at: number & {
877
1054
  __brand: "UnixTimestamp";
878
1055
  };
@@ -881,11 +1058,24 @@ export declare const UpdateStopSchema: z.ZodObject<{
881
1058
  };
882
1059
  type: "field_changed";
883
1060
  field: string;
1061
+ _id?: string | undefined;
884
1062
  created_by?: string | undefined;
885
1063
  updated_by?: string | undefined;
886
1064
  curr_value?: any;
887
1065
  metadata?: Record<string, unknown> | null | undefined;
888
1066
  prev_value?: any;
1067
+ } | {
1068
+ created_at: number & {
1069
+ __brand: "UnixTimestamp";
1070
+ };
1071
+ updated_at: number & {
1072
+ __brand: "UnixTimestamp";
1073
+ };
1074
+ type: "crud";
1075
+ action: "create" | "update" | "delete" | "archived" | "restored";
1076
+ _id?: string | undefined;
1077
+ created_by?: string | undefined;
1078
+ updated_by?: string | undefined;
889
1079
  })[] | undefined;
890
1080
  is_archived?: boolean | undefined;
891
1081
  jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
@@ -932,24 +1122,32 @@ export declare const UpdateStopSchema: z.ZodObject<{
932
1122
  shelter_maintainer?: string | null | undefined;
933
1123
  is_locked?: boolean | undefined;
934
1124
  comments?: ({
935
- _id: string;
936
1125
  created_at: number;
937
1126
  updated_at: number;
938
1127
  message: string;
939
1128
  type: "note";
1129
+ _id?: string | undefined;
940
1130
  created_by?: string | undefined;
941
1131
  updated_by?: string | undefined;
942
1132
  } | {
943
- _id: string;
944
1133
  created_at: number;
945
1134
  updated_at: number;
946
1135
  type: "field_changed";
947
1136
  field: string;
1137
+ _id?: string | undefined;
948
1138
  created_by?: string | undefined;
949
1139
  updated_by?: string | undefined;
950
1140
  curr_value?: any;
951
1141
  metadata?: Record<string, unknown> | null | undefined;
952
1142
  prev_value?: any;
1143
+ } | {
1144
+ created_at: number;
1145
+ updated_at: number;
1146
+ type: "crud";
1147
+ action: "create" | "update" | "delete" | "archived" | "restored";
1148
+ _id?: string | undefined;
1149
+ created_by?: string | undefined;
1150
+ updated_by?: string | undefined;
953
1151
  })[] | undefined;
954
1152
  is_archived?: boolean | undefined;
955
1153
  jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;