@tmlmobilidade/types 20250915.1518.13 → 20250915.1643.34

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.
@@ -74,6 +74,7 @@ export declare const StatusChangedCommentSchema: z.ZodObject<{
74
74
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
75
75
  updated_by: z.ZodOptional<z.ZodString>;
76
76
  } & {
77
+ accessor: z.ZodString;
77
78
  curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
78
79
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
79
80
  prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
@@ -87,6 +88,7 @@ export declare const StatusChangedCommentSchema: z.ZodObject<{
87
88
  __brand: "UnixTimestamp";
88
89
  };
89
90
  type: "status_changed";
91
+ accessor: string;
90
92
  curr_status: string | boolean;
91
93
  prev_status: string | boolean;
92
94
  created_by?: string | undefined;
@@ -97,6 +99,7 @@ export declare const StatusChangedCommentSchema: z.ZodObject<{
97
99
  created_at: number;
98
100
  updated_at: number;
99
101
  type: "status_changed";
102
+ accessor: string;
100
103
  curr_status: string | boolean;
101
104
  prev_status: string | boolean;
102
105
  created_by?: string | undefined;
@@ -174,6 +177,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
174
177
  updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
175
178
  updated_by: z.ZodOptional<z.ZodString>;
176
179
  } & {
180
+ accessor: z.ZodString;
177
181
  curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
178
182
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
179
183
  prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
@@ -187,6 +191,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
187
191
  __brand: "UnixTimestamp";
188
192
  };
189
193
  type: "status_changed";
194
+ accessor: string;
190
195
  curr_status: string | boolean;
191
196
  prev_status: string | boolean;
192
197
  created_by?: string | undefined;
@@ -197,6 +202,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
197
202
  created_at: number;
198
203
  updated_at: number;
199
204
  type: "status_changed";
205
+ accessor: string;
200
206
  curr_status: string | boolean;
201
207
  prev_status: string | boolean;
202
208
  created_by?: string | undefined;
@@ -237,6 +243,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
237
243
  __brand: "UnixTimestamp";
238
244
  };
239
245
  type: "status_changed";
246
+ accessor: string;
240
247
  curr_status: string | boolean;
241
248
  prev_status: string | boolean;
242
249
  created_by?: string | undefined;
@@ -265,6 +272,7 @@ export declare const CommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type",
265
272
  created_at: number;
266
273
  updated_at: number;
267
274
  type: "status_changed";
275
+ accessor: string;
268
276
  curr_status: string | boolean;
269
277
  prev_status: string | boolean;
270
278
  created_by?: string | undefined;
@@ -325,10 +333,12 @@ export declare const CreateCommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
325
333
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
326
334
  type: z.ZodLiteral<"status_changed">;
327
335
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
336
+ accessor: z.ZodString;
328
337
  curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
329
338
  prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
330
339
  }, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
331
340
  type: "status_changed";
341
+ accessor: string;
332
342
  curr_status: string | boolean;
333
343
  prev_status: string | boolean;
334
344
  _id?: string | undefined;
@@ -337,6 +347,7 @@ export declare const CreateCommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
337
347
  metadata?: Record<string, unknown> | null | undefined;
