@tmlmobilidade/interfaces 20250909.1559.44 → 20250911.1425.9

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.
@@ -14,42 +14,894 @@ declare class RidesClass extends MongoCollectionClass<Ride, CreateRideDto, Updat
14
14
  * @param agencyId - The Agency ID to search for
15
15
  * @returns A promise that resolves to an array of matching ride documents
16
16
  */
17
- findByAgencyId(agencyId: string): Promise<import("mongodb").WithId<Ride>[]>;
17
+ findByAgencyId(agencyId: string): Promise<import("mongodb").WithId<{
18
+ _id: string;
19
+ created_at: number & {
20
+ __brand: "UnixTimestamp";
21
+ };
22
+ updated_at: number & {
23
+ __brand: "UnixTimestamp";
24
+ };
25
+ agency_id: string;
26
+ line_id: number;
27
+ analysis: {
28
+ EXPECTED_DRIVER_ID_QTY: {
29
+ value: number | null;
30
+ grade: "error" | "pass" | "fail" | "skip";
31
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
32
+ error_message?: string | undefined;
33
+ };
34
+ EXPECTED_VEHICLE_ID_QTY: {
35
+ value: number | null;
36
+ grade: "error" | "pass" | "fail" | "skip";
37
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
38
+ error_message?: string | undefined;
39
+ };
40
+ EXPECTED_VEHICLE_EVENT_INTERVAL: {
41
+ value: number | null;
42
+ grade: "error" | "pass" | "fail" | "skip";
43
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
44
+ error_message?: string | undefined;
45
+ };
46
+ ENDED_AT_LAST_STOP: {
47
+ grade: "error" | "pass" | "fail" | "skip";
48
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
49
+ error_message?: string | undefined;
50
+ };
51
+ EXPECTED_VEHICLE_EVENT_QTY: {
52
+ grade: "error" | "pass" | "fail" | "skip";
53
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
54
+ expected_qty: number | null;
55
+ found_qty: number | null;
56
+ error_message?: string | undefined;
57
+ };
58
+ MATCHING_APEX_LOCATIONS: {
59
+ grade: "error" | "pass" | "fail" | "skip";
60
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
61
+ error_message?: string | undefined;
62
+ };
63
+ MATCHING_VEHICLE_IDS: {
64
+ grade: "error" | "pass" | "fail" | "skip";
65
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
66
+ error_message?: string | undefined;
67
+ };
68
+ AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
69
+ value: number | null;
70
+ grade: "error" | "pass" | "fail" | "skip";
71
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
72
+ error_message?: string | undefined;
73
+ };
74
+ EXPECTED_APEX_VALIDATION_INTERVAL: {
75
+ grade: "error" | "pass" | "fail" | "skip";
76
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
77
+ error_message?: string | undefined;
78
+ };
79
+ EXPECTED_START_TIME: {
80
+ value: number | null;
81
+ grade: "error" | "pass" | "fail" | "skip";
82
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
83
+ error_message?: string | undefined;
84
+ };
85
+ EXPECTED_VEHICLE_EVENT_DELAY: {
86
+ value: number | null;
87
+ grade: "error" | "pass" | "fail" | "skip";
88
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
89
+ error_message?: string | undefined;
90
+ };
91
+ SIMPLE_ONE_APEX_VALIDATION: {
92
+ value: number | null;
93
+ grade: "error" | "pass" | "fail" | "skip";
94
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
95
+ error_message?: string | undefined;
96
+ };
97
+ SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
98
+ grade: "error" | "pass" | "fail" | "skip";
99
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
100
+ error_message?: string | undefined;
101
+ };
102
+ SIMPLE_THREE_VEHICLE_EVENTS: {
103
+ grade: "error" | "pass" | "fail" | "skip";
104
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
105
+ stop_ids_first: string[] | null;
106
+ stop_ids_last: string[] | null;
107
+ stop_ids_middle: string[] | null;
108
+ error_message?: string | undefined;
109
+ };
110
+ TRANSACTION_SEQUENTIALITY: {
111
+ grade: "error" | "pass" | "fail" | "skip";
112
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
113
+ expected_qty: number | null;
114
+ found_qty: number | null;
115
+ missing_qty: number | null;
116
+ error_message?: string | undefined;
117
+ };
118
+ } | null;
119
+ trip_id: string;
120
+ apex_locations_qty: number | null;
121
+ apex_on_board_refunds_amount: number | null;
122
+ apex_on_board_refunds_qty: number | null;
123
+ apex_on_board_sales_amount: number | null;
124
+ apex_on_board_sales_qty: number | null;
125
+ apex_validations_qty: number | null;
126
+ driver_ids: string[];
127
+ end_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
128
+ end_time_scheduled: number & {
129
+ __brand: "UnixTimestamp";
130
+ };
131
+ extension_observed: number | null;
132
+ extension_scheduled: number;
133
+ hashed_shape_id: string;
134
+ hashed_trip_id: string;
135
+ headsign: string;
136
+ operational_date: string & {
137
+ __brand: "OperationalDate";
138
+ } & z.BRAND<"OperationalDate">;
139
+ passengers_estimated: number | null;
140
+ passengers_observed: number | null;
141
+ passengers_observed_on_board_sales_amount: number | null;
142
+ passengers_observed_on_board_sales_qty: number | null;
143
+ passengers_observed_prepaid_amount: number | null;
144
+ passengers_observed_prepaid_qty: number | null;
145
+ passengers_observed_subscription_qty: number | null;
146
+ pattern_id: string;
147
+ plan_id: string;
148
+ route_id: string;
149
+ seen_first_at: import("@tmlmobilidade/types").UnixTimestamp | null;
150
+ seen_last_at: import("@tmlmobilidade/types").UnixTimestamp | null;
151
+ start_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
152
+ start_time_scheduled: number & {
153
+ __brand: "UnixTimestamp";
154
+ };
155
+ system_status: "waiting" | "processing" | "complete" | "error";
156
+ vehicle_ids: number[];
157
+ created_by?: string | undefined;
158
+ updated_by?: string | undefined;
159
+ }>[]>;
18
160
  /**
19
161
  * Finds ride documents by Line ID.
20
162
  *
21
163
  * @param lineId - The Line ID to search for
22
164
  * @returns A promise that resolves to an array of matching ride documents
23
165
  */
