@tmlmobilidade/go-types-operation 20260907.1225.34 → 20260907.2103.49

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.
@@ -173,6 +173,1359 @@ export declare const RideLifecycleSchema: z.ZodObject<{
173
173
  updated_at: string | number;
174
174
  processing_status?: string | undefined;
175
175
  }>;
176
+ export declare const RideAnalysesSchema: z.ZodObject<{
177
+ analyses: z.ZodObject<{
178
+ at_least_one_vehicle_event_on_first_stop: z.ZodObject<{
179
+ agency_id: z.ZodString;
180
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
181
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
182
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
183
+ ride_id: z.ZodString;
184
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
185
+ } & {
186
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_FIRST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP"]>>>;
187
+ vehicle_events_on_first_stop_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ agency_id: string;
190
+ updated_at: number & {
191
+ __brand: "UnixMilliseconds";
192
+ };
193
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null;
194
+ grade_status: "error" | "skip" | "pass" | "fail";
195
+ operational_date: number & {
196
+ __brand: "OperationalDateInt";
197
+ };
198
+ remarks: string | null;
199
+ ride_id: string;
200
+ vehicle_events_on_first_stop_qty: number | null;
201
+ }, {
202
+ agency_id: string;
203
+ updated_at: string | number;
204
+ grade_status: string;
205
+ operational_date: string | number;
206
+ ride_id: string;
207
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null | undefined;
208
+ remarks?: string | null | undefined;
209
+ vehicle_events_on_first_stop_qty?: string | number | null | undefined;
210
+ }>;
211
+ at_least_one_vehicle_event_on_last_stop: z.ZodObject<{
212
+ agency_id: z.ZodString;
213
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
214
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
215
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
216
+ ride_id: z.ZodString;
217
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
218
+ } & {
219
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_LAST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP"]>>>;
220
+ vehicle_events_on_last_stop_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ agency_id: string;
223
+ updated_at: number & {
224
+ __brand: "UnixMilliseconds";
225
+ };
226
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null;
227
+ grade_status: "error" | "skip" | "pass" | "fail";
228
+ operational_date: number & {
229
+ __brand: "OperationalDateInt";
230
+ };
231
+ remarks: string | null;
232
+ ride_id: string;
233
+ vehicle_events_on_last_stop_qty: number | null;
234
+ }, {
235
+ agency_id: string;
236
+ updated_at: string | number;
237
+ grade_status: string;
238
+ operational_date: string | number;
239
+ ride_id: string;
240
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null | undefined;
241
+ remarks?: string | null | undefined;
242
+ vehicle_events_on_last_stop_qty?: string | number | null | undefined;
243
+ }>;
244
+ expected_apex_validation_interval: z.ZodObject<{
245
+ agency_id: z.ZodString;
246
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
247
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
248
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
249
+ ride_id: z.ZodString;
250
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
251
+ } & {
252
+ observed_average_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
253
+ observed_max_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
254
+ observed_min_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
255
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_APEX_VALIDATIONS", "NOT_ENOUGH_VALIDATIONS", "INTERVALS_TOO_SHORT", "NON_ORGANIC_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>>>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ agency_id: string;
258
+ updated_at: number & {
259
+ __brand: "UnixMilliseconds";
260
+ };
261
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null;
262
+ grade_status: "error" | "skip" | "pass" | "fail";
263
+ operational_date: number & {
264
+ __brand: "OperationalDateInt";
265
+ };
266
+ remarks: string | null;
267
+ ride_id: string;
268
+ observed_average_interval: number | null;
269
+ observed_max_interval: number | null;
270
+ observed_min_interval: number | null;
271
+ }, {
272
+ agency_id: string;
273
+ updated_at: string | number;
274
+ grade_status: string;
275
+ operational_date: string | number;
276
+ ride_id: string;
277
+ reason?: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null | undefined;
278
+ remarks?: string | null | undefined;
279
+ observed_average_interval?: string | number | null | undefined;
280
+ observed_max_interval?: string | number | null | undefined;
281
+ observed_min_interval?: string | number | null | undefined;
282
+ }>;
283
+ expected_driver_id_qty: z.ZodObject<{
284
+ agency_id: z.ZodString;
285
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
286
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
287
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
288
+ ride_id: z.ZodString;
289
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
290
+ } & {
291
+ observed_driver_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
292
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_DRIVER_ID_QTY", "EXPECTED_DRIVER_ID_QTY"]>>>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ agency_id: string;
295
+ updated_at: number & {
296
+ __brand: "UnixMilliseconds";
297
+ };
298
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null;
299
+ grade_status: "error" | "skip" | "pass" | "fail";
300
+ operational_date: number & {
301
+ __brand: "OperationalDateInt";
302
+ };
303
+ remarks: string | null;
304
+ ride_id: string;
305
+ observed_driver_ids_qty: number | null;
306
+ }, {
307
+ agency_id: string;
308
+ updated_at: string | number;
309
+ grade_status: string;
310
+ operational_date: string | number;
311
+ ride_id: string;
312
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null | undefined;
313
+ remarks?: string | null | undefined;
314
+ observed_driver_ids_qty?: string | number | null | undefined;
315
+ }>;
316
+ expected_start_time: z.ZodObject<{
317
+ agency_id: z.ZodString;
318
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
319
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
320
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
321
+ ride_id: z.ZodString;
322
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
323
+ } & {
324
+ observed_start_time: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
325
+ observed_start_time_delta: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
326
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_START_TIME_SCHEDULED", "NO_VEHICLE_EVENTS", "UNKNOWN_START", "EARLY_START", "LATE_START", "START_ON_TIME"]>>>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ agency_id: string;
329
+ updated_at: number & {
330
+ __brand: "UnixMilliseconds";
331
+ };
332
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null;
333
+ grade_status: "error" | "skip" | "pass" | "fail";
334
+ operational_date: number & {
335
+ __brand: "OperationalDateInt";
336
+ };
337
+ remarks: string | null;
338
+ ride_id: string;
339
+ observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
340
+ observed_start_time_delta: number | null;
341
+ }, {
342
+ agency_id: string;
343
+ updated_at: string | number;
344
+ grade_status: string;
345
+ operational_date: string | number;
346
+ ride_id: string;
347
+ reason?: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null | undefined;
348
+ remarks?: string | null | undefined;
349
+ observed_start_time?: string | number | null | undefined;
350
+ observed_start_time_delta?: string | number | null | undefined;
351
+ }>;
352
+ expected_vehicle_event_delay: z.ZodObject<{
353
+ agency_id: z.ZodString;
354
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
355
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
356
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
357
+ ride_id: z.ZodString;
358
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
359
+ } & {
360
+ observed_average_delay: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
361
+ observed_max_delay: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
362
+ observed_min_delay: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
363
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_VEHICLE_EVENTS_DELAY", "EXPECTED_VEHICLE_EVENTS_DELAY"]>>>;
364
+ vehicle_events_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
365
+ vehicle_events_with_delay_percent: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
366
+ vehicle_events_with_delay_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ agency_id: string;
369
+ updated_at: number & {
370
+ __brand: "UnixMilliseconds";
371
+ };
372
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null;
373
+ grade_status: "error" | "skip" | "pass" | "fail";
374
+ operational_date: number & {
375
+ __brand: "OperationalDateInt";
376
+ };
377
+ remarks: string | null;
378
+ ride_id: string;
379
+ observed_average_delay: number | null;
380
+ observed_max_delay: number | null;
381
+ observed_min_delay: number | null;
382
+ vehicle_events_qty: number | null;
383
+ vehicle_events_with_delay_percent: number | null;
384
+ vehicle_events_with_delay_qty: number | null;
385
+ }, {
386
+ agency_id: string;
387
+ updated_at: string | number;
388
+ grade_status: string;
389
+ operational_date: string | number;
390
+ ride_id: string;
391
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null | undefined;
392
+ remarks?: string | null | undefined;
393
+ observed_average_delay?: string | number | null | undefined;
394
+ observed_max_delay?: string | number | null | undefined;
395
+ observed_min_delay?: string | number | null | undefined;
396
+ vehicle_events_qty?: string | number | null | undefined;
397
+ vehicle_events_with_delay_percent?: string | number | null | undefined;
398
+ vehicle_events_with_delay_qty?: string | number | null | undefined;
399
+ }>;
400
+ expected_vehicle_event_interval: z.ZodObject<{
401
+ agency_id: z.ZodString;
402
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
403
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
404
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
405
+ ride_id: z.ZodString;
406
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
407
+ } & {
408
+ observed_average_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
409
+ observed_max_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
410
+ observed_min_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
411
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_INTERVAL", "UNEXPECTED_VEHICLE_EVENT_INTERVAL"]>>>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ agency_id: string;
414
+ updated_at: number & {
415
+ __brand: "UnixMilliseconds";
416
+ };
417
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null;
418
+ grade_status: "error" | "skip" | "pass" | "fail";
419
+ operational_date: number & {
420
+ __brand: "OperationalDateInt";
421
+ };
422
+ remarks: string | null;
423
+ ride_id: string;
424
+ observed_average_interval: number | null;
425
+ observed_max_interval: number | null;
426
+ observed_min_interval: number | null;
427
+ }, {
428
+ agency_id: string;
429
+ updated_at: string | number;
430
+ grade_status: string;
431
+ operational_date: string | number;
432
+ ride_id: string;
433
+ reason?: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null | undefined;
434
+ remarks?: string | null | undefined;
435
+ observed_average_interval?: string | number | null | undefined;
436
+ observed_max_interval?: string | number | null | undefined;
437
+ observed_min_interval?: string | number | null | undefined;
438
+ }>;
439
+ expected_vehicle_event_qty: z.ZodObject<{
440
+ agency_id: z.ZodString;
441
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
442
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
443
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
444
+ ride_id: z.ZodString;
445
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
446
+ } & {
447
+ expected_vehicle_events_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
448
+ observed_vehicle_events_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
449
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_QTY", "UNEXPECTED_VEHICLE_EVENT_QTY"]>>>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ agency_id: string;
452
+ updated_at: number & {
453
+ __brand: "UnixMilliseconds";
454
+ };
455
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null;
456
+ grade_status: "error" | "skip" | "pass" | "fail";
457
+ operational_date: number & {
458
+ __brand: "OperationalDateInt";
459
+ };
460
+ remarks: string | null;
461
+ ride_id: string;
462
+ expected_vehicle_events_qty: number | null;
463
+ observed_vehicle_events_qty: number | null;
464
+ }, {
465
+ agency_id: string;
466
+ updated_at: string | number;
467
+ grade_status: string;
468
+ operational_date: string | number;
469
+ ride_id: string;
470
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null | undefined;
471
+ remarks?: string | null | undefined;
472
+ expected_vehicle_events_qty?: string | number | null | undefined;
473
+ observed_vehicle_events_qty?: string | number | null | undefined;
474
+ }>;
475
+ expected_vehicle_id_qty: z.ZodObject<{
476
+ agency_id: z.ZodString;
477
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
478
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
479
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
480
+ ride_id: z.ZodString;
481
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
482
+ } & {
483
+ observed_vehicle_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
484
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "UNEXPECTED_VEHICLE_ID_QTY", "EXPECTED_VEHICLE_ID_QTY"]>>>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ agency_id: string;
487
+ updated_at: number & {
488
+ __brand: "UnixMilliseconds";
489
+ };
490
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null;
491
+ grade_status: "error" | "skip" | "pass" | "fail";
492
+ operational_date: number & {
493
+ __brand: "OperationalDateInt";
494
+ };
495
+ remarks: string | null;
496
+ ride_id: string;
497
+ observed_vehicle_ids_qty: number | null;
498
+ }, {
499
+ agency_id: string;
500
+ updated_at: string | number;
501
+ grade_status: string;
502
+ operational_date: string | number;
503
+ ride_id: string;
504
+ reason?: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null | undefined;
505
+ remarks?: string | null | undefined;
506
+ observed_vehicle_ids_qty?: string | number | null | undefined;
507
+ }>;
508
+ matching_apex_locations: z.ZodObject<{
509
+ agency_id: z.ZodString;
510
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
511
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
512
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
513
+ ride_id: z.ZodString;
514
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
515
+ } & {
516
+ expected_apex_locations_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
517
+ matching_apex_locations_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
518
+ missing_apex_locations_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
519
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>>>;
520
+ }, "strip", z.ZodTypeAny, {
521
+ agency_id: string;
522
+ updated_at: number & {
523
+ __brand: "UnixMilliseconds";
524
+ };
525
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null;
526
+ grade_status: "error" | "skip" | "pass" | "fail";
527
+ operational_date: number & {
528
+ __brand: "OperationalDateInt";
529
+ };
530
+ remarks: string | null;
531
+ ride_id: string;
532
+ expected_apex_locations_qty: number | null;
533
+ matching_apex_locations_qty: number | null;
534
+ missing_apex_locations_qty: number | null;
535
+ }, {
536
+ agency_id: string;
537
+ updated_at: string | number;
538
+ grade_status: string;
539
+ operational_date: string | number;
540
+ ride_id: string;
541
+ reason?: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null | undefined;
542
+ remarks?: string | null | undefined;
543
+ expected_apex_locations_qty?: string | number | null | undefined;
544
+ matching_apex_locations_qty?: string | number | null | undefined;
545
+ missing_apex_locations_qty?: string | number | null | undefined;
546
+ }>;
547
+ matching_vehicle_ids: z.ZodObject<{
548
+ agency_id: z.ZodString;
549
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
550
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
551
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
552
+ ride_id: z.ZodString;
553
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
554
+ } & {
555
+ extra_apex_vehicle_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
556
+ extra_vehicle_events_vehicle_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
557
+ matching_vehicle_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
558
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS", "NO_APEX_TRANSACTIONS"]>>>;
559
+ total_vehicle_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ agency_id: string;
562
+ updated_at: number & {
563
+ __brand: "UnixMilliseconds";
564
+ };
565
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null;
566
+ grade_status: "error" | "skip" | "pass" | "fail";
567
+ operational_date: number & {
568
+ __brand: "OperationalDateInt";
569
+ };
570
+ remarks: string | null;
571
+ ride_id: string;
572
+ extra_apex_vehicle_ids_qty: number | null;
573
+ extra_vehicle_events_vehicle_ids_qty: number | null;
574
+ matching_vehicle_ids_qty: number | null;
575
+ total_vehicle_ids_qty: number | null;
576
+ }, {
577
+ agency_id: string;
578
+ updated_at: string | number;
579
+ grade_status: string;
580
+ operational_date: string | number;
581
+ ride_id: string;
582
+ reason?: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null | undefined;
583
+ remarks?: string | null | undefined;
584
+ extra_apex_vehicle_ids_qty?: string | number | null | undefined;
585
+ extra_vehicle_events_vehicle_ids_qty?: string | number | null | undefined;
586
+ matching_vehicle_ids_qty?: string | number | null | undefined;
587
+ total_vehicle_ids_qty?: string | number | null | undefined;
588
+ }>;
589
+ simple_one_apex_validation: z.ZodObject<{
590
+ agency_id: z.ZodString;
591
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
592
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
593
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
594
+ ride_id: z.ZodString;
595
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
596
+ } & {
597
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_APEX_VALIDATIONS", "ONE_OR_MORE_APEX_VALIDATIONS"]>>>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ agency_id: string;
600
+ updated_at: number & {
601
+ __brand: "UnixMilliseconds";
602
+ };
603
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null;
604
+ grade_status: "error" | "skip" | "pass" | "fail";
605
+ operational_date: number & {
606
+ __brand: "OperationalDateInt";
607
+ };
608
+ remarks: string | null;
609
+ ride_id: string;
610
+ }, {
611
+ agency_id: string;
612
+ updated_at: string | number;
613
+ grade_status: string;
614
+ operational_date: string | number;
615
+ ride_id: string;
616
+ reason?: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null | undefined;
617
+ remarks?: string | null | undefined;
618
+ }>;
619
+ simple_one_vehicle_event_or_apex_validation: z.ZodObject<{
620
+ agency_id: z.ZodString;
621
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
622
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
623
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
624
+ ride_id: z.ZodString;
625
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
626
+ } & {
627
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>>>;
628
+ }, "strip", z.ZodTypeAny, {
629
+ agency_id: string;
630
+ updated_at: number & {
631
+ __brand: "UnixMilliseconds";
632
+ };
633
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null;
634
+ grade_status: "error" | "skip" | "pass" | "fail";
635
+ operational_date: number & {
636
+ __brand: "OperationalDateInt";
637
+ };
638
+ remarks: string | null;
639
+ ride_id: string;
640
+ }, {
641
+ agency_id: string;
642
+ updated_at: string | number;
643
+ grade_status: string;
644
+ operational_date: string | number;
645
+ ride_id: string;
646
+ reason?: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null | undefined;
647
+ remarks?: string | null | undefined;
648
+ }>;
649
+ simple_three_vehicle_events: z.ZodObject<{
650
+ agency_id: z.ZodString;
651
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
652
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
653
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
654
+ ride_id: z.ZodString;
655
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
656
+ } & {
657
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "MISSING_FIRST_STOPS", "MISSING_MIDDLE_STOPS", "MISSING_LAST_STOPS", "ALL_STOPS_FOUND"]>>>;
658
+ stop_ids_first: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
659
+ stop_ids_last: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
660
+ stop_ids_middle: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
661
+ }, "strip", z.ZodTypeAny, {
662
+ agency_id: string;
663
+ updated_at: number & {
664
+ __brand: "UnixMilliseconds";
665
+ };
666
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null;
667
+ grade_status: "error" | "skip" | "pass" | "fail";
668
+ operational_date: number & {
669
+ __brand: "OperationalDateInt";
670
+ };
671
+ remarks: string | null;
672
+ ride_id: string;
673
+ stop_ids_first: string[];
674
+ stop_ids_last: string[];
675
+ stop_ids_middle: string[];
676
+ }, {
677
+ agency_id: string;
678
+ updated_at: string | number;
679
+ grade_status: string;
680
+ operational_date: string | number;
681
+ ride_id: string;
682
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null | undefined;
683
+ remarks?: string | null | undefined;
684
+ stop_ids_first?: string[] | undefined;
685
+ stop_ids_last?: string[] | undefined;
686
+ stop_ids_middle?: string[] | undefined;
687
+ }>;
688
+ transaction_sequentiality: z.ZodObject<{
689
+ agency_id: z.ZodString;
690
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
691
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
692
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
693
+ ride_id: z.ZodString;
694
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
695
+ } & {
696
+ expected_transactions_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
697
+ found_transactions_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
698
+ missing_transactions_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
699
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_TRANSACTIONS", "MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>>>;
700
+ }, "strip", z.ZodTypeAny, {
701
+ agency_id: string;
702
+ updated_at: number & {
703
+ __brand: "UnixMilliseconds";
704
+ };
705
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null;
706
+ grade_status: "error" | "skip" | "pass" | "fail";
707
+ operational_date: number & {
708
+ __brand: "OperationalDateInt";
709
+ };
710
+ remarks: string | null;
711
+ ride_id: string;
712
+ expected_transactions_qty: number | null;
713
+ found_transactions_qty: number | null;
714
+ missing_transactions_qty: number | null;
715
+ }, {
716
+ agency_id: string;
717
+ updated_at: string | number;
718
+ grade_status: string;
719
+ operational_date: string | number;
720
+ ride_id: string;
721
+ reason?: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null | undefined;
722
+ remarks?: string | null | undefined;
723
+ expected_transactions_qty?: string | number | null | undefined;
724
+ found_transactions_qty?: string | number | null | undefined;
725
+ missing_transactions_qty?: string | number | null | undefined;
726
+ }>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ at_least_one_vehicle_event_on_first_stop: {
729
+ agency_id: string;
730
+ updated_at: number & {
731
+ __brand: "UnixMilliseconds";
732
+ };
733
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null;
734
+ grade_status: "error" | "skip" | "pass" | "fail";
735
+ operational_date: number & {
736
+ __brand: "OperationalDateInt";
737
+ };
738
+ remarks: string | null;
739
+ ride_id: string;
740
+ vehicle_events_on_first_stop_qty: number | null;
741
+ };
742
+ at_least_one_vehicle_event_on_last_stop: {
743
+ agency_id: string;
744
+ updated_at: number & {
745
+ __brand: "UnixMilliseconds";
746
+ };
747
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null;
748
+ grade_status: "error" | "skip" | "pass" | "fail";
749
+ operational_date: number & {
750
+ __brand: "OperationalDateInt";
751
+ };
752
+ remarks: string | null;
753
+ ride_id: string;
754
+ vehicle_events_on_last_stop_qty: number | null;
755
+ };
756
+ expected_apex_validation_interval: {
757
+ agency_id: string;
758
+ updated_at: number & {
759
+ __brand: "UnixMilliseconds";
760
+ };
761
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null;
762
+ grade_status: "error" | "skip" | "pass" | "fail";
763
+ operational_date: number & {
764
+ __brand: "OperationalDateInt";
765
+ };
766
+ remarks: string | null;
767
+ ride_id: string;
768
+ observed_average_interval: number | null;
769
+ observed_max_interval: number | null;
770
+ observed_min_interval: number | null;
771
+ };
772
+ expected_driver_id_qty: {
773
+ agency_id: string;
774
+ updated_at: number & {
775
+ __brand: "UnixMilliseconds";
776
+ };
777
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null;
778
+ grade_status: "error" | "skip" | "pass" | "fail";
779
+ operational_date: number & {
780
+ __brand: "OperationalDateInt";
781
+ };
782
+ remarks: string | null;
783
+ ride_id: string;
784
+ observed_driver_ids_qty: number | null;
785
+ };
786
+ expected_start_time: {
787
+ agency_id: string;
788
+ updated_at: number & {
789
+ __brand: "UnixMilliseconds";
790
+ };
791
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null;
792
+ grade_status: "error" | "skip" | "pass" | "fail";
793
+ operational_date: number & {
794
+ __brand: "OperationalDateInt";
795
+ };
796
+ remarks: string | null;
797
+ ride_id: string;
798
+ observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
799
+ observed_start_time_delta: number | null;
800
+ };
801
+ expected_vehicle_event_delay: {
802
+ agency_id: string;
803
+ updated_at: number & {
804
+ __brand: "UnixMilliseconds";
805
+ };
806
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null;
807
+ grade_status: "error" | "skip" | "pass" | "fail";
808
+ operational_date: number & {
809
+ __brand: "OperationalDateInt";
810
+ };
811
+ remarks: string | null;
812
+ ride_id: string;
813
+ observed_average_delay: number | null;
814
+ observed_max_delay: number | null;
815
+ observed_min_delay: number | null;
816
+ vehicle_events_qty: number | null;
817
+ vehicle_events_with_delay_percent: number | null;
818
+ vehicle_events_with_delay_qty: number | null;
819
+ };
820
+ expected_vehicle_event_interval: {
821
+ agency_id: string;
822
+ updated_at: number & {
823
+ __brand: "UnixMilliseconds";
824
+ };
825
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null;
826
+ grade_status: "error" | "skip" | "pass" | "fail";
827
+ operational_date: number & {
828
+ __brand: "OperationalDateInt";
829
+ };
830
+ remarks: string | null;
831
+ ride_id: string;
832
+ observed_average_interval: number | null;
833
+ observed_max_interval: number | null;
834
+ observed_min_interval: number | null;
835
+ };
836
+ expected_vehicle_event_qty: {
837
+ agency_id: string;
838
+ updated_at: number & {
839
+ __brand: "UnixMilliseconds";
840
+ };
841
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null;
842
+ grade_status: "error" | "skip" | "pass" | "fail";
843
+ operational_date: number & {
844
+ __brand: "OperationalDateInt";
845
+ };
846
+ remarks: string | null;
847
+ ride_id: string;
848
+ expected_vehicle_events_qty: number | null;
849
+ observed_vehicle_events_qty: number | null;
850
+ };
851
+ expected_vehicle_id_qty: {
852
+ agency_id: string;
853
+ updated_at: number & {
854
+ __brand: "UnixMilliseconds";
855
+ };
856
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null;
857
+ grade_status: "error" | "skip" | "pass" | "fail";
858
+ operational_date: number & {
859
+ __brand: "OperationalDateInt";
860
+ };
861
+ remarks: string | null;
862
+ ride_id: string;
863
+ observed_vehicle_ids_qty: number | null;
864
+ };
865
+ matching_apex_locations: {
866
+ agency_id: string;
867
+ updated_at: number & {
868
+ __brand: "UnixMilliseconds";
869
+ };
870
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null;
871
+ grade_status: "error" | "skip" | "pass" | "fail";
872
+ operational_date: number & {
873
+ __brand: "OperationalDateInt";
874
+ };
875
+ remarks: string | null;
876
+ ride_id: string;
877
+ expected_apex_locations_qty: number | null;
878
+ matching_apex_locations_qty: number | null;
879
+ missing_apex_locations_qty: number | null;
880
+ };
881
+ matching_vehicle_ids: {
882
+ agency_id: string;
883
+ updated_at: number & {
884
+ __brand: "UnixMilliseconds";
885
+ };
886
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null;
887
+ grade_status: "error" | "skip" | "pass" | "fail";
888
+ operational_date: number & {
889
+ __brand: "OperationalDateInt";
890
+ };
891
+ remarks: string | null;
892
+ ride_id: string;
893
+ extra_apex_vehicle_ids_qty: number | null;
894
+ extra_vehicle_events_vehicle_ids_qty: number | null;
895
+ matching_vehicle_ids_qty: number | null;
896
+ total_vehicle_ids_qty: number | null;
897
+ };
898
+ simple_one_apex_validation: {
899
+ agency_id: string;
900
+ updated_at: number & {
901
+ __brand: "UnixMilliseconds";
902
+ };
903
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null;
904
+ grade_status: "error" | "skip" | "pass" | "fail";
905
+ operational_date: number & {
906
+ __brand: "OperationalDateInt";
907
+ };
908
+ remarks: string | null;
909
+ ride_id: string;
910
+ };
911
+ simple_one_vehicle_event_or_apex_validation: {
912
+ agency_id: string;
913
+ updated_at: number & {
914
+ __brand: "UnixMilliseconds";
915
+ };
916
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null;
917
+ grade_status: "error" | "skip" | "pass" | "fail";
918
+ operational_date: number & {
919
+ __brand: "OperationalDateInt";
920
+ };
921
+ remarks: string | null;
922
+ ride_id: string;
923
+ };
924
+ simple_three_vehicle_events: {
925
+ agency_id: string;
926
+ updated_at: number & {
927
+ __brand: "UnixMilliseconds";
928
+ };
929
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null;
930
+ grade_status: "error" | "skip" | "pass" | "fail";
931
+ operational_date: number & {
932
+ __brand: "OperationalDateInt";
933
+ };
934
+ remarks: string | null;
935
+ ride_id: string;
936
+ stop_ids_first: string[];
937
+ stop_ids_last: string[];
938
+ stop_ids_middle: string[];
939
+ };
940
+ transaction_sequentiality: {
941
+ agency_id: string;
942
+ updated_at: number & {
943
+ __brand: "UnixMilliseconds";
944
+ };
945
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null;
946
+ grade_status: "error" | "skip" | "pass" | "fail";
947
+ operational_date: number & {
948
+ __brand: "OperationalDateInt";
949
+ };
950
+ remarks: string | null;
951
+ ride_id: string;
952
+ expected_transactions_qty: number | null;
953
+ found_transactions_qty: number | null;
954
+ missing_transactions_qty: number | null;
955
+ };
956
+ }, {
957
+ at_least_one_vehicle_event_on_first_stop: {
958
+ agency_id: string;
959
+ updated_at: string | number;
960
+ grade_status: string;
961
+ operational_date: string | number;
962
+ ride_id: string;
963
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null | undefined;
964
+ remarks?: string | null | undefined;
965
+ vehicle_events_on_first_stop_qty?: string | number | null | undefined;
966
+ };
967
+ at_least_one_vehicle_event_on_last_stop: {
968
+ agency_id: string;
969
+ updated_at: string | number;
970
+ grade_status: string;
971
+ operational_date: string | number;
972
+ ride_id: string;
973
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null | undefined;
974
+ remarks?: string | null | undefined;
975
+ vehicle_events_on_last_stop_qty?: string | number | null | undefined;
976
+ };
977
+ expected_apex_validation_interval: {
978
+ agency_id: string;
979
+ updated_at: string | number;
980
+ grade_status: string;
981
+ operational_date: string | number;
982
+ ride_id: string;
983
+ reason?: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null | undefined;
984
+ remarks?: string | null | undefined;
985
+ observed_average_interval?: string | number | null | undefined;
986
+ observed_max_interval?: string | number | null | undefined;
987
+ observed_min_interval?: string | number | null | undefined;
988
+ };
989
+ expected_driver_id_qty: {
990
+ agency_id: string;
991
+ updated_at: string | number;
992
+ grade_status: string;
993
+ operational_date: string | number;
994
+ ride_id: string;
995
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null | undefined;
996
+ remarks?: string | null | undefined;
997
+ observed_driver_ids_qty?: string | number | null | undefined;
998
+ };
999
+ expected_start_time: {
1000
+ agency_id: string;
1001
+ updated_at: string | number;
1002
+ grade_status: string;
1003
+ operational_date: string | number;
1004
+ ride_id: string;
1005
+ reason?: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null | undefined;
1006
+ remarks?: string | null | undefined;
1007
+ observed_start_time?: string | number | null | undefined;
1008
+ observed_start_time_delta?: string | number | null | undefined;
1009
+ };
1010
+ expected_vehicle_event_delay: {
1011
+ agency_id: string;
1012
+ updated_at: string | number;
1013
+ grade_status: string;
1014
+ operational_date: string | number;
1015
+ ride_id: string;
1016
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null | undefined;
1017
+ remarks?: string | null | undefined;
1018
+ observed_average_delay?: string | number | null | undefined;
1019
+ observed_max_delay?: string | number | null | undefined;
1020
+ observed_min_delay?: string | number | null | undefined;
1021
+ vehicle_events_qty?: string | number | null | undefined;
1022
+ vehicle_events_with_delay_percent?: string | number | null | undefined;
1023
+ vehicle_events_with_delay_qty?: string | number | null | undefined;
1024
+ };
1025
+ expected_vehicle_event_interval: {
1026
+ agency_id: string;
1027
+ updated_at: string | number;
1028
+ grade_status: string;
1029
+ operational_date: string | number;
1030
+ ride_id: string;
1031
+ reason?: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null | undefined;
1032
+ remarks?: string | null | undefined;
1033
+ observed_average_interval?: string | number | null | undefined;
1034
+ observed_max_interval?: string | number | null | undefined;
1035
+ observed_min_interval?: string | number | null | undefined;
1036
+ };
1037
+ expected_vehicle_event_qty: {
1038
+ agency_id: string;
1039
+ updated_at: string | number;
1040
+ grade_status: string;
1041
+ operational_date: string | number;
1042
+ ride_id: string;
1043
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null | undefined;
1044
+ remarks?: string | null | undefined;
1045
+ expected_vehicle_events_qty?: string | number | null | undefined;
1046
+ observed_vehicle_events_qty?: string | number | null | undefined;
1047
+ };
1048
+ expected_vehicle_id_qty: {
1049
+ agency_id: string;
1050
+ updated_at: string | number;
1051
+ grade_status: string;
1052
+ operational_date: string | number;
1053
+ ride_id: string;
1054
+ reason?: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null | undefined;
1055
+ remarks?: string | null | undefined;
1056
+ observed_vehicle_ids_qty?: string | number | null | undefined;
1057
+ };
1058
+ matching_apex_locations: {
1059
+ agency_id: string;
1060
+ updated_at: string | number;
1061
+ grade_status: string;
1062
+ operational_date: string | number;
1063
+ ride_id: string;
1064
+ reason?: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null | undefined;
1065
+ remarks?: string | null | undefined;
1066
+ expected_apex_locations_qty?: string | number | null | undefined;
1067
+ matching_apex_locations_qty?: string | number | null | undefined;
1068
+ missing_apex_locations_qty?: string | number | null | undefined;
1069
+ };
1070
+ matching_vehicle_ids: {
1071
+ agency_id: string;
1072
+ updated_at: string | number;
1073
+ grade_status: string;
1074
+ operational_date: string | number;
1075
+ ride_id: string;
1076
+ reason?: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null | undefined;
1077
+ remarks?: string | null | undefined;
1078
+ extra_apex_vehicle_ids_qty?: string | number | null | undefined;
1079
+ extra_vehicle_events_vehicle_ids_qty?: string | number | null | undefined;
1080
+ matching_vehicle_ids_qty?: string | number | null | undefined;
1081
+ total_vehicle_ids_qty?: string | number | null | undefined;
1082
+ };
1083
+ simple_one_apex_validation: {
1084
+ agency_id: string;
1085
+ updated_at: string | number;
1086
+ grade_status: string;
1087
+ operational_date: string | number;
1088
+ ride_id: string;
1089
+ reason?: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null | undefined;
1090
+ remarks?: string | null | undefined;
1091
+ };
1092
+ simple_one_vehicle_event_or_apex_validation: {
1093
+ agency_id: string;
1094
+ updated_at: string | number;
1095
+ grade_status: string;
1096
+ operational_date: string | number;
1097
+ ride_id: string;
1098
+ reason?: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null | undefined;
1099
+ remarks?: string | null | undefined;
1100
+ };
1101
+ simple_three_vehicle_events: {
1102
+ agency_id: string;
1103
+ updated_at: string | number;
1104
+ grade_status: string;
1105
+ operational_date: string | number;
1106
+ ride_id: string;
1107
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null | undefined;
1108
+ remarks?: string | null | undefined;
1109
+ stop_ids_first?: string[] | undefined;
1110
+ stop_ids_last?: string[] | undefined;
1111
+ stop_ids_middle?: string[] | undefined;
1112
+ };
1113
+ transaction_sequentiality: {
1114
+ agency_id: string;
1115
+ updated_at: string | number;
1116
+ grade_status: string;
1117
+ operational_date: string | number;
1118
+ ride_id: string;
1119
+ reason?: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null | undefined;
1120
+ remarks?: string | null | undefined;
1121
+ expected_transactions_qty?: string | number | null | undefined;
1122
+ found_transactions_qty?: string | number | null | undefined;
1123
+ missing_transactions_qty?: string | number | null | undefined;
1124
+ };
1125
+ }>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ analyses: {
1128
+ at_least_one_vehicle_event_on_first_stop: {
1129
+ agency_id: string;
1130
+ updated_at: number & {
1131
+ __brand: "UnixMilliseconds";
1132
+ };
1133
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null;
1134
+ grade_status: "error" | "skip" | "pass" | "fail";
1135
+ operational_date: number & {
1136
+ __brand: "OperationalDateInt";
1137
+ };
1138
+ remarks: string | null;
1139
+ ride_id: string;
1140
+ vehicle_events_on_first_stop_qty: number | null;
1141
+ };
1142
+ at_least_one_vehicle_event_on_last_stop: {
1143
+ agency_id: string;
1144
+ updated_at: number & {
1145
+ __brand: "UnixMilliseconds";
1146
+ };
1147
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null;
1148
+ grade_status: "error" | "skip" | "pass" | "fail";
1149
+ operational_date: number & {
1150
+ __brand: "OperationalDateInt";
1151
+ };
1152
+ remarks: string | null;
1153
+ ride_id: string;
1154
+ vehicle_events_on_last_stop_qty: number | null;
1155
+ };
1156
+ expected_apex_validation_interval: {
1157
+ agency_id: string;
1158
+ updated_at: number & {
1159
+ __brand: "UnixMilliseconds";
1160
+ };
1161
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null;
1162
+ grade_status: "error" | "skip" | "pass" | "fail";
1163
+ operational_date: number & {
1164
+ __brand: "OperationalDateInt";
1165
+ };
1166
+ remarks: string | null;
1167
+ ride_id: string;
1168
+ observed_average_interval: number | null;
1169
+ observed_max_interval: number | null;
1170
+ observed_min_interval: number | null;
1171
+ };
1172
+ expected_driver_id_qty: {
1173
+ agency_id: string;
1174
+ updated_at: number & {
1175
+ __brand: "UnixMilliseconds";
1176
+ };
1177
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null;
1178
+ grade_status: "error" | "skip" | "pass" | "fail";
1179
+ operational_date: number & {
1180
+ __brand: "OperationalDateInt";
1181
+ };
1182
+ remarks: string | null;
1183
+ ride_id: string;
1184
+ observed_driver_ids_qty: number | null;
1185
+ };
1186
+ expected_start_time: {
1187
+ agency_id: string;
1188
+ updated_at: number & {
1189
+ __brand: "UnixMilliseconds";
1190
+ };
1191
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null;
1192
+ grade_status: "error" | "skip" | "pass" | "fail";
1193
+ operational_date: number & {
1194
+ __brand: "OperationalDateInt";
1195
+ };
1196
+ remarks: string | null;
1197
+ ride_id: string;
1198
+ observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
1199
+ observed_start_time_delta: number | null;
1200
+ };
1201
+ expected_vehicle_event_delay: {
1202
+ agency_id: string;
1203
+ updated_at: number & {
1204
+ __brand: "UnixMilliseconds";
1205
+ };
1206
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null;
1207
+ grade_status: "error" | "skip" | "pass" | "fail";
1208
+ operational_date: number & {
1209
+ __brand: "OperationalDateInt";
1210
+ };
1211
+ remarks: string | null;
1212
+ ride_id: string;
1213
+ observed_average_delay: number | null;
1214
+ observed_max_delay: number | null;
1215
+ observed_min_delay: number | null;
1216
+ vehicle_events_qty: number | null;
1217
+ vehicle_events_with_delay_percent: number | null;
1218
+ vehicle_events_with_delay_qty: number | null;
1219
+ };
1220
+ expected_vehicle_event_interval: {
1221
+ agency_id: string;
1222
+ updated_at: number & {
1223
+ __brand: "UnixMilliseconds";
1224
+ };
1225
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null;
1226
+ grade_status: "error" | "skip" | "pass" | "fail";
1227
+ operational_date: number & {
1228
+ __brand: "OperationalDateInt";
1229
+ };
1230
+ remarks: string | null;
1231
+ ride_id: string;
1232
+ observed_average_interval: number | null;
1233
+ observed_max_interval: number | null;
1234
+ observed_min_interval: number | null;
1235
+ };
1236
+ expected_vehicle_event_qty: {
1237
+ agency_id: string;
1238
+ updated_at: number & {
1239
+ __brand: "UnixMilliseconds";
1240
+ };
1241
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null;
1242
+ grade_status: "error" | "skip" | "pass" | "fail";
1243
+ operational_date: number & {
1244
+ __brand: "OperationalDateInt";
1245
+ };
1246
+ remarks: string | null;
1247
+ ride_id: string;
1248
+ expected_vehicle_events_qty: number | null;
1249
+ observed_vehicle_events_qty: number | null;
1250
+ };
1251
+ expected_vehicle_id_qty: {
1252
+ agency_id: string;
1253
+ updated_at: number & {
1254
+ __brand: "UnixMilliseconds";
1255
+ };
1256
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null;
1257
+ grade_status: "error" | "skip" | "pass" | "fail";
1258
+ operational_date: number & {
1259
+ __brand: "OperationalDateInt";
1260
+ };
1261
+ remarks: string | null;
1262
+ ride_id: string;
1263
+ observed_vehicle_ids_qty: number | null;
1264
+ };
1265
+ matching_apex_locations: {
1266
+ agency_id: string;
1267
+ updated_at: number & {
1268
+ __brand: "UnixMilliseconds";
1269
+ };
1270
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null;
1271
+ grade_status: "error" | "skip" | "pass" | "fail";
1272
+ operational_date: number & {
1273
+ __brand: "OperationalDateInt";
1274
+ };
1275
+ remarks: string | null;
1276
+ ride_id: string;
1277
+ expected_apex_locations_qty: number | null;
1278
+ matching_apex_locations_qty: number | null;
1279
+ missing_apex_locations_qty: number | null;
1280
+ };
1281
+ matching_vehicle_ids: {
1282
+ agency_id: string;
1283
+ updated_at: number & {
1284
+ __brand: "UnixMilliseconds";
1285
+ };
1286
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null;
1287
+ grade_status: "error" | "skip" | "pass" | "fail";
1288
+ operational_date: number & {
1289
+ __brand: "OperationalDateInt";
1290
+ };
1291
+ remarks: string | null;
1292
+ ride_id: string;
1293
+ extra_apex_vehicle_ids_qty: number | null;
1294
+ extra_vehicle_events_vehicle_ids_qty: number | null;
1295
+ matching_vehicle_ids_qty: number | null;
1296
+ total_vehicle_ids_qty: number | null;
1297
+ };
1298
+ simple_one_apex_validation: {
1299
+ agency_id: string;
1300
+ updated_at: number & {
1301
+ __brand: "UnixMilliseconds";
1302
+ };
1303
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null;
1304
+ grade_status: "error" | "skip" | "pass" | "fail";
1305
+ operational_date: number & {
1306
+ __brand: "OperationalDateInt";
1307
+ };
1308
+ remarks: string | null;
1309
+ ride_id: string;
1310
+ };
1311
+ simple_one_vehicle_event_or_apex_validation: {
1312
+ agency_id: string;
1313
+ updated_at: number & {
1314
+ __brand: "UnixMilliseconds";
1315
+ };
1316
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null;
1317
+ grade_status: "error" | "skip" | "pass" | "fail";
1318
+ operational_date: number & {
1319
+ __brand: "OperationalDateInt";
1320
+ };
1321
+ remarks: string | null;
1322
+ ride_id: string;
1323
+ };
1324
+ simple_three_vehicle_events: {
1325
+ agency_id: string;
1326
+ updated_at: number & {
1327
+ __brand: "UnixMilliseconds";
1328
+ };
1329
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null;
1330
+ grade_status: "error" | "skip" | "pass" | "fail";
1331
+ operational_date: number & {
1332
+ __brand: "OperationalDateInt";
1333
+ };
1334
+ remarks: string | null;
1335
+ ride_id: string;
1336
+ stop_ids_first: string[];
1337
+ stop_ids_last: string[];
1338
+ stop_ids_middle: string[];
1339
+ };
1340
+ transaction_sequentiality: {
1341
+ agency_id: string;
1342
+ updated_at: number & {
1343
+ __brand: "UnixMilliseconds";
1344
+ };
1345
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null;
1346
+ grade_status: "error" | "skip" | "pass" | "fail";
1347
+ operational_date: number & {
1348
+ __brand: "OperationalDateInt";
1349
+ };
1350
+ remarks: string | null;
1351
+ ride_id: string;
1352
+ expected_transactions_qty: number | null;
1353
+ found_transactions_qty: number | null;
1354
+ missing_transactions_qty: number | null;
1355
+ };
1356
+ };
1357
+ }, {
1358
+ analyses: {
1359
+ at_least_one_vehicle_event_on_first_stop: {
1360
+ agency_id: string;
1361
+ updated_at: string | number;
1362
+ grade_status: string;
1363
+ operational_date: string | number;
1364
+ ride_id: string;
1365
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null | undefined;
1366
+ remarks?: string | null | undefined;
1367
+ vehicle_events_on_first_stop_qty?: string | number | null | undefined;
1368
+ };
1369
+ at_least_one_vehicle_event_on_last_stop: {
1370
+ agency_id: string;
1371
+ updated_at: string | number;
1372
+ grade_status: string;
1373
+ operational_date: string | number;
1374
+ ride_id: string;
1375
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null | undefined;
1376
+ remarks?: string | null | undefined;
1377
+ vehicle_events_on_last_stop_qty?: string | number | null | undefined;
1378
+ };
1379
+ expected_apex_validation_interval: {
1380
+ agency_id: string;
1381
+ updated_at: string | number;
1382
+ grade_status: string;
1383
+ operational_date: string | number;
1384
+ ride_id: string;
1385
+ reason?: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null | undefined;
1386
+ remarks?: string | null | undefined;
1387
+ observed_average_interval?: string | number | null | undefined;
1388
+ observed_max_interval?: string | number | null | undefined;
1389
+ observed_min_interval?: string | number | null | undefined;
1390
+ };
1391
+ expected_driver_id_qty: {
1392
+ agency_id: string;
1393
+ updated_at: string | number;
1394
+ grade_status: string;
1395
+ operational_date: string | number;
1396
+ ride_id: string;
1397
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null | undefined;
1398
+ remarks?: string | null | undefined;
1399
+ observed_driver_ids_qty?: string | number | null | undefined;
1400
+ };
1401
+ expected_start_time: {
1402
+ agency_id: string;
1403
+ updated_at: string | number;
1404
+ grade_status: string;
1405
+ operational_date: string | number;
1406
+ ride_id: string;
1407
+ reason?: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null | undefined;
1408
+ remarks?: string | null | undefined;
1409
+ observed_start_time?: string | number | null | undefined;
1410
+ observed_start_time_delta?: string | number | null | undefined;
1411
+ };
1412
+ expected_vehicle_event_delay: {
1413
+ agency_id: string;
1414
+ updated_at: string | number;
1415
+ grade_status: string;
1416
+ operational_date: string | number;
1417
+ ride_id: string;
1418
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null | undefined;
1419
+ remarks?: string | null | undefined;
1420
+ observed_average_delay?: string | number | null | undefined;
1421
+ observed_max_delay?: string | number | null | undefined;
1422
+ observed_min_delay?: string | number | null | undefined;
1423
+ vehicle_events_qty?: string | number | null | undefined;
1424
+ vehicle_events_with_delay_percent?: string | number | null | undefined;
1425
+ vehicle_events_with_delay_qty?: string | number | null | undefined;
1426
+ };
1427
+ expected_vehicle_event_interval: {
1428
+ agency_id: string;
1429
+ updated_at: string | number;
1430
+ grade_status: string;
1431
+ operational_date: string | number;
1432
+ ride_id: string;
1433
+ reason?: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null | undefined;
1434
+ remarks?: string | null | undefined;
1435
+ observed_average_interval?: string | number | null | undefined;
1436
+ observed_max_interval?: string | number | null | undefined;
1437
+ observed_min_interval?: string | number | null | undefined;
1438
+ };
1439
+ expected_vehicle_event_qty: {
1440
+ agency_id: string;
1441
+ updated_at: string | number;
1442
+ grade_status: string;
1443
+ operational_date: string | number;
1444
+ ride_id: string;
1445
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null | undefined;
1446
+ remarks?: string | null | undefined;
1447
+ expected_vehicle_events_qty?: string | number | null | undefined;
1448
+ observed_vehicle_events_qty?: string | number | null | undefined;
1449
+ };
1450
+ expected_vehicle_id_qty: {
1451
+ agency_id: string;
1452
+ updated_at: string | number;
1453
+ grade_status: string;
1454
+ operational_date: string | number;
1455
+ ride_id: string;
1456
+ reason?: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null | undefined;
1457
+ remarks?: string | null | undefined;
1458
+ observed_vehicle_ids_qty?: string | number | null | undefined;
1459
+ };
1460
+ matching_apex_locations: {
1461
+ agency_id: string;
1462
+ updated_at: string | number;
1463
+ grade_status: string;
1464
+ operational_date: string | number;
1465
+ ride_id: string;
1466
+ reason?: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null | undefined;
1467
+ remarks?: string | null | undefined;
1468
+ expected_apex_locations_qty?: string | number | null | undefined;
1469
+ matching_apex_locations_qty?: string | number | null | undefined;
1470
+ missing_apex_locations_qty?: string | number | null | undefined;
1471
+ };
1472
+ matching_vehicle_ids: {
1473
+ agency_id: string;
1474
+ updated_at: string | number;
1475
+ grade_status: string;
1476
+ operational_date: string | number;
1477
+ ride_id: string;
1478
+ reason?: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null | undefined;
1479
+ remarks?: string | null | undefined;
1480
+ extra_apex_vehicle_ids_qty?: string | number | null | undefined;
1481
+ extra_vehicle_events_vehicle_ids_qty?: string | number | null | undefined;
1482
+ matching_vehicle_ids_qty?: string | number | null | undefined;
1483
+ total_vehicle_ids_qty?: string | number | null | undefined;
1484
+ };
1485
+ simple_one_apex_validation: {
1486
+ agency_id: string;
1487
+ updated_at: string | number;
1488
+ grade_status: string;
1489
+ operational_date: string | number;
1490
+ ride_id: string;
1491
+ reason?: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null | undefined;
1492
+ remarks?: string | null | undefined;
1493
+ };
1494
+ simple_one_vehicle_event_or_apex_validation: {
1495
+ agency_id: string;
1496
+ updated_at: string | number;
1497
+ grade_status: string;
1498
+ operational_date: string | number;
1499
+ ride_id: string;
1500
+ reason?: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null | undefined;
1501
+ remarks?: string | null | undefined;
1502
+ };
1503
+ simple_three_vehicle_events: {
1504
+ agency_id: string;
1505
+ updated_at: string | number;
1506
+ grade_status: string;
1507
+ operational_date: string | number;
1508
+ ride_id: string;
1509
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null | undefined;
1510
+ remarks?: string | null | undefined;
1511
+ stop_ids_first?: string[] | undefined;
1512
+ stop_ids_last?: string[] | undefined;
1513
+ stop_ids_middle?: string[] | undefined;
1514
+ };
1515
+ transaction_sequentiality: {
1516
+ agency_id: string;
1517
+ updated_at: string | number;
1518
+ grade_status: string;
1519
+ operational_date: string | number;
1520
+ ride_id: string;
1521
+ reason?: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null | undefined;
1522
+ remarks?: string | null | undefined;
1523
+ expected_transactions_qty?: string | number | null | undefined;
1524
+ found_transactions_qty?: string | number | null | undefined;
1525
+ missing_transactions_qty?: string | number | null | undefined;
1526
+ };
1527
+ };
1528
+ }>;
176
1529
  export declare const RideSchema: z.ZodObject<{
177
1530
  _id: z.ZodString;
178
1531
  agency_code: z.ZodString;
@@ -332,8 +1685,1521 @@ export declare const RideSchema: z.ZodObject<{
332
1685
  seen_last_at?: string | number | null | undefined;
333
1686
  vehicle_ids?: string[] | undefined;
334
1687
  }>;
1688
+ export declare const RideWithAnalysesSchema: z.ZodObject<{
1689
+ _id: z.ZodString;
1690
+ agency_code: z.ZodString;
1691
+ agency_id: z.ZodString;
1692
+ direction_id: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, z.ZodEnum<["0", "1"]>>;
1693
+ hashed_shape_id: z.ZodString;
1694
+ hashed_trip_id: z.ZodString;
1695
+ headsign: z.ZodString;
1696
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
1697
+ plan_id: z.ZodString;
1698
+ route_color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, import("@tmlmobilidade/go-types-shared").HexColor, string>>;
1699
+ route_id: z.ZodString;
1700
+ route_long_name: z.ZodString;
1701
+ route_short_name: z.ZodString;
1702
+ route_text_color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, import("@tmlmobilidade/go-types-shared").HexColor, string>>;
1703
+ shape_id: z.ZodString;
1704
+ timezone: z.ZodEnum<["Africa/Abidjan", "Africa/Accra", "Africa/Algiers", "Africa/Bissau", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/El_Aaiun", "Africa/Johannesburg", "Africa/Juba", "Africa/Khartoum", "Africa/Lagos", "Africa/Maputo", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Asuncion", "America/Atikokan", "America/Bahia_Banderas", "America/Bahia", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Chicago", "America/Chihuahua", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson_Creek", "America/Dawson", "America/Denver", "America/Detroit", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Maceio", "America/Managua", "America/Manaus", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port_of_Spain", "America/Port-au-Prince", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Johns", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Helsinki", "Europe/Istanbul", "Europe/Kaliningrad", "Europe/Kiev", "Europe/Kirov", "Europe/Lisbon", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Paris", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/Saratov", "Europe/Simferopol", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Uzhgorod", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zaporozhye", "Europe/Zurich", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis"]>;
1705
+ trip_id: z.ZodString;
1706
+ } & {
1707
+ end_time_observed: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
1708
+ end_time_scheduled: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1709
+ extension_observed: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1710
+ extension_scheduled: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
1711
+ start_time_observed: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
1712
+ start_time_scheduled: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1713
+ } & {
1714
+ apex_banking_taps_amount: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1715
+ apex_banking_taps_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1716
+ apex_locations_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1717
+ apex_refunds_amount: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1718
+ apex_refunds_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1719
+ apex_sales_amount: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1720
+ apex_sales_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1721
+ apex_validations_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1722
+ } & {
1723
+ passengers_estimated: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1724
+ passengers_observed: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1725
+ passengers_observed_banking_taps_amount: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1726
+ passengers_observed_banking_taps_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1727
+ passengers_observed_prepaid_amount: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1728
+ passengers_observed_prepaid_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1729
+ passengers_observed_sales_amount: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1730
+ passengers_observed_sales_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1731
+ passengers_observed_subscription_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1732
+ } & {
1733
+ driver_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1734
+ seen_first_at: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
1735
+ seen_last_at: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
1736
+ vehicle_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1737
+ } & {
1738
+ processing_status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
1739
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1740
+ } & {
1741
+ analyses: z.ZodObject<{
1742
+ at_least_one_vehicle_event_on_first_stop: z.ZodObject<{
1743
+ agency_id: z.ZodString;
1744
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
1745
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
1746
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1747
+ ride_id: z.ZodString;
1748
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1749
+ } & {
1750
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_FIRST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP"]>>>;
1751
+ vehicle_events_on_first_stop_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ agency_id: string;
1754
+ updated_at: number & {
1755
+ __brand: "UnixMilliseconds";
1756
+ };
1757
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null;
1758
+ grade_status: "error" | "skip" | "pass" | "fail";
1759
+ operational_date: number & {
1760
+ __brand: "OperationalDateInt";
1761
+ };
1762
+ remarks: string | null;
1763
+ ride_id: string;
1764
+ vehicle_events_on_first_stop_qty: number | null;
1765
+ }, {
1766
+ agency_id: string;
1767
+ updated_at: string | number;
1768
+ grade_status: string;
1769
+ operational_date: string | number;
1770
+ ride_id: string;
1771
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null | undefined;
1772
+ remarks?: string | null | undefined;
1773
+ vehicle_events_on_first_stop_qty?: string | number | null | undefined;
1774
+ }>;
1775
+ at_least_one_vehicle_event_on_last_stop: z.ZodObject<{
1776
+ agency_id: z.ZodString;
1777
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
1778
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
1779
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1780
+ ride_id: z.ZodString;
1781
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1782
+ } & {
1783
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_LAST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP"]>>>;
1784
+ vehicle_events_on_last_stop_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1785
+ }, "strip", z.ZodTypeAny, {
1786
+ agency_id: string;
1787
+ updated_at: number & {
1788
+ __brand: "UnixMilliseconds";
1789
+ };
1790
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null;
1791
+ grade_status: "error" | "skip" | "pass" | "fail";
1792
+ operational_date: number & {
1793
+ __brand: "OperationalDateInt";
1794
+ };
1795
+ remarks: string | null;
1796
+ ride_id: string;
1797
+ vehicle_events_on_last_stop_qty: number | null;
1798
+ }, {
1799
+ agency_id: string;
1800
+ updated_at: string | number;
1801
+ grade_status: string;
1802
+ operational_date: string | number;
1803
+ ride_id: string;
1804
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null | undefined;
1805
+ remarks?: string | null | undefined;
1806
+ vehicle_events_on_last_stop_qty?: string | number | null | undefined;
1807
+ }>;
1808
+ expected_apex_validation_interval: z.ZodObject<{
1809
+ agency_id: z.ZodString;
1810
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
1811
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
1812
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1813
+ ride_id: z.ZodString;
1814
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1815
+ } & {
1816
+ observed_average_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1817
+ observed_max_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1818
+ observed_min_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1819
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_APEX_VALIDATIONS", "NOT_ENOUGH_VALIDATIONS", "INTERVALS_TOO_SHORT", "NON_ORGANIC_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>>>;
1820
+ }, "strip", z.ZodTypeAny, {
1821
+ agency_id: string;
1822
+ updated_at: number & {
1823
+ __brand: "UnixMilliseconds";
1824
+ };
1825
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null;
1826
+ grade_status: "error" | "skip" | "pass" | "fail";
1827
+ operational_date: number & {
1828
+ __brand: "OperationalDateInt";
1829
+ };
1830
+ remarks: string | null;
1831
+ ride_id: string;
1832
+ observed_average_interval: number | null;
1833
+ observed_max_interval: number | null;
1834
+ observed_min_interval: number | null;
1835
+ }, {
1836
+ agency_id: string;
1837
+ updated_at: string | number;
1838
+ grade_status: string;
1839
+ operational_date: string | number;
1840
+ ride_id: string;
1841
+ reason?: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null | undefined;
1842
+ remarks?: string | null | undefined;
1843
+ observed_average_interval?: string | number | null | undefined;
1844
+ observed_max_interval?: string | number | null | undefined;
1845
+ observed_min_interval?: string | number | null | undefined;
1846
+ }>;
1847
+ expected_driver_id_qty: z.ZodObject<{
1848
+ agency_id: z.ZodString;
1849
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
1850
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
1851
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1852
+ ride_id: z.ZodString;
1853
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1854
+ } & {
1855
+ observed_driver_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1856
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_DRIVER_ID_QTY", "EXPECTED_DRIVER_ID_QTY"]>>>;
1857
+ }, "strip", z.ZodTypeAny, {
1858
+ agency_id: string;
1859
+ updated_at: number & {
1860
+ __brand: "UnixMilliseconds";
1861
+ };
1862
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null;
1863
+ grade_status: "error" | "skip" | "pass" | "fail";
1864
+ operational_date: number & {
1865
+ __brand: "OperationalDateInt";
1866
+ };
1867
+ remarks: string | null;
1868
+ ride_id: string;
1869
+ observed_driver_ids_qty: number | null;
1870
+ }, {
1871
+ agency_id: string;
1872
+ updated_at: string | number;
1873
+ grade_status: string;
1874
+ operational_date: string | number;
1875
+ ride_id: string;
1876
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null | undefined;
1877
+ remarks?: string | null | undefined;
1878
+ observed_driver_ids_qty?: string | number | null | undefined;
1879
+ }>;
1880
+ expected_start_time: z.ZodObject<{
1881
+ agency_id: z.ZodString;
1882
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
1883
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
1884
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1885
+ ride_id: z.ZodString;
1886
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1887
+ } & {
1888
+ observed_start_time: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
1889
+ observed_start_time_delta: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1890
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_START_TIME_SCHEDULED", "NO_VEHICLE_EVENTS", "UNKNOWN_START", "EARLY_START", "LATE_START", "START_ON_TIME"]>>>;
1891
+ }, "strip", z.ZodTypeAny, {
1892
+ agency_id: string;
1893
+ updated_at: number & {
1894
+ __brand: "UnixMilliseconds";
1895
+ };
1896
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null;
1897
+ grade_status: "error" | "skip" | "pass" | "fail";
1898
+ operational_date: number & {
1899
+ __brand: "OperationalDateInt";
1900
+ };
1901
+ remarks: string | null;
1902
+ ride_id: string;
1903
+ observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
1904
+ observed_start_time_delta: number | null;
1905
+ }, {
1906
+ agency_id: string;
1907
+ updated_at: string | number;
1908
+ grade_status: string;
1909
+ operational_date: string | number;
1910
+ ride_id: string;
1911
+ reason?: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null | undefined;
1912
+ remarks?: string | null | undefined;
1913
+ observed_start_time?: string | number | null | undefined;
1914
+ observed_start_time_delta?: string | number | null | undefined;
1915
+ }>;
1916
+ expected_vehicle_event_delay: z.ZodObject<{
1917
+ agency_id: z.ZodString;
1918
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
1919
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
1920
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1921
+ ride_id: z.ZodString;
1922
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1923
+ } & {
1924
+ observed_average_delay: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1925
+ observed_max_delay: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1926
+ observed_min_delay: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1927
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_VEHICLE_EVENTS_DELAY", "EXPECTED_VEHICLE_EVENTS_DELAY"]>>>;
1928
+ vehicle_events_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1929
+ vehicle_events_with_delay_percent: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1930
+ vehicle_events_with_delay_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1931
+ }, "strip", z.ZodTypeAny, {
1932
+ agency_id: string;
1933
+ updated_at: number & {
1934
+ __brand: "UnixMilliseconds";
1935
+ };
1936
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null;
1937
+ grade_status: "error" | "skip" | "pass" | "fail";
1938
+ operational_date: number & {
1939
+ __brand: "OperationalDateInt";
1940
+ };
1941
+ remarks: string | null;
1942
+ ride_id: string;
1943
+ observed_average_delay: number | null;
1944
+ observed_max_delay: number | null;
1945
+ observed_min_delay: number | null;
1946
+ vehicle_events_qty: number | null;
1947
+ vehicle_events_with_delay_percent: number | null;
1948
+ vehicle_events_with_delay_qty: number | null;
1949
+ }, {
1950
+ agency_id: string;
1951
+ updated_at: string | number;
1952
+ grade_status: string;
1953
+ operational_date: string | number;
1954
+ ride_id: string;
1955
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null | undefined;
1956
+ remarks?: string | null | undefined;
1957
+ observed_average_delay?: string | number | null | undefined;
1958
+ observed_max_delay?: string | number | null | undefined;
1959
+ observed_min_delay?: string | number | null | undefined;
1960
+ vehicle_events_qty?: string | number | null | undefined;
1961
+ vehicle_events_with_delay_percent?: string | number | null | undefined;
1962
+ vehicle_events_with_delay_qty?: string | number | null | undefined;
1963
+ }>;
1964
+ expected_vehicle_event_interval: z.ZodObject<{
1965
+ agency_id: z.ZodString;
1966
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
1967
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
1968
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1969
+ ride_id: z.ZodString;
1970
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1971
+ } & {
1972
+ observed_average_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1973
+ observed_max_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1974
+ observed_min_interval: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
1975
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_INTERVAL", "UNEXPECTED_VEHICLE_EVENT_INTERVAL"]>>>;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ agency_id: string;
1978
+ updated_at: number & {
1979
+ __brand: "UnixMilliseconds";
1980
+ };
1981
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null;
1982
+ grade_status: "error" | "skip" | "pass" | "fail";
1983
+ operational_date: number & {
1984
+ __brand: "OperationalDateInt";
1985
+ };
1986
+ remarks: string | null;
1987
+ ride_id: string;
1988
+ observed_average_interval: number | null;
1989
+ observed_max_interval: number | null;
1990
+ observed_min_interval: number | null;
1991
+ }, {
1992
+ agency_id: string;
1993
+ updated_at: string | number;
1994
+ grade_status: string;
1995
+ operational_date: string | number;
1996
+ ride_id: string;
1997
+ reason?: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null | undefined;
1998
+ remarks?: string | null | undefined;
1999
+ observed_average_interval?: string | number | null | undefined;
2000
+ observed_max_interval?: string | number | null | undefined;
2001
+ observed_min_interval?: string | number | null | undefined;
2002
+ }>;
2003
+ expected_vehicle_event_qty: z.ZodObject<{
2004
+ agency_id: z.ZodString;
2005
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
2006
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
2007
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2008
+ ride_id: z.ZodString;
2009
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
2010
+ } & {
2011
+ expected_vehicle_events_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2012
+ observed_vehicle_events_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2013
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_QTY", "UNEXPECTED_VEHICLE_EVENT_QTY"]>>>;
2014
+ }, "strip", z.ZodTypeAny, {
2015
+ agency_id: string;
2016
+ updated_at: number & {
2017
+ __brand: "UnixMilliseconds";
2018
+ };
2019
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null;
2020
+ grade_status: "error" | "skip" | "pass" | "fail";
2021
+ operational_date: number & {
2022
+ __brand: "OperationalDateInt";
2023
+ };
2024
+ remarks: string | null;
2025
+ ride_id: string;
2026
+ expected_vehicle_events_qty: number | null;
2027
+ observed_vehicle_events_qty: number | null;
2028
+ }, {
2029
+ agency_id: string;
2030
+ updated_at: string | number;
2031
+ grade_status: string;
2032
+ operational_date: string | number;
2033
+ ride_id: string;
2034
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null | undefined;
2035
+ remarks?: string | null | undefined;
2036
+ expected_vehicle_events_qty?: string | number | null | undefined;
2037
+ observed_vehicle_events_qty?: string | number | null | undefined;
2038
+ }>;
2039
+ expected_vehicle_id_qty: z.ZodObject<{
2040
+ agency_id: z.ZodString;
2041
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
2042
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
2043
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2044
+ ride_id: z.ZodString;
2045
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
2046
+ } & {
2047
+ observed_vehicle_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2048
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "UNEXPECTED_VEHICLE_ID_QTY", "EXPECTED_VEHICLE_ID_QTY"]>>>;
2049
+ }, "strip", z.ZodTypeAny, {
2050
+ agency_id: string;
2051
+ updated_at: number & {
2052
+ __brand: "UnixMilliseconds";
2053
+ };
2054
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null;
2055
+ grade_status: "error" | "skip" | "pass" | "fail";
2056
+ operational_date: number & {
2057
+ __brand: "OperationalDateInt";
2058
+ };
2059
+ remarks: string | null;
2060
+ ride_id: string;
2061
+ observed_vehicle_ids_qty: number | null;
2062
+ }, {
2063
+ agency_id: string;
2064
+ updated_at: string | number;
2065
+ grade_status: string;
2066
+ operational_date: string | number;
2067
+ ride_id: string;
2068
+ reason?: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null | undefined;
2069
+ remarks?: string | null | undefined;
2070
+ observed_vehicle_ids_qty?: string | number | null | undefined;
2071
+ }>;
2072
+ matching_apex_locations: z.ZodObject<{
2073
+ agency_id: z.ZodString;
2074
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
2075
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
2076
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2077
+ ride_id: z.ZodString;
2078
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
2079
+ } & {
2080
+ expected_apex_locations_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2081
+ matching_apex_locations_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2082
+ missing_apex_locations_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2083
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>>>;
2084
+ }, "strip", z.ZodTypeAny, {
2085
+ agency_id: string;
2086
+ updated_at: number & {
2087
+ __brand: "UnixMilliseconds";
2088
+ };
2089
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null;
2090
+ grade_status: "error" | "skip" | "pass" | "fail";
2091
+ operational_date: number & {
2092
+ __brand: "OperationalDateInt";
2093
+ };
2094
+ remarks: string | null;
2095
+ ride_id: string;
2096
+ expected_apex_locations_qty: number | null;
2097
+ matching_apex_locations_qty: number | null;
2098
+ missing_apex_locations_qty: number | null;
2099
+ }, {
2100
+ agency_id: string;
2101
+ updated_at: string | number;
2102
+ grade_status: string;
2103
+ operational_date: string | number;
2104
+ ride_id: string;
2105
+ reason?: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null | undefined;
2106
+ remarks?: string | null | undefined;
2107
+ expected_apex_locations_qty?: string | number | null | undefined;
2108
+ matching_apex_locations_qty?: string | number | null | undefined;
2109
+ missing_apex_locations_qty?: string | number | null | undefined;
2110
+ }>;
2111
+ matching_vehicle_ids: z.ZodObject<{
2112
+ agency_id: z.ZodString;
2113
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
2114
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
2115
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2116
+ ride_id: z.ZodString;
2117
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
2118
+ } & {
2119
+ extra_apex_vehicle_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2120
+ extra_vehicle_events_vehicle_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2121
+ matching_vehicle_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2122
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS", "NO_APEX_TRANSACTIONS"]>>>;
2123
+ total_vehicle_ids_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2124
+ }, "strip", z.ZodTypeAny, {
2125
+ agency_id: string;
2126
+ updated_at: number & {
2127
+ __brand: "UnixMilliseconds";
2128
+ };
2129
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null;
2130
+ grade_status: "error" | "skip" | "pass" | "fail";
2131
+ operational_date: number & {
2132
+ __brand: "OperationalDateInt";
2133
+ };
2134
+ remarks: string | null;
2135
+ ride_id: string;
2136
+ extra_apex_vehicle_ids_qty: number | null;
2137
+ extra_vehicle_events_vehicle_ids_qty: number | null;
2138
+ matching_vehicle_ids_qty: number | null;
2139
+ total_vehicle_ids_qty: number | null;
2140
+ }, {
2141
+ agency_id: string;
2142
+ updated_at: string | number;
2143
+ grade_status: string;
2144
+ operational_date: string | number;
2145
+ ride_id: string;
2146
+ reason?: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null | undefined;
2147
+ remarks?: string | null | undefined;
2148
+ extra_apex_vehicle_ids_qty?: string | number | null | undefined;
2149
+ extra_vehicle_events_vehicle_ids_qty?: string | number | null | undefined;
2150
+ matching_vehicle_ids_qty?: string | number | null | undefined;
2151
+ total_vehicle_ids_qty?: string | number | null | undefined;
2152
+ }>;
2153
+ simple_one_apex_validation: z.ZodObject<{
2154
+ agency_id: z.ZodString;
2155
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
2156
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
2157
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2158
+ ride_id: z.ZodString;
2159
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
2160
+ } & {
2161
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_APEX_VALIDATIONS", "ONE_OR_MORE_APEX_VALIDATIONS"]>>>;
2162
+ }, "strip", z.ZodTypeAny, {
2163
+ agency_id: string;
2164
+ updated_at: number & {
2165
+ __brand: "UnixMilliseconds";
2166
+ };
2167
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null;
2168
+ grade_status: "error" | "skip" | "pass" | "fail";
2169
+ operational_date: number & {
2170
+ __brand: "OperationalDateInt";
2171
+ };
2172
+ remarks: string | null;
2173
+ ride_id: string;
2174
+ }, {
2175
+ agency_id: string;
2176
+ updated_at: string | number;
2177
+ grade_status: string;
2178
+ operational_date: string | number;
2179
+ ride_id: string;
2180
+ reason?: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null | undefined;
2181
+ remarks?: string | null | undefined;
2182
+ }>;
2183
+ simple_one_vehicle_event_or_apex_validation: z.ZodObject<{
2184
+ agency_id: z.ZodString;
2185
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
2186
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
2187
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2188
+ ride_id: z.ZodString;
2189
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
2190
+ } & {
2191
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>>>;
2192
+ }, "strip", z.ZodTypeAny, {
2193
+ agency_id: string;
2194
+ updated_at: number & {
2195
+ __brand: "UnixMilliseconds";
2196
+ };
2197
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null;
2198
+ grade_status: "error" | "skip" | "pass" | "fail";
2199
+ operational_date: number & {
2200
+ __brand: "OperationalDateInt";
2201
+ };
2202
+ remarks: string | null;
2203
+ ride_id: string;
2204
+ }, {
2205
+ agency_id: string;
2206
+ updated_at: string | number;
2207
+ grade_status: string;
2208
+ operational_date: string | number;
2209
+ ride_id: string;
2210
+ reason?: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null | undefined;
2211
+ remarks?: string | null | undefined;
2212
+ }>;
2213
+ simple_three_vehicle_events: z.ZodObject<{
2214
+ agency_id: z.ZodString;
2215
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
2216
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
2217
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2218
+ ride_id: z.ZodString;
2219
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
2220
+ } & {
2221
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "MISSING_FIRST_STOPS", "MISSING_MIDDLE_STOPS", "MISSING_LAST_STOPS", "ALL_STOPS_FOUND"]>>>;
2222
+ stop_ids_first: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2223
+ stop_ids_last: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2224
+ stop_ids_middle: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2225
+ }, "strip", z.ZodTypeAny, {
2226
+ agency_id: string;
2227
+ updated_at: number & {
2228
+ __brand: "UnixMilliseconds";
2229
+ };
2230
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null;
2231
+ grade_status: "error" | "skip" | "pass" | "fail";
2232
+ operational_date: number & {
2233
+ __brand: "OperationalDateInt";
2234
+ };
2235
+ remarks: string | null;
2236
+ ride_id: string;
2237
+ stop_ids_first: string[];
2238
+ stop_ids_last: string[];
2239
+ stop_ids_middle: string[];
2240
+ }, {
2241
+ agency_id: string;
2242
+ updated_at: string | number;
2243
+ grade_status: string;
2244
+ operational_date: string | number;
2245
+ ride_id: string;
2246
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null | undefined;
2247
+ remarks?: string | null | undefined;
2248
+ stop_ids_first?: string[] | undefined;
2249
+ stop_ids_last?: string[] | undefined;
2250
+ stop_ids_middle?: string[] | undefined;
2251
+ }>;
2252
+ transaction_sequentiality: z.ZodObject<{
2253
+ agency_id: z.ZodString;
2254
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
2255
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
2256
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2257
+ ride_id: z.ZodString;
2258
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
2259
+ } & {
2260
+ expected_transactions_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2261
+ found_transactions_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2262
+ missing_transactions_qty: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2263
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_TRANSACTIONS", "MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>>>;
2264
+ }, "strip", z.ZodTypeAny, {
2265
+ agency_id: string;
2266
+ updated_at: number & {
2267
+ __brand: "UnixMilliseconds";
2268
+ };
2269
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null;
2270
+ grade_status: "error" | "skip" | "pass" | "fail";
2271
+ operational_date: number & {
2272
+ __brand: "OperationalDateInt";
2273
+ };
2274
+ remarks: string | null;
2275
+ ride_id: string;
2276
+ expected_transactions_qty: number | null;
2277
+ found_transactions_qty: number | null;
2278
+ missing_transactions_qty: number | null;
2279
+ }, {
2280
+ agency_id: string;
2281
+ updated_at: string | number;
2282
+ grade_status: string;
2283
+ operational_date: string | number;
2284
+ ride_id: string;
2285
+ reason?: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null | undefined;
2286
+ remarks?: string | null | undefined;
2287
+ expected_transactions_qty?: string | number | null | undefined;
2288
+ found_transactions_qty?: string | number | null | undefined;
2289
+ missing_transactions_qty?: string | number | null | undefined;
2290
+ }>;
2291
+ }, "strip", z.ZodTypeAny, {
2292
+ at_least_one_vehicle_event_on_first_stop: {
2293
+ agency_id: string;
2294
+ updated_at: number & {
2295
+ __brand: "UnixMilliseconds";
2296
+ };
2297
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null;
2298
+ grade_status: "error" | "skip" | "pass" | "fail";
2299
+ operational_date: number & {
2300
+ __brand: "OperationalDateInt";
2301
+ };
2302
+ remarks: string | null;
2303
+ ride_id: string;
2304
+ vehicle_events_on_first_stop_qty: number | null;
2305
+ };
2306
+ at_least_one_vehicle_event_on_last_stop: {
2307
+ agency_id: string;
2308
+ updated_at: number & {
2309
+ __brand: "UnixMilliseconds";
2310
+ };
2311
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null;
2312
+ grade_status: "error" | "skip" | "pass" | "fail";
2313
+ operational_date: number & {
2314
+ __brand: "OperationalDateInt";
2315
+ };
2316
+ remarks: string | null;
2317
+ ride_id: string;
2318
+ vehicle_events_on_last_stop_qty: number | null;
2319
+ };
2320
+ expected_apex_validation_interval: {
2321
+ agency_id: string;
2322
+ updated_at: number & {
2323
+ __brand: "UnixMilliseconds";
2324
+ };
2325
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null;
2326
+ grade_status: "error" | "skip" | "pass" | "fail";
2327
+ operational_date: number & {
2328
+ __brand: "OperationalDateInt";
2329
+ };
2330
+ remarks: string | null;
2331
+ ride_id: string;
2332
+ observed_average_interval: number | null;
2333
+ observed_max_interval: number | null;
2334
+ observed_min_interval: number | null;
2335
+ };
2336
+ expected_driver_id_qty: {
2337
+ agency_id: string;
2338
+ updated_at: number & {
2339
+ __brand: "UnixMilliseconds";
2340
+ };
2341
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null;
2342
+ grade_status: "error" | "skip" | "pass" | "fail";
2343
+ operational_date: number & {
2344
+ __brand: "OperationalDateInt";
2345
+ };
2346
+ remarks: string | null;
2347
+ ride_id: string;
2348
+ observed_driver_ids_qty: number | null;
2349
+ };
2350
+ expected_start_time: {
2351
+ agency_id: string;
2352
+ updated_at: number & {
2353
+ __brand: "UnixMilliseconds";
2354
+ };
2355
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null;
2356
+ grade_status: "error" | "skip" | "pass" | "fail";
2357
+ operational_date: number & {
2358
+ __brand: "OperationalDateInt";
2359
+ };
2360
+ remarks: string | null;
2361
+ ride_id: string;
2362
+ observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
2363
+ observed_start_time_delta: number | null;
2364
+ };
2365
+ expected_vehicle_event_delay: {
2366
+ agency_id: string;
2367
+ updated_at: number & {
2368
+ __brand: "UnixMilliseconds";
2369
+ };
2370
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null;
2371
+ grade_status: "error" | "skip" | "pass" | "fail";
2372
+ operational_date: number & {
2373
+ __brand: "OperationalDateInt";
2374
+ };
2375
+ remarks: string | null;
2376
+ ride_id: string;
2377
+ observed_average_delay: number | null;
2378
+ observed_max_delay: number | null;
2379
+ observed_min_delay: number | null;
2380
+ vehicle_events_qty: number | null;
2381
+ vehicle_events_with_delay_percent: number | null;
2382
+ vehicle_events_with_delay_qty: number | null;
2383
+ };
2384
+ expected_vehicle_event_interval: {
2385
+ agency_id: string;
2386
+ updated_at: number & {
2387
+ __brand: "UnixMilliseconds";
2388
+ };
2389
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null;
2390
+ grade_status: "error" | "skip" | "pass" | "fail";
2391
+ operational_date: number & {
2392
+ __brand: "OperationalDateInt";
2393
+ };
2394
+ remarks: string | null;
2395
+ ride_id: string;
2396
+ observed_average_interval: number | null;
2397
+ observed_max_interval: number | null;
2398
+ observed_min_interval: number | null;
2399
+ };
2400
+ expected_vehicle_event_qty: {
2401
+ agency_id: string;
2402
+ updated_at: number & {
2403
+ __brand: "UnixMilliseconds";
2404
+ };
2405
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null;
2406
+ grade_status: "error" | "skip" | "pass" | "fail";
2407
+ operational_date: number & {
2408
+ __brand: "OperationalDateInt";
2409
+ };
2410
+ remarks: string | null;
2411
+ ride_id: string;
2412
+ expected_vehicle_events_qty: number | null;
2413
+ observed_vehicle_events_qty: number | null;
2414
+ };
2415
+ expected_vehicle_id_qty: {
2416
+ agency_id: string;
2417
+ updated_at: number & {
2418
+ __brand: "UnixMilliseconds";
2419
+ };
2420
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null;
2421
+ grade_status: "error" | "skip" | "pass" | "fail";
2422
+ operational_date: number & {
2423
+ __brand: "OperationalDateInt";
2424
+ };
2425
+ remarks: string | null;
2426
+ ride_id: string;
2427
+ observed_vehicle_ids_qty: number | null;
2428
+ };
2429
+ matching_apex_locations: {
2430
+ agency_id: string;
2431
+ updated_at: number & {
2432
+ __brand: "UnixMilliseconds";
2433
+ };
2434
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null;
2435
+ grade_status: "error" | "skip" | "pass" | "fail";
2436
+ operational_date: number & {
2437
+ __brand: "OperationalDateInt";
2438
+ };
2439
+ remarks: string | null;
2440
+ ride_id: string;
2441
+ expected_apex_locations_qty: number | null;
2442
+ matching_apex_locations_qty: number | null;
2443
+ missing_apex_locations_qty: number | null;
2444
+ };
2445
+ matching_vehicle_ids: {
2446
+ agency_id: string;
2447
+ updated_at: number & {
2448
+ __brand: "UnixMilliseconds";
2449
+ };
2450
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null;
2451
+ grade_status: "error" | "skip" | "pass" | "fail";
2452
+ operational_date: number & {
2453
+ __brand: "OperationalDateInt";
2454
+ };
2455
+ remarks: string | null;
2456
+ ride_id: string;
2457
+ extra_apex_vehicle_ids_qty: number | null;
2458
+ extra_vehicle_events_vehicle_ids_qty: number | null;
2459
+ matching_vehicle_ids_qty: number | null;
2460
+ total_vehicle_ids_qty: number | null;
2461
+ };
2462
+ simple_one_apex_validation: {
2463
+ agency_id: string;
2464
+ updated_at: number & {
2465
+ __brand: "UnixMilliseconds";
2466
+ };
2467
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null;
2468
+ grade_status: "error" | "skip" | "pass" | "fail";
2469
+ operational_date: number & {
2470
+ __brand: "OperationalDateInt";
2471
+ };
2472
+ remarks: string | null;
2473
+ ride_id: string;
2474
+ };
2475
+ simple_one_vehicle_event_or_apex_validation: {
2476
+ agency_id: string;
2477
+ updated_at: number & {
2478
+ __brand: "UnixMilliseconds";
2479
+ };
2480
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null;
2481
+ grade_status: "error" | "skip" | "pass" | "fail";
2482
+ operational_date: number & {
2483
+ __brand: "OperationalDateInt";
2484
+ };
2485
+ remarks: string | null;
2486
+ ride_id: string;
2487
+ };
2488
+ simple_three_vehicle_events: {
2489
+ agency_id: string;
2490
+ updated_at: number & {
2491
+ __brand: "UnixMilliseconds";
2492
+ };
2493
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null;
2494
+ grade_status: "error" | "skip" | "pass" | "fail";
2495
+ operational_date: number & {
2496
+ __brand: "OperationalDateInt";
2497
+ };
2498
+ remarks: string | null;
2499
+ ride_id: string;
2500
+ stop_ids_first: string[];
2501
+ stop_ids_last: string[];
2502
+ stop_ids_middle: string[];
2503
+ };
2504
+ transaction_sequentiality: {
2505
+ agency_id: string;
2506
+ updated_at: number & {
2507
+ __brand: "UnixMilliseconds";
2508
+ };
2509
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null;
2510
+ grade_status: "error" | "skip" | "pass" | "fail";
2511
+ operational_date: number & {
2512
+ __brand: "OperationalDateInt";
2513
+ };
2514
+ remarks: string | null;
2515
+ ride_id: string;
2516
+ expected_transactions_qty: number | null;
2517
+ found_transactions_qty: number | null;
2518
+ missing_transactions_qty: number | null;
2519
+ };
2520
+ }, {
2521
+ at_least_one_vehicle_event_on_first_stop: {
2522
+ agency_id: string;
2523
+ updated_at: string | number;
2524
+ grade_status: string;
2525
+ operational_date: string | number;
2526
+ ride_id: string;
2527
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null | undefined;
2528
+ remarks?: string | null | undefined;
2529
+ vehicle_events_on_first_stop_qty?: string | number | null | undefined;
2530
+ };
2531
+ at_least_one_vehicle_event_on_last_stop: {
2532
+ agency_id: string;
2533
+ updated_at: string | number;
2534
+ grade_status: string;
2535
+ operational_date: string | number;
2536
+ ride_id: string;
2537
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null | undefined;
2538
+ remarks?: string | null | undefined;
2539
+ vehicle_events_on_last_stop_qty?: string | number | null | undefined;
2540
+ };
2541
+ expected_apex_validation_interval: {
2542
+ agency_id: string;
2543
+ updated_at: string | number;
2544
+ grade_status: string;
2545
+ operational_date: string | number;
2546
+ ride_id: string;
2547
+ reason?: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null | undefined;
2548
+ remarks?: string | null | undefined;
2549
+ observed_average_interval?: string | number | null | undefined;
2550
+ observed_max_interval?: string | number | null | undefined;
2551
+ observed_min_interval?: string | number | null | undefined;
2552
+ };
2553
+ expected_driver_id_qty: {
2554
+ agency_id: string;
2555
+ updated_at: string | number;
2556
+ grade_status: string;
2557
+ operational_date: string | number;
2558
+ ride_id: string;
2559
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null | undefined;
2560
+ remarks?: string | null | undefined;
2561
+ observed_driver_ids_qty?: string | number | null | undefined;
2562
+ };
2563
+ expected_start_time: {
2564
+ agency_id: string;
2565
+ updated_at: string | number;
2566
+ grade_status: string;
2567
+ operational_date: string | number;
2568
+ ride_id: string;
2569
+ reason?: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null | undefined;
2570
+ remarks?: string | null | undefined;
2571
+ observed_start_time?: string | number | null | undefined;
2572
+ observed_start_time_delta?: string | number | null | undefined;
2573
+ };
2574
+ expected_vehicle_event_delay: {
2575
+ agency_id: string;
2576
+ updated_at: string | number;
2577
+ grade_status: string;
2578
+ operational_date: string | number;
2579
+ ride_id: string;
2580
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null | undefined;
2581
+ remarks?: string | null | undefined;
2582
+ observed_average_delay?: string | number | null | undefined;
2583
+ observed_max_delay?: string | number | null | undefined;
2584
+ observed_min_delay?: string | number | null | undefined;
2585
+ vehicle_events_qty?: string | number | null | undefined;
2586
+ vehicle_events_with_delay_percent?: string | number | null | undefined;
2587
+ vehicle_events_with_delay_qty?: string | number | null | undefined;
2588
+ };
2589
+ expected_vehicle_event_interval: {
2590
+ agency_id: string;
2591
+ updated_at: string | number;
2592
+ grade_status: string;
2593
+ operational_date: string | number;
2594
+ ride_id: string;
2595
+ reason?: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null | undefined;
2596
+ remarks?: string | null | undefined;
2597
+ observed_average_interval?: string | number | null | undefined;
2598
+ observed_max_interval?: string | number | null | undefined;
2599
+ observed_min_interval?: string | number | null | undefined;
2600
+ };
2601
+ expected_vehicle_event_qty: {
2602
+ agency_id: string;
2603
+ updated_at: string | number;
2604
+ grade_status: string;
2605
+ operational_date: string | number;
2606
+ ride_id: string;
2607
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null | undefined;
2608
+ remarks?: string | null | undefined;
2609
+ expected_vehicle_events_qty?: string | number | null | undefined;
2610
+ observed_vehicle_events_qty?: string | number | null | undefined;
2611
+ };
2612
+ expected_vehicle_id_qty: {
2613
+ agency_id: string;
2614
+ updated_at: string | number;
2615
+ grade_status: string;
2616
+ operational_date: string | number;
2617
+ ride_id: string;
2618
+ reason?: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null | undefined;
2619
+ remarks?: string | null | undefined;
2620
+ observed_vehicle_ids_qty?: string | number | null | undefined;
2621
+ };
2622
+ matching_apex_locations: {
2623
+ agency_id: string;
2624
+ updated_at: string | number;
2625
+ grade_status: string;
2626
+ operational_date: string | number;
2627
+ ride_id: string;
2628
+ reason?: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null | undefined;
2629
+ remarks?: string | null | undefined;
2630
+ expected_apex_locations_qty?: string | number | null | undefined;
2631
+ matching_apex_locations_qty?: string | number | null | undefined;
2632
+ missing_apex_locations_qty?: string | number | null | undefined;
2633
+ };
2634
+ matching_vehicle_ids: {
2635
+ agency_id: string;
2636
+ updated_at: string | number;
2637
+ grade_status: string;
2638
+ operational_date: string | number;
2639
+ ride_id: string;
2640
+ reason?: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null | undefined;
2641
+ remarks?: string | null | undefined;
2642
+ extra_apex_vehicle_ids_qty?: string | number | null | undefined;
2643
+ extra_vehicle_events_vehicle_ids_qty?: string | number | null | undefined;
2644
+ matching_vehicle_ids_qty?: string | number | null | undefined;
2645
+ total_vehicle_ids_qty?: string | number | null | undefined;
2646
+ };
2647
+ simple_one_apex_validation: {
2648
+ agency_id: string;
2649
+ updated_at: string | number;
2650
+ grade_status: string;
2651
+ operational_date: string | number;
2652
+ ride_id: string;
2653
+ reason?: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null | undefined;
2654
+ remarks?: string | null | undefined;
2655
+ };
2656
+ simple_one_vehicle_event_or_apex_validation: {
2657
+ agency_id: string;
2658
+ updated_at: string | number;
2659
+ grade_status: string;
2660
+ operational_date: string | number;
2661
+ ride_id: string;
2662
+ reason?: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null | undefined;
2663
+ remarks?: string | null | undefined;
2664
+ };
2665
+ simple_three_vehicle_events: {
2666
+ agency_id: string;
2667
+ updated_at: string | number;
2668
+ grade_status: string;
2669
+ operational_date: string | number;
2670
+ ride_id: string;
2671
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null | undefined;
2672
+ remarks?: string | null | undefined;
2673
+ stop_ids_first?: string[] | undefined;
2674
+ stop_ids_last?: string[] | undefined;
2675
+ stop_ids_middle?: string[] | undefined;
2676
+ };
2677
+ transaction_sequentiality: {
2678
+ agency_id: string;
2679
+ updated_at: string | number;
2680
+ grade_status: string;
2681
+ operational_date: string | number;
2682
+ ride_id: string;
2683
+ reason?: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null | undefined;
2684
+ remarks?: string | null | undefined;
2685
+ expected_transactions_qty?: string | number | null | undefined;
2686
+ found_transactions_qty?: string | number | null | undefined;
2687
+ missing_transactions_qty?: string | number | null | undefined;
2688
+ };
2689
+ }>;
2690
+ }, "strip", z.ZodTypeAny, {
2691
+ agency_id: string;
2692
+ _id: string;
2693
+ updated_at: number & {
2694
+ __brand: "UnixMilliseconds";
2695
+ };
2696
+ processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
2697
+ shape_id: string;
2698
+ trip_id: string;
2699
+ operational_date: number & {
2700
+ __brand: "OperationalDateInt";
2701
+ };
2702
+ agency_code: string;
2703
+ direction_id: "0" | "1";
2704
+ hashed_shape_id: string;
2705
+ hashed_trip_id: string;
2706
+ headsign: string;
2707
+ plan_id: string;
2708
+ route_color: string & {
2709
+ __brand: "HexColor";
2710
+ };
2711
+ route_id: string;
2712
+ route_long_name: string;
2713
+ route_short_name: string;
2714
+ route_text_color: string & {
2715
+ __brand: "HexColor";
2716
+ };
2717
+ timezone: "Africa/Abidjan" | "Africa/Accra" | "Africa/Algiers" | "Africa/Bissau" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/El_Aaiun" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Khartoum" | "Africa/Lagos" | "Africa/Maputo" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Sao_Tome" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Asuncion" | "America/Atikokan" | "America/Bahia_Banderas" | "America/Bahia" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Cayenne" | "America/Chicago" | "America/Chihuahua" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson_Creek" | "America/Dawson" | "America/Denver" | "America/Detroit" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Fort_Nelson" | "America/Fortaleza" | "America/Glace_Bay" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Juneau" | "America/Kentucky" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port_of_Spain" | "America/Port-au-Prince" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Sitka" | "America/St_Johns" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Vancouver" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Colombo" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kathmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Riyadh" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ulaanbaatar" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faroe" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/Stanley" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/Perth" | "Australia/Sydney" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Helsinki" | "Europe/Istanbul" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Lisbon" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Paris" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zaporozhye" | "Europe/Zurich" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Reunion" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Wake" | "Pacific/Wallis";
2718
+ end_time_observed: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
2719
+ end_time_scheduled: number & {
2720
+ __brand: "UnixMilliseconds";
2721
+ };
2722
+ extension_observed: number | null;
2723
+ extension_scheduled: number;
2724
+ start_time_observed: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
2725
+ start_time_scheduled: number & {
2726
+ __brand: "UnixMilliseconds";
2727
+ };
2728
+ apex_banking_taps_amount: number | null;
2729
+ apex_banking_taps_qty: number | null;
2730
+ apex_locations_qty: number | null;
2731
+ apex_refunds_amount: number | null;
2732
+ apex_refunds_qty: number | null;
2733
+ apex_sales_amount: number | null;
2734
+ apex_sales_qty: number | null;
2735
+ apex_validations_qty: number | null;
2736
+ passengers_estimated: number | null;
2737
+ passengers_observed: number | null;
2738
+ passengers_observed_banking_taps_amount: number | null;
2739
+ passengers_observed_banking_taps_qty: number | null;
2740
+ passengers_observed_prepaid_amount: number | null;
2741
+ passengers_observed_prepaid_qty: number | null;
2742
+ passengers_observed_sales_amount: number | null;
2743
+ passengers_observed_sales_qty: number | null;
2744
+ passengers_observed_subscription_qty: number | null;
2745
+ driver_ids: string[];
2746
+ seen_first_at: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
2747
+ seen_last_at: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
2748
+ vehicle_ids: string[];
2749
+ analyses: {
2750
+ at_least_one_vehicle_event_on_first_stop: {
2751
+ agency_id: string;
2752
+ updated_at: number & {
2753
+ __brand: "UnixMilliseconds";
2754
+ };
2755
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null;
2756
+ grade_status: "error" | "skip" | "pass" | "fail";
2757
+ operational_date: number & {
2758
+ __brand: "OperationalDateInt";
2759
+ };
2760
+ remarks: string | null;
2761
+ ride_id: string;
2762
+ vehicle_events_on_first_stop_qty: number | null;
2763
+ };
2764
+ at_least_one_vehicle_event_on_last_stop: {
2765
+ agency_id: string;
2766
+ updated_at: number & {
2767
+ __brand: "UnixMilliseconds";
2768
+ };
2769
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null;
2770
+ grade_status: "error" | "skip" | "pass" | "fail";
2771
+ operational_date: number & {
2772
+ __brand: "OperationalDateInt";
2773
+ };
2774
+ remarks: string | null;
2775
+ ride_id: string;
2776
+ vehicle_events_on_last_stop_qty: number | null;
2777
+ };
2778
+ expected_apex_validation_interval: {
2779
+ agency_id: string;
2780
+ updated_at: number & {
2781
+ __brand: "UnixMilliseconds";
2782
+ };
2783
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null;
2784
+ grade_status: "error" | "skip" | "pass" | "fail";
2785
+ operational_date: number & {
2786
+ __brand: "OperationalDateInt";
2787
+ };
2788
+ remarks: string | null;
2789
+ ride_id: string;
2790
+ observed_average_interval: number | null;
2791
+ observed_max_interval: number | null;
2792
+ observed_min_interval: number | null;
2793
+ };
2794
+ expected_driver_id_qty: {
2795
+ agency_id: string;
2796
+ updated_at: number & {
2797
+ __brand: "UnixMilliseconds";
2798
+ };
2799
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null;
2800
+ grade_status: "error" | "skip" | "pass" | "fail";
2801
+ operational_date: number & {
2802
+ __brand: "OperationalDateInt";
2803
+ };
2804
+ remarks: string | null;
2805
+ ride_id: string;
2806
+ observed_driver_ids_qty: number | null;
2807
+ };
2808
+ expected_start_time: {
2809
+ agency_id: string;
2810
+ updated_at: number & {
2811
+ __brand: "UnixMilliseconds";
2812
+ };
2813
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null;
2814
+ grade_status: "error" | "skip" | "pass" | "fail";
2815
+ operational_date: number & {
2816
+ __brand: "OperationalDateInt";
2817
+ };
2818
+ remarks: string | null;
2819
+ ride_id: string;
2820
+ observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
2821
+ observed_start_time_delta: number | null;
2822
+ };
2823
+ expected_vehicle_event_delay: {
2824
+ agency_id: string;
2825
+ updated_at: number & {
2826
+ __brand: "UnixMilliseconds";
2827
+ };
2828
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null;
2829
+ grade_status: "error" | "skip" | "pass" | "fail";
2830
+ operational_date: number & {
2831
+ __brand: "OperationalDateInt";
2832
+ };
2833
+ remarks: string | null;
2834
+ ride_id: string;
2835
+ observed_average_delay: number | null;
2836
+ observed_max_delay: number | null;
2837
+ observed_min_delay: number | null;
2838
+ vehicle_events_qty: number | null;
2839
+ vehicle_events_with_delay_percent: number | null;
2840
+ vehicle_events_with_delay_qty: number | null;
2841
+ };
2842
+ expected_vehicle_event_interval: {
2843
+ agency_id: string;
2844
+ updated_at: number & {
2845
+ __brand: "UnixMilliseconds";
2846
+ };
2847
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null;
2848
+ grade_status: "error" | "skip" | "pass" | "fail";
2849
+ operational_date: number & {
2850
+ __brand: "OperationalDateInt";
2851
+ };
2852
+ remarks: string | null;
2853
+ ride_id: string;
2854
+ observed_average_interval: number | null;
2855
+ observed_max_interval: number | null;
2856
+ observed_min_interval: number | null;
2857
+ };
2858
+ expected_vehicle_event_qty: {
2859
+ agency_id: string;
2860
+ updated_at: number & {
2861
+ __brand: "UnixMilliseconds";
2862
+ };
2863
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null;
2864
+ grade_status: "error" | "skip" | "pass" | "fail";
2865
+ operational_date: number & {
2866
+ __brand: "OperationalDateInt";
2867
+ };
2868
+ remarks: string | null;
2869
+ ride_id: string;
2870
+ expected_vehicle_events_qty: number | null;
2871
+ observed_vehicle_events_qty: number | null;
2872
+ };
2873
+ expected_vehicle_id_qty: {
2874
+ agency_id: string;
2875
+ updated_at: number & {
2876
+ __brand: "UnixMilliseconds";
2877
+ };
2878
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null;
2879
+ grade_status: "error" | "skip" | "pass" | "fail";
2880
+ operational_date: number & {
2881
+ __brand: "OperationalDateInt";
2882
+ };
2883
+ remarks: string | null;
2884
+ ride_id: string;
2885
+ observed_vehicle_ids_qty: number | null;
2886
+ };
2887
+ matching_apex_locations: {
2888
+ agency_id: string;
2889
+ updated_at: number & {
2890
+ __brand: "UnixMilliseconds";
2891
+ };
2892
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null;
2893
+ grade_status: "error" | "skip" | "pass" | "fail";
2894
+ operational_date: number & {
2895
+ __brand: "OperationalDateInt";
2896
+ };
2897
+ remarks: string | null;
2898
+ ride_id: string;
2899
+ expected_apex_locations_qty: number | null;
2900
+ matching_apex_locations_qty: number | null;
2901
+ missing_apex_locations_qty: number | null;
2902
+ };
2903
+ matching_vehicle_ids: {
2904
+ agency_id: string;
2905
+ updated_at: number & {
2906
+ __brand: "UnixMilliseconds";
2907
+ };
2908
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null;
2909
+ grade_status: "error" | "skip" | "pass" | "fail";
2910
+ operational_date: number & {
2911
+ __brand: "OperationalDateInt";
2912
+ };
2913
+ remarks: string | null;
2914
+ ride_id: string;
2915
+ extra_apex_vehicle_ids_qty: number | null;
2916
+ extra_vehicle_events_vehicle_ids_qty: number | null;
2917
+ matching_vehicle_ids_qty: number | null;
2918
+ total_vehicle_ids_qty: number | null;
2919
+ };
2920
+ simple_one_apex_validation: {
2921
+ agency_id: string;
2922
+ updated_at: number & {
2923
+ __brand: "UnixMilliseconds";
2924
+ };
2925
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null;
2926
+ grade_status: "error" | "skip" | "pass" | "fail";
2927
+ operational_date: number & {
2928
+ __brand: "OperationalDateInt";
2929
+ };
2930
+ remarks: string | null;
2931
+ ride_id: string;
2932
+ };
2933
+ simple_one_vehicle_event_or_apex_validation: {
2934
+ agency_id: string;
2935
+ updated_at: number & {
2936
+ __brand: "UnixMilliseconds";
2937
+ };
2938
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null;
2939
+ grade_status: "error" | "skip" | "pass" | "fail";
2940
+ operational_date: number & {
2941
+ __brand: "OperationalDateInt";
2942
+ };
2943
+ remarks: string | null;
2944
+ ride_id: string;
2945
+ };
2946
+ simple_three_vehicle_events: {
2947
+ agency_id: string;
2948
+ updated_at: number & {
2949
+ __brand: "UnixMilliseconds";
2950
+ };
2951
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null;
2952
+ grade_status: "error" | "skip" | "pass" | "fail";
2953
+ operational_date: number & {
2954
+ __brand: "OperationalDateInt";
2955
+ };
2956
+ remarks: string | null;
2957
+ ride_id: string;
2958
+ stop_ids_first: string[];
2959
+ stop_ids_last: string[];
2960
+ stop_ids_middle: string[];
2961
+ };
2962
+ transaction_sequentiality: {
2963
+ agency_id: string;
2964
+ updated_at: number & {
2965
+ __brand: "UnixMilliseconds";
2966
+ };
2967
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null;
2968
+ grade_status: "error" | "skip" | "pass" | "fail";
2969
+ operational_date: number & {
2970
+ __brand: "OperationalDateInt";
2971
+ };
2972
+ remarks: string | null;
2973
+ ride_id: string;
2974
+ expected_transactions_qty: number | null;
2975
+ found_transactions_qty: number | null;
2976
+ missing_transactions_qty: number | null;
2977
+ };
2978
+ };
2979
+ }, {
2980
+ agency_id: string;
2981
+ _id: string;
2982
+ updated_at: string | number;
2983
+ shape_id: string;
2984
+ trip_id: string;
2985
+ operational_date: string | number;
2986
+ agency_code: string;
2987
+ direction_id: string | number;
2988
+ hashed_shape_id: string;
2989
+ hashed_trip_id: string;
2990
+ headsign: string;
2991
+ plan_id: string;
2992
+ route_id: string;
2993
+ route_long_name: string;
2994
+ route_short_name: string;
2995
+ timezone: "Africa/Abidjan" | "Africa/Accra" | "Africa/Algiers" | "Africa/Bissau" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/El_Aaiun" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Khartoum" | "Africa/Lagos" | "Africa/Maputo" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Sao_Tome" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Asuncion" | "America/Atikokan" | "America/Bahia_Banderas" | "America/Bahia" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Cayenne" | "America/Chicago" | "America/Chihuahua" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson_Creek" | "America/Dawson" | "America/Denver" | "America/Detroit" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Fort_Nelson" | "America/Fortaleza" | "America/Glace_Bay" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Juneau" | "America/Kentucky" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port_of_Spain" | "America/Port-au-Prince" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Sitka" | "America/St_Johns" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Vancouver" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Colombo" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kathmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Riyadh" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ulaanbaatar" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faroe" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/Stanley" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/Perth" | "Australia/Sydney" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Helsinki" | "Europe/Istanbul" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Lisbon" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Paris" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zaporozhye" | "Europe/Zurich" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Reunion" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Wake" | "Pacific/Wallis";
2996
+ end_time_scheduled: string | number;
2997
+ extension_scheduled: string | number;
2998
+ start_time_scheduled: string | number;
2999
+ analyses: {
3000
+ at_least_one_vehicle_event_on_first_stop: {
3001
+ agency_id: string;
3002
+ updated_at: string | number;
3003
+ grade_status: string;
3004
+ operational_date: string | number;
3005
+ ride_id: string;
3006
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP" | null | undefined;
3007
+ remarks?: string | null | undefined;
3008
+ vehicle_events_on_first_stop_qty?: string | number | null | undefined;
3009
+ };
3010
+ at_least_one_vehicle_event_on_last_stop: {
3011
+ agency_id: string;
3012
+ updated_at: string | number;
3013
+ grade_status: string;
3014
+ operational_date: string | number;
3015
+ ride_id: string;
3016
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_LAST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_LAST_STOP" | null | undefined;
3017
+ remarks?: string | null | undefined;
3018
+ vehicle_events_on_last_stop_qty?: string | number | null | undefined;
3019
+ };
3020
+ expected_apex_validation_interval: {
3021
+ agency_id: string;
3022
+ updated_at: string | number;
3023
+ grade_status: string;
3024
+ operational_date: string | number;
3025
+ ride_id: string;
3026
+ reason?: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS" | null | undefined;
3027
+ remarks?: string | null | undefined;
3028
+ observed_average_interval?: string | number | null | undefined;
3029
+ observed_max_interval?: string | number | null | undefined;
3030
+ observed_min_interval?: string | number | null | undefined;
3031
+ };
3032
+ expected_driver_id_qty: {
3033
+ agency_id: string;
3034
+ updated_at: string | number;
3035
+ grade_status: string;
3036
+ operational_date: string | number;
3037
+ ride_id: string;
3038
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY" | null | undefined;
3039
+ remarks?: string | null | undefined;
3040
+ observed_driver_ids_qty?: string | number | null | undefined;
3041
+ };
3042
+ expected_start_time: {
3043
+ agency_id: string;
3044
+ updated_at: string | number;
3045
+ grade_status: string;
3046
+ operational_date: string | number;
3047
+ ride_id: string;
3048
+ reason?: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME" | null | undefined;
3049
+ remarks?: string | null | undefined;
3050
+ observed_start_time?: string | number | null | undefined;
3051
+ observed_start_time_delta?: string | number | null | undefined;
3052
+ };
3053
+ expected_vehicle_event_delay: {
3054
+ agency_id: string;
3055
+ updated_at: string | number;
3056
+ grade_status: string;
3057
+ operational_date: string | number;
3058
+ ride_id: string;
3059
+ reason?: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY" | null | undefined;
3060
+ remarks?: string | null | undefined;
3061
+ observed_average_delay?: string | number | null | undefined;
3062
+ observed_max_delay?: string | number | null | undefined;
3063
+ observed_min_delay?: string | number | null | undefined;
3064
+ vehicle_events_qty?: string | number | null | undefined;
3065
+ vehicle_events_with_delay_percent?: string | number | null | undefined;
3066
+ vehicle_events_with_delay_qty?: string | number | null | undefined;
3067
+ };
3068
+ expected_vehicle_event_interval: {
3069
+ agency_id: string;
3070
+ updated_at: string | number;
3071
+ grade_status: string;
3072
+ operational_date: string | number;
3073
+ ride_id: string;
3074
+ reason?: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL" | null | undefined;
3075
+ remarks?: string | null | undefined;
3076
+ observed_average_interval?: string | number | null | undefined;
3077
+ observed_max_interval?: string | number | null | undefined;
3078
+ observed_min_interval?: string | number | null | undefined;
3079
+ };
3080
+ expected_vehicle_event_qty: {
3081
+ agency_id: string;
3082
+ updated_at: string | number;
3083
+ grade_status: string;
3084
+ operational_date: string | number;
3085
+ ride_id: string;
3086
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY" | null | undefined;
3087
+ remarks?: string | null | undefined;
3088
+ expected_vehicle_events_qty?: string | number | null | undefined;
3089
+ observed_vehicle_events_qty?: string | number | null | undefined;
3090
+ };
3091
+ expected_vehicle_id_qty: {
3092
+ agency_id: string;
3093
+ updated_at: string | number;
3094
+ grade_status: string;
3095
+ operational_date: string | number;
3096
+ ride_id: string;
3097
+ reason?: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY" | null | undefined;
3098
+ remarks?: string | null | undefined;
3099
+ observed_vehicle_ids_qty?: string | number | null | undefined;
3100
+ };
3101
+ matching_apex_locations: {
3102
+ agency_id: string;
3103
+ updated_at: string | number;
3104
+ grade_status: string;
3105
+ operational_date: string | number;
3106
+ ride_id: string;
3107
+ reason?: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS" | null | undefined;
3108
+ remarks?: string | null | undefined;
3109
+ expected_apex_locations_qty?: string | number | null | undefined;
3110
+ matching_apex_locations_qty?: string | number | null | undefined;
3111
+ missing_apex_locations_qty?: string | number | null | undefined;
3112
+ };
3113
+ matching_vehicle_ids: {
3114
+ agency_id: string;
3115
+ updated_at: string | number;
3116
+ grade_status: string;
3117
+ operational_date: string | number;
3118
+ ride_id: string;
3119
+ reason?: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS" | null | undefined;
3120
+ remarks?: string | null | undefined;
3121
+ extra_apex_vehicle_ids_qty?: string | number | null | undefined;
3122
+ extra_vehicle_events_vehicle_ids_qty?: string | number | null | undefined;
3123
+ matching_vehicle_ids_qty?: string | number | null | undefined;
3124
+ total_vehicle_ids_qty?: string | number | null | undefined;
3125
+ };
3126
+ simple_one_apex_validation: {
3127
+ agency_id: string;
3128
+ updated_at: string | number;
3129
+ grade_status: string;
3130
+ operational_date: string | number;
3131
+ ride_id: string;
3132
+ reason?: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS" | null | undefined;
3133
+ remarks?: string | null | undefined;
3134
+ };
3135
+ simple_one_vehicle_event_or_apex_validation: {
3136
+ agency_id: string;
3137
+ updated_at: string | number;
3138
+ grade_status: string;
3139
+ operational_date: string | number;
3140
+ ride_id: string;
3141
+ reason?: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION" | null | undefined;
3142
+ remarks?: string | null | undefined;
3143
+ };
3144
+ simple_three_vehicle_events: {
3145
+ agency_id: string;
3146
+ updated_at: string | number;
3147
+ grade_status: string;
3148
+ operational_date: string | number;
3149
+ ride_id: string;
3150
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND" | null | undefined;
3151
+ remarks?: string | null | undefined;
3152
+ stop_ids_first?: string[] | undefined;
3153
+ stop_ids_last?: string[] | undefined;
3154
+ stop_ids_middle?: string[] | undefined;
3155
+ };
3156
+ transaction_sequentiality: {
3157
+ agency_id: string;
3158
+ updated_at: string | number;
3159
+ grade_status: string;
3160
+ operational_date: string | number;
3161
+ ride_id: string;
3162
+ reason?: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED" | null | undefined;
3163
+ remarks?: string | null | undefined;
3164
+ expected_transactions_qty?: string | number | null | undefined;
3165
+ found_transactions_qty?: string | number | null | undefined;
3166
+ missing_transactions_qty?: string | number | null | undefined;
3167
+ };
3168
+ };
3169
+ processing_status?: string | undefined;
3170
+ route_color?: string | undefined;
3171
+ route_text_color?: string | undefined;
3172
+ end_time_observed?: string | number | null | undefined;
3173
+ extension_observed?: string | number | null | undefined;
3174
+ start_time_observed?: string | number | null | undefined;
3175
+ apex_banking_taps_amount?: string | number | null | undefined;
3176
+ apex_banking_taps_qty?: string | number | null | undefined;
3177
+ apex_locations_qty?: string | number | null | undefined;
3178
+ apex_refunds_amount?: string | number | null | undefined;
3179
+ apex_refunds_qty?: string | number | null | undefined;
3180
+ apex_sales_amount?: string | number | null | undefined;
3181
+ apex_sales_qty?: string | number | null | undefined;
3182
+ apex_validations_qty?: string | number | null | undefined;
3183
+ passengers_estimated?: string | number | null | undefined;
3184
+ passengers_observed?: string | number | null | undefined;
3185
+ passengers_observed_banking_taps_amount?: string | number | null | undefined;
3186
+ passengers_observed_banking_taps_qty?: string | number | null | undefined;
3187
+ passengers_observed_prepaid_amount?: string | number | null | undefined;
3188
+ passengers_observed_prepaid_qty?: string | number | null | undefined;
3189
+ passengers_observed_sales_amount?: string | number | null | undefined;
3190
+ passengers_observed_sales_qty?: string | number | null | undefined;
3191
+ passengers_observed_subscription_qty?: string | number | null | undefined;
3192
+ driver_ids?: string[] | undefined;
3193
+ seen_first_at?: string | number | null | undefined;
3194
+ seen_last_at?: string | number | null | undefined;
3195
+ vehicle_ids?: string[] | undefined;
3196
+ }>;
335
3197
  /**
336
3198
  * A Ride represents a single vehicle journey on a single route for a single day.
337
3199
  * It is the basic unit of analysis for the public transit system.
338
3200
  */
339
3201
  export type Ride = z.infer<typeof RideSchema>;
3202
+ /**
3203
+ * A RideWithAnalyses represents a single vehicle journey on a single route for a single day, along with its analyses.
3204
+ */
3205
+ export type RideWithAnalyses = z.infer<typeof RideWithAnalysesSchema>;