@tmlmobilidade/interfaces 20260720.2249.10 → 20260723.1350.16

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