24
- findByLineId(lineId: number): Promise<import("mongodb").WithId<Ride>[]>;
166
+ findByLineId(lineId: number): Promise<import("mongodb").WithId<{
167
+ _id: string;
168
+ created_at: number & {
169
+ __brand: "UnixTimestamp";
170
+ };
171
+ updated_at: number & {
172
+ __brand: "UnixTimestamp";
173
+ };
174
+ agency_id: string;
175
+ line_id: number;
176
+ analysis: {
177
+ EXPECTED_DRIVER_ID_QTY: {
178
+ value: number | null;
179
+ grade: "error" | "pass" | "fail" | "skip";
180
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
181
+ error_message?: string | undefined;
182
+ };
183
+ EXPECTED_VEHICLE_ID_QTY: {
184
+ value: number | null;
185
+ grade: "error" | "pass" | "fail" | "skip";
186
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
187
+ error_message?: string | undefined;
188
+ };
189
+ EXPECTED_VEHICLE_EVENT_INTERVAL: {
190
+ value: number | null;
191
+ grade: "error" | "pass" | "fail" | "skip";
192
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
193
+ error_message?: string | undefined;
194
+ };
195
+ ENDED_AT_LAST_STOP: {
196
+ grade: "error" | "pass" | "fail" | "skip";
197
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
198
+ error_message?: string | undefined;
199
+ };
200
+ EXPECTED_VEHICLE_EVENT_QTY: {
201
+ grade: "error" | "pass" | "fail" | "skip";
202
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
203
+ expected_qty: number | null;
204
+ found_qty: number | null;
205
+ error_message?: string | undefined;
206
+ };
207
+ MATCHING_APEX_LOCATIONS: {
208
+ grade: "error" | "pass" | "fail" | "skip";
209
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
210
+ error_message?: string | undefined;
211
+ };
212
+ MATCHING_VEHICLE_IDS: {
213
+ grade: "error" | "pass" | "fail" | "skip";
214
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
215
+ error_message?: string | undefined;
216
+ };
217
+ AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
218
+ value: number | null;
219
+ grade: "error" | "pass" | "fail" | "skip";
220
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
221
+ error_message?: string | undefined;
222
+ };
223
+ EXPECTED_APEX_VALIDATION_INTERVAL: {
224
+ grade: "error" | "pass" | "fail" | "skip";
225
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
226
+ error_message?: string | undefined;
227
+ };
228
+ EXPECTED_START_TIME: {
229
+ value: number | null;
230
+ grade: "error" | "pass" | "fail" | "skip";
231
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
232
+ error_message?: string | undefined;
233
+ };
234
+ EXPECTED_VEHICLE_EVENT_DELAY: {
235
+ value: number | null;
236
+ grade: "error" | "pass" | "fail" | "skip";
237
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
238
+ error_message?: string | undefined;
239
+ };
240
+ SIMPLE_ONE_APEX_VALIDATION: {
241
+ value: number | null;
242
+ grade: "error" | "pass" | "fail" | "skip";
243
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
244
+ error_message?: string | undefined;
245
+ };
246
+ SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
247
+ grade: "error" | "pass" | "fail" | "skip";
248
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
249
+ error_message?: string | undefined;
250
+ };
251
+ SIMPLE_THREE_VEHICLE_EVENTS: {
252
+ grade: "error" | "pass" | "fail" | "skip";
253
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
254
+ stop_ids_first: string[] | null;
255
+ stop_ids_last: string[] | null;
256
+ stop_ids_middle: string[] | null;
257
+ error_message?: string | undefined;
258
+ };
259
+ TRANSACTION_SEQUENTIALITY: {
260
+ grade: "error" | "pass" | "fail" | "skip";
261
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
262
+ expected_qty: number | null;
263
+ found_qty: number | null;
264
+ missing_qty: number | null;
265
+ error_message?: string | undefined;
266
+ };
267
+ } | null;
268
+ trip_id: string;
269
+ apex_locations_qty: number | null;
270
+ apex_on_board_refunds_amount: number | null;
271
+ apex_on_board_refunds_qty: number | null;
272
+ apex_on_board_sales_amount: number | null;
273
+ apex_on_board_sales_qty: number | null;
274
+ apex_validations_qty: number | null;
275
+ driver_ids: string[];
276
+ end_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
277
+ end_time_scheduled: number & {
278
+ __brand: "UnixTimestamp";
279
+ };
280
+ extension_observed: number | null;
281
+ extension_scheduled: number;
282
+ hashed_shape_id: string;
283
+ hashed_trip_id: string;
284
+ headsign: string;
285
+ operational_date: string & {
286
+ __brand: "OperationalDate";
287
+ } & z.BRAND<"OperationalDate">;
288
+ passengers_estimated: number | null;
289
+ passengers_observed: number | null;
290
+ passengers_observed_on_board_sales_amount: number | null;
291
+ passengers_observed_on_board_sales_qty: number | null;
292
+ passengers_observed_prepaid_amount: number | null;
293
+ passengers_observed_prepaid_qty: number | null;
294
+ passengers_observed_subscription_qty: number | null;
295
+ pattern_id: string;
296
+ plan_id: string;
297
+ route_id: string;
298
+ seen_first_at: import("@tmlmobilidade/types").UnixTimestamp | null;
299
+ seen_last_at: import("@tmlmobilidade/types").UnixTimestamp | null;
300
+ start_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
301
+ start_time_scheduled: number & {
302
+ __brand: "UnixTimestamp";
303
+ };
304
+ system_status: "waiting" | "processing" | "complete" | "error";
305
+ vehicle_ids: number[];
306
+ created_by?: string | undefined;
307
+ updated_by?: string | undefined;
308
+ }>[]>;
25
309
  /**
26
310
  * Finds ride documents by Pattern ID.
27
311
  *
28
312
  * @param patternId - The Pattern ID to search for
29
313
  * @returns A promise that resolves to an array of matching ride documents
30
314
  */
