@tmlmobilidade/types 20250915.1643.34 → 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.
- package/dist/src/_common/comment.d.ts +34 -253
- package/dist/src/_common/comment.js +20 -43
- package/dist/src/rides/ride-audit.d.ts +0 -15
- package/dist/src/rides/ride-justification.d.ts +84 -333
- package/dist/src/stop.d.ts +84 -333
- package/package.json +1 -1
package/dist/src/stop.d.ts
CHANGED
|
@@ -72,7 +72,6 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
72
72
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
73
73
|
} & {
|
|
74
74
|
message: z.ZodString;
|
|
75
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
76
75
|
type: z.ZodLiteral<"note">;
|
|
77
76
|
}, "strip", z.ZodTypeAny, {
|
|
78
77
|
_id: string;
|
|
@@ -86,7 +85,6 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
86
85
|
type: "note";
|
|
87
86
|
created_by?: string | undefined;
|
|
88
87
|
updated_by?: string | undefined;
|
|
89
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
90
88
|
}, {
|
|
91
89
|
_id: string;
|
|
92
90
|
created_at: number;
|
|
@@ -95,39 +93,6 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
95
93
|
type: "note";
|
|
96
94
|
created_by?: string | undefined;
|
|
97
95
|
updated_by?: string | undefined;
|
|
98
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
99
|
-
}>, z.ZodObject<{
|
|
100
|
-
_id: z.ZodString;
|
|
101
|
-
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
102
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
103
|
-
} & {
|
|
104
|
-
created_by: z.ZodLiteral<"system">;
|
|
105
|
-
message: z.ZodString;
|
|
106
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
107
|
-
type: z.ZodLiteral<"system_info">;
|
|
108
|
-
updated_by: z.ZodLiteral<"system">;
|
|
109
|
-
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
_id: string;
|
|
111
|
-
created_at: number & {
|
|
112
|
-
__brand: "UnixTimestamp";
|
|
113
|
-
};
|
|
114
|
-
created_by: "system";
|
|
115
|
-
updated_at: number & {
|
|
116
|
-
__brand: "UnixTimestamp";
|
|
117
|
-
};
|
|
118
|
-
updated_by: "system";
|
|
119
|
-
message: string;
|
|
120
|
-
type: "system_info";
|
|
121
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
_id: string;
|
|
124
|
-
created_at: number;
|
|
125
|
-
created_by: "system";
|
|
126
|
-
updated_at: number;
|
|
127
|
-
updated_by: "system";
|
|
128
|
-
message: string;
|
|
129
|
-
type: "system_info";
|
|
130
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
131
96
|
}>, z.ZodObject<{
|
|
132
97
|
_id: z.ZodString;
|
|
133
98
|
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -135,11 +100,11 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
135
100
|
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
136
101
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
137
102
|
} & {
|
|
138
|
-
|
|
139
|
-
|
|
103
|
+
curr_value: z.ZodAny;
|
|
104
|
+
field: z.ZodString;
|
|
140
105
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
141
|
-
|
|
142
|
-
type: z.ZodLiteral<"
|
|
106
|
+
prev_value: z.ZodAny;
|
|
107
|
+
type: z.ZodLiteral<"field_changed">;
|
|
143
108
|
}, "strip", z.ZodTypeAny, {
|
|
144
109
|
_id: string;
|
|
145
110
|
created_at: number & {
|
|
@@ -148,24 +113,24 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
148
113
|
updated_at: number & {
|
|
149
114
|
__brand: "UnixTimestamp";
|
|
150
115
|
};
|
|
151
|
-
type: "
|
|
152
|
-
|
|
153
|
-
curr_status: string | boolean;
|
|
154
|
-
prev_status: string | boolean;
|
|
116
|
+
type: "field_changed";
|
|
117
|
+
field: string;
|
|
155
118
|
created_by?: string | undefined;
|
|
156
119
|
updated_by?: string | undefined;
|
|
120
|
+
curr_value?: any;
|
|
157
121
|
metadata?: Record<string, unknown> | null | undefined;
|
|
122
|
+
prev_value?: any;
|
|
158
123
|
}, {
|
|
159
124
|
_id: string;
|
|
160
125
|
created_at: number;
|
|
161
126
|
updated_at: number;
|
|
162
|
-
type: "
|
|
163
|
-
|
|
164
|
-
curr_status: string | boolean;
|
|
165
|
-
prev_status: string | boolean;
|
|
127
|
+
type: "field_changed";
|
|
128
|
+
field: string;
|
|
166
129
|
created_by?: string | undefined;
|
|
167
130
|
updated_by?: string | undefined;
|
|
131
|
+
curr_value?: any;
|
|
168
132
|
metadata?: Record<string, unknown> | null | undefined;
|
|
133
|
+
prev_value?: any;
|
|
169
134
|
}>]>, {
|
|
170
135
|
_id: string;
|
|
171
136
|
created_at: number & {
|
|
@@ -178,35 +143,21 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
178
143
|
type: "note";
|
|
179
144
|
created_by?: string | undefined;
|
|
180
145
|
updated_by?: string | undefined;
|
|
181
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
182
146
|
} | {
|
|
183
147
|
_id: string;
|
|
184
148
|
created_at: number & {
|
|
185
149
|
__brand: "UnixTimestamp";
|
|
186
150
|
};
|
|
187
|
-
created_by: "system";
|
|
188
151
|
updated_at: number & {
|
|
189
152
|
__brand: "UnixTimestamp";
|
|
190
153
|
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
type: "system_info";
|
|
194
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
195
|
-
} | {
|
|
196
|
-
_id: string;
|
|
197
|
-
created_at: number & {
|
|
198
|
-
__brand: "UnixTimestamp";
|
|
199
|
-
};
|
|
200
|
-
updated_at: number & {
|
|
201
|
-
__brand: "UnixTimestamp";
|
|
202
|
-
};
|
|
203
|
-
type: "status_changed";
|
|
204
|
-
accessor: string;
|
|
205
|
-
curr_status: string | boolean;
|
|
206
|
-
prev_status: string | boolean;
|
|
154
|
+
type: "field_changed";
|
|
155
|
+
field: string;
|
|
207
156
|
created_by?: string | undefined;
|
|
208
157
|
updated_by?: string | undefined;
|
|
158
|
+
curr_value?: any;
|
|
209
159
|
metadata?: Record<string, unknown> | null | undefined;
|
|
160
|
+
prev_value?: any;
|
|
210
161
|
}, {
|
|
211
162
|
_id: string;
|
|
212
163
|
created_at: number;
|
|
@@ -215,27 +166,17 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
215
166
|
type: "note";
|
|
216
167
|
created_by?: string | undefined;
|
|
217
168
|
updated_by?: string | undefined;
|
|
218
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
219
169
|
} | {
|
|
220
170
|
_id: string;
|
|
221
171
|
created_at: number;
|
|
222
|
-
created_by: "system";
|
|
223
172
|
updated_at: number;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
type: "system_info";
|
|
227
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
228
|
-
} | {
|
|
229
|
-
_id: string;
|
|
230
|
-
created_at: number;
|
|
231
|
-
updated_at: number;
|
|
232
|
-
type: "status_changed";
|
|
233
|
-
accessor: string;
|
|
234
|
-
curr_status: string | boolean;
|
|
235
|
-
prev_status: string | boolean;
|
|
173
|
+
type: "field_changed";
|
|
174
|
+
field: string;
|
|
236
175
|
created_by?: string | undefined;
|
|
237
176
|
updated_by?: string | undefined;
|
|
177
|
+
curr_value?: any;
|
|
238
178
|
metadata?: Record<string, unknown> | null | undefined;
|
|
179
|
+
prev_value?: any;
|
|
239
180
|
}>, "many">;
|
|
240
181
|
observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
182
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -266,35 +207,21 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
266
207
|
type: "note";
|
|
267
208
|
created_by?: string | undefined;
|
|
268
209
|
updated_by?: string | undefined;
|
|
269
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
270
210
|
} | {
|
|
271
211
|
_id: string;
|
|
272
212
|
created_at: number & {
|
|
273
213
|
__brand: "UnixTimestamp";
|
|
274
214
|
};
|
|
275
|
-
created_by: "system";
|
|
276
215
|
updated_at: number & {
|
|
277
216
|
__brand: "UnixTimestamp";
|
|
278
217
|
};
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
type: "system_info";
|
|
282
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
283
|
-
} | {
|
|
284
|
-
_id: string;
|
|
285
|
-
created_at: number & {
|
|
286
|
-
__brand: "UnixTimestamp";
|
|
287
|
-
};
|
|
288
|
-
updated_at: number & {
|
|
289
|
-
__brand: "UnixTimestamp";
|
|
290
|
-
};
|
|
291
|
-
type: "status_changed";
|
|
292
|
-
accessor: string;
|
|
293
|
-
curr_status: string | boolean;
|
|
294
|
-
prev_status: string | boolean;
|
|
218
|
+
type: "field_changed";
|
|
219
|
+
field: string;
|
|
295
220
|
created_by?: string | undefined;
|
|
296
221
|
updated_by?: string | undefined;
|
|
222
|
+
curr_value?: any;
|
|
297
223
|
metadata?: Record<string, unknown> | null | undefined;
|
|
224
|
+
prev_value?: any;
|
|
298
225
|
})[];
|
|
299
226
|
is_archived: boolean;
|
|
300
227
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
@@ -351,27 +278,17 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
351
278
|
type: "note";
|
|
352
279
|
created_by?: string | undefined;
|
|
353
280
|
updated_by?: string | undefined;
|
|
354
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
355
281
|
} | {
|
|
356
282
|
_id: string;
|
|
357
283
|
created_at: number;
|
|
358
|
-
created_by: "system";
|
|
359
284
|
updated_at: number;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
type: "system_info";
|
|
363
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
364
|
-
} | {
|
|
365
|
-
_id: string;
|
|
366
|
-
created_at: number;
|
|
367
|
-
updated_at: number;
|
|
368
|
-
type: "status_changed";
|
|
369
|
-
accessor: string;
|
|
370
|
-
curr_status: string | boolean;
|
|
371
|
-
prev_status: string | boolean;
|
|
285
|
+
type: "field_changed";
|
|
286
|
+
field: string;
|
|
372
287
|
created_by?: string | undefined;
|
|
373
288
|
updated_by?: string | undefined;
|
|
289
|
+
curr_value?: any;
|
|
374
290
|
metadata?: Record<string, unknown> | null | undefined;
|
|
291
|
+
prev_value?: any;
|
|
375
292
|
})[];
|
|
376
293
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
377
294
|
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
@@ -524,7 +441,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
524
441
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
525
442
|
} & {
|
|
526
443
|
message: z.ZodString;
|
|
527
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
528
444
|
type: z.ZodLiteral<"note">;
|
|
529
445
|
}, "strip", z.ZodTypeAny, {
|
|
530
446
|
_id: string;
|
|
@@ -538,7 +454,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
538
454
|
type: "note";
|
|
539
455
|
created_by?: string | undefined;
|
|
540
456
|
updated_by?: string | undefined;
|
|
541
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
542
457
|
}, {
|
|
543
458
|
_id: string;
|
|
544
459
|
created_at: number;
|
|
@@ -547,39 +462,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
547
462
|
type: "note";
|
|
548
463
|
created_by?: string | undefined;
|
|
549
464
|
updated_by?: string | undefined;
|
|
550
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
551
|
-
}>, z.ZodObject<{
|
|
552
|
-
_id: z.ZodString;
|
|
553
|
-
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
554
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
555
|
-
} & {
|
|
556
|
-
created_by: z.ZodLiteral<"system">;
|
|
557
|
-
message: z.ZodString;
|
|
558
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
559
|
-
type: z.ZodLiteral<"system_info">;
|
|
560
|
-
updated_by: z.ZodLiteral<"system">;
|
|
561
|
-
}, "strip", z.ZodTypeAny, {
|
|
562
|
-
_id: string;
|
|
563
|
-
created_at: number & {
|
|
564
|
-
__brand: "UnixTimestamp";
|
|
565
|
-
};
|
|
566
|
-
created_by: "system";
|
|
567
|
-
updated_at: number & {
|
|
568
|
-
__brand: "UnixTimestamp";
|
|
569
|
-
};
|
|
570
|
-
updated_by: "system";
|
|
571
|
-
message: string;
|
|
572
|
-
type: "system_info";
|
|
573
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
574
|
-
}, {
|
|
575
|
-
_id: string;
|
|
576
|
-
created_at: number;
|
|
577
|
-
created_by: "system";
|
|
578
|
-
updated_at: number;
|
|
579
|
-
updated_by: "system";
|
|
580
|
-
message: string;
|
|
581
|
-
type: "system_info";
|
|
582
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
583
465
|
}>, z.ZodObject<{
|
|
584
466
|
_id: z.ZodString;
|
|
585
467
|
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -587,11 +469,11 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
587
469
|
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
588
470
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
589
471
|
} & {
|
|
590
|
-
|
|
591
|
-
|
|
472
|
+
curr_value: z.ZodAny;
|
|
473
|
+
field: z.ZodString;
|
|
592
474
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
593
|
-
|
|
594
|
-
type: z.ZodLiteral<"
|
|
475
|
+
prev_value: z.ZodAny;
|
|
476
|
+
type: z.ZodLiteral<"field_changed">;
|
|
595
477
|
}, "strip", z.ZodTypeAny, {
|
|
596
478
|
_id: string;
|
|
597
479
|
created_at: number & {
|
|
@@ -600,24 +482,24 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
600
482
|
updated_at: number & {
|
|
601
483
|
__brand: "UnixTimestamp";
|
|
602
484
|
};
|
|
603
|
-
type: "
|
|
604
|
-
|
|
605
|
-
curr_status: string | boolean;
|
|
606
|
-
prev_status: string | boolean;
|
|
485
|
+
type: "field_changed";
|
|
486
|
+
field: string;
|
|
607
487
|
created_by?: string | undefined;
|
|
608
488
|
updated_by?: string | undefined;
|
|
489
|
+
curr_value?: any;
|
|
609
490
|
metadata?: Record<string, unknown> | null | undefined;
|
|
491
|
+
prev_value?: any;
|
|
610
492
|
}, {
|
|
611
493
|
_id: string;
|
|
612
494
|
created_at: number;
|
|
613
495
|
updated_at: number;
|
|
614
|
-
type: "
|
|
615
|
-
|
|
616
|
-
curr_status: string | boolean;
|
|
617
|
-
prev_status: string | boolean;
|
|
496
|
+
type: "field_changed";
|
|
497
|
+
field: string;
|
|
618
498
|
created_by?: string | undefined;
|
|
619
499
|
updated_by?: string | undefined;
|
|
500
|
+
curr_value?: any;
|
|
620
501
|
metadata?: Record<string, unknown> | null | undefined;
|
|
502
|
+
prev_value?: any;
|
|
621
503
|
}>]>, {
|
|
622
504
|
_id: string;
|
|
623
505
|
created_at: number & {
|
|
@@ -630,20 +512,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
630
512
|
type: "note";
|
|
631
513
|
created_by?: string | undefined;
|
|
632
514
|
updated_by?: string | undefined;
|
|
633
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
634
|
-
} | {
|
|
635
|
-
_id: string;
|
|
636
|
-
created_at: number & {
|
|
637
|
-
__brand: "UnixTimestamp";
|
|
638
|
-
};
|
|
639
|
-
created_by: "system";
|
|
640
|
-
updated_at: number & {
|
|
641
|
-
__brand: "UnixTimestamp";
|
|
642
|
-
};
|
|
643
|
-
updated_by: "system";
|
|
644
|
-
message: string;
|
|
645
|
-
type: "system_info";
|
|
646
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
647
515
|
} | {
|
|
648
516
|
_id: string;
|
|
649
517
|
created_at: number & {
|
|
@@ -652,13 +520,13 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
652
520
|
updated_at: number & {
|
|
653
521
|
__brand: "UnixTimestamp";
|
|
654
522
|
};
|
|
655
|
-
type: "
|
|
656
|
-
|
|
657
|
-
curr_status: string | boolean;
|
|
658
|
-
prev_status: string | boolean;
|
|
523
|
+
type: "field_changed";
|
|
524
|
+
field: string;
|
|
659
525
|
created_by?: string | undefined;
|
|
660
526
|
updated_by?: string | undefined;
|
|
527
|
+
curr_value?: any;
|
|
661
528
|
metadata?: Record<string, unknown> | null | undefined;
|
|
529
|
+
prev_value?: any;
|
|
662
530
|
}, {
|
|
663
531
|
_id: string;
|
|
664
532
|
created_at: number;
|
|
@@ -667,27 +535,17 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
667
535
|
type: "note";
|
|
668
536
|
created_by?: string | undefined;
|
|
669
537
|
updated_by?: string | undefined;
|
|
670
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
671
|
-
} | {
|
|
672
|
-
_id: string;
|
|
673
|
-
created_at: number;
|
|
674
|
-
created_by: "system";
|
|
675
|
-
updated_at: number;
|
|
676
|
-
updated_by: "system";
|
|
677
|
-
message: string;
|
|
678
|
-
type: "system_info";
|
|
679
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
680
538
|
} | {
|
|
681
539
|
_id: string;
|
|
682
540
|
created_at: number;
|
|
683
541
|
updated_at: number;
|
|
684
|
-
type: "
|
|
685
|
-
|
|
686
|
-
curr_status: string | boolean;
|
|
687
|
-
prev_status: string | boolean;
|
|
542
|
+
type: "field_changed";
|
|
543
|
+
field: string;
|
|
688
544
|
created_by?: string | undefined;
|
|
689
545
|
updated_by?: string | undefined;
|
|
546
|
+
curr_value?: any;
|
|
690
547
|
metadata?: Record<string, unknown> | null | undefined;
|
|
548
|
+
prev_value?: any;
|
|
691
549
|
}>, "many">;
|
|
692
550
|
observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
693
551
|
}, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
@@ -711,20 +569,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
711
569
|
type: "note";
|
|
712
570
|
created_by?: string | undefined;
|
|
713
571
|
updated_by?: string | undefined;
|
|
714
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
715
|
-
} | {
|
|
716
|
-
_id: string;
|
|
717
|
-
created_at: number & {
|
|
718
|
-
__brand: "UnixTimestamp";
|
|
719
|
-
};
|
|
720
|
-
created_by: "system";
|
|
721
|
-
updated_at: number & {
|
|
722
|
-
__brand: "UnixTimestamp";
|
|
723
|
-
};
|
|
724
|
-
updated_by: "system";
|
|
725
|
-
message: string;
|
|
726
|
-
type: "system_info";
|
|
727
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
728
572
|
} | {
|
|
729
573
|
_id: string;
|
|
730
574
|
created_at: number & {
|
|
@@ -733,13 +577,13 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
733
577
|
updated_at: number & {
|
|
734
578
|
__brand: "UnixTimestamp";
|
|
735
579
|
};
|
|
736
|
-
type: "
|
|
737
|
-
|
|
738
|
-
curr_status: string | boolean;
|
|
739
|
-
prev_status: string | boolean;
|
|
580
|
+
type: "field_changed";
|
|
581
|
+
field: string;
|
|
740
582
|
created_by?: string | undefined;
|
|
741
583
|
updated_by?: string | undefined;
|
|
584
|
+
curr_value?: any;
|
|
742
585
|
metadata?: Record<string, unknown> | null | undefined;
|
|
586
|
+
prev_value?: any;
|
|
743
587
|
})[];
|
|
744
588
|
is_archived: boolean;
|
|
745
589
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
@@ -793,27 +637,17 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
793
637
|
type: "note";
|
|
794
638
|
created_by?: string | undefined;
|
|
795
639
|
updated_by?: string | undefined;
|
|
796
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
797
|
-
} | {
|
|
798
|
-
_id: string;
|
|
799
|
-
created_at: number;
|
|
800
|
-
created_by: "system";
|
|
801
|
-
updated_at: number;
|
|
802
|
-
updated_by: "system";
|
|
803
|
-
message: string;
|
|
804
|
-
type: "system_info";
|
|
805
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
806
640
|
} | {
|
|
807
641
|
_id: string;
|
|
808
642
|
created_at: number;
|
|
809
643
|
updated_at: number;
|
|
810
|
-
type: "
|
|
811
|
-
|
|
812
|
-
curr_status: string | boolean;
|
|
813
|
-
prev_status: string | boolean;
|
|
644
|
+
type: "field_changed";
|
|
645
|
+
field: string;
|
|
814
646
|
created_by?: string | undefined;
|
|
815
647
|
updated_by?: string | undefined;
|
|
648
|
+
curr_value?: any;
|
|
816
649
|
metadata?: Record<string, unknown> | null | undefined;
|
|
650
|
+
prev_value?: any;
|
|
817
651
|
})[];
|
|
818
652
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
819
653
|
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
@@ -875,7 +709,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
875
709
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
876
710
|
} & {
|
|
877
711
|
message: z.ZodString;
|
|
878
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
879
712
|
type: z.ZodLiteral<"note">;
|
|
880
713
|
}, "strip", z.ZodTypeAny, {
|
|
881
714
|
_id: string;
|
|
@@ -889,7 +722,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
889
722
|
type: "note";
|
|
890
723
|
created_by?: string | undefined;
|
|
891
724
|
updated_by?: string | undefined;
|
|
892
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
893
725
|
}, {
|
|
894
726
|
_id: string;
|
|
895
727
|
created_at: number;
|
|
@@ -898,39 +730,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
898
730
|
type: "note";
|
|
899
731
|
created_by?: string | undefined;
|
|
900
732
|
updated_by?: string | undefined;
|
|
901
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
902
|
-
}>, z.ZodObject<{
|
|
903
|
-
_id: z.ZodString;
|
|
904
|
-
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
905
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
906
|
-
} & {
|
|
907
|
-
created_by: z.ZodLiteral<"system">;
|
|
908
|
-
message: z.ZodString;
|
|
909
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
910
|
-
type: z.ZodLiteral<"system_info">;
|
|
911
|
-
updated_by: z.ZodLiteral<"system">;
|
|
912
|
-
}, "strip", z.ZodTypeAny, {
|
|
913
|
-
_id: string;
|
|
914
|
-
created_at: number & {
|
|
915
|
-
__brand: "UnixTimestamp";
|
|
916
|
-
};
|
|
917
|
-
created_by: "system";
|
|
918
|
-
updated_at: number & {
|
|
919
|
-
__brand: "UnixTimestamp";
|
|
920
|
-
};
|
|
921
|
-
updated_by: "system";
|
|
922
|
-
message: string;
|
|
923
|
-
type: "system_info";
|
|
924
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
925
|
-
}, {
|
|
926
|
-
_id: string;
|
|
927
|
-
created_at: number;
|
|
928
|
-
created_by: "system";
|
|
929
|
-
updated_at: number;
|
|
930
|
-
updated_by: "system";
|
|
931
|
-
message: string;
|
|
932
|
-
type: "system_info";
|
|
933
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
934
733
|
}>, z.ZodObject<{
|
|
935
734
|
_id: z.ZodString;
|
|
936
735
|
created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -938,11 +737,11 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
938
737
|
updated_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
939
738
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
940
739
|
} & {
|
|
941
|
-
|
|
942
|
-
|
|
740
|
+
curr_value: z.ZodAny;
|
|
741
|
+
field: z.ZodString;
|
|
943
742
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
944
|
-
|
|
945
|
-
type: z.ZodLiteral<"
|
|
743
|
+
prev_value: z.ZodAny;
|
|
744
|
+
type: z.ZodLiteral<"field_changed">;
|
|
946
745
|
}, "strip", z.ZodTypeAny, {
|
|
947
746
|
_id: string;
|
|
948
747
|
created_at: number & {
|
|
@@ -951,24 +750,24 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
951
750
|
updated_at: number & {
|
|
952
751
|
__brand: "UnixTimestamp";
|
|
953
752
|
};
|
|
954
|
-
type: "
|
|
955
|
-
|
|
956
|
-
curr_status: string | boolean;
|
|
957
|
-
prev_status: string | boolean;
|
|
753
|
+
type: "field_changed";
|
|
754
|
+
field: string;
|
|
958
755
|
created_by?: string | undefined;
|
|
959
756
|
updated_by?: string | undefined;
|
|
757
|
+
curr_value?: any;
|
|
960
758
|
metadata?: Record<string, unknown> | null | undefined;
|
|
759
|
+
prev_value?: any;
|
|
961
760
|
}, {
|
|
962
761
|
_id: string;
|
|
963
762
|
created_at: number;
|
|
964
763
|
updated_at: number;
|
|
965
|
-
type: "
|
|
966
|
-
|
|
967
|
-
curr_status: string | boolean;
|
|
968
|
-
prev_status: string | boolean;
|
|
764
|
+
type: "field_changed";
|
|
765
|
+
field: string;
|
|
969
766
|
created_by?: string | undefined;
|
|
970
767
|
updated_by?: string | undefined;
|
|
768
|
+
curr_value?: any;
|
|
971
769
|
metadata?: Record<string, unknown> | null | undefined;
|
|
770
|
+
prev_value?: any;
|
|
972
771
|
}>]>, {
|
|
973
772
|
_id: string;
|
|
974
773
|
created_at: number & {
|
|
@@ -981,35 +780,21 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
981
780
|
type: "note";
|
|
982
781
|
created_by?: string | undefined;
|
|
983
782
|
updated_by?: string | undefined;
|
|
984
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
985
783
|
} | {
|
|
986
784
|
_id: string;
|
|
987
785
|
created_at: number & {
|
|
988
786
|
__brand: "UnixTimestamp";
|
|
989
787
|
};
|
|
990
|
-
created_by: "system";
|
|
991
788
|
updated_at: number & {
|
|
992
789
|
__brand: "UnixTimestamp";
|
|
993
790
|
};
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
type: "system_info";
|
|
997
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
998
|
-
} | {
|
|
999
|
-
_id: string;
|
|
1000
|
-
created_at: number & {
|
|
1001
|
-
__brand: "UnixTimestamp";
|
|
1002
|
-
};
|
|
1003
|
-
updated_at: number & {
|
|
1004
|
-
__brand: "UnixTimestamp";
|
|
1005
|
-
};
|
|
1006
|
-
type: "status_changed";
|
|
1007
|
-
accessor: string;
|
|
1008
|
-
curr_status: string | boolean;
|
|
1009
|
-
prev_status: string | boolean;
|
|
791
|
+
type: "field_changed";
|
|
792
|
+
field: string;
|
|
1010
793
|
created_by?: string | undefined;
|
|
1011
794
|
updated_by?: string | undefined;
|
|
795
|
+
curr_value?: any;
|
|
1012
796
|
metadata?: Record<string, unknown> | null | undefined;
|
|
797
|
+
prev_value?: any;
|
|
1013
798
|
}, {
|
|
1014
799
|
_id: string;
|
|
1015
800
|
created_at: number;
|
|
@@ -1018,27 +803,17 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1018
803
|
type: "note";
|
|
1019
804
|
created_by?: string | undefined;
|
|
1020
805
|
updated_by?: string | undefined;
|
|
1021
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1022
|
-
} | {
|
|
1023
|
-
_id: string;
|
|
1024
|
-
created_at: number;
|
|
1025
|
-
created_by: "system";
|
|
1026
|
-
updated_at: number;
|
|
1027
|
-
updated_by: "system";
|
|
1028
|
-
message: string;
|
|
1029
|
-
type: "system_info";
|
|
1030
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1031
806
|
} | {
|
|
1032
807
|
_id: string;
|
|
1033
808
|
created_at: number;
|
|
1034
809
|
updated_at: number;
|
|
1035
|
-
type: "
|
|
1036
|
-
|
|
1037
|
-
curr_status: string | boolean;
|
|
1038
|
-
prev_status: string | boolean;
|
|
810
|
+
type: "field_changed";
|
|
811
|
+
field: string;
|
|
1039
812
|
created_by?: string | undefined;
|
|
1040
813
|
updated_by?: string | undefined;
|
|
814
|
+
curr_value?: any;
|
|
1041
815
|
metadata?: Record<string, unknown> | null | undefined;
|
|
816
|
+
prev_value?: any;
|
|
1042
817
|
}>, "many">>;
|
|
1043
818
|
is_archived: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1044
819
|
jurisdiction: z.ZodOptional<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
|
|
@@ -1096,35 +871,21 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1096
871
|
type: "note";
|
|
1097
872
|
created_by?: string | undefined;
|
|
1098
873
|
updated_by?: string | undefined;
|
|
1099
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1100
874
|
} | {
|
|
1101
875
|
_id: string;
|
|
1102
876
|
created_at: number & {
|
|
1103
877
|
__brand: "UnixTimestamp";
|
|
1104
878
|
};
|
|
1105
|
-
created_by: "system";
|
|
1106
879
|
updated_at: number & {
|
|
1107
880
|
__brand: "UnixTimestamp";
|
|
1108
881
|
};
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
type: "system_info";
|
|
1112
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1113
|
-
} | {
|
|
1114
|
-
_id: string;
|
|
1115
|
-
created_at: number & {
|
|
1116
|
-
__brand: "UnixTimestamp";
|
|
1117
|
-
};
|
|
1118
|
-
updated_at: number & {
|
|
1119
|
-
__brand: "UnixTimestamp";
|
|
1120
|
-
};
|
|
1121
|
-
type: "status_changed";
|
|
1122
|
-
accessor: string;
|
|
1123
|
-
curr_status: string | boolean;
|
|
1124
|
-
prev_status: string | boolean;
|
|
882
|
+
type: "field_changed";
|
|
883
|
+
field: string;
|
|
1125
884
|
created_by?: string | undefined;
|
|
1126
885
|
updated_by?: string | undefined;
|
|
886
|
+
curr_value?: any;
|
|
1127
887
|
metadata?: Record<string, unknown> | null | undefined;
|
|
888
|
+
prev_value?: any;
|
|
1128
889
|
})[] | undefined;
|
|
1129
890
|
is_archived?: boolean | undefined;
|
|
1130
891
|
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
|
|
@@ -1178,27 +939,17 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
1178
939
|
type: "note";
|
|
1179
940
|
created_by?: string | undefined;
|
|
1180
941
|
updated_by?: string | undefined;
|
|
1181
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1182
|
-
} | {
|
|
1183
|
-
_id: string;
|
|
1184
|
-
created_at: number;
|
|
1185
|
-
created_by: "system";
|
|
1186
|
-
updated_at: number;
|
|
1187
|
-
updated_by: "system";
|
|
1188
|
-
message: string;
|
|
1189
|
-
type: "system_info";
|
|
1190
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1191
942
|
} | {
|
|
1192
943
|
_id: string;
|
|
1193
944
|
created_at: number;
|
|
1194
945
|
updated_at: number;
|
|
1195
|
-
type: "
|
|
1196
|
-
|
|
1197
|
-
curr_status: string | boolean;
|
|
1198
|
-
prev_status: string | boolean;
|
|
946
|
+
type: "field_changed";
|
|
947
|
+
field: string;
|
|
1199
948
|
created_by?: string | undefined;
|
|
1200
949
|
updated_by?: string | undefined;
|
|
950
|
+
curr_value?: any;
|
|
1201
951
|
metadata?: Record<string, unknown> | null | undefined;
|
|
952
|
+
prev_value?: any;
|
|
1202
953
|
})[] | undefined;
|
|
1203
954
|
is_archived?: boolean | undefined;
|
|
1204
955
|
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
|