338
348
  }, {
339
349
  type: "status_changed";
350
+ accessor: string;
340
351
  curr_status: string | boolean;
341
352
  prev_status: string | boolean;
342
353
  _id?: string | undefined;
@@ -359,6 +370,7 @@ export declare const CreateCommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
359
370
  metadata?: Record<string, unknown> | null | undefined;
360
371
  } | {
361
372
  type: "status_changed";
373
+ accessor: string;
362
374
  curr_status: string | boolean;
363
375
  prev_status: string | boolean;
364
376
  _id?: string | undefined;
@@ -381,6 +393,7 @@ export declare const CreateCommentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
381
393
  metadata?: Record<string, unknown> | null | undefined;
382
394
  } | {
383
395
  type: "status_changed";
396
+ accessor: string;
384
397
  curr_status: string | boolean;
385
398
  prev_status: string | boolean;
386
399
  _id?: string | undefined;
@@ -18,6 +18,7 @@ export const SystemInfoCommentSchema = DocumentSchema.extend({
18
18
  updated_by: z.literal('system'),
19
19
  });
20
20
  export const StatusChangedCommentSchema = DocumentSchema.extend({
21
+ accessor: z.string(),
21
22
  curr_status: z.string().or(z.boolean()),
22
23
  metadata: z.record(z.unknown()).nullish(),
23
24
  prev_status: z.string().or(z.boolean()),
@@ -103,6 +103,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
103
103
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
104
104
  updated_by: z.ZodOptional<z.ZodString>;
105
105
  } & {
106
+ accessor: z.ZodString;
106
107
  curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
107
108
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
108
109
  prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
@@ -116,6 +117,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
116
117
  __brand: "UnixTimestamp";
117
118
  };
118
119
  type: "status_changed";
120
+ accessor: string;
119
121
  curr_status: string | boolean;
120
122
  prev_status: string | boolean;
121
123
  created_by?: string | undefined;
@@ -126,6 +128,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
126
128
  created_at: number;
127
129
  updated_at: number;
128
130
  type: "status_changed";
131
+ accessor: string;
129
132
  curr_status: string | boolean;
130
133
  prev_status: string | boolean;
131
134
  created_by?: string | undefined;
@@ -166,6 +169,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
166
169
  __brand: "UnixTimestamp";
167
170
  };
168
171
  type: "status_changed";
172
+ accessor: string;
169
173
  curr_status: string | boolean;
170
174
  prev_status: string | boolean;
171
175
  created_by?: string | undefined;
@@ -194,6 +198,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
194
198
  created_at: number;
195
199
  updated_at: number;
196
200
  type: "status_changed";
201
+ accessor: string;
197
202
  curr_status: string | boolean;
198
203
  prev_status: string | boolean;
199
204
  created_by?: string | undefined;
@@ -249,6 +254,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
249
254
  __brand: "UnixTimestamp";
250
255
  };
251
256
  type: "status_changed";
257
+ accessor: string;
252
258
  curr_status: string | boolean;
253
259
  prev_status: string | boolean;
254
260
  created_by?: string | undefined;
@@ -306,6 +312,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
306
312
  created_at: number;
307
313
  updated_at: number;
308
314
  type: "status_changed";
315
+ accessor: string;
309
316
  curr_status: string | boolean;
310
317
  prev_status: string | boolean;
311
318
  created_by?: string | undefined;
@@ -392,6 +399,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
392
399
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
393
400
  updated_by: z.ZodOptional<z.ZodString>;
394
401
  } & {
402
+ accessor: z.ZodString;
395
403
  curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
396
404
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
397
405
  prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
@@ -405,6 +413,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
405
413
  __brand: "UnixTimestamp";
406
414
  };
407
415
  type: "status_changed";
416
+ accessor: string;
408
417
  curr_status: string | boolean;
409
418
  prev_status: string | boolean;
410
419
  created_by?: string | undefined;
@@ -415,6 +424,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
415
424
  created_at: number;
416
425
  updated_at: number;
417
426
  type: "status_changed";
427
+ accessor: string;
418
428
  curr_status: string | boolean;
419
429
  prev_status: string | boolean;
420
430
  created_by?: string | undefined;
@@ -455,6 +465,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
455
465
  __brand: "UnixTimestamp";
456
466
  };
457
467
  type: "status_changed";
468
+ accessor: string;
458
469
  curr_status: string | boolean;
459
470
  prev_status: string | boolean;
460
471
  created_by?: string | undefined;
@@ -483,6 +494,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
483
494
  created_at: number;
484
495
  updated_at: number;
485
496
  type: "status_changed";
497
+ accessor: string;
486
498
  curr_status: string | boolean;
487
499
  prev_status: string | boolean;
488
500
  created_by?: string | undefined;
@@ -544,6 +556,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
544
556
  __brand: "UnixTimestamp";
545
557
  };
546
558
  type: "status_changed";
559
+ accessor: string;
547
560
  curr_status: string | boolean;
548
561
  prev_status: string | boolean;
549
562
  created_by?: string | undefined;
@@ -600,6 +613,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
600
613
  created_at: number;
601
614
  updated_at: number;
602
615
  type: "status_changed";
616
+ accessor: string;
603
617
  curr_status: string | boolean;
604
618
  prev_status: string | boolean;
605
619
  created_by?: string | undefined;