31
- findByPatternId(patternId: string): Promise<import("mongodb").WithId<Ride>[]>;
315
+ findByPatternId(patternId: string): Promise<import("mongodb").WithId<{
316
+ _id: string;
317
+ created_at: number & {
318
+ __brand: "UnixTimestamp";
319
+ };
320
+ updated_at: number & {
321
+ __brand: "UnixTimestamp";
322
+ };
323
+ agency_id: string;
324
+ line_id: number;
325
+ analysis: {
326
+ EXPECTED_DRIVER_ID_QTY: {
327
+ value: number | null;
328
+ grade: "error" | "pass" | "fail" | "skip";
329
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
330
+ error_message?: string | undefined;
331
+ };
332
+ EXPECTED_VEHICLE_ID_QTY: {
333
+ value: number | null;
334
+ grade: "error" | "pass" | "fail" | "skip";
335
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
336
+ error_message?: string | undefined;
337
+ };
338
+ EXPECTED_VEHICLE_EVENT_INTERVAL: {
339
+ value: number | null;
340
+ grade: "error" | "pass" | "fail" | "skip";
341
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
342
+ error_message?: string | undefined;
343
+ };
344
+ ENDED_AT_LAST_STOP: {
345
+ grade: "error" | "pass" | "fail" | "skip";
346
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
347
+ error_message?: string | undefined;
348
+ };
349
+ EXPECTED_VEHICLE_EVENT_QTY: {
350
+ grade: "error" | "pass" | "fail" | "skip";
351
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
352
+ expected_qty: number | null;
353
+ found_qty: number | null;
354
+ error_message?: string | undefined;
355
+ };
356
+ MATCHING_APEX_LOCATIONS: {
357
+ grade: "error" | "pass" | "fail" | "skip";
358
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
359
+ error_message?: string | undefined;
360
+ };
361
+ MATCHING_VEHICLE_IDS: {
362
+ grade: "error" | "pass" | "fail" | "skip";
363
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
364
+ error_message?: string | undefined;
365
+ };
366
+ AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
367
+ value: number | null;
368
+ grade: "error" | "pass" | "fail" | "skip";
369
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
370
+ error_message?: string | undefined;
371
+ };
372
+ EXPECTED_APEX_VALIDATION_INTERVAL: {
373
+ grade: "error" | "pass" | "fail" | "skip";
374
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
375
+ error_message?: string | undefined;
376
+ };
377
+ EXPECTED_START_TIME: {
378
+ value: number | null;
379
+ grade: "error" | "pass" | "fail" | "skip";
380
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
381
+ error_message?: string | undefined;
382
+ };
383
+ EXPECTED_VEHICLE_EVENT_DELAY: {
384
+ value: number | null;
385
+ grade: "error" | "pass" | "fail" | "skip";
386
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
387
+ error_message?: string | undefined;
388
+ };
389
+ SIMPLE_ONE_APEX_VALIDATION: {
390
+ value: number | null;
391
+ grade: "error" | "pass" | "fail" | "skip";
392
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
393
+ error_message?: string | undefined;
394
+ };
395
+ SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
396
+ grade: "error" | "pass" | "fail" | "skip";
397
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
398
+ error_message?: string | undefined;
399
+ };
400
+ SIMPLE_THREE_VEHICLE_EVENTS: {
401
+ grade: "error" | "pass" | "fail" | "skip";
402
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
403
+ stop_ids_first: string[] | null;
404
+ stop_ids_last: string[] | null;
405
+ stop_ids_middle: string[] | null;
406
+ error_message?: string | undefined;
407
+ };
408
+ TRANSACTION_SEQUENTIALITY: {
409
+ grade: "error" | "pass" | "fail" | "skip";
410
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
411
+ expected_qty: number | null;
412
+ found_qty: number | null;
413
+ missing_qty: number | null;
414
+ error_message?: string | undefined;
415
+ };
416
+ } | null;
417
+ trip_id: string;
418
+ apex_locations_qty: number | null;
419
+ apex_on_board_refunds_amount: number | null;
420
+ apex_on_board_refunds_qty: number | null;
421
+ apex_on_board_sales_amount: number | null;
422
+ apex_on_board_sales_qty: number | null;
423
+ apex_validations_qty: number | null;
424
+ driver_ids: string[];
425
+ end_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
426
+ end_time_scheduled: number & {
427
+ __brand: "UnixTimestamp";
428
+ };
429
+ extension_observed: number | null;
430
+ extension_scheduled: number;
431
+ hashed_shape_id: string;
432
+ hashed_trip_id: string;
433
+ headsign: string;
434
+ operational_date: string & {
435
+ __brand: "OperationalDate";
436
+ } & z.BRAND<"OperationalDate">;
437
+ passengers_estimated: number | null;
438
+ passengers_observed: number | null;
439
+ passengers_observed_on_board_sales_amount: number | null;
440
+ passengers_observed_on_board_sales_qty: number | null;
441
+ passengers_observed_prepaid_amount: number | null;
442
+ passengers_observed_prepaid_qty: number | null;
443
+ passengers_observed_subscription_qty: number | null;
444
+ pattern_id: string;
445
+ plan_id: string;
446
+ route_id: string;
447
+ seen_first_at: import("@tmlmobilidade/types").UnixTimestamp | null;
448
+ seen_last_at: import("@tmlmobilidade/types").UnixTimestamp | null;
449
+ start_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
450
+ start_time_scheduled: number & {
451
+ __brand: "UnixTimestamp";
452
+ };
453
+ system_status: "waiting" | "processing" | "complete" | "error";
454
+ vehicle_ids: number[];
455
+ created_by?: string | undefined;
456
+ updated_by?: string | undefined;
457
+ }>[]>;
32
458
  /**
33
459
  * Finds ride documents by Plan ID.
34
460
  *
35
461
  * @param planId - The Plan ID to search for
36
462
  * @returns A promise that resolves to an array of matching ride documents
37
463
  */
