@tmlmobilidade/types 20250901.2042.59 → 20250902.1255.46
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/rides/index.d.ts +1 -0
- package/dist/src/rides/index.js +1 -0
- package/dist/src/rides/ride-annotation.d.ts +321 -5
- package/dist/src/rides/ride-annotation.js +2 -0
- package/dist/src/rides/ride.d.ts +8 -8
- package/dist/src/simplified-apex/index.d.ts +1 -1
- package/dist/src/simplified-apex/index.js +1 -1
- package/dist/src/simplified-apex/{unique-sam.d.ts → sam.d.ts} +6 -6
- package/dist/src/simplified-apex/{unique-sam.js → sam.js} +3 -3
- package/dist/src/simplified-apex/simplified-apex-location.d.ts +4 -4
- package/dist/src/simplified-apex/simplified-apex-on-board-refund.d.ts +4 -4
- package/dist/src/simplified-apex/simplified-apex-on-board-sale.d.ts +4 -4
- package/dist/src/simplified-apex/simplified-apex-validation.d.ts +4 -4
- package/dist/src/stop.d.ts +85 -85
- package/dist/src/vehicle-event.d.ts +2 -2
- package/package.json +1 -1
package/dist/src/rides/index.js
CHANGED
|
@@ -60,7 +60,6 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
60
60
|
file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
61
61
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
62
62
|
}, "strict", z.ZodTypeAny, {
|
|
63
|
-
file_ids: string[];
|
|
64
63
|
comments: {
|
|
65
64
|
_id: string;
|
|
66
65
|
text: string;
|
|
@@ -72,9 +71,9 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
72
71
|
__brand: "UnixTimestamp";
|
|
73
72
|
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
74
73
|
}[];
|
|
74
|
+
file_ids: string[];
|
|
75
75
|
pto_message: string;
|
|
76
76
|
}, {
|
|
77
|
-
file_ids?: string[] | undefined;
|
|
78
77
|
comments?: {
|
|
79
78
|
_id: string;
|
|
80
79
|
text: string;
|
|
@@ -82,6 +81,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
82
81
|
created_at?: number | null | undefined;
|
|
83
82
|
updated_at?: number | null | undefined;
|
|
84
83
|
}[] | undefined;
|
|
84
|
+
file_ids?: string[] | undefined;
|
|
85
85
|
pto_message?: string | undefined;
|
|
86
86
|
}>;
|
|
87
87
|
export type RideJustification = z.infer<typeof RideJustificationSchema>;
|
|
@@ -157,7 +157,6 @@ export declare const RideAnnotationSchema: z.ZodObject<{
|
|
|
157
157
|
file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
158
158
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
159
159
|
}, "strict", z.ZodTypeAny, {
|
|
160
|
-
file_ids: string[];
|
|
161
160
|
comments: {
|
|
162
161
|
_id: string;
|
|
163
162
|
text: string;
|
|
@@ -169,9 +168,9 @@ export declare const RideAnnotationSchema: z.ZodObject<{
|
|
|
169
168
|
__brand: "UnixTimestamp";
|
|
170
169
|
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
171
170
|
}[];
|
|
171
|
+
file_ids: string[];
|
|
172
172
|
pto_message: string;
|
|
173
173
|
}, {
|
|
174
|
-
file_ids?: string[] | undefined;
|
|
175
174
|
comments?: {
|
|
176
175
|
_id: string;
|
|
177
176
|
text: string;
|
|
@@ -179,6 +178,7 @@ export declare const RideAnnotationSchema: z.ZodObject<{
|
|
|
179
178
|
created_at?: number | null | undefined;
|
|
180
179
|
updated_at?: number | null | undefined;
|
|
181
180
|
}[] | undefined;
|
|
181
|
+
file_ids?: string[] | undefined;
|
|
182
182
|
pto_message?: string | undefined;
|
|
183
183
|
}>>>;
|
|
184
184
|
overrides: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -206,7 +206,6 @@ export declare const RideAnnotationSchema: z.ZodObject<{
|
|
|
206
206
|
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
207
207
|
}[];
|
|
208
208
|
justification: {
|
|
209
|
-
file_ids: string[];
|
|
210
209
|
comments: {
|
|
211
210
|
_id: string;
|
|
212
211
|
text: string;
|
|
@@ -218,6 +217,7 @@ export declare const RideAnnotationSchema: z.ZodObject<{
|
|
|
218
217
|
__brand: "UnixTimestamp";
|
|
219
218
|
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
220
219
|
}[];
|
|
220
|
+
file_ids: string[];
|
|
221
221
|
pto_message: string;
|
|
222
222
|
} | null;
|
|
223
223
|
overrides: {
|
|
@@ -246,7 +246,97 @@ export declare const RideAnnotationSchema: z.ZodObject<{
|
|
|
246
246
|
analysis_summary?: Record<string, "error" | "pass" | "fail" | "skip"> | null | undefined;
|
|
247
247
|
}[] | undefined;
|
|
248
248
|
justification?: {
|
|
249
|
+
comments?: {
|
|
250
|
+
_id: string;
|
|
251
|
+
text: string;
|
|
252
|
+
user_id: string;
|
|
253
|
+
created_at?: number | null | undefined;
|
|
254
|
+
updated_at?: number | null | undefined;
|
|
255
|
+
}[] | undefined;
|
|
249
256
|
file_ids?: string[] | undefined;
|
|
257
|
+
pto_message?: string | undefined;
|
|
258
|
+
} | null | undefined;
|
|
259
|
+
overrides?: {
|
|
260
|
+
trip_id?: string | null | undefined;
|
|
261
|
+
} | null | undefined;
|
|
262
|
+
}>;
|
|
263
|
+
export declare const CreateRideAnnotationSchema: z.ZodObject<Omit<{
|
|
264
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
265
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
266
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
267
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
268
|
+
acceptance: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
269
|
+
_id: z.ZodString;
|
|
270
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
271
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
272
|
+
} & {
|
|
273
|
+
analysis_summary: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodEnum<["pass", "fail", "skip", "error"]>>>>;
|
|
274
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
275
|
+
mode: z.ZodEnum<["manual", "auto"]>;
|
|
276
|
+
status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
277
|
+
}, "strict", z.ZodTypeAny, {
|
|
278
|
+
_id: string;
|
|
279
|
+
status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
280
|
+
created_by: string | null;
|
|
281
|
+
analysis_summary: Record<string, "error" | "pass" | "fail" | "skip"> | null;
|
|
282
|
+
mode: "manual" | "auto";
|
|
283
|
+
created_at?: (number & {
|
|
284
|
+
__brand: "UnixTimestamp";
|
|
285
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
286
|
+
updated_at?: (number & {
|
|
287
|
+
__brand: "UnixTimestamp";
|
|
288
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
289
|
+
}, {
|
|
290
|
+
_id: string;
|
|
291
|
+
status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
292
|
+
mode: "manual" | "auto";
|
|
293
|
+
created_at?: number | null | undefined;
|
|
294
|
+
updated_at?: number | null | undefined;
|
|
295
|
+
created_by?: string | null | undefined;
|
|
296
|
+
analysis_summary?: Record<string, "error" | "pass" | "fail" | "skip"> | null | undefined;
|
|
297
|
+
}>, "many">>;
|
|
298
|
+
justification: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
299
|
+
comments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
300
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
301
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
302
|
+
} & {
|
|
303
|
+
_id: z.ZodString;
|
|
304
|
+
text: z.ZodString;
|
|
305
|
+
user_id: z.ZodString;
|
|
306
|
+
}, "strict", z.ZodTypeAny, {
|
|
307
|
+
_id: string;
|
|
308
|
+
text: string;
|
|
309
|
+
user_id: string;
|
|
310
|
+
created_at?: (number & {
|
|
311
|
+
__brand: "UnixTimestamp";
|
|
312
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
313
|
+
updated_at?: (number & {
|
|
314
|
+
__brand: "UnixTimestamp";
|
|
315
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
316
|
+
}, {
|
|
317
|
+
_id: string;
|
|
318
|
+
text: string;
|
|
319
|
+
user_id: string;
|
|
320
|
+
created_at?: number | null | undefined;
|
|
321
|
+
updated_at?: number | null | undefined;
|
|
322
|
+
}>, "many">>;
|
|
323
|
+
file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
324
|
+
pto_message: z.ZodDefault<z.ZodString>;
|
|
325
|
+
}, "strict", z.ZodTypeAny, {
|
|
326
|
+
comments: {
|
|
327
|
+
_id: string;
|
|
328
|
+
text: string;
|
|
329
|
+
user_id: string;
|
|
330
|
+
created_at?: (number & {
|
|
331
|
+
__brand: "UnixTimestamp";
|
|
332
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
333
|
+
updated_at?: (number & {
|
|
334
|
+
__brand: "UnixTimestamp";
|
|
335
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
336
|
+
}[];
|
|
337
|
+
file_ids: string[];
|
|
338
|
+
pto_message: string;
|
|
339
|
+
}, {
|
|
250
340
|
comments?: {
|
|
251
341
|
_id: string;
|
|
252
342
|
text: string;
|
|
@@ -254,10 +344,236 @@ export declare const RideAnnotationSchema: z.ZodObject<{
|
|
|
254
344
|
created_at?: number | null | undefined;
|
|
255
345
|
updated_at?: number | null | undefined;
|
|
256
346
|
}[] | undefined;
|
|
347
|
+
file_ids?: string[] | undefined;
|
|
348
|
+
pto_message?: string | undefined;
|
|
349
|
+
}>>>;
|
|
350
|
+
overrides: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
351
|
+
trip_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
352
|
+
}, "strict", z.ZodTypeAny, {
|
|
353
|
+
trip_id: string | null;
|
|
354
|
+
}, {
|
|
355
|
+
trip_id?: string | null | undefined;
|
|
356
|
+
}>>>;
|
|
357
|
+
ride_id: z.ZodString;
|
|
358
|
+
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
359
|
+
is_locked: boolean;
|
|
360
|
+
acceptance: {
|
|
361
|
+
_id: string;
|
|
362
|
+
status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
363
|
+
created_by: string | null;
|
|
364
|
+
analysis_summary: Record<string, "error" | "pass" | "fail" | "skip"> | null;
|
|
365
|
+
mode: "manual" | "auto";
|
|
366
|
+
created_at?: (number & {
|
|
367
|
+
__brand: "UnixTimestamp";
|
|
368
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
369
|
+
updated_at?: (number & {
|
|
370
|
+
__brand: "UnixTimestamp";
|
|
371
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
372
|
+
}[];
|
|
373
|
+
justification: {
|
|
374
|
+
comments: {
|
|
375
|
+
_id: string;
|
|
376
|
+
text: string;
|
|
377
|
+
user_id: string;
|
|
378
|
+
created_at?: (number & {
|
|
379
|
+
__brand: "UnixTimestamp";
|
|
380
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
381
|
+
updated_at?: (number & {
|
|
382
|
+
__brand: "UnixTimestamp";
|
|
383
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
384
|
+
}[];
|
|
385
|
+
file_ids: string[];
|
|
386
|
+
pto_message: string;
|
|
387
|
+
} | null;
|
|
388
|
+
overrides: {
|
|
389
|
+
trip_id: string | null;
|
|
390
|
+
} | null;
|
|
391
|
+
ride_id: string;
|
|
392
|
+
_id?: string | undefined;
|
|
393
|
+
}, {
|
|
394
|
+
ride_id: string;
|
|
395
|
+
_id?: string | undefined;
|
|
396
|
+
is_locked?: boolean | undefined;
|
|
397
|
+
acceptance?: {
|
|
398
|
+
_id: string;
|
|
399
|
+
status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
400
|
+
mode: "manual" | "auto";
|
|
401
|
+
created_at?: number | null | undefined;
|
|
402
|
+
updated_at?: number | null | undefined;
|
|
403
|
+
created_by?: string | null | undefined;
|
|
404
|
+
analysis_summary?: Record<string, "error" | "pass" | "fail" | "skip"> | null | undefined;
|
|
405
|
+
}[] | undefined;
|
|
406
|
+
justification?: {
|
|
407
|
+
comments?: {
|
|
408
|
+
_id: string;
|
|
409
|
+
text: string;
|
|
410
|
+
user_id: string;
|
|
411
|
+
created_at?: number | null | undefined;
|
|
412
|
+
updated_at?: number | null | undefined;
|
|
413
|
+
}[] | undefined;
|
|
414
|
+
file_ids?: string[] | undefined;
|
|
415
|
+
pto_message?: string | undefined;
|
|
416
|
+
} | null | undefined;
|
|
417
|
+
overrides?: {
|
|
418
|
+
trip_id?: string | null | undefined;
|
|
419
|
+
} | null | undefined;
|
|
420
|
+
}>;
|
|
421
|
+
export declare const UpdateRideAnnotationSchema: z.ZodObject<{
|
|
422
|
+
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
423
|
+
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
424
|
+
acceptance: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
425
|
+
_id: z.ZodString;
|
|
426
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
427
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
428
|
+
} & {
|
|
429
|
+
analysis_summary: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodEnum<["pass", "fail", "skip", "error"]>>>>;
|
|
430
|
+
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
431
|
+
mode: z.ZodEnum<["manual", "auto"]>;
|
|
432
|
+
status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
|
|
433
|
+
}, "strict", z.ZodTypeAny, {
|
|
434
|
+
_id: string;
|
|
435
|
+
status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
436
|
+
created_by: string | null;
|
|
437
|
+
analysis_summary: Record<string, "error" | "pass" | "fail" | "skip"> | null;
|
|
438
|
+
mode: "manual" | "auto";
|
|
439
|
+
created_at?: (number & {
|
|
440
|
+
__brand: "UnixTimestamp";
|
|
441
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
442
|
+
updated_at?: (number & {
|
|
443
|
+
__brand: "UnixTimestamp";
|
|
444
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
445
|
+
}, {
|
|
446
|
+
_id: string;
|
|
447
|
+
status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
448
|
+
mode: "manual" | "auto";
|
|
449
|
+
created_at?: number | null | undefined;
|
|
450
|
+
updated_at?: number | null | undefined;
|
|
451
|
+
created_by?: string | null | undefined;
|
|
452
|
+
analysis_summary?: Record<string, "error" | "pass" | "fail" | "skip"> | null | undefined;
|
|
453
|
+
}>, "many">>>;
|
|
454
|
+
justification: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
455
|
+
comments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
456
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
457
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
458
|
+
} & {
|
|
459
|
+
_id: z.ZodString;
|
|
460
|
+
text: z.ZodString;
|
|
461
|
+
user_id: z.ZodString;
|
|
462
|
+
}, "strict", z.ZodTypeAny, {
|
|
463
|
+
_id: string;
|
|
464
|
+
text: string;
|
|
465
|
+
user_id: string;
|
|
466
|
+
created_at?: (number & {
|
|
467
|
+
__brand: "UnixTimestamp";
|
|
468
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
469
|
+
updated_at?: (number & {
|
|
470
|
+
__brand: "UnixTimestamp";
|
|
471
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
472
|
+
}, {
|
|
473
|
+
_id: string;
|
|
474
|
+
text: string;
|
|
475
|
+
user_id: string;
|
|
476
|
+
created_at?: number | null | undefined;
|
|
477
|
+
updated_at?: number | null | undefined;
|
|
478
|
+
}>, "many">>;
|
|
479
|
+
file_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
480
|
+
pto_message: z.ZodDefault<z.ZodString>;
|
|
481
|
+
}, "strict", z.ZodTypeAny, {
|
|
482
|
+
comments: {
|
|
483
|
+
_id: string;
|
|
484
|
+
text: string;
|
|
485
|
+
user_id: string;
|
|
486
|
+
created_at?: (number & {
|
|
487
|
+
__brand: "UnixTimestamp";
|
|
488
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
489
|
+
updated_at?: (number & {
|
|
490
|
+
__brand: "UnixTimestamp";
|
|
491
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
492
|
+
}[];
|
|
493
|
+
file_ids: string[];
|
|
494
|
+
pto_message: string;
|
|
495
|
+
}, {
|
|
496
|
+
comments?: {
|
|
497
|
+
_id: string;
|
|
498
|
+
text: string;
|
|
499
|
+
user_id: string;
|
|
500
|
+
created_at?: number | null | undefined;
|
|
501
|
+
updated_at?: number | null | undefined;
|
|
502
|
+
}[] | undefined;
|
|
503
|
+
file_ids?: string[] | undefined;
|
|
504
|
+
pto_message?: string | undefined;
|
|
505
|
+
}>>>>;
|
|
506
|
+
overrides: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
507
|
+
trip_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
508
|
+
}, "strict", z.ZodTypeAny, {
|
|
509
|
+
trip_id: string | null;
|
|
510
|
+
}, {
|
|
511
|
+
trip_id?: string | null | undefined;
|
|
512
|
+
}>>>>;
|
|
513
|
+
ride_id: z.ZodOptional<z.ZodString>;
|
|
514
|
+
}, "strict", z.ZodTypeAny, {
|
|
515
|
+
_id?: string | undefined;
|
|
516
|
+
is_locked?: boolean | undefined;
|
|
517
|
+
acceptance?: {
|
|
518
|
+
_id: string;
|
|
519
|
+
status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
520
|
+
created_by: string | null;
|
|
521
|
+
analysis_summary: Record<string, "error" | "pass" | "fail" | "skip"> | null;
|
|
522
|
+
mode: "manual" | "auto";
|
|
523
|
+
created_at?: (number & {
|
|
524
|
+
__brand: "UnixTimestamp";
|
|
525
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
526
|
+
updated_at?: (number & {
|
|
527
|
+
__brand: "UnixTimestamp";
|
|
528
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
529
|
+
}[] | undefined;
|
|
530
|
+
justification?: {
|
|
531
|
+
comments: {
|
|
532
|
+
_id: string;
|
|
533
|
+
text: string;
|
|
534
|
+
user_id: string;
|
|
535
|
+
created_at?: (number & {
|
|
536
|
+
__brand: "UnixTimestamp";
|
|
537
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
538
|
+
updated_at?: (number & {
|
|
539
|
+
__brand: "UnixTimestamp";
|
|
540
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
541
|
+
}[];
|
|
542
|
+
file_ids: string[];
|
|
543
|
+
pto_message: string;
|
|
544
|
+
} | null | undefined;
|
|
545
|
+
overrides?: {
|
|
546
|
+
trip_id: string | null;
|
|
547
|
+
} | null | undefined;
|
|
548
|
+
ride_id?: string | undefined;
|
|
549
|
+
}, {
|
|
550
|
+
_id?: string | undefined;
|
|
551
|
+
is_locked?: boolean | undefined;
|
|
552
|
+
acceptance?: {
|
|
553
|
+
_id: string;
|
|
554
|
+
status: "accepted" | "justification_required" | "under_review" | "rejected";
|
|
555
|
+
mode: "manual" | "auto";
|
|
556
|
+
created_at?: number | null | undefined;
|
|
557
|
+
updated_at?: number | null | undefined;
|
|
558
|
+
created_by?: string | null | undefined;
|
|
559
|
+
analysis_summary?: Record<string, "error" | "pass" | "fail" | "skip"> | null | undefined;
|
|
560
|
+
}[] | undefined;
|
|
561
|
+
justification?: {
|
|
562
|
+
comments?: {
|
|
563
|
+
_id: string;
|
|
564
|
+
text: string;
|
|
565
|
+
user_id: string;
|
|
566
|
+
created_at?: number | null | undefined;
|
|
567
|
+
updated_at?: number | null | undefined;
|
|
568
|
+
}[] | undefined;
|
|
569
|
+
file_ids?: string[] | undefined;
|
|
257
570
|
pto_message?: string | undefined;
|
|
258
571
|
} | null | undefined;
|
|
259
572
|
overrides?: {
|
|
260
573
|
trip_id?: string | null | undefined;
|
|
261
574
|
} | null | undefined;
|
|
575
|
+
ride_id?: string | undefined;
|
|
262
576
|
}>;
|
|
263
577
|
export type RideAnnotation = z.infer<typeof RideAnnotationSchema>;
|
|
578
|
+
export type CreateRideAnnotationDto = z.infer<typeof CreateRideAnnotationSchema>;
|
|
579
|
+
export type UpdateRideAnnotationDto = Partial<CreateRideAnnotationDto>;
|
|
@@ -30,3 +30,5 @@ export const RideAnnotationSchema = DocumentSchema.extend({
|
|
|
30
30
|
overrides: RideOverridesSchema.nullable().default(null),
|
|
31
31
|
ride_id: z.string(),
|
|
32
32
|
}).strict();
|
|
33
|
+
export const CreateRideAnnotationSchema = RideAnnotationSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
|
|
34
|
+
export const UpdateRideAnnotationSchema = CreateRideAnnotationSchema.partial();
|
package/dist/src/rides/ride.d.ts
CHANGED
|
@@ -483,6 +483,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
483
483
|
_id: string;
|
|
484
484
|
agency_id: string;
|
|
485
485
|
line_id: number;
|
|
486
|
+
trip_id: string;
|
|
486
487
|
analysis: {
|
|
487
488
|
EXPECTED_DRIVER_ID_QTY: {
|
|
488
489
|
value: number | null;
|
|
@@ -619,7 +620,6 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
619
620
|
__brand: "UnixTimestamp";
|
|
620
621
|
} & z.BRAND<"UnixTimestamp">;
|
|
621
622
|
system_status: "waiting" | "processing" | "complete" | "error";
|
|
622
|
-
trip_id: string;
|
|
623
623
|
vehicle_ids: number[];
|
|
624
624
|
created_at?: (number & {
|
|
625
625
|
__brand: "UnixTimestamp";
|
|
@@ -631,6 +631,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
631
631
|
_id: string;
|
|
632
632
|
agency_id: string;
|
|
633
633
|
line_id: number;
|
|
634
|
+
trip_id: string;
|
|
634
635
|
analysis: {
|
|
635
636
|
EXPECTED_DRIVER_ID_QTY: {
|
|
636
637
|
value: number | null;
|
|
@@ -752,7 +753,6 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
752
753
|
seen_last_at: number | null;
|
|
753
754
|
start_time_observed: number | null;
|
|
754
755
|
start_time_scheduled: number;
|
|
755
|
-
trip_id: string;
|
|
756
756
|
vehicle_ids: number[];
|
|
757
757
|
created_at?: number | null | undefined;
|
|
758
758
|
updated_at?: number | null | undefined;
|
|
@@ -764,6 +764,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
764
764
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
765
765
|
agency_id: z.ZodString;
|
|
766
766
|
line_id: z.ZodNumber;
|
|
767
|
+
trip_id: z.ZodString;
|
|
767
768
|
analysis: z.ZodNullable<z.ZodObject<{
|
|
768
769
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodObject<{
|
|
769
770
|
error_message: z.ZodOptional<z.ZodString>;
|
|
@@ -1233,11 +1234,11 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1233
1234
|
start_time_observed: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
1234
1235
|
start_time_scheduled: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
|
|
1235
1236
|
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
1236
|
-
trip_id: z.ZodString;
|
|
1237
1237
|
vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
1238
1238
|
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
1239
1239
|
agency_id: string;
|
|
1240
1240
|
line_id: number;
|
|
1241
|
+
trip_id: string;
|
|
1241
1242
|
analysis: {
|
|
1242
1243
|
EXPECTED_DRIVER_ID_QTY: {
|
|
1243
1244
|
value: number | null;
|
|
@@ -1374,12 +1375,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1374
1375
|
__brand: "UnixTimestamp";
|
|
1375
1376
|
} & z.BRAND<"UnixTimestamp">;
|
|
1376
1377
|
system_status: "waiting" | "processing" | "complete" | "error";
|
|
1377
|
-
trip_id: string;
|
|
1378
1378
|
vehicle_ids: number[];
|
|
1379
1379
|
_id?: string | undefined;
|
|
1380
1380
|
}, {
|
|
1381
1381
|
agency_id: string;
|
|
1382
1382
|
line_id: number;
|
|
1383
|
+
trip_id: string;
|
|
1383
1384
|
analysis: {
|
|
1384
1385
|
EXPECTED_DRIVER_ID_QTY: {
|
|
1385
1386
|
value: number | null;
|
|
@@ -1501,7 +1502,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1501
1502
|
seen_last_at: number | null;
|
|
1502
1503
|
start_time_observed: number | null;
|
|
1503
1504
|
start_time_scheduled: number;
|
|
1504
|
-
trip_id: string;
|
|
1505
1505
|
vehicle_ids: number[];
|
|
1506
1506
|
_id?: string | undefined;
|
|
1507
1507
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
@@ -1510,6 +1510,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1510
1510
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1511
1511
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
1512
1512
|
line_id: z.ZodOptional<z.ZodNumber>;
|
|
1513
|
+
trip_id: z.ZodOptional<z.ZodString>;
|
|
1513
1514
|
analysis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1514
1515
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodObject<{
|
|
1515
1516
|
error_message: z.ZodOptional<z.ZodString>;
|
|
@@ -1979,12 +1980,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1979
1980
|
start_time_observed: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
1980
1981
|
start_time_scheduled: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
|
|
1981
1982
|
system_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>>;
|
|
1982
|
-
trip_id: z.ZodOptional<z.ZodString>;
|
|
1983
1983
|
vehicle_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1984
1984
|
}, "strict", z.ZodTypeAny, {
|
|
1985
1985
|
_id?: string | undefined;
|
|
1986
1986
|
agency_id?: string | undefined;
|
|
1987
1987
|
line_id?: number | undefined;
|
|
1988
|
+
trip_id?: string | undefined;
|
|
1988
1989
|
analysis?: {
|
|
1989
1990
|
EXPECTED_DRIVER_ID_QTY: {
|
|
1990
1991
|
value: number | null;
|
|
@@ -2121,12 +2122,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2121
2122
|
__brand: "UnixTimestamp";
|
|
2122
2123
|
} & z.BRAND<"UnixTimestamp">) | undefined;
|
|
2123
2124
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
2124
|
-
trip_id?: string | undefined;
|
|
2125
2125
|
vehicle_ids?: number[] | undefined;
|
|
2126
2126
|
}, {
|
|
2127
2127
|
_id?: string | undefined;
|
|
2128
2128
|
agency_id?: string | undefined;
|
|
2129
2129
|
line_id?: number | undefined;
|
|
2130
|
+
trip_id?: string | undefined;
|
|
2130
2131
|
analysis?: {
|
|
2131
2132
|
EXPECTED_DRIVER_ID_QTY: {
|
|
2132
2133
|
value: number | null;
|
|
@@ -2249,7 +2250,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2249
2250
|
start_time_observed?: number | null | undefined;
|
|
2250
2251
|
start_time_scheduled?: number | undefined;
|
|
2251
2252
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
2252
|
-
trip_id?: string | undefined;
|
|
2253
2253
|
vehicle_ids?: number[] | undefined;
|
|
2254
2254
|
}>;
|
|
2255
2255
|
export interface Ride extends Omit<z.infer<typeof RideSchema>, 'created_at' | 'end_time_observed' | 'end_time_scheduled' | 'operational_date' | 'seen_first_at' | 'seen_last_at' | 'start_time_observed' | 'start_time_scheduled' | 'updated_at'> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export * from './sam.js';
|
|
1
2
|
export * from './simplified-apex-inspection-decision.js';
|
|
2
3
|
export * from './simplified-apex-inspection.js';
|
|
3
4
|
export * from './simplified-apex-location.js';
|
|
4
5
|
export * from './simplified-apex-on-board-refund.js';
|
|
5
6
|
export * from './simplified-apex-on-board-sale.js';
|
|
6
7
|
export * from './simplified-apex-validation.js';
|
|
7
|
-
export * from './unique-sam.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export * from './sam.js';
|
|
1
2
|
export * from './simplified-apex-inspection-decision.js';
|
|
2
3
|
export * from './simplified-apex-inspection.js';
|
|
3
4
|
export * from './simplified-apex-location.js';
|
|
4
5
|
export * from './simplified-apex-on-board-refund.js';
|
|
5
6
|
export * from './simplified-apex-on-board-sale.js';
|
|
6
7
|
export * from './simplified-apex-validation.js';
|
|
7
|
-
export * from './unique-sam.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type UnixTimestamp } from '../_common/unix-timestamp.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const SamSchema: z.ZodObject<{
|
|
4
4
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
5
5
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
6
6
|
} & {
|
|
@@ -55,7 +55,7 @@ export declare const UniqueSamSchema: z.ZodObject<{
|
|
|
55
55
|
updated_at?: number | null | undefined;
|
|
56
56
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
57
57
|
}>;
|
|
58
|
-
export declare const
|
|
58
|
+
export declare const CreateSamSchema: z.ZodObject<Omit<{
|
|
59
59
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
60
60
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
61
61
|
} & {
|
|
@@ -102,7 +102,7 @@ export declare const CreateUniqueSamSchema: z.ZodObject<Omit<{
|
|
|
102
102
|
transactions_missing: number | null;
|
|
103
103
|
system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
|
|
104
104
|
}>;
|
|
105
|
-
export declare const
|
|
105
|
+
export declare const UpdateSamSchema: z.ZodObject<{
|
|
106
106
|
_id: z.ZodOptional<z.ZodNumber>;
|
|
107
107
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
108
108
|
seen_first_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
@@ -153,14 +153,14 @@ export declare const UpdateUniqueSamSchema: z.ZodObject<{
|
|
|
153
153
|
* the transactions are real, unique and incremental. This allows the system to
|
|
154
154
|
* detect if a transaction has been tampered with or if any transactions are missing.
|
|
155
155
|
*/
|
|
156
|
-
export interface
|
|
156
|
+
export interface Sam extends Omit<z.infer<typeof SamSchema>, 'created_at' | 'seen_first_at' | 'seen_last_at' | 'updated_at'> {
|
|
157
157
|
created_at: UnixTimestamp;
|
|
158
158
|
seen_first_at: null | UnixTimestamp;
|
|
159
159
|
seen_last_at: null | UnixTimestamp;
|
|
160
160
|
updated_at: UnixTimestamp;
|
|
161
161
|
}
|
|
162
|
-
export interface
|
|
162
|
+
export interface CreateSamDto extends Omit<z.infer<typeof CreateSamSchema>, 'seen_first_at' | 'seen_last_at'> {
|
|
163
163
|
seen_first_at: null | UnixTimestamp;
|
|
164
164
|
seen_last_at: null | UnixTimestamp;
|
|
165
165
|
}
|
|
166
|
-
export type
|
|
166
|
+
export type UpdateSamDto = Partial<CreateSamDto>;
|
|
@@ -4,7 +4,7 @@ import { validateUnixTimestamp } from '../_common/unix-timestamp.js';
|
|
|
4
4
|
import { ProcessingStatusSchema } from '../system/processing-status.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
/* * */
|
|
7
|
-
export const
|
|
7
|
+
export const SamSchema = DocumentSchema.extend({
|
|
8
8
|
_id: z.number(),
|
|
9
9
|
agency_id: z.string(),
|
|
10
10
|
device_ids: z.array(z.string()).nullable(),
|
|
@@ -18,5 +18,5 @@ export const UniqueSamSchema = DocumentSchema.extend({
|
|
|
18
18
|
transactions_missing: z.number().nullable(),
|
|
19
19
|
vehicle_ids: z.array(z.number()).nullable(),
|
|
20
20
|
}).strict();
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
21
|
+
export const CreateSamSchema = SamSchema.omit({ created_at: true, updated_at: true });
|
|
22
|
+
export const UpdateSamSchema = CreateSamSchema.partial();
|
|
@@ -20,8 +20,8 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
20
20
|
_id: string;
|
|
21
21
|
agency_id: string;
|
|
22
22
|
line_id: string;
|
|
23
|
-
pattern_id: string;
|
|
24
23
|
trip_id: string;
|
|
24
|
+
pattern_id: string;
|
|
25
25
|
apex_version: string;
|
|
26
26
|
device_id: string;
|
|
27
27
|
mac_ase_counter_value: number;
|
|
@@ -41,8 +41,8 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
41
41
|
_id: string;
|
|
42
42
|
agency_id: string;
|
|
43
43
|
line_id: string;
|
|
44
|
-
pattern_id: string;
|
|
45
44
|
trip_id: string;
|
|
45
|
+
pattern_id: string;
|
|
46
46
|
apex_version: string;
|
|
47
47
|
device_id: string;
|
|
48
48
|
mac_ase_counter_value: number;
|
|
@@ -78,8 +78,8 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
78
78
|
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
79
79
|
agency_id?: string | undefined;
|
|
80
80
|
line_id?: string | undefined;
|
|
81
|
-
pattern_id?: string | undefined;
|
|
82
81
|
trip_id?: string | undefined;
|
|
82
|
+
pattern_id?: string | undefined;
|
|
83
83
|
apex_version?: string | undefined;
|
|
84
84
|
device_id?: string | undefined;
|
|
85
85
|
mac_ase_counter_value?: number | undefined;
|
|
@@ -95,8 +95,8 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
|
|
|
95
95
|
updated_at?: number | null | undefined;
|
|
96
96
|
agency_id?: string | undefined;
|
|
97
97
|
line_id?: string | undefined;
|
|
98
|
-
pattern_id?: string | undefined;
|
|
99
98
|
trip_id?: string | undefined;
|
|
99
|
+
pattern_id?: string | undefined;
|
|
100
100
|
apex_version?: string | undefined;
|
|
101
101
|
device_id?: string | undefined;
|
|
102
102
|
mac_ase_counter_value?: number | undefined;
|
|
@@ -31,8 +31,8 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
31
31
|
agency_id: string;
|
|
32
32
|
line_id: string | null;
|
|
33
33
|
validation_id: string | null;
|
|
34
|
-
pattern_id: string | null;
|
|
35
34
|
trip_id: string | null;
|
|
35
|
+
pattern_id: string | null;
|
|
36
36
|
apex_version: string;
|
|
37
37
|
device_id: string;
|
|
38
38
|
mac_ase_counter_value: number;
|
|
@@ -62,8 +62,8 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
62
62
|
agency_id: string;
|
|
63
63
|
line_id: string | null;
|
|
64
64
|
validation_id: string | null;
|
|
65
|
-
pattern_id: string | null;
|
|
66
65
|
trip_id: string | null;
|
|
66
|
+
pattern_id: string | null;
|
|
67
67
|
apex_version: string;
|
|
68
68
|
device_id: string;
|
|
69
69
|
mac_ase_counter_value: number;
|
|
@@ -119,8 +119,8 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
119
119
|
agency_id?: string | undefined;
|
|
120
120
|
line_id?: string | null | undefined;
|
|
121
121
|
validation_id?: string | null | undefined;
|
|
122
|
-
pattern_id?: string | null | undefined;
|
|
123
122
|
trip_id?: string | null | undefined;
|
|
123
|
+
pattern_id?: string | null | undefined;
|
|
124
124
|
apex_version?: string | undefined;
|
|
125
125
|
device_id?: string | undefined;
|
|
126
126
|
mac_ase_counter_value?: number | undefined;
|
|
@@ -146,8 +146,8 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
|
146
146
|
agency_id?: string | undefined;
|
|
147
147
|
line_id?: string | null | undefined;
|
|
148
148
|
validation_id?: string | null | undefined;
|
|
149
|
-
pattern_id?: string | null | undefined;
|
|
150
149
|
trip_id?: string | null | undefined;
|
|
150
|
+
pattern_id?: string | null | undefined;
|
|
151
151
|
apex_version?: string | undefined;
|
|
152
152
|
device_id?: string | undefined;
|
|
153
153
|
mac_ase_counter_value?: number | undefined;
|
|
@@ -32,8 +32,8 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
32
32
|
agency_id: string;
|
|
33
33
|
line_id: string | null;
|
|
34
34
|
validation_id: string | null;
|
|
35
|
-
pattern_id: string | null;
|
|
36
35
|
trip_id: string | null;
|
|
36
|
+
pattern_id: string | null;
|
|
37
37
|
apex_version: string;
|
|
38
38
|
device_id: string;
|
|
39
39
|
mac_ase_counter_value: number;
|
|
@@ -64,8 +64,8 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
64
64
|
agency_id: string;
|
|
65
65
|
line_id: string | null;
|
|
66
66
|
validation_id: string | null;
|
|
67
|
-
pattern_id: string | null;
|
|
68
67
|
trip_id: string | null;
|
|
68
|
+
pattern_id: string | null;
|
|
69
69
|
apex_version: string;
|
|
70
70
|
device_id: string;
|
|
71
71
|
mac_ase_counter_value: number;
|
|
@@ -123,8 +123,8 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
123
123
|
agency_id?: string | undefined;
|
|
124
124
|
line_id?: string | null | undefined;
|
|
125
125
|
validation_id?: string | null | undefined;
|
|
126
|
-
pattern_id?: string | null | undefined;
|
|
127
126
|
trip_id?: string | null | undefined;
|
|
127
|
+
pattern_id?: string | null | undefined;
|
|
128
128
|
apex_version?: string | undefined;
|
|
129
129
|
device_id?: string | undefined;
|
|
130
130
|
mac_ase_counter_value?: number | undefined;
|
|
@@ -151,8 +151,8 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
|
151
151
|
agency_id?: string | undefined;
|
|
152
152
|
line_id?: string | null | undefined;
|
|
153
153
|
validation_id?: string | null | undefined;
|
|
154
|
-
pattern_id?: string | null | undefined;
|
|
155
154
|
trip_id?: string | null | undefined;
|
|
155
|
+
pattern_id?: string | null | undefined;
|
|
156
156
|
apex_version?: string | undefined;
|
|
157
157
|
device_id?: string | undefined;
|
|
158
158
|
mac_ase_counter_value?: number | undefined;
|
|
@@ -244,8 +244,8 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
244
244
|
_id: string;
|
|
245
245
|
agency_id: string;
|
|
246
246
|
line_id: string;
|
|
247
|
-
pattern_id: string;
|
|
248
247
|
trip_id: string;
|
|
248
|
+
pattern_id: string;
|
|
249
249
|
apex_version: string;
|
|
250
250
|
device_id: string;
|
|
251
251
|
mac_ase_counter_value: number;
|
|
@@ -274,8 +274,8 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
274
274
|
_id: string;
|
|
275
275
|
agency_id: string;
|
|
276
276
|
line_id: string;
|
|
277
|
-
pattern_id: string;
|
|
278
277
|
trip_id: string;
|
|
278
|
+
pattern_id: string;
|
|
279
279
|
apex_version: string;
|
|
280
280
|
device_id: string;
|
|
281
281
|
mac_ase_counter_value: number;
|
|
@@ -400,8 +400,8 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
400
400
|
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
401
401
|
agency_id?: string | undefined;
|
|
402
402
|
line_id?: string | undefined;
|
|
403
|
-
pattern_id?: string | undefined;
|
|
404
403
|
trip_id?: string | undefined;
|
|
404
|
+
pattern_id?: string | undefined;
|
|
405
405
|
apex_version?: string | undefined;
|
|
406
406
|
device_id?: string | undefined;
|
|
407
407
|
mac_ase_counter_value?: number | undefined;
|
|
@@ -426,8 +426,8 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
|
|
|
426
426
|
updated_at?: number | null | undefined;
|
|
427
427
|
agency_id?: string | undefined;
|
|
428
428
|
line_id?: string | undefined;
|
|
429
|
-
pattern_id?: string | undefined;
|
|
430
429
|
trip_id?: string | undefined;
|
|
430
|
+
pattern_id?: string | undefined;
|
|
431
431
|
apex_version?: string | undefined;
|
|
432
432
|
device_id?: string | undefined;
|
|
433
433
|
mac_ase_counter_value?: number | undefined;
|
package/dist/src/stop.d.ts
CHANGED
|
@@ -90,6 +90,18 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
90
90
|
has_stop_sign: "unknown" | "yes" | "no";
|
|
91
91
|
municipality_id: string;
|
|
92
92
|
is_locked: boolean;
|
|
93
|
+
comments: {
|
|
94
|
+
_id: string;
|
|
95
|
+
text: string;
|
|
96
|
+
user_id: string;
|
|
97
|
+
created_at?: (number & {
|
|
98
|
+
__brand: "UnixTimestamp";
|
|
99
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
100
|
+
updated_at?: (number & {
|
|
101
|
+
__brand: "UnixTimestamp";
|
|
102
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
103
|
+
}[];
|
|
104
|
+
file_ids: string[];
|
|
93
105
|
is_archived: boolean;
|
|
94
106
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
95
107
|
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
@@ -105,19 +117,7 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
105
117
|
facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
|
|
106
118
|
equipment: ("pip" | "mupi" | "mini_pip")[];
|
|
107
119
|
has_mupi: "unknown" | "yes" | "no";
|
|
108
|
-
file_ids: string[];
|
|
109
120
|
image_ids: string[];
|
|
110
|
-
comments: {
|
|
111
|
-
_id: string;
|
|
112
|
-
text: string;
|
|
113
|
-
user_id: string;
|
|
114
|
-
created_at?: (number & {
|
|
115
|
-
__brand: "UnixTimestamp";
|
|
116
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
117
|
-
updated_at?: (number & {
|
|
118
|
-
__brand: "UnixTimestamp";
|
|
119
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
120
|
-
}[];
|
|
121
121
|
created_at?: (number & {
|
|
122
122
|
__brand: "UnixTimestamp";
|
|
123
123
|
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
@@ -160,6 +160,13 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
160
160
|
has_shelter: "unknown" | "yes" | "no";
|
|
161
161
|
has_stop_sign: "unknown" | "yes" | "no";
|
|
162
162
|
municipality_id: string;
|
|
163
|
+
comments: {
|
|
164
|
+
_id: string;
|
|
165
|
+
text: string;
|
|
166
|
+
user_id: string;
|
|
167
|
+
created_at?: number | null | undefined;
|
|
168
|
+
updated_at?: number | null | undefined;
|
|
169
|
+
}[];
|
|
163
170
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
164
171
|
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
165
172
|
district_id: string;
|
|
@@ -174,13 +181,6 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
174
181
|
facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
|
|
175
182
|
equipment: ("pip" | "mupi" | "mini_pip")[];
|
|
176
183
|
has_mupi: "unknown" | "yes" | "no";
|
|
177
|
-
comments: {
|
|
178
|
-
_id: string;
|
|
179
|
-
text: string;
|
|
180
|
-
user_id: string;
|
|
181
|
-
created_at?: number | null | undefined;
|
|
182
|
-
updated_at?: number | null | undefined;
|
|
183
|
-
}[];
|
|
184
184
|
created_at?: number | null | undefined;
|
|
185
185
|
updated_at?: number | null | undefined;
|
|
186
186
|
short_name?: string | null | undefined;
|
|
@@ -188,6 +188,7 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
188
188
|
shelter_code?: string | null | undefined;
|
|
189
189
|
shelter_maintainer?: string | null | undefined;
|
|
190
190
|
is_locked?: boolean | undefined;
|
|
191
|
+
file_ids?: string[] | undefined;
|
|
191
192
|
is_archived?: boolean | undefined;
|
|
192
193
|
legacy_id?: string | null | undefined;
|
|
193
194
|
new_name?: string | null | undefined;
|
|
@@ -201,7 +202,6 @@ export declare const StopSchema: z.ZodObject<{
|
|
|
201
202
|
last_infrastructure_maintenance?: number | null | undefined;
|
|
202
203
|
last_schedules_check?: number | null | undefined;
|
|
203
204
|
last_schedules_maintenance?: number | null | undefined;
|
|
204
|
-
file_ids?: string[] | undefined;
|
|
205
205
|
image_ids?: string[] | undefined;
|
|
206
206
|
observations?: string | null | undefined;
|
|
207
207
|
}>;
|
|
@@ -339,6 +339,18 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
339
339
|
has_stop_sign: "unknown" | "yes" | "no";
|
|
340
340
|
municipality_id: string;
|
|
341
341
|
is_locked: boolean;
|
|
342
|
+
comments: {
|
|
343
|
+
_id: string;
|
|
344
|
+
text: string;
|
|
345
|
+
user_id: string;
|
|
346
|
+
created_at?: (number & {
|
|
347
|
+
__brand: "UnixTimestamp";
|
|
348
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
349
|
+
updated_at?: (number & {
|
|
350
|
+
__brand: "UnixTimestamp";
|
|
351
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
352
|
+
}[];
|
|
353
|
+
file_ids: string[];
|
|
342
354
|
is_archived: boolean;
|
|
343
355
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
344
356
|
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
@@ -354,19 +366,7 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
354
366
|
facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
|
|
355
367
|
equipment: ("pip" | "mupi" | "mini_pip")[];
|
|
356
368
|
has_mupi: "unknown" | "yes" | "no";
|
|
357
|
-
file_ids: string[];
|
|
358
369
|
image_ids: string[];
|
|
359
|
-
comments: {
|
|
360
|
-
_id: string;
|
|
361
|
-
text: string;
|
|
362
|
-
user_id: string;
|
|
363
|
-
created_at?: (number & {
|
|
364
|
-
__brand: "UnixTimestamp";
|
|
365
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
366
|
-
updated_at?: (number & {
|
|
367
|
-
__brand: "UnixTimestamp";
|
|
368
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
369
|
-
}[];
|
|
370
370
|
short_name?: string | null | undefined;
|
|
371
371
|
parish_id?: string | null | undefined;
|
|
372
372
|
shelter_code?: string | null | undefined;
|
|
@@ -403,6 +403,13 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
403
403
|
has_shelter: "unknown" | "yes" | "no";
|
|
404
404
|
has_stop_sign: "unknown" | "yes" | "no";
|
|
405
405
|
municipality_id: string;
|
|
406
|
+
comments: {
|
|
407
|
+
_id: string;
|
|
408
|
+
text: string;
|
|
409
|
+
user_id: string;
|
|
410
|
+
created_at?: number | null | undefined;
|
|
411
|
+
updated_at?: number | null | undefined;
|
|
412
|
+
}[];
|
|
406
413
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
407
414
|
operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
|
|
408
415
|
district_id: string;
|
|
@@ -417,18 +424,12 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
417
424
|
facilities: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[];
|
|
418
425
|
equipment: ("pip" | "mupi" | "mini_pip")[];
|
|
419
426
|
has_mupi: "unknown" | "yes" | "no";
|
|
420
|
-
comments: {
|
|
421
|
-
_id: string;
|
|
422
|
-
text: string;
|
|
423
|
-
user_id: string;
|
|
424
|
-
created_at?: number | null | undefined;
|
|
425
|
-
updated_at?: number | null | undefined;
|
|
426
|
-
}[];
|
|
427
427
|
short_name?: string | null | undefined;
|
|
428
428
|
parish_id?: string | null | undefined;
|
|
429
429
|
shelter_code?: string | null | undefined;
|
|
430
430
|
shelter_maintainer?: string | null | undefined;
|
|
431
431
|
is_locked?: boolean | undefined;
|
|
432
|
+
file_ids?: string[] | undefined;
|
|
432
433
|
is_archived?: boolean | undefined;
|
|
433
434
|
legacy_id?: string | null | undefined;
|
|
434
435
|
new_name?: string | null | undefined;
|
|
@@ -442,7 +443,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
|
|
|
442
443
|
last_infrastructure_maintenance?: number | null | undefined;
|
|
443
444
|
last_schedules_check?: number | null | undefined;
|
|
444
445
|
last_schedules_maintenance?: number | null | undefined;
|
|
445
|
-
file_ids?: string[] | undefined;
|
|
446
446
|
image_ids?: string[] | undefined;
|
|
447
447
|
observations?: string | null | undefined;
|
|
448
448
|
}>;
|
|
@@ -459,6 +459,31 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
459
459
|
shelter_code: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
460
460
|
shelter_maintainer: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
461
461
|
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
462
|
+
comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
463
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
464
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
465
|
+
} & {
|
|
466
|
+
_id: z.ZodString;
|
|
467
|
+
text: z.ZodString;
|
|
468
|
+
user_id: z.ZodString;
|
|
469
|
+
}, "strict", z.ZodTypeAny, {
|
|
470
|
+
_id: string;
|
|
471
|
+
text: string;
|
|
472
|
+
user_id: string;
|
|
473
|
+
created_at?: (number & {
|
|
474
|
+
__brand: "UnixTimestamp";
|
|
475
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
476
|
+
updated_at?: (number & {
|
|
477
|
+
__brand: "UnixTimestamp";
|
|
478
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
479
|
+
}, {
|
|
480
|
+
_id: string;
|
|
481
|
+
text: string;
|
|
482
|
+
user_id: string;
|
|
483
|
+
created_at?: number | null | undefined;
|
|
484
|
+
updated_at?: number | null | undefined;
|
|
485
|
+
}>, "many">>;
|
|
486
|
+
file_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
462
487
|
is_archived: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
463
488
|
jurisdiction: z.ZodOptional<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
|
|
464
489
|
legacy_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -486,32 +511,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
486
511
|
facilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["fire_station", "health_clinic", "historic_building", "hospital", "police_station", "school", "shopping", "transit_office", "university", "beach"]>, "many">>;
|
|
487
512
|
equipment: z.ZodOptional<z.ZodArray<z.ZodEnum<["pip", "mupi", "mini_pip"]>, "many">>;
|
|
488
513
|
has_mupi: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
|
|
489
|
-
file_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
490
514
|
image_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
491
|
-
comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
492
|
-
created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
493
|
-
updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
|
|
494
|
-
} & {
|
|
495
|
-
_id: z.ZodString;
|
|
496
|
-
text: z.ZodString;
|
|
497
|
-
user_id: z.ZodString;
|
|
498
|
-
}, "strict", z.ZodTypeAny, {
|
|
499
|
-
_id: string;
|
|
500
|
-
text: string;
|
|
501
|
-
user_id: string;
|
|
502
|
-
created_at?: (number & {
|
|
503
|
-
__brand: "UnixTimestamp";
|
|
504
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
505
|
-
updated_at?: (number & {
|
|
506
|
-
__brand: "UnixTimestamp";
|
|
507
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
508
|
-
}, {
|
|
509
|
-
_id: string;
|
|
510
|
-
text: string;
|
|
511
|
-
user_id: string;
|
|
512
|
-
created_at?: number | null | undefined;
|
|
513
|
-
updated_at?: number | null | undefined;
|
|
514
|
-
}>, "many">>;
|
|
515
515
|
observations: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
516
516
|
}, "strict", z.ZodTypeAny, {
|
|
517
517
|
name?: string | undefined;
|
|
@@ -526,6 +526,18 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
526
526
|
shelter_code?: string | null | undefined;
|
|
527
527
|
shelter_maintainer?: string | null | undefined;
|
|
528
528
|
is_locked?: boolean | undefined;
|
|
529
|
+
comments?: {
|
|
530
|
+
_id: string;
|
|
531
|
+
text: string;
|
|
532
|
+
user_id: string;
|
|
533
|
+
created_at?: (number & {
|
|
534
|
+
__brand: "UnixTimestamp";
|
|
535
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
536
|
+
updated_at?: (number & {
|
|
537
|
+
__brand: "UnixTimestamp";
|
|
538
|
+
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
539
|
+
}[] | undefined;
|
|
540
|
+
file_ids?: string[] | undefined;
|
|
529
541
|
is_archived?: boolean | undefined;
|
|
530
542
|
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
|
|
531
543
|
legacy_id?: string | null | undefined;
|
|
@@ -563,19 +575,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
563
575
|
facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
|
|
564
576
|
equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
|
|
565
577
|
has_mupi?: "unknown" | "yes" | "no" | undefined;
|
|
566
|
-
file_ids?: string[] | undefined;
|
|
567
578
|
image_ids?: string[] | undefined;
|
|
568
|
-
comments?: {
|
|
569
|
-
_id: string;
|
|
570
|
-
text: string;
|
|
571
|
-
user_id: string;
|
|
572
|
-
created_at?: (number & {
|
|
573
|
-
__brand: "UnixTimestamp";
|
|
574
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
575
|
-
updated_at?: (number & {
|
|
576
|
-
__brand: "UnixTimestamp";
|
|
577
|
-
} & z.BRAND<"UnixTimestamp">) | null | undefined;
|
|
578
|
-
}[] | undefined;
|
|
579
579
|
observations?: string | null | undefined;
|
|
580
580
|
}, {
|
|
581
581
|
name?: string | undefined;
|
|
@@ -590,6 +590,14 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
590
590
|
shelter_code?: string | null | undefined;
|
|
591
591
|
shelter_maintainer?: string | null | undefined;
|
|
592
592
|
is_locked?: boolean | undefined;
|
|
593
|
+
comments?: {
|
|
594
|
+
_id: string;
|
|
595
|
+
text: string;
|
|
596
|
+
user_id: string;
|
|
597
|
+
created_at?: number | null | undefined;
|
|
598
|
+
updated_at?: number | null | undefined;
|
|
599
|
+
}[] | undefined;
|
|
600
|
+
file_ids?: string[] | undefined;
|
|
593
601
|
is_archived?: boolean | undefined;
|
|
594
602
|
jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
|
|
595
603
|
legacy_id?: string | null | undefined;
|
|
@@ -617,15 +625,7 @@ export declare const UpdateStopSchema: z.ZodObject<{
|
|
|
617
625
|
facilities?: ("school" | "fire_station" | "health_clinic" | "historic_building" | "hospital" | "police_station" | "shopping" | "transit_office" | "university" | "beach")[] | undefined;
|
|
618
626
|
equipment?: ("pip" | "mupi" | "mini_pip")[] | undefined;
|
|
619
627
|
has_mupi?: "unknown" | "yes" | "no" | undefined;
|
|
620
|
-
file_ids?: string[] | undefined;
|
|
621
628
|
image_ids?: string[] | undefined;
|
|
622
|
-
comments?: {
|
|
623
|
-
_id: string;
|
|
624
|
-
text: string;
|
|
625
|
-
user_id: string;
|
|
626
|
-
created_at?: number | null | undefined;
|
|
627
|
-
updated_at?: number | null | undefined;
|
|
628
|
-
}[] | undefined;
|
|
629
629
|
observations?: string | null | undefined;
|
|
630
630
|
}>;
|
|
631
631
|
export interface Stop extends Omit<z.infer<typeof StopSchema>, 'last_infrastructure_check' | 'last_infrastructure_maintenance' | 'last_schedules_check' | 'last_schedules_maintenance' | 'last_shelter_installation'> {
|
|
@@ -22,8 +22,8 @@ export declare const VehicleEventSchema: z.ZodObject<{
|
|
|
22
22
|
}, "strict", z.ZodTypeAny, {
|
|
23
23
|
_id: string;
|
|
24
24
|
agency_id: string;
|
|
25
|
-
pattern_id: string;
|
|
26
25
|
trip_id: string;
|
|
26
|
+
pattern_id: string;
|
|
27
27
|
received_at: number & {
|
|
28
28
|
__brand: "UnixTimestamp";
|
|
29
29
|
} & z.BRAND<"UnixTimestamp">;
|
|
@@ -46,8 +46,8 @@ export declare const VehicleEventSchema: z.ZodObject<{
|
|
|
46
46
|
}, {
|
|
47
47
|
_id: string;
|
|
48
48
|
agency_id: string;
|
|
49
|
-
pattern_id: string;
|
|
50
49
|
trip_id: string;
|
|
50
|
+
pattern_id: string;
|
|
51
51
|
received_at: number;
|
|
52
52
|
stop_id: string;
|
|
53
53
|
vehicle_id: string;
|
package/package.json
CHANGED