@@ -683,6 +697,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
683
697
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
684
698
  updated_by: z.ZodOptional<z.ZodString>;
685
699
  } & {
700
+ accessor: z.ZodString;
686
701
  curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
687
702
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
688
703
  prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
@@ -696,6 +711,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
696
711
  __brand: "UnixTimestamp";
697
712
  };
698
713
  type: "status_changed";
714
+ accessor: string;
699
715
  curr_status: string | boolean;
700
716
  prev_status: string | boolean;
701
717
  created_by?: string | undefined;
@@ -706,6 +722,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
706
722
  created_at: number;
707
723
  updated_at: number;
708
724
  type: "status_changed";
725
+ accessor: string;
709
726
  curr_status: string | boolean;
710
727
  prev_status: string | boolean;
711
728
  created_by?: string | undefined;
@@ -746,6 +763,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
746
763
  __brand: "UnixTimestamp";
747
764
  };
748
765
  type: "status_changed";
766
+ accessor: string;
749
767
  curr_status: string | boolean;
750
768
  prev_status: string | boolean;
751
769
  created_by?: string | undefined;
@@ -774,6 +792,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
774
792
  created_at: number;
775
793
  updated_at: number;
776
794
  type: "status_changed";
795
+ accessor: string;
777
796
  curr_status: string | boolean;
778
797
  prev_status: string | boolean;
779
798
  created_by?: string | undefined;
@@ -823,6 +842,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
823
842
  __brand: "UnixTimestamp";
824
843
  };
825
844
  type: "status_changed";
845
+ accessor: string;
826
846
  curr_status: string | boolean;
827
847
  prev_status: string | boolean;
828
848
  created_by?: string | undefined;
@@ -860,6 +880,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
860
880
  created_at: number;
861
881
  updated_at: number;
862
882
  type: "status_changed";
883
+ accessor: string;
863
884
  curr_status: string | boolean;
864
885
  prev_status: string | boolean;
865
886
  created_by?: string | undefined;