38
- findByPlanId(planId: string): Promise<import("mongodb").WithId<Ride>[]>;
464
+ findByPlanId(planId: string): Promise<import("mongodb").WithId<{
465
+ _id: string;
466
+ created_at: number & {
467
+ __brand: "UnixTimestamp";
468
+ };
469
+ updated_at: number & {
470
+ __brand: "UnixTimestamp";
471
+ };
472
+ agency_id: string;
473
+ line_id: number;
474
+ analysis: {
475
+ EXPECTED_DRIVER_ID_QTY: {
476
+ value: number | null;
477
+ grade: "error" | "pass" | "fail" | "skip";
478
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
479
+ error_message?: string | undefined;
480
+ };
481
+ EXPECTED_VEHICLE_ID_QTY: {
482
+ value: number | null;
483
+ grade: "error" | "pass" | "fail" | "skip";
484
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
485
+ error_message?: string | undefined;
486
+ };
487
+ EXPECTED_VEHICLE_EVENT_INTERVAL: {
488
+ value: number | null;
489
+ grade: "error" | "pass" | "fail" | "skip";
490
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
491
+ error_message?: string | undefined;
492
+ };
493
+ ENDED_AT_LAST_STOP: {
494
+ grade: "error" | "pass" | "fail" | "skip";
495
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
496
+ error_message?: string | undefined;
497
+ };
498
+ EXPECTED_VEHICLE_EVENT_QTY: {
499
+ grade: "error" | "pass" | "fail" | "skip";
500
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
501
+ expected_qty: number | null;
502
+ found_qty: number | null;
503
+ error_message?: string | undefined;
504
+ };
505
+ MATCHING_APEX_LOCATIONS: {
506
+ grade: "error" | "pass" | "fail" | "skip";
507
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
508
+ error_message?: string | undefined;
509
+ };
510
+ MATCHING_VEHICLE_IDS: {
511
+ grade: "error" | "pass" | "fail" | "skip";
512
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
513
+ error_message?: string | undefined;
514
+ };
515
+ AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
516
+ value: number | null;
517
+ grade: "error" | "pass" | "fail" | "skip";
518
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
519
+ error_message?: string | undefined;
520
+ };
521
+ EXPECTED_APEX_VALIDATION_INTERVAL: {
522
+ grade: "error" | "pass" | "fail" | "skip";
523
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
524
+ error_message?: string | undefined;
525
+ };
526
+ EXPECTED_START_TIME: {
527
+ value: number | null;
528
+ grade: "error" | "pass" | "fail" | "skip";
529
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
530
+ error_message?: string | undefined;
531
+ };
532
+ EXPECTED_VEHICLE_EVENT_DELAY: {
533
+ value: number | null;
534
+ grade: "error" | "pass" | "fail" | "skip";
535
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
536
+ error_message?: string | undefined;
537
+ };
538
+ SIMPLE_ONE_APEX_VALIDATION: {
539
+ value: number | null;
540
+ grade: "error" | "pass" | "fail" | "skip";
541
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
542
+ error_message?: string | undefined;
543
+ };
544
+ SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
545
+ grade: "error" | "pass" | "fail" | "skip";
546
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
547
+ error_message?: string | undefined;
548
+ };
549
+ SIMPLE_THREE_VEHICLE_EVENTS: {
550
+ grade: "error" | "pass" | "fail" | "skip";
551
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
552
+ stop_ids_first: string[] | null;
553
+ stop_ids_last: string[] | null;
554
+ stop_ids_middle: string[] | null;
555
+ error_message?: string | undefined;
556
+ };
557
+ TRANSACTION_SEQUENTIALITY: {
558
+ grade: "error" | "pass" | "fail" | "skip";
559
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
560
+ expected_qty: number | null;
561
+ found_qty: number | null;
562
+ missing_qty: number | null;
563
+ error_message?: string | undefined;
564
+ };
565
+ } | null;
566
+ trip_id: string;
567
+ apex_locations_qty: number | null;
568
+ apex_on_board_refunds_amount: number | null;
569
+ apex_on_board_refunds_qty: number | null;
570
+ apex_on_board_sales_amount: number | null;
571
+ apex_on_board_sales_qty: number | null;
572
+ apex_validations_qty: number | null;
573
+ driver_ids: string[];
574
+ end_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
575
+ end_time_scheduled: number & {
576
+ __brand: "UnixTimestamp";
577
+ };
578
+ extension_observed: number | null;
579
+ extension_scheduled: number;
580
+ hashed_shape_id: string;
581
+ hashed_trip_id: string;
582
+ headsign: string;
583
+ operational_date: string & {
584
+ __brand: "OperationalDate";
585
+ } & z.BRAND<"OperationalDate">;
586
+ passengers_estimated: number | null;
587
+ passengers_observed: number | null;
588
+ passengers_observed_on_board_sales_amount: number | null;
589
+ passengers_observed_on_board_sales_qty: number | null;
590
+ passengers_observed_prepaid_amount: number | null;
591
+ passengers_observed_prepaid_qty: number | null;
592
+ passengers_observed_subscription_qty: number | null;
593
+ pattern_id: string;
594
+ plan_id: string;
595
+ route_id: string;
596
+ seen_first_at: import("@tmlmobilidade/types").UnixTimestamp | null;
597
+ seen_last_at: import("@tmlmobilidade/types").UnixTimestamp | null;
598
+ start_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
599
+ start_time_scheduled: number & {
600
+ __brand: "UnixTimestamp";
601
+ };
602
+ system_status: "waiting" | "processing" | "complete" | "error";
603
+ vehicle_ids: number[];
604
+ created_by?: string | undefined;
605
+ updated_by?: string | undefined;
606
+ }>[]>;
39
607
  /**
40
608
  * Finds ride documents by Route ID.
41
609
  *
42
610
  * @param routeId - The Route ID to search for
43
611
  * @returns A promise that resolves to an array of matching ride documents
44
612
  */
