@tmlmobilidade/types 20250917.1113.55 → 20250917.1133.15

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,24 @@ 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;
134
132
  }>]>, {
135
- _id: string;
136
133
  created_at: number & {
137
134
  __brand: "UnixTimestamp";
138
135
  };
@@ -141,10 +138,10 @@ export declare const StopSchema: z.ZodObject<{
141
138
  };
142
139
  message: string;
143
140
  type: "note";
141
+ _id?: string | undefined;
144
142
  created_by?: string | undefined;
145
143
  updated_by?: string | undefined;
146
144
  } | {
147
- _id: string;
148
145
  created_at: number & {
149
146
  __brand: "UnixTimestamp";
150
147
  };
@@ -153,25 +150,26 @@ export declare const StopSchema: z.ZodObject<{
153
150
  };
154
151
  type: "field_changed";
155
152
  field: string;
153
+ _id?: string | undefined;
156
154
  created_by?: string | undefined;
157
155
  updated_by?: string | undefined;
158
156
  curr_value?: any;
159
157
  metadata?: Record<string, unknown> | null | undefined;
160
158
  prev_value?: any;
161
159
  }, {
162
- _id: string;
163
160
  created_at: number;
164
161
  updated_at: number;
165
162
  message: string;
166
163
  type: "note";
164
+ _id?: string | undefined;
167
165
  created_by?: string | undefined;
168
166
  updated_by?: string | undefined;
169
167
  } | {
170
- _id: string;
171
168
  created_at: number;
172
169
  updated_at: number;
173
170
  type: "field_changed";
174
171
  field: string;
172
+ _id?: string | undefined;
175
173
  created_by?: string | undefined;
176
174
  updated_by?: string | undefined;
177
175
  curr_value?: any;
@@ -196,7 +194,6 @@ export declare const StopSchema: z.ZodObject<{
196
194
  municipality_id: string;
197
195
  is_locked: boolean;
198
196
  comments: ({
199
- _id: string;
200
197
  created_at: number & {
201
198
  __brand: "UnixTimestamp";
202
199
  };
@@ -205,10 +202,10 @@ export declare const StopSchema: z.ZodObject<{
205
202
  };
206
203
  message: string;
207
204
  type: "note";
205
+ _id?: string | undefined;
208
206
  created_by?: string | undefined;
209
207
  updated_by?: string | undefined;
210
208
  } | {
211
- _id: string;
212
209
  created_at: number & {
213
210
  __brand: "UnixTimestamp";
214
211
  };
@@ -217,6 +214,7 @@ export declare const StopSchema: z.ZodObject<{
217
214
  };
218
215
  type: "field_changed";
219
216
  field: string;
217
+ _id?: string | undefined;
220
218
  created_by?: string | undefined;
221
219
  updated_by?: string | undefined;
222
220
  curr_value?: any;
@@ -271,19 +269,19 @@ export declare const StopSchema: z.ZodObject<{
271
269
  has_stop_sign: "unknown" | "yes" | "no";
272
270
  municipality_id: string;
273
271
  comments: ({
274
- _id: string;
275
272
  created_at: number;
276
273
  updated_at: number;
277
274
  message: string;
278
275
  type: "note";
276
+ _id?: string | undefined;
279
277
  created_by?: string | undefined;
280
278
  updated_by?: string | undefined;
281
279
  } | {
282
- _id: string;
283
280
  created_at: number;
284
281
  updated_at: number;
285
282
  type: "field_changed";
286
283
  field: string;
284
+ _id?: string | undefined;
287
285
  created_by?: string | undefined;
288
286
  updated_by?: string | undefined;
289
287
  curr_value?: any;
@@ -434,16 +432,14 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
434
432
  file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
435
433
  image_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
436
434
  comments: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
437
- _id: z.ZodString;
435
+ _id: z.ZodOptional<z.ZodString>;
438
436
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
439
437
  created_by: z.ZodOptional<z.ZodString>;
440
438
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
441
439
  updated_by: z.ZodOptional<z.ZodString>;
442
- } & {
443
440
  message: z.ZodString;
444
441
  type: z.ZodLiteral<"note">;
445
442
  }, "strip", z.ZodTypeAny, {
446
- _id: string;
447
443
  created_at: number & {
448
444
  __brand: "UnixTimestamp";
449
445
  };
@@ -452,30 +448,29 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
452
448
  };
453
449
  message: string;
454
450
  type: "note";
451
+ _id?: string | undefined;
455
452
  created_by?: string | undefined;
456
453
  updated_by?: string | undefined;
457
454
  }, {
458
- _id: string;
459
455
  created_at: number;
460
456
  updated_at: number;
461
457
  message: string;
462
458
  type: "note";
459
+ _id?: string | undefined;
463
460
  created_by?: string | undefined;
464
461
  updated_by?: string | undefined;
465
462
  }>, z.ZodObject<{
466
- _id: z.ZodString;
463
+ _id: z.ZodOptional<z.ZodString>;
467
464
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
468
465
  created_by: z.ZodOptional<z.ZodString>;
469
466
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
470
467
  updated_by: z.ZodOptional<z.ZodString>;
471
- } & {
468
+ type: z.ZodLiteral<"field_changed">;
472
469
  curr_value: z.ZodAny;
473
470
  field: z.ZodString;
474
471
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
475
472
  prev_value: z.ZodAny;
476
- type: z.ZodLiteral<"field_changed">;
477
473
  }, "strip", z.ZodTypeAny, {
478
- _id: string;
479
474
  created_at: number & {
480
475
  __brand: "UnixTimestamp";
481
476
  };
@@ -484,24 +479,24 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
484
479
  };
485
480
  type: "field_changed";
486
481
  field: string;
482
+ _id?: string | undefined;
487
483
  created_by?: string | undefined;
488
484
  updated_by?: string | undefined;
489
485
  curr_value?: any;
490
486
  metadata?: Record<string, unknown> | null | undefined;
491
487
  prev_value?: any;
492
488
  }, {
493
- _id: string;
494
489
  created_at: number;
495
490
  updated_at: number;
496
491
  type: "field_changed";
497
492
  field: string;
493
+ _id?: string | undefined;
498
494
  created_by?: string | undefined;
499
495
  updated_by?: string | undefined;
500
496
  curr_value?: any;
501
497
  metadata?: Record<string, unknown> | null | undefined;
502
498
  prev_value?: any;
503
499
  }>]>, {
504
- _id: string;
505
500
  created_at: number & {
506
501
  __brand: "UnixTimestamp";
507
502
  };
@@ -510,10 +505,10 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
510
505
  };
511
506
  message: string;
512
507
  type: "note";
508
+ _id?: string | undefined;
513
509
  created_by?: string | undefined;
514
510
  updated_by?: string | undefined;
515
511
  } | {
516
- _id: string;
517
512
  created_at: number & {
518
513
  __brand: "UnixTimestamp";
519
514
  };
@@ -522,25 +517,26 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
522
517
  };
523
518
  type: "field_changed";
524
519
  field: string;
520
+ _id?: string | undefined;
525
521
  created_by?: string | undefined;
526
522
  updated_by?: string | undefined;
527
523
  curr_value?: any;
528
524
  metadata?: Record<string, unknown> | null | undefined;
529
525
  prev_value?: any;
530
526
  }, {
531
- _id: string;
532
527
  created_at: number;
533
528
  updated_at: number;
534
529
  message: string;
535
530
  type: "note";
531
+ _id?: string | undefined;
536
532
  created_by?: string | undefined;
537
533
  updated_by?: string | undefined;
538
534
  } | {
539
- _id: string;
540
535
  created_at: number;
541
536
  updated_at: number;
542
537
  type: "field_changed";
543
538
  field: string;
539
+ _id?: string | undefined;
544
540
  created_by?: string | undefined;
545
541
  updated_by?: string | undefined;
546
542
  curr_value?: any;
@@ -558,7 +554,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
558
554
  municipality_id: string;
559
555
  is_locked: boolean;
560
556
  comments: ({
561
- _id: string;
562
557
  created_at: number & {
563
558
  __brand: "UnixTimestamp";
564
559
  };
@@ -567,10 +562,10 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
567
562
  };
568
563
  message: string;
569
564
  type: "note";
565
+ _id?: string | undefined;
570
566
  created_by?: string | undefined;
571
567
  updated_by?: string | undefined;
572
568
  } | {
573
- _id: string;
574
569
  created_at: number & {
575
570
  __brand: "UnixTimestamp";
576
571
  };
@@ -579,6 +574,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
579
574
  };
580
575
  type: "field_changed";
581
576
  field: string;
577
+ _id?: string | undefined;
582
578
  created_by?: string | undefined;
583
579
  updated_by?: string | undefined;
584
580
  curr_value?: any;
@@ -630,19 +626,19 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
630
626
  has_stop_sign: "unknown" | "yes" | "no";
631
627
  municipality_id: string;
632
628
  comments: ({
633
- _id: string;
634
629
  created_at: number;
635
630
  updated_at: number;
636
631
  message: string;
637
632
  type: "note";
633
+ _id?: string | undefined;
638
634
  created_by?: string | undefined;
639
635
  updated_by?: string | undefined;
640
636
  } | {
641
- _id: string;
642
637
  created_at: number;
643
638
  updated_at: number;
644
639
  type: "field_changed";
645
640
  field: string;
641
+ _id?: string | undefined;
646
642
  created_by?: string | undefined;
647
643
  updated_by?: string | undefined;
648
644
  curr_value?: any;
@@ -702,16 +698,14 @@ export declare const UpdateStopSchema: z.ZodObject<{
702
698
  shelter_maintainer: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
703
699
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
704
700
  comments: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
705
- _id: z.ZodString;
701
+ _id: z.ZodOptional<z.ZodString>;
706
702
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
707
703
  created_by: z.ZodOptional<z.ZodString>;
708
704
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
709
705
  updated_by: z.ZodOptional<z.ZodString>;
710
- } & {
711
706
  message: z.ZodString;
712
707
  type: z.ZodLiteral<"note">;
713
708
  }, "strip", z.ZodTypeAny, {
714
- _id: string;
715
709
  created_at: number & {
716
710
  __brand: "UnixTimestamp";
717
711
  };
@@ -720,30 +714,29 @@ export declare const UpdateStopSchema: z.ZodObject<{
720
714
  };
721
715
  message: string;
722
716
  type: "note";
717
+ _id?: string | undefined;
723
718
  created_by?: string | undefined;
724
719
  updated_by?: string | undefined;
725
720
  }, {
726
- _id: string;
727
721
  created_at: number;
728
722
  updated_at: number;
729
723
  message: string;
730
724
  type: "note";
725
+ _id?: string | undefined;
731
726
  created_by?: string | undefined;
732
727
  updated_by?: string | undefined;
733
728
  }>, z.ZodObject<{
734
- _id: z.ZodString;
729
+ _id: z.ZodOptional<z.ZodString>;
735
730
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
736
731
  created_by: z.ZodOptional<z.ZodString>;
737
732
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
738
733
  updated_by: z.ZodOptional<z.ZodString>;
739
- } & {
734
+ type: z.ZodLiteral<"field_changed">;
740
735
  curr_value: z.ZodAny;
741
736
  field: z.ZodString;
742
737
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
743
738
  prev_value: z.ZodAny;
744
- type: z.ZodLiteral<"field_changed">;
745
739
  }, "strip", z.ZodTypeAny, {
746
- _id: string;
747
740
  created_at: number & {
748
741
  __brand: "UnixTimestamp";
749
742
  };
@@ -752,24 +745,24 @@ export declare const UpdateStopSchema: z.ZodObject<{
752
745
  };
753
746
  type: "field_changed";
754
747
  field: string;
748
+ _id?: string | undefined;
755
749
  created_by?: string | undefined;
756
750
  updated_by?: string | undefined;
757
751
  curr_value?: any;
758
752
  metadata?: Record<string, unknown> | null | undefined;
759
753
  prev_value?: any;
760
754
  }, {
761
- _id: string;
762
755
  created_at: number;
763
756
  updated_at: number;
764
757
  type: "field_changed";
765
758
  field: string;
759
+ _id?: string | undefined;
766
760
  created_by?: string | undefined;
767
761
  updated_by?: string | undefined;
768
762
  curr_value?: any;
769
763
  metadata?: Record<string, unknown> | null | undefined;
770
764
  prev_value?: any;
771
765
  }>]>, {
772
- _id: string;
773
766
  created_at: number & {
774
767
  __brand: "UnixTimestamp";
775
768
  };
@@ -778,10 +771,10 @@ export declare const UpdateStopSchema: z.ZodObject<{
778
771
  };
779
772
  message: string;
780
773
  type: "note";
774
+ _id?: string | undefined;
781
775
  created_by?: string | undefined;
782
776
  updated_by?: string | undefined;
783
777
  } | {
784
- _id: string;
785
778
  created_at: number & {
786
779
  __brand: "UnixTimestamp";
787
780
  };
@@ -790,25 +783,26 @@ export declare const UpdateStopSchema: z.ZodObject<{
790
783
  };
791
784
  type: "field_changed";
792
785
  field: string;
786
+ _id?: string | undefined;
793
787
  created_by?: string | undefined;
794
788
  updated_by?: string | undefined;
795
789
  curr_value?: any;
796
790
  metadata?: Record<string, unknown> | null | undefined;
797
791
  prev_value?: any;
798
792
  }, {
799
- _id: string;
800
793
  created_at: number;
801
794
  updated_at: number;
802
795
  message: string;
803
796
  type: "note";
797
+ _id?: string | undefined;
804
798
  created_by?: string | undefined;
805
799
  updated_by?: string | undefined;
806
800
  } | {
807
- _id: string;
808
801
  created_at: number;
809
802
  updated_at: number;
810
803
  type: "field_changed";
811
804
  field: string;
805
+ _id?: string | undefined;
812
806
  created_by?: string | undefined;
813
807
  updated_by?: string | undefined;
814
808
  curr_value?: any;
@@ -860,7 +854,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
860
854
  shelter_maintainer?: string | null | undefined;
861
855
  is_locked?: boolean | undefined;
862
856
  comments?: ({
863
- _id: string;
864
857
  created_at: number & {
865
858
  __brand: "UnixTimestamp";
866
859
  };
@@ -869,10 +862,10 @@ export declare const UpdateStopSchema: z.ZodObject<{
869
862
  };
870
863
  message: string;
871
864
  type: "note";
865
+ _id?: string | undefined;
872
866
  created_by?: string | undefined;
873
867
  updated_by?: string | undefined;
874
868
  } | {
875
- _id: string;
876
869
  created_at: number & {
877
870
  __brand: "UnixTimestamp";
878
871
  };
@@ -881,6 +874,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
881
874
  };
882
875
  type: "field_changed";
883
876
  field: string;
877
+ _id?: string | undefined;
884
878
  created_by?: string | undefined;
885
879
  updated_by?: string | undefined;
886
880
  curr_value?: any;
@@ -932,19 +926,19 @@ export declare const UpdateStopSchema: z.ZodObject<{
932
926
  shelter_maintainer?: string | null | undefined;
933
927
  is_locked?: boolean | undefined;
934
928
  comments?: ({
935
- _id: string;
936
929
  created_at: number;
937
930
  updated_at: number;
938
931
  message: string;
939
932
  type: "note";
933
+ _id?: string | undefined;
940
934
  created_by?: string | undefined;
941
935
  updated_by?: string | undefined;
942
936
  } | {
943
- _id: string;
944
937
  created_at: number;
945
938
  updated_at: number;
946
939
  type: "field_changed";
947
940
  field: string;
941
+ _id?: string | undefined;
948
942
  created_by?: string | undefined;
949
943
  updated_by?: string | undefined;
950
944
  curr_value?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20250917.1113.55",
3
+ "version": "20250917.1133.15",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",