@@ -135,6 +135,7 @@ export declare const StopSchema: z.ZodObject<{
135
135
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
136
136
  updated_by: z.ZodOptional<z.ZodString>;
137
137
  } & {
138
+ accessor: z.ZodString;
138
139
  curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
139
140
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
140
141
  prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
@@ -148,6 +149,7 @@ export declare const StopSchema: z.ZodObject<{
148
149
  __brand: "UnixTimestamp";
149
150
  };
150
151
  type: "status_changed";
152
+ accessor: string;
151
153
  curr_status: string | boolean;
152
154
  prev_status: string | boolean;
153
155
  created_by?: string | undefined;
@@ -158,6 +160,7 @@ export declare const StopSchema: z.ZodObject<{
158
160
  created_at: number;
159
161
  updated_at: number;
160
162
  type: "status_changed";
163
+ accessor: string;
161
164
  curr_status: string | boolean;
162
165
  prev_status: string | boolean;
163
166
  created_by?: string | undefined;
@@ -198,6 +201,7 @@ export declare const StopSchema: z.ZodObject<{
198
201
  __brand: "UnixTimestamp";
199
202
  };
200
203
  type: "status_changed";
204
+ accessor: string;
201
205
  curr_status: string | boolean;
202
206
  prev_status: string | boolean;
203
207
  created_by?: string | undefined;
@@ -226,6 +230,7 @@ export declare const StopSchema: z.ZodObject<{
226
230
  created_at: number;
227
231
  updated_at: number;
228
232
  type: "status_changed";
233
+ accessor: string;
229
234
  curr_status: string | boolean;
230
235
  prev_status: string | boolean;
231
236
  created_by?: string | undefined;
@@ -284,6 +289,7 @@ export declare const StopSchema: z.ZodObject<{
284
289
  __brand: "UnixTimestamp";
285
290
  };
286
291
  type: "status_changed";
292
+ accessor: string;
287
293
  curr_status: string | boolean;
288
294
  prev_status: string | boolean;
289
295
  created_by?: string | undefined;
@@ -360,6 +366,7 @@ export declare const StopSchema: z.ZodObject<{
360
366
  created_at: number;
361
367
  updated_at: number;
362
368
  type: "status_changed";
369
+ accessor: string;
363
370
  curr_status: string | boolean;
364
371
  prev_status: string | boolean;
365
372
  created_by?: string | undefined;
@@ -580,6 +587,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
580
587
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
581
588
  updated_by: z.ZodOptional<z.ZodString>;
582
589
  } & {
590
+ accessor: z.ZodString;
583
591
  curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
584
592
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
585
593
  prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
@@ -593,6 +601,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
593
601
  __brand: "UnixTimestamp";
594
602
  };
595
603
  type: "status_changed";
604
+ accessor: string;
596
605
  curr_status: string | boolean;
597
606
  prev_status: string | boolean;
598
607
  created_by?: string | undefined;
@@ -603,6 +612,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
603
612
  created_at: number;
604
613
  updated_at: number;
605
614
  type: "status_changed";
615
+ accessor: string;
606
616
  curr_status: string | boolean;
607
617
  prev_status: string | boolean;
608
618
  created_by?: string | undefined;
@@ -643,6 +653,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
643
653
  __brand: "UnixTimestamp";
644
654
  };
645
655
  type: "status_changed";
656
+ accessor: string;
646
657
  curr_status: string | boolean;
647
658
  prev_status: string | boolean;
648
659
  created_by?: string | undefined;
@@ -671,6 +682,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
671
682
  created_at: number;
672
683
  updated_at: number;
673
684
  type: "status_changed";
685
+ accessor: string;
674
686
  curr_status: string | boolean;
675
687
  prev_status: string | boolean;
676
688
  created_by?: string | undefined;
@@ -722,6 +734,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
722
734
  __brand: "UnixTimestamp";
723
735
  };
724
736
  type: "status_changed";
737
+ accessor: string;
725
738
  curr_status: string | boolean;
726
739
  prev_status: string | boolean;
727
740
  created_by?: string | undefined;
@@ -795,6 +808,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
795
808
  created_at: number;
796
809
  updated_at: number;
797
810
  type: "status_changed";
811
+ accessor: string;
798
812
  curr_status: string | boolean;
799
813
  prev_status: string | boolean;
800
814
  created_by?: string | undefined;
@@ -924,6 +938,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
924
938
  updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
925
939
  updated_by: z.ZodOptional<z.ZodString>;
926
940
  } & {
941
+ accessor: z.ZodString;
927
942
  curr_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
928
943
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
929
944
  prev_status: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
@@ -937,6 +952,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
937
952
  __brand: "UnixTimestamp";
938
953
  };
939
954
  type: "status_changed";
955
+ accessor: string;
940
956
  curr_status: string | boolean;
941
957
  prev_status: string | boolean;
942
958
  created_by?: string | undefined;
@@ -947,6 +963,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
947
963
  created_at: number;
948
964
  updated_at: number;
949
965
  type: "status_changed";
966
+ accessor: string;
950
967
  curr_status: string | boolean;
951
968
  prev_status: string | boolean;
952
969
  created_by?: string | undefined;
@@ -987,6 +1004,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
987
1004
  __brand: "UnixTimestamp";
988
1005
  };
989
1006
  type: "status_changed";
1007
+ accessor: string;
990
1008
  curr_status: string | boolean;
991
1009
  prev_status: string | boolean;
992
1010
  created_by?: string | undefined;
@@ -1015,6 +1033,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
1015
1033
  created_at: number;
1016
1034
  updated_at: number;
1017
1035
  type: "status_changed";
1036
+ accessor: string;
1018
1037
  curr_status: string | boolean;
1019
1038
  prev_status: string | boolean;
1020
1039
  created_by?: string | undefined;
@@ -1100,6 +1119,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
1100
1119
  __brand: "UnixTimestamp";
1101
1120
  };
1102
1121
  type: "status_changed";
1122
+ accessor: string;
1103
1123
  curr_status: string | boolean;
1104
1124
  prev_status: string | boolean;
1105
1125
  created_by?: string | undefined;
@@ -1173,6 +1193,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
1173
1193
  created_at: number;
1174
1194
  updated_at: number;
1175
1195
  type: "status_changed";
1196
+ accessor: string;
1176
1197
  curr_status: string | boolean;
1177
1198
  prev_status: string | boolean;
1178
1199
  created_by?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20250915.1518.13",
3
+ "version": "20250915.1643.34",
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",