45
- findByRouteId(routeId: string): Promise<import("mongodb").WithId<Ride>[]>;
613
+ findByRouteId(routeId: string): Promise<import("mongodb").WithId<{
614
+ _id: string;
615
+ created_at: number & {
616
+ __brand: "UnixTimestamp";
617
+ };
618
+ updated_at: number & {
619
+ __brand: "UnixTimestamp";
620
+ };
621
+ agency_id: string;
622
+ line_id: number;
623
+ analysis: {
624
+ EXPECTED_DRIVER_ID_QTY: {
625
+ value: number | null;
626
+ grade: "error" | "pass" | "fail" | "skip";
627
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
628
+ error_message?: string | undefined;
629
+ };
630
+ EXPECTED_VEHICLE_ID_QTY: {
631
+ value: number | null;
632
+ grade: "error" | "pass" | "fail" | "skip";
633
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
634
+ error_message?: string | undefined;
635
+ };
636
+ EXPECTED_VEHICLE_EVENT_INTERVAL: {
637
+ value: number | null;
638
+ grade: "error" | "pass" | "fail" | "skip";
639
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
640
+ error_message?: string | undefined;
641
+ };
642
+ ENDED_AT_LAST_STOP: {
643
+ grade: "error" | "pass" | "fail" | "skip";
644
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
645
+ error_message?: string | undefined;
646
+ };
647
+ EXPECTED_VEHICLE_EVENT_QTY: {
648
+ grade: "error" | "pass" | "fail" | "skip";
649
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
650
+ expected_qty: number | null;
651
+ found_qty: number | null;
652
+ error_message?: string | undefined;
653
+ };
654
+ MATCHING_APEX_LOCATIONS: {
655
+ grade: "error" | "pass" | "fail" | "skip";
656
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
657
+ error_message?: string | undefined;
658
+ };
659
+ MATCHING_VEHICLE_IDS: {
660
+ grade: "error" | "pass" | "fail" | "skip";
661
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
662
+ error_message?: string | undefined;
663
+ };
664
+ AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
665
+ value: number | null;
666
+ grade: "error" | "pass" | "fail" | "skip";
667
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
668
+ error_message?: string | undefined;
669
+ };
670
+ EXPECTED_APEX_VALIDATION_INTERVAL: {
671
+ grade: "error" | "pass" | "fail" | "skip";
672
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
673
+ error_message?: string | undefined;
674
+ };
675
+ EXPECTED_START_TIME: {
676
+ value: number | null;
677
+ grade: "error" | "pass" | "fail" | "skip";
678
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
679
+ error_message?: string | undefined;
680
+ };
681
+ EXPECTED_VEHICLE_EVENT_DELAY: {
682
+ value: number | null;
683
+ grade: "error" | "pass" | "fail" | "skip";
684
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
685
+ error_message?: string | undefined;
686
+ };
687
+ SIMPLE_ONE_APEX_VALIDATION: {
688
+ value: number | null;
689
+ grade: "error" | "pass" | "fail" | "skip";
690
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
691
+ error_message?: string | undefined;
692
+ };
693
+ SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
694
+ grade: "error" | "pass" | "fail" | "skip";
695
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
696
+ error_message?: string | undefined;
697
+ };
698
+ SIMPLE_THREE_VEHICLE_EVENTS: {
699
+ grade: "error" | "pass" | "fail" | "skip";
700
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
701
+ stop_ids_first: string[] | null;
702
+ stop_ids_last: string[] | null;
703
+ stop_ids_middle: string[] | null;
704
+ error_message?: string | undefined;
705
+ };
706
+ TRANSACTION_SEQUENTIALITY: {
707
+ grade: "error" | "pass" | "fail" | "skip";
708
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
709
+ expected_qty: number | null;
710
+ found_qty: number | null;
711
+ missing_qty: number | null;
712
+ error_message?: string | undefined;
713
+ };
714
+ } | null;
715
+ trip_id: string;
716
+ apex_locations_qty: number | null;
717
+ apex_on_board_refunds_amount: number | null;
718
+ apex_on_board_refunds_qty: number | null;
719
+ apex_on_board_sales_amount: number | null;
720
+ apex_on_board_sales_qty: number | null;
721
+ apex_validations_qty: number | null;
722
+ driver_ids: string[];
723
+ end_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
724
+ end_time_scheduled: number & {
725
+ __brand: "UnixTimestamp";
726
+ };
727
+ extension_observed: number | null;
728
+ extension_scheduled: number;
729
+ hashed_shape_id: string;
730
+ hashed_trip_id: string;
731
+ headsign: string;
732
+ operational_date: string & {
733
+ __brand: "OperationalDate";
734
+ } & z.BRAND<"OperationalDate">;
735
+ passengers_estimated: number | null;
736
+ passengers_observed: number | null;
737
+ passengers_observed_on_board_sales_amount: number | null;
738
+ passengers_observed_on_board_sales_qty: number | null;
739
+ passengers_observed_prepaid_amount: number | null;
740
+ passengers_observed_prepaid_qty: number | null;
741
+ passengers_observed_subscription_qty: number | null;
742
+ pattern_id: string;
743
+ plan_id: string;
744
+ route_id: string;
745
+ seen_first_at: import("@tmlmobilidade/types").UnixTimestamp | null;
746
+ seen_last_at: import("@tmlmobilidade/types").UnixTimestamp | null;
747
+ start_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
748
+ start_time_scheduled: number & {
749
+ __brand: "UnixTimestamp";
750
+ };
751
+ system_status: "waiting" | "processing" | "complete" | "error";
752
+ vehicle_ids: number[];
753
+ created_by?: string | undefined;
754
+ updated_by?: string | undefined;
755
+ }>[]>;
46
756
  /**
47
757
  * Finds ride documents by Trip ID.
48
758
  *
49
759
  * @param tripId - The Trip ID to search for
50
760
  * @returns A promise that resolves to an array of matching ride documents
51
761
  */
52
- findByTripId(tripId: string): Promise<import("mongodb").WithId<Ride>[]>;
762
+ findByTripId(tripId: string): Promise<import("mongodb").WithId<{
763
+ _id: string;
764
+ created_at: number & {
765
+ __brand: "UnixTimestamp";
766
+ };
767
+ updated_at: number & {
768
+ __brand: "UnixTimestamp";
769
+ };
770
+ agency_id: string;
771
+ line_id: number;
772
+ analysis: {
773
+ EXPECTED_DRIVER_ID_QTY: {
774
+ value: number | null;
775
+ grade: "error" | "pass" | "fail" | "skip";
776
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
777
+ error_message?: string | undefined;
778
+ };
779
+ EXPECTED_VEHICLE_ID_QTY: {
780
+ value: number | null;
781
+ grade: "error" | "pass" | "fail" | "skip";
782
+ reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
783
+ error_message?: string | undefined;
784
+ };
785
+ EXPECTED_VEHICLE_EVENT_INTERVAL: {
786
+ value: number | null;
787
+ grade: "error" | "pass" | "fail" | "skip";
788
+ reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
789
+ error_message?: string | undefined;
790
+ };
791
+ ENDED_AT_LAST_STOP: {
792
+ grade: "error" | "pass" | "fail" | "skip";
793
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
794
+ error_message?: string | undefined;
795
+ };
796
+ EXPECTED_VEHICLE_EVENT_QTY: {
797
+ grade: "error" | "pass" | "fail" | "skip";
798
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
799
+ expected_qty: number | null;
800
+ found_qty: number | null;
801
+ error_message?: string | undefined;
802
+ };
803
+ MATCHING_APEX_LOCATIONS: {
804
+ grade: "error" | "pass" | "fail" | "skip";
805
+ reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
806
+ error_message?: string | undefined;
807
+ };
808
+ MATCHING_VEHICLE_IDS: {
809
+ grade: "error" | "pass" | "fail" | "skip";
810
+ reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
811
+ error_message?: string | undefined;
812
+ };
813
+ AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
814
+ value: number | null;
815
+ grade: "error" | "pass" | "fail" | "skip";
816
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
817
+ error_message?: string | undefined;
818
+ };
819
+ EXPECTED_APEX_VALIDATION_INTERVAL: {
820
+ grade: "error" | "pass" | "fail" | "skip";
821
+ reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
822
+ error_message?: string | undefined;
823
+ };
824
+ EXPECTED_START_TIME: {
825
+ value: number | null;
826
+ grade: "error" | "pass" | "fail" | "skip";
827
+ reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
828
+ error_message?: string | undefined;
829
+ };
830
+ EXPECTED_VEHICLE_EVENT_DELAY: {
831
+ value: number | null;
832
+ grade: "error" | "pass" | "fail" | "skip";
833
+ reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
834
+ error_message?: string | undefined;
835
+ };
836
+ SIMPLE_ONE_APEX_VALIDATION: {
837
+ value: number | null;
838
+ grade: "error" | "pass" | "fail" | "skip";
839
+ reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
840
+ error_message?: string | undefined;
841
+ };
842
+ SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
843
+ grade: "error" | "pass" | "fail" | "skip";
844
+ reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
845
+ error_message?: string | undefined;
846
+ };
847
+ SIMPLE_THREE_VEHICLE_EVENTS: {
848
+ grade: "error" | "pass" | "fail" | "skip";
849
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
850
+ stop_ids_first: string[] | null;
851
+ stop_ids_last: string[] | null;
852
+ stop_ids_middle: string[] | null;
853
+ error_message?: string | undefined;
854
+ };
855
+ TRANSACTION_SEQUENTIALITY: {
856
+ grade: "error" | "pass" | "fail" | "skip";
857
+ reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
858
+ expected_qty: number | null;
859
+ found_qty: number | null;
860
+ missing_qty: number | null;
861
+ error_message?: string | undefined;
862
+ };
863
+ } | null;
864
+ trip_id: string;
865
+ apex_locations_qty: number | null;
866
+ apex_on_board_refunds_amount: number | null;
867
+ apex_on_board_refunds_qty: number | null;
868
+ apex_on_board_sales_amount: number | null;
869
+ apex_on_board_sales_qty: number | null;
870
+ apex_validations_qty: number | null;
871
+ driver_ids: string[];
872
+ end_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
873
+ end_time_scheduled: number & {
874
+ __brand: "UnixTimestamp";
875
+ };
876
+ extension_observed: number | null;
877
+ extension_scheduled: number;
878
+ hashed_shape_id: string;
879
+ hashed_trip_id: string;
880
+ headsign: string;
881
+ operational_date: string & {
882
+ __brand: "OperationalDate";
883
+ } & z.BRAND<"OperationalDate">;
884
+ passengers_estimated: number | null;
885
+ passengers_observed: number | null;
886
+ passengers_observed_on_board_sales_amount: number | null;
887
+ passengers_observed_on_board_sales_qty: number | null;
888
+ passengers_observed_prepaid_amount: number | null;
889
+ passengers_observed_prepaid_qty: number | null;
890
+ passengers_observed_subscription_qty: number | null;
891
+ pattern_id: string;
892
+ plan_id: string;
893
+ route_id: string;
894
+ seen_first_at: import("@tmlmobilidade/types").UnixTimestamp | null;
895
+ seen_last_at: import("@tmlmobilidade/types").UnixTimestamp | null;
896
+ start_time_observed: import("@tmlmobilidade/types").UnixTimestamp | null;
897
+ start_time_scheduled: number & {
898
+ __brand: "UnixTimestamp";
899
+ };
900
+ system_status: "waiting" | "processing" | "complete" | "error";
901
+ vehicle_ids: number[];
902
+ created_by?: string | undefined;
903
+ updated_by?: string | undefined;
904
+ }>[]>;
53
905
  protected getCollectionIndexes(): IndexDescription[];
54
906
  protected getCollectionName(): string;
55
907
  protected getEnvName(): string;