@tmlmobilidade/types 20250830.121.54 → 20250830.138.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/rides/ride.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
9
9
|
agency_id: z.ZodString;
|
|
10
10
|
analysis: z.ZodNullable<z.ZodObject<{
|
|
11
11
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodObject<{
|
|
12
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
12
13
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
13
14
|
} & {
|
|
14
15
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_FIRST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP"]>;
|
|
@@ -17,12 +18,15 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
17
18
|
value: number | null;
|
|
18
19
|
grade: "error" | "pass" | "fail" | "skip";
|
|
19
20
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
21
|
+
error_message?: string | undefined;
|
|
20
22
|
}, {
|
|
21
23
|
value: number | null;
|
|
22
24
|
grade: "error" | "pass" | "fail" | "skip";
|
|
23
25
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
26
|
+
error_message?: string | undefined;
|
|
24
27
|
}>;
|
|
25
28
|
AVG_INTERVAL_VEHICLE_EVENTS: z.ZodObject<{
|
|
29
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
26
30
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
27
31
|
} & {
|
|
28
32
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "AVG_INTERVAL_OUTSIDE_LIMIT", "AVG_INTERVAL_WITHIN_LIMIT"]>;
|
|
@@ -31,23 +35,29 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
31
35
|
value: number | null;
|
|
32
36
|
grade: "error" | "pass" | "fail" | "skip";
|
|
33
37
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
38
|
+
error_message?: string | undefined;
|
|
34
39
|
}, {
|
|
35
40
|
value: number | null;
|
|
36
41
|
grade: "error" | "pass" | "fail" | "skip";
|
|
37
42
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
43
|
+
error_message?: string | undefined;
|
|
38
44
|
}>;
|
|
39
45
|
ENDED_AT_LAST_STOP: z.ZodObject<{
|
|
46
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
40
47
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
41
48
|
} & {
|
|
42
49
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
|
|
43
50
|
}, "strict", z.ZodTypeAny, {
|
|
44
51
|
grade: "error" | "pass" | "fail" | "skip";
|
|
45
52
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
53
|
+
error_message?: string | undefined;
|
|
46
54
|
}, {
|
|
47
55
|
grade: "error" | "pass" | "fail" | "skip";
|
|
48
56
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
57
|
+
error_message?: string | undefined;
|
|
49
58
|
}>;
|
|
50
59
|
EXPECTED_APEX_VALIDATION_INTERVAL: z.ZodObject<{
|
|
60
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
51
61
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
52
62
|
} & {
|
|
53
63
|
reason: z.ZodEnum<["NO_VALIDATIONS_FOUND", "UNEXPECTED_VALIDATION_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
|
|
@@ -56,26 +66,32 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
56
66
|
value: number | null;
|
|
57
67
|
grade: "error" | "pass" | "fail" | "skip";
|
|
58
68
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
69
|
+
error_message?: string | undefined;
|
|
59
70
|
}, {
|
|
60
71
|
value: number | null;
|
|
61
72
|
grade: "error" | "pass" | "fail" | "skip";
|
|
62
73
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
74
|
+
error_message?: string | undefined;
|
|
63
75
|
}>;
|
|
64
|
-
|
|
76
|
+
EXPECTED_DRIVER_ID_QTY: z.ZodObject<{
|
|
77
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
65
78
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
66
79
|
} & {
|
|
67
|
-
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "
|
|
80
|
+
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_DRIVER_ID_QTY", "EXPECTED_DRIVER_ID_QTY"]>;
|
|
68
81
|
value: z.ZodNullable<z.ZodNumber>;
|
|
69
82
|
}, "strict", z.ZodTypeAny, {
|
|
70
83
|
value: number | null;
|
|
71
84
|
grade: "error" | "pass" | "fail" | "skip";
|
|
72
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
85
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
86
|
+
error_message?: string | undefined;
|
|
73
87
|
}, {
|
|
74
88
|
value: number | null;
|
|
75
89
|
grade: "error" | "pass" | "fail" | "skip";
|
|
76
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
90
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
91
|
+
error_message?: string | undefined;
|
|
77
92
|
}>;
|
|
78
93
|
EXPECTED_START_TIME: z.ZodObject<{
|
|
94
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
79
95
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
80
96
|
} & {
|
|
81
97
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "UNKNOWN_START", "EARLY_START", "LATE_START", "START_ON_TIME"]>;
|
|
@@ -84,12 +100,15 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
84
100
|
value: number | null;
|
|
85
101
|
grade: "error" | "pass" | "fail" | "skip";
|
|
86
102
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
103
|
+
error_message?: string | undefined;
|
|
87
104
|
}, {
|
|
88
105
|
value: number | null;
|
|
89
106
|
grade: "error" | "pass" | "fail" | "skip";
|
|
90
107
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
108
|
+
error_message?: string | undefined;
|
|
91
109
|
}>;
|
|
92
110
|
EXPECTED_VEHICLE_EVENT_DELAY: z.ZodObject<{
|
|
111
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
93
112
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
94
113
|
} & {
|
|
95
114
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_VEHICLE_EVENTS_DELAY", "EXPECTED_VEHICLE_EVENTS_DELAY"]>;
|
|
@@ -98,12 +117,15 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
98
117
|
value: number | null;
|
|
99
118
|
grade: "error" | "pass" | "fail" | "skip";
|
|
100
119
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
120
|
+
error_message?: string | undefined;
|
|
101
121
|
}, {
|
|
102
122
|
value: number | null;
|
|
103
123
|
grade: "error" | "pass" | "fail" | "skip";
|
|
104
124
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
125
|
+
error_message?: string | undefined;
|
|
105
126
|
}>;
|
|
106
127
|
EXPECTED_VEHICLE_EVENTS_QTY: z.ZodObject<{
|
|
128
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
107
129
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
108
130
|
} & {
|
|
109
131
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENTS_QTY", "UNEXPECTED_VEHICLE_EVENTS_QTY"]>;
|
|
@@ -112,48 +134,60 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
112
134
|
value: number | null;
|
|
113
135
|
grade: "error" | "pass" | "fail" | "skip";
|
|
114
136
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
137
|
+
error_message?: string | undefined;
|
|
115
138
|
}, {
|
|
116
139
|
value: number | null;
|
|
117
140
|
grade: "error" | "pass" | "fail" | "skip";
|
|
118
141
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
142
|
+
error_message?: string | undefined;
|
|
119
143
|
}>;
|
|
120
|
-
|
|
144
|
+
EXPECTED_VEHICLE_ID_QTY: z.ZodObject<{
|
|
145
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
121
146
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
122
147
|
} & {
|
|
123
|
-
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "
|
|
148
|
+
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "UNEXPECTED_VEHICLE_ID_QTY", "EXPECTED_VEHICLE_ID_QTY"]>;
|
|
124
149
|
value: z.ZodNullable<z.ZodNumber>;
|
|
125
150
|
}, "strict", z.ZodTypeAny, {
|
|
126
151
|
value: number | null;
|
|
127
152
|
grade: "error" | "pass" | "fail" | "skip";
|
|
128
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
153
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
154
|
+
error_message?: string | undefined;
|
|
129
155
|
}, {
|
|
130
156
|
value: number | null;
|
|
131
157
|
grade: "error" | "pass" | "fail" | "skip";
|
|
132
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
158
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
159
|
+
error_message?: string | undefined;
|
|
133
160
|
}>;
|
|
134
161
|
MATCHING_APEX_LOCATIONS: z.ZodObject<{
|
|
162
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
135
163
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
136
164
|
} & {
|
|
137
165
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
|
|
138
166
|
}, "strict", z.ZodTypeAny, {
|
|
139
167
|
grade: "error" | "pass" | "fail" | "skip";
|
|
140
168
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
169
|
+
error_message?: string | undefined;
|
|
141
170
|
}, {
|
|
142
171
|
grade: "error" | "pass" | "fail" | "skip";
|
|
143
172
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
173
|
+
error_message?: string | undefined;
|
|
144
174
|
}>;
|
|
145
175
|
MATCHING_VEHICLE_IDS: z.ZodObject<{
|
|
176
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
146
177
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
147
178
|
} & {
|
|
148
179
|
reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS_FOUND", "NO_APEX_TRANSACTIONS_FOUND"]>;
|
|
149
180
|
}, "strict", z.ZodTypeAny, {
|
|
150
181
|
grade: "error" | "pass" | "fail" | "skip";
|
|
151
182
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
183
|
+
error_message?: string | undefined;
|
|
152
184
|
}, {
|
|
153
185
|
grade: "error" | "pass" | "fail" | "skip";
|
|
154
186
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
187
|
+
error_message?: string | undefined;
|
|
155
188
|
}>;
|
|
156
189
|
SIMPLE_ONE_APEX_VALIDATION: z.ZodObject<{
|
|
190
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
157
191
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
158
192
|
} & {
|
|
159
193
|
reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "ONE_OR_MORE_APEX_VALIDATIONS"]>;
|
|
@@ -162,23 +196,29 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
162
196
|
value: number | null;
|
|
163
197
|
grade: "error" | "pass" | "fail" | "skip";
|
|
164
198
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
199
|
+
error_message?: string | undefined;
|
|
165
200
|
}, {
|
|
166
201
|
value: number | null;
|
|
167
202
|
grade: "error" | "pass" | "fail" | "skip";
|
|
168
203
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
204
|
+
error_message?: string | undefined;
|
|
169
205
|
}>;
|
|
170
206
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: z.ZodObject<{
|
|
207
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
171
208
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
172
209
|
} & {
|
|
173
210
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
|
|
174
211
|
}, "strict", z.ZodTypeAny, {
|
|
175
212
|
grade: "error" | "pass" | "fail" | "skip";
|
|
176
213
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
214
|
+
error_message?: string | undefined;
|
|
177
215
|
}, {
|
|
178
216
|
grade: "error" | "pass" | "fail" | "skip";
|
|
179
217
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
218
|
+
error_message?: string | undefined;
|
|
180
219
|
}>;
|
|
181
220
|
SIMPLE_THREE_VEHICLE_EVENTS: z.ZodObject<{
|
|
221
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
182
222
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
183
223
|
} & {
|
|
184
224
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "MISSING_FIRST_STOPS", "MISSING_MIDDLE_STOPS", "MISSING_LAST_STOPS", "ALL_STOPS_FOUND"]>;
|
|
@@ -191,85 +231,103 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
191
231
|
stop_ids_first: string[] | null;
|
|
192
232
|
stop_ids_last: string[] | null;
|
|
193
233
|
stop_ids_middle: string[] | null;
|
|
234
|
+
error_message?: string | undefined;
|
|
194
235
|
}, {
|
|
195
236
|
grade: "error" | "pass" | "fail" | "skip";
|
|
196
237
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
197
238
|
stop_ids_first: string[] | null;
|
|
198
239
|
stop_ids_last: string[] | null;
|
|
199
240
|
stop_ids_middle: string[] | null;
|
|
241
|
+
error_message?: string | undefined;
|
|
200
242
|
}>;
|
|
201
243
|
TRANSACTION_SEQUENTIALITY: z.ZodObject<{
|
|
244
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
202
245
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
203
246
|
} & {
|
|
204
247
|
reason: z.ZodEnum<["MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
|
|
205
248
|
}, "strict", z.ZodTypeAny, {
|
|
206
249
|
grade: "error" | "pass" | "fail" | "skip";
|
|
207
250
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
251
|
+
error_message?: string | undefined;
|
|
208
252
|
}, {
|
|
209
253
|
grade: "error" | "pass" | "fail" | "skip";
|
|
210
254
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
255
|
+
error_message?: string | undefined;
|
|
211
256
|
}>;
|
|
212
257
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
|
|
258
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
214
259
|
value: number | null;
|
|
215
260
|
grade: "error" | "pass" | "fail" | "skip";
|
|
216
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
261
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
262
|
+
error_message?: string | undefined;
|
|
217
263
|
};
|
|
218
|
-
|
|
264
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
219
265
|
value: number | null;
|
|
220
266
|
grade: "error" | "pass" | "fail" | "skip";
|
|
221
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
267
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
268
|
+
error_message?: string | undefined;
|
|
222
269
|
};
|
|
223
270
|
ENDED_AT_LAST_STOP: {
|
|
224
271
|
grade: "error" | "pass" | "fail" | "skip";
|
|
225
272
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
273
|
+
error_message?: string | undefined;
|
|
226
274
|
};
|
|
227
275
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
228
276
|
value: number | null;
|
|
229
277
|
grade: "error" | "pass" | "fail" | "skip";
|
|
230
278
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
279
|
+
error_message?: string | undefined;
|
|
231
280
|
};
|
|
232
281
|
MATCHING_APEX_LOCATIONS: {
|
|
233
282
|
grade: "error" | "pass" | "fail" | "skip";
|
|
234
283
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
284
|
+
error_message?: string | undefined;
|
|
235
285
|
};
|
|
236
286
|
MATCHING_VEHICLE_IDS: {
|
|
237
287
|
grade: "error" | "pass" | "fail" | "skip";
|
|
238
288
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
289
|
+
error_message?: string | undefined;
|
|
239
290
|
};
|
|
240
291
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
241
292
|
value: number | null;
|
|
242
293
|
grade: "error" | "pass" | "fail" | "skip";
|
|
243
294
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
295
|
+
error_message?: string | undefined;
|
|
244
296
|
};
|
|
245
297
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
246
298
|
value: number | null;
|
|
247
299
|
grade: "error" | "pass" | "fail" | "skip";
|
|
248
300
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
301
|
+
error_message?: string | undefined;
|
|
249
302
|
};
|
|
250
303
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
251
304
|
value: number | null;
|
|
252
305
|
grade: "error" | "pass" | "fail" | "skip";
|
|
253
306
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
307
|
+
error_message?: string | undefined;
|
|
254
308
|
};
|
|
255
309
|
EXPECTED_START_TIME: {
|
|
256
310
|
value: number | null;
|
|
257
311
|
grade: "error" | "pass" | "fail" | "skip";
|
|
258
312
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
313
|
+
error_message?: string | undefined;
|
|
259
314
|
};
|
|
260
315
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
261
316
|
value: number | null;
|
|
262
317
|
grade: "error" | "pass" | "fail" | "skip";
|
|
263
318
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
319
|
+
error_message?: string | undefined;
|
|
264
320
|
};
|
|
265
321
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
266
322
|
value: number | null;
|
|
267
323
|
grade: "error" | "pass" | "fail" | "skip";
|
|
268
324
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
325
|
+
error_message?: string | undefined;
|
|
269
326
|
};
|
|
270
327
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
271
328
|
grade: "error" | "pass" | "fail" | "skip";
|
|
272
329
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
330
|
+
error_message?: string | undefined;
|
|
273
331
|
};
|
|
274
332
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
275
333
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -277,72 +335,87 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
277
335
|
stop_ids_first: string[] | null;
|
|
278
336
|
stop_ids_last: string[] | null;
|
|
279
337
|
stop_ids_middle: string[] | null;
|
|
338
|
+
error_message?: string | undefined;
|
|
280
339
|
};
|
|
281
340
|
TRANSACTION_SEQUENTIALITY: {
|
|
282
341
|
grade: "error" | "pass" | "fail" | "skip";
|
|
283
342
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
343
|
+
error_message?: string | undefined;
|
|
284
344
|
};
|
|
285
345
|
}, {
|
|
286
|
-
|
|
346
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
287
347
|
value: number | null;
|
|
288
348
|
grade: "error" | "pass" | "fail" | "skip";
|
|
289
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
349
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
350
|
+
error_message?: string | undefined;
|
|
290
351
|
};
|
|
291
|
-
|
|
352
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
292
353
|
value: number | null;
|
|
293
354
|
grade: "error" | "pass" | "fail" | "skip";
|
|
294
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
355
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
356
|
+
error_message?: string | undefined;
|
|
295
357
|
};
|
|
296
358
|
ENDED_AT_LAST_STOP: {
|
|
297
359
|
grade: "error" | "pass" | "fail" | "skip";
|
|
298
360
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
361
|
+
error_message?: string | undefined;
|
|
299
362
|
};
|
|
300
363
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
301
364
|
value: number | null;
|
|
302
365
|
grade: "error" | "pass" | "fail" | "skip";
|
|
303
366
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
367
|
+
error_message?: string | undefined;
|
|
304
368
|
};
|
|
305
369
|
MATCHING_APEX_LOCATIONS: {
|
|
306
370
|
grade: "error" | "pass" | "fail" | "skip";
|
|
307
371
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
372
|
+
error_message?: string | undefined;
|
|
308
373
|
};
|
|
309
374
|
MATCHING_VEHICLE_IDS: {
|
|
310
375
|
grade: "error" | "pass" | "fail" | "skip";
|
|
311
376
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
377
|
+
error_message?: string | undefined;
|
|
312
378
|
};
|
|
313
379
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
314
380
|
value: number | null;
|
|
315
381
|
grade: "error" | "pass" | "fail" | "skip";
|
|
316
382
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
383
|
+
error_message?: string | undefined;
|
|
317
384
|
};
|
|
318
385
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
319
386
|
value: number | null;
|
|
320
387
|
grade: "error" | "pass" | "fail" | "skip";
|
|
321
388
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
389
|
+
error_message?: string | undefined;
|
|
322
390
|
};
|
|
323
391
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
324
392
|
value: number | null;
|
|
325
393
|
grade: "error" | "pass" | "fail" | "skip";
|
|
326
394
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
395
|
+
error_message?: string | undefined;
|
|
327
396
|
};
|
|
328
397
|
EXPECTED_START_TIME: {
|
|
329
398
|
value: number | null;
|
|
330
399
|
grade: "error" | "pass" | "fail" | "skip";
|
|
331
400
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
401
|
+
error_message?: string | undefined;
|
|
332
402
|
};
|
|
333
403
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
334
404
|
value: number | null;
|
|
335
405
|
grade: "error" | "pass" | "fail" | "skip";
|
|
336
406
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
407
|
+
error_message?: string | undefined;
|
|
337
408
|
};
|
|
338
409
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
339
410
|
value: number | null;
|
|
340
411
|
grade: "error" | "pass" | "fail" | "skip";
|
|
341
412
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
413
|
+
error_message?: string | undefined;
|
|
342
414
|
};
|
|
343
415
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
344
416
|
grade: "error" | "pass" | "fail" | "skip";
|
|
345
417
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
418
|
+
error_message?: string | undefined;
|
|
346
419
|
};
|
|
347
420
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
348
421
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -350,10 +423,12 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
350
423
|
stop_ids_first: string[] | null;
|
|
351
424
|
stop_ids_last: string[] | null;
|
|
352
425
|
stop_ids_middle: string[] | null;
|
|
426
|
+
error_message?: string | undefined;
|
|
353
427
|
};
|
|
354
428
|
TRANSACTION_SEQUENTIALITY: {
|
|
355
429
|
grade: "error" | "pass" | "fail" | "skip";
|
|
356
430
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
431
|
+
error_message?: string | undefined;
|
|
357
432
|
};
|
|
358
433
|
}>>;
|
|
359
434
|
apex_locations_qty: z.ZodNullable<z.ZodNumber>;
|
|
@@ -394,66 +469,79 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
394
469
|
agency_id: string;
|
|
395
470
|
line_id: number;
|
|
396
471
|
analysis: {
|
|
397
|
-
|
|
472
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
398
473
|
value: number | null;
|
|
399
474
|
grade: "error" | "pass" | "fail" | "skip";
|
|
400
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
475
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
476
|
+
error_message?: string | undefined;
|
|
401
477
|
};
|
|
402
|
-
|
|
478
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
403
479
|
value: number | null;
|
|
404
480
|
grade: "error" | "pass" | "fail" | "skip";
|
|
405
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
481
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
482
|
+
error_message?: string | undefined;
|
|
406
483
|
};
|
|
407
484
|
ENDED_AT_LAST_STOP: {
|
|
408
485
|
grade: "error" | "pass" | "fail" | "skip";
|
|
409
486
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
487
|
+
error_message?: string | undefined;
|
|
410
488
|
};
|
|
411
489
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
412
490
|
value: number | null;
|
|
413
491
|
grade: "error" | "pass" | "fail" | "skip";
|
|
414
492
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
493
|
+
error_message?: string | undefined;
|
|
415
494
|
};
|
|
416
495
|
MATCHING_APEX_LOCATIONS: {
|
|
417
496
|
grade: "error" | "pass" | "fail" | "skip";
|
|
418
497
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
498
|
+
error_message?: string | undefined;
|
|
419
499
|
};
|
|
420
500
|
MATCHING_VEHICLE_IDS: {
|
|
421
501
|
grade: "error" | "pass" | "fail" | "skip";
|
|
422
502
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
503
|
+
error_message?: string | undefined;
|
|
423
504
|
};
|
|
424
505
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
425
506
|
value: number | null;
|
|
426
507
|
grade: "error" | "pass" | "fail" | "skip";
|
|
427
508
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
509
|
+
error_message?: string | undefined;
|
|
428
510
|
};
|
|
429
511
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
430
512
|
value: number | null;
|
|
431
513
|
grade: "error" | "pass" | "fail" | "skip";
|
|
432
514
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
515
|
+
error_message?: string | undefined;
|
|
433
516
|
};
|
|
434
517
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
435
518
|
value: number | null;
|
|
436
519
|
grade: "error" | "pass" | "fail" | "skip";
|
|
437
520
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
521
|
+
error_message?: string | undefined;
|
|
438
522
|
};
|
|
439
523
|
EXPECTED_START_TIME: {
|
|
440
524
|
value: number | null;
|
|
441
525
|
grade: "error" | "pass" | "fail" | "skip";
|
|
442
526
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
527
|
+
error_message?: string | undefined;
|
|
443
528
|
};
|
|
444
529
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
445
530
|
value: number | null;
|
|
446
531
|
grade: "error" | "pass" | "fail" | "skip";
|
|
447
532
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
533
|
+
error_message?: string | undefined;
|
|
448
534
|
};
|
|
449
535
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
450
536
|
value: number | null;
|
|
451
537
|
grade: "error" | "pass" | "fail" | "skip";
|
|
452
538
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
539
|
+
error_message?: string | undefined;
|
|
453
540
|
};
|
|
454
541
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
455
542
|
grade: "error" | "pass" | "fail" | "skip";
|
|
456
543
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
544
|
+
error_message?: string | undefined;
|
|
457
545
|
};
|
|
458
546
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
459
547
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -461,10 +549,12 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
461
549
|
stop_ids_first: string[] | null;
|
|
462
550
|
stop_ids_last: string[] | null;
|
|
463
551
|
stop_ids_middle: string[] | null;
|
|
552
|
+
error_message?: string | undefined;
|
|
464
553
|
};
|
|
465
554
|
TRANSACTION_SEQUENTIALITY: {
|
|
466
555
|
grade: "error" | "pass" | "fail" | "skip";
|
|
467
556
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
557
|
+
error_message?: string | undefined;
|
|
468
558
|
};
|
|
469
559
|
} | null;
|
|
470
560
|
apex_locations_qty: number | null;
|
|
@@ -524,66 +614,79 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
524
614
|
agency_id: string;
|
|
525
615
|
line_id: number;
|
|
526
616
|
analysis: {
|
|
527
|
-
|
|
617
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
528
618
|
value: number | null;
|
|
529
619
|
grade: "error" | "pass" | "fail" | "skip";
|
|
530
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
620
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
621
|
+
error_message?: string | undefined;
|
|
531
622
|
};
|
|
532
|
-
|
|
623
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
533
624
|
value: number | null;
|
|
534
625
|
grade: "error" | "pass" | "fail" | "skip";
|
|
535
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
626
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
627
|
+
error_message?: string | undefined;
|
|
536
628
|
};
|
|
537
629
|
ENDED_AT_LAST_STOP: {
|
|
538
630
|
grade: "error" | "pass" | "fail" | "skip";
|
|
539
631
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
632
|
+
error_message?: string | undefined;
|
|
540
633
|
};
|
|
541
634
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
542
635
|
value: number | null;
|
|
543
636
|
grade: "error" | "pass" | "fail" | "skip";
|
|
544
637
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
638
|
+
error_message?: string | undefined;
|
|
545
639
|
};
|
|
546
640
|
MATCHING_APEX_LOCATIONS: {
|
|
547
641
|
grade: "error" | "pass" | "fail" | "skip";
|
|
548
642
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
643
|
+
error_message?: string | undefined;
|
|
549
644
|
};
|
|
550
645
|
MATCHING_VEHICLE_IDS: {
|
|
551
646
|
grade: "error" | "pass" | "fail" | "skip";
|
|
552
647
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
648
|
+
error_message?: string | undefined;
|
|
553
649
|
};
|
|
554
650
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
555
651
|
value: number | null;
|
|
556
652
|
grade: "error" | "pass" | "fail" | "skip";
|
|
557
653
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
654
|
+
error_message?: string | undefined;
|
|
558
655
|
};
|
|
559
656
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
560
657
|
value: number | null;
|
|
561
658
|
grade: "error" | "pass" | "fail" | "skip";
|
|
562
659
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
660
|
+
error_message?: string | undefined;
|
|
563
661
|
};
|
|
564
662
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
565
663
|
value: number | null;
|
|
566
664
|
grade: "error" | "pass" | "fail" | "skip";
|
|
567
665
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
666
|
+
error_message?: string | undefined;
|
|
568
667
|
};
|
|
569
668
|
EXPECTED_START_TIME: {
|
|
570
669
|
value: number | null;
|
|
571
670
|
grade: "error" | "pass" | "fail" | "skip";
|
|
572
671
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
672
|
+
error_message?: string | undefined;
|
|
573
673
|
};
|
|
574
674
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
575
675
|
value: number | null;
|
|
576
676
|
grade: "error" | "pass" | "fail" | "skip";
|
|
577
677
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
678
|
+
error_message?: string | undefined;
|
|
578
679
|
};
|
|
579
680
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
580
681
|
value: number | null;
|
|
581
682
|
grade: "error" | "pass" | "fail" | "skip";
|
|
582
683
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
684
|
+
error_message?: string | undefined;
|
|
583
685
|
};
|
|
584
686
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
585
687
|
grade: "error" | "pass" | "fail" | "skip";
|
|
586
688
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
689
|
+
error_message?: string | undefined;
|
|
587
690
|
};
|
|
588
691
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
589
692
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -591,10 +694,12 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
591
694
|
stop_ids_first: string[] | null;
|
|
592
695
|
stop_ids_last: string[] | null;
|
|
593
696
|
stop_ids_middle: string[] | null;
|
|
697
|
+
error_message?: string | undefined;
|
|
594
698
|
};
|
|
595
699
|
TRANSACTION_SEQUENTIALITY: {
|
|
596
700
|
grade: "error" | "pass" | "fail" | "skip";
|
|
597
701
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
702
|
+
error_message?: string | undefined;
|
|
598
703
|
};
|
|
599
704
|
} | null;
|
|
600
705
|
apex_locations_qty: number | null;
|
|
@@ -640,6 +745,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
640
745
|
line_id: z.ZodNumber;
|
|
641
746
|
analysis: z.ZodNullable<z.ZodObject<{
|
|
642
747
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodObject<{
|
|
748
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
643
749
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
644
750
|
} & {
|
|
645
751
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_FIRST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP"]>;
|
|
@@ -648,12 +754,15 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
648
754
|
value: number | null;
|
|
649
755
|
grade: "error" | "pass" | "fail" | "skip";
|
|
650
756
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
757
|
+
error_message?: string | undefined;
|
|
651
758
|
}, {
|
|
652
759
|
value: number | null;
|
|
653
760
|
grade: "error" | "pass" | "fail" | "skip";
|
|
654
761
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
762
|
+
error_message?: string | undefined;
|
|
655
763
|
}>;
|
|
656
764
|
AVG_INTERVAL_VEHICLE_EVENTS: z.ZodObject<{
|
|
765
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
657
766
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
658
767
|
} & {
|
|
659
768
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "AVG_INTERVAL_OUTSIDE_LIMIT", "AVG_INTERVAL_WITHIN_LIMIT"]>;
|
|
@@ -662,23 +771,29 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
662
771
|
value: number | null;
|
|
663
772
|
grade: "error" | "pass" | "fail" | "skip";
|
|
664
773
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
774
|
+
error_message?: string | undefined;
|
|
665
775
|
}, {
|
|
666
776
|
value: number | null;
|
|
667
777
|
grade: "error" | "pass" | "fail" | "skip";
|
|
668
778
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
779
|
+
error_message?: string | undefined;
|
|
669
780
|
}>;
|
|
670
781
|
ENDED_AT_LAST_STOP: z.ZodObject<{
|
|
782
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
671
783
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
672
784
|
} & {
|
|
673
785
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
|
|
674
786
|
}, "strict", z.ZodTypeAny, {
|
|
675
787
|
grade: "error" | "pass" | "fail" | "skip";
|
|
676
788
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
789
|
+
error_message?: string | undefined;
|
|
677
790
|
}, {
|
|
678
791
|
grade: "error" | "pass" | "fail" | "skip";
|
|
679
792
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
793
|
+
error_message?: string | undefined;
|
|
680
794
|
}>;
|
|
681
795
|
EXPECTED_APEX_VALIDATION_INTERVAL: z.ZodObject<{
|
|
796
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
682
797
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
683
798
|
} & {
|
|
684
799
|
reason: z.ZodEnum<["NO_VALIDATIONS_FOUND", "UNEXPECTED_VALIDATION_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
|
|
@@ -687,26 +802,32 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
687
802
|
value: number | null;
|
|
688
803
|
grade: "error" | "pass" | "fail" | "skip";
|
|
689
804
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
805
|
+
error_message?: string | undefined;
|
|
690
806
|
}, {
|
|
691
807
|
value: number | null;
|
|
692
808
|
grade: "error" | "pass" | "fail" | "skip";
|
|
693
809
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
810
|
+
error_message?: string | undefined;
|
|
694
811
|
}>;
|
|
695
|
-
|
|
812
|
+
EXPECTED_DRIVER_ID_QTY: z.ZodObject<{
|
|
813
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
696
814
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
697
815
|
} & {
|
|
698
|
-
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "
|
|
816
|
+
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_DRIVER_ID_QTY", "EXPECTED_DRIVER_ID_QTY"]>;
|
|
699
817
|
value: z.ZodNullable<z.ZodNumber>;
|
|
700
818
|
}, "strict", z.ZodTypeAny, {
|
|
701
819
|
value: number | null;
|
|
702
820
|
grade: "error" | "pass" | "fail" | "skip";
|
|
703
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
821
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
822
|
+
error_message?: string | undefined;
|
|
704
823
|
}, {
|
|
705
824
|
value: number | null;
|
|
706
825
|
grade: "error" | "pass" | "fail" | "skip";
|
|
707
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
826
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
827
|
+
error_message?: string | undefined;
|
|
708
828
|
}>;
|
|
709
829
|
EXPECTED_START_TIME: z.ZodObject<{
|
|
830
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
710
831
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
711
832
|
} & {
|
|
712
833
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "UNKNOWN_START", "EARLY_START", "LATE_START", "START_ON_TIME"]>;
|
|
@@ -715,12 +836,15 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
715
836
|
value: number | null;
|
|
716
837
|
grade: "error" | "pass" | "fail" | "skip";
|
|
717
838
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
839
|
+
error_message?: string | undefined;
|
|
718
840
|
}, {
|
|
719
841
|
value: number | null;
|
|
720
842
|
grade: "error" | "pass" | "fail" | "skip";
|
|
721
843
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
844
|
+
error_message?: string | undefined;
|
|
722
845
|
}>;
|
|
723
846
|
EXPECTED_VEHICLE_EVENT_DELAY: z.ZodObject<{
|
|
847
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
724
848
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
725
849
|
} & {
|
|
726
850
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_VEHICLE_EVENTS_DELAY", "EXPECTED_VEHICLE_EVENTS_DELAY"]>;
|
|
@@ -729,12 +853,15 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
729
853
|
value: number | null;
|
|
730
854
|
grade: "error" | "pass" | "fail" | "skip";
|
|
731
855
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
856
|
+
error_message?: string | undefined;
|
|
732
857
|
}, {
|
|
733
858
|
value: number | null;
|
|
734
859
|
grade: "error" | "pass" | "fail" | "skip";
|
|
735
860
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
861
|
+
error_message?: string | undefined;
|
|
736
862
|
}>;
|
|
737
863
|
EXPECTED_VEHICLE_EVENTS_QTY: z.ZodObject<{
|
|
864
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
738
865
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
739
866
|
} & {
|
|
740
867
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENTS_QTY", "UNEXPECTED_VEHICLE_EVENTS_QTY"]>;
|
|
@@ -743,48 +870,60 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
743
870
|
value: number | null;
|
|
744
871
|
grade: "error" | "pass" | "fail" | "skip";
|
|
745
872
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
873
|
+
error_message?: string | undefined;
|
|
746
874
|
}, {
|
|
747
875
|
value: number | null;
|
|
748
876
|
grade: "error" | "pass" | "fail" | "skip";
|
|
749
877
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
878
|
+
error_message?: string | undefined;
|
|
750
879
|
}>;
|
|
751
|
-
|
|
880
|
+
EXPECTED_VEHICLE_ID_QTY: z.ZodObject<{
|
|
881
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
752
882
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
753
883
|
} & {
|
|
754
|
-
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "
|
|
884
|
+
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "UNEXPECTED_VEHICLE_ID_QTY", "EXPECTED_VEHICLE_ID_QTY"]>;
|
|
755
885
|
value: z.ZodNullable<z.ZodNumber>;
|
|
756
886
|
}, "strict", z.ZodTypeAny, {
|
|
757
887
|
value: number | null;
|
|
758
888
|
grade: "error" | "pass" | "fail" | "skip";
|
|
759
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
889
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
890
|
+
error_message?: string | undefined;
|
|
760
891
|
}, {
|
|
761
892
|
value: number | null;
|
|
762
893
|
grade: "error" | "pass" | "fail" | "skip";
|
|
763
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
894
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
895
|
+
error_message?: string | undefined;
|
|
764
896
|
}>;
|
|
765
897
|
MATCHING_APEX_LOCATIONS: z.ZodObject<{
|
|
898
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
766
899
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
767
900
|
} & {
|
|
768
901
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
|
|
769
902
|
}, "strict", z.ZodTypeAny, {
|
|
770
903
|
grade: "error" | "pass" | "fail" | "skip";
|
|
771
904
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
905
|
+
error_message?: string | undefined;
|
|
772
906
|
}, {
|
|
773
907
|
grade: "error" | "pass" | "fail" | "skip";
|
|
774
908
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
909
|
+
error_message?: string | undefined;
|
|
775
910
|
}>;
|
|
776
911
|
MATCHING_VEHICLE_IDS: z.ZodObject<{
|
|
912
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
777
913
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
778
914
|
} & {
|
|
779
915
|
reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS_FOUND", "NO_APEX_TRANSACTIONS_FOUND"]>;
|
|
780
916
|
}, "strict", z.ZodTypeAny, {
|
|
781
917
|
grade: "error" | "pass" | "fail" | "skip";
|
|
782
918
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
919
|
+
error_message?: string | undefined;
|
|
783
920
|
}, {
|
|
784
921
|
grade: "error" | "pass" | "fail" | "skip";
|
|
785
922
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
923
|
+
error_message?: string | undefined;
|
|
786
924
|
}>;
|
|
787
925
|
SIMPLE_ONE_APEX_VALIDATION: z.ZodObject<{
|
|
926
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
788
927
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
789
928
|
} & {
|
|
790
929
|
reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "ONE_OR_MORE_APEX_VALIDATIONS"]>;
|
|
@@ -793,23 +932,29 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
793
932
|
value: number | null;
|
|
794
933
|
grade: "error" | "pass" | "fail" | "skip";
|
|
795
934
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
935
|
+
error_message?: string | undefined;
|
|
796
936
|
}, {
|
|
797
937
|
value: number | null;
|
|
798
938
|
grade: "error" | "pass" | "fail" | "skip";
|
|
799
939
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
940
|
+
error_message?: string | undefined;
|
|
800
941
|
}>;
|
|
801
942
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: z.ZodObject<{
|
|
943
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
802
944
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
803
945
|
} & {
|
|
804
946
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
|
|
805
947
|
}, "strict", z.ZodTypeAny, {
|
|
806
948
|
grade: "error" | "pass" | "fail" | "skip";
|
|
807
949
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
950
|
+
error_message?: string | undefined;
|
|
808
951
|
}, {
|
|
809
952
|
grade: "error" | "pass" | "fail" | "skip";
|
|
810
953
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
954
|
+
error_message?: string | undefined;
|
|
811
955
|
}>;
|
|
812
956
|
SIMPLE_THREE_VEHICLE_EVENTS: z.ZodObject<{
|
|
957
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
813
958
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
814
959
|
} & {
|
|
815
960
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "MISSING_FIRST_STOPS", "MISSING_MIDDLE_STOPS", "MISSING_LAST_STOPS", "ALL_STOPS_FOUND"]>;
|
|
@@ -822,85 +967,103 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
822
967
|
stop_ids_first: string[] | null;
|
|
823
968
|
stop_ids_last: string[] | null;
|
|
824
969
|
stop_ids_middle: string[] | null;
|
|
970
|
+
error_message?: string | undefined;
|
|
825
971
|
}, {
|
|
826
972
|
grade: "error" | "pass" | "fail" | "skip";
|
|
827
973
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
828
974
|
stop_ids_first: string[] | null;
|
|
829
975
|
stop_ids_last: string[] | null;
|
|
830
976
|
stop_ids_middle: string[] | null;
|
|
977
|
+
error_message?: string | undefined;
|
|
831
978
|
}>;
|
|
832
979
|
TRANSACTION_SEQUENTIALITY: z.ZodObject<{
|
|
980
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
833
981
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
834
982
|
} & {
|
|
835
983
|
reason: z.ZodEnum<["MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
|
|
836
984
|
}, "strict", z.ZodTypeAny, {
|
|
837
985
|
grade: "error" | "pass" | "fail" | "skip";
|
|
838
986
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
987
|
+
error_message?: string | undefined;
|
|
839
988
|
}, {
|
|
840
989
|
grade: "error" | "pass" | "fail" | "skip";
|
|
841
990
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
991
|
+
error_message?: string | undefined;
|
|
842
992
|
}>;
|
|
843
993
|
}, "strip", z.ZodTypeAny, {
|
|
844
|
-
|
|
994
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
845
995
|
value: number | null;
|
|
846
996
|
grade: "error" | "pass" | "fail" | "skip";
|
|
847
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
997
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
998
|
+
error_message?: string | undefined;
|
|
848
999
|
};
|
|
849
|
-
|
|
1000
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
850
1001
|
value: number | null;
|
|
851
1002
|
grade: "error" | "pass" | "fail" | "skip";
|
|
852
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
1003
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1004
|
+
error_message?: string | undefined;
|
|
853
1005
|
};
|
|
854
1006
|
ENDED_AT_LAST_STOP: {
|
|
855
1007
|
grade: "error" | "pass" | "fail" | "skip";
|
|
856
1008
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1009
|
+
error_message?: string | undefined;
|
|
857
1010
|
};
|
|
858
1011
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
859
1012
|
value: number | null;
|
|
860
1013
|
grade: "error" | "pass" | "fail" | "skip";
|
|
861
1014
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
1015
|
+
error_message?: string | undefined;
|
|
862
1016
|
};
|
|
863
1017
|
MATCHING_APEX_LOCATIONS: {
|
|
864
1018
|
grade: "error" | "pass" | "fail" | "skip";
|
|
865
1019
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1020
|
+
error_message?: string | undefined;
|
|
866
1021
|
};
|
|
867
1022
|
MATCHING_VEHICLE_IDS: {
|
|
868
1023
|
grade: "error" | "pass" | "fail" | "skip";
|
|
869
1024
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
1025
|
+
error_message?: string | undefined;
|
|
870
1026
|
};
|
|
871
1027
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
872
1028
|
value: number | null;
|
|
873
1029
|
grade: "error" | "pass" | "fail" | "skip";
|
|
874
1030
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1031
|
+
error_message?: string | undefined;
|
|
875
1032
|
};
|
|
876
1033
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
877
1034
|
value: number | null;
|
|
878
1035
|
grade: "error" | "pass" | "fail" | "skip";
|
|
879
1036
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
1037
|
+
error_message?: string | undefined;
|
|
880
1038
|
};
|
|
881
1039
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
882
1040
|
value: number | null;
|
|
883
1041
|
grade: "error" | "pass" | "fail" | "skip";
|
|
884
1042
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1043
|
+
error_message?: string | undefined;
|
|
885
1044
|
};
|
|
886
1045
|
EXPECTED_START_TIME: {
|
|
887
1046
|
value: number | null;
|
|
888
1047
|
grade: "error" | "pass" | "fail" | "skip";
|
|
889
1048
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1049
|
+
error_message?: string | undefined;
|
|
890
1050
|
};
|
|
891
1051
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
892
1052
|
value: number | null;
|
|
893
1053
|
grade: "error" | "pass" | "fail" | "skip";
|
|
894
1054
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1055
|
+
error_message?: string | undefined;
|
|
895
1056
|
};
|
|
896
1057
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
897
1058
|
value: number | null;
|
|
898
1059
|
grade: "error" | "pass" | "fail" | "skip";
|
|
899
1060
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1061
|
+
error_message?: string | undefined;
|
|
900
1062
|
};
|
|
901
1063
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
902
1064
|
grade: "error" | "pass" | "fail" | "skip";
|
|
903
1065
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1066
|
+
error_message?: string | undefined;
|
|
904
1067
|
};
|
|
905
1068
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
906
1069
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -908,72 +1071,87 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
908
1071
|
stop_ids_first: string[] | null;
|
|
909
1072
|
stop_ids_last: string[] | null;
|
|
910
1073
|
stop_ids_middle: string[] | null;
|
|
1074
|
+
error_message?: string | undefined;
|
|
911
1075
|
};
|
|
912
1076
|
TRANSACTION_SEQUENTIALITY: {
|
|
913
1077
|
grade: "error" | "pass" | "fail" | "skip";
|
|
914
1078
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1079
|
+
error_message?: string | undefined;
|
|
915
1080
|
};
|
|
916
1081
|
}, {
|
|
917
|
-
|
|
1082
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
918
1083
|
value: number | null;
|
|
919
1084
|
grade: "error" | "pass" | "fail" | "skip";
|
|
920
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
1085
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1086
|
+
error_message?: string | undefined;
|
|
921
1087
|
};
|
|
922
|
-
|
|
1088
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
923
1089
|
value: number | null;
|
|
924
1090
|
grade: "error" | "pass" | "fail" | "skip";
|
|
925
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
1091
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1092
|
+
error_message?: string | undefined;
|
|
926
1093
|
};
|
|
927
1094
|
ENDED_AT_LAST_STOP: {
|
|
928
1095
|
grade: "error" | "pass" | "fail" | "skip";
|
|
929
1096
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1097
|
+
error_message?: string | undefined;
|
|
930
1098
|
};
|
|
931
1099
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
932
1100
|
value: number | null;
|
|
933
1101
|
grade: "error" | "pass" | "fail" | "skip";
|
|
934
1102
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
1103
|
+
error_message?: string | undefined;
|
|
935
1104
|
};
|
|
936
1105
|
MATCHING_APEX_LOCATIONS: {
|
|
937
1106
|
grade: "error" | "pass" | "fail" | "skip";
|
|
938
1107
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1108
|
+
error_message?: string | undefined;
|
|
939
1109
|
};
|
|
940
1110
|
MATCHING_VEHICLE_IDS: {
|
|
941
1111
|
grade: "error" | "pass" | "fail" | "skip";
|
|
942
1112
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
1113
|
+
error_message?: string | undefined;
|
|
943
1114
|
};
|
|
944
1115
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
945
1116
|
value: number | null;
|
|
946
1117
|
grade: "error" | "pass" | "fail" | "skip";
|
|
947
1118
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1119
|
+
error_message?: string | undefined;
|
|
948
1120
|
};
|
|
949
1121
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
950
1122
|
value: number | null;
|
|
951
1123
|
grade: "error" | "pass" | "fail" | "skip";
|
|
952
1124
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
1125
|
+
error_message?: string | undefined;
|
|
953
1126
|
};
|
|
954
1127
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
955
1128
|
value: number | null;
|
|
956
1129
|
grade: "error" | "pass" | "fail" | "skip";
|
|
957
1130
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1131
|
+
error_message?: string | undefined;
|
|
958
1132
|
};
|
|
959
1133
|
EXPECTED_START_TIME: {
|
|
960
1134
|
value: number | null;
|
|
961
1135
|
grade: "error" | "pass" | "fail" | "skip";
|
|
962
1136
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1137
|
+
error_message?: string | undefined;
|
|
963
1138
|
};
|
|
964
1139
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
965
1140
|
value: number | null;
|
|
966
1141
|
grade: "error" | "pass" | "fail" | "skip";
|
|
967
1142
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1143
|
+
error_message?: string | undefined;
|
|
968
1144
|
};
|
|
969
1145
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
970
1146
|
value: number | null;
|
|
971
1147
|
grade: "error" | "pass" | "fail" | "skip";
|
|
972
1148
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1149
|
+
error_message?: string | undefined;
|
|
973
1150
|
};
|
|
974
1151
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
975
1152
|
grade: "error" | "pass" | "fail" | "skip";
|
|
976
1153
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1154
|
+
error_message?: string | undefined;
|
|
977
1155
|
};
|
|
978
1156
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
979
1157
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -981,10 +1159,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
981
1159
|
stop_ids_first: string[] | null;
|
|
982
1160
|
stop_ids_last: string[] | null;
|
|
983
1161
|
stop_ids_middle: string[] | null;
|
|
1162
|
+
error_message?: string | undefined;
|
|
984
1163
|
};
|
|
985
1164
|
TRANSACTION_SEQUENTIALITY: {
|
|
986
1165
|
grade: "error" | "pass" | "fail" | "skip";
|
|
987
1166
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1167
|
+
error_message?: string | undefined;
|
|
988
1168
|
};
|
|
989
1169
|
}>>;
|
|
990
1170
|
apex_locations_qty: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1023,66 +1203,79 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1023
1203
|
agency_id: string;
|
|
1024
1204
|
line_id: number;
|
|
1025
1205
|
analysis: {
|
|
1026
|
-
|
|
1206
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
1027
1207
|
value: number | null;
|
|
1028
1208
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1029
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
1209
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1210
|
+
error_message?: string | undefined;
|
|
1030
1211
|
};
|
|
1031
|
-
|
|
1212
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
1032
1213
|
value: number | null;
|
|
1033
1214
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1034
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
1215
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1216
|
+
error_message?: string | undefined;
|
|
1035
1217
|
};
|
|
1036
1218
|
ENDED_AT_LAST_STOP: {
|
|
1037
1219
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1038
1220
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1221
|
+
error_message?: string | undefined;
|
|
1039
1222
|
};
|
|
1040
1223
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
1041
1224
|
value: number | null;
|
|
1042
1225
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1043
1226
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
1227
|
+
error_message?: string | undefined;
|
|
1044
1228
|
};
|
|
1045
1229
|
MATCHING_APEX_LOCATIONS: {
|
|
1046
1230
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1047
1231
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1232
|
+
error_message?: string | undefined;
|
|
1048
1233
|
};
|
|
1049
1234
|
MATCHING_VEHICLE_IDS: {
|
|
1050
1235
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1051
1236
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
1237
|
+
error_message?: string | undefined;
|
|
1052
1238
|
};
|
|
1053
1239
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1054
1240
|
value: number | null;
|
|
1055
1241
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1056
1242
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1243
|
+
error_message?: string | undefined;
|
|
1057
1244
|
};
|
|
1058
1245
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
1059
1246
|
value: number | null;
|
|
1060
1247
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1061
1248
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
1249
|
+
error_message?: string | undefined;
|
|
1062
1250
|
};
|
|
1063
1251
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1064
1252
|
value: number | null;
|
|
1065
1253
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1066
1254
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1255
|
+
error_message?: string | undefined;
|
|
1067
1256
|
};
|
|
1068
1257
|
EXPECTED_START_TIME: {
|
|
1069
1258
|
value: number | null;
|
|
1070
1259
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1071
1260
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1261
|
+
error_message?: string | undefined;
|
|
1072
1262
|
};
|
|
1073
1263
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1074
1264
|
value: number | null;
|
|
1075
1265
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1076
1266
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1267
|
+
error_message?: string | undefined;
|
|
1077
1268
|
};
|
|
1078
1269
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1079
1270
|
value: number | null;
|
|
1080
1271
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1081
1272
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1273
|
+
error_message?: string | undefined;
|
|
1082
1274
|
};
|
|
1083
1275
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1084
1276
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1085
1277
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1278
|
+
error_message?: string | undefined;
|
|
1086
1279
|
};
|
|
1087
1280
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1088
1281
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -1090,10 +1283,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1090
1283
|
stop_ids_first: string[] | null;
|
|
1091
1284
|
stop_ids_last: string[] | null;
|
|
1092
1285
|
stop_ids_middle: string[] | null;
|
|
1286
|
+
error_message?: string | undefined;
|
|
1093
1287
|
};
|
|
1094
1288
|
TRANSACTION_SEQUENTIALITY: {
|
|
1095
1289
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1096
1290
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1291
|
+
error_message?: string | undefined;
|
|
1097
1292
|
};
|
|
1098
1293
|
} | null;
|
|
1099
1294
|
apex_locations_qty: number | null;
|
|
@@ -1147,66 +1342,79 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1147
1342
|
agency_id: string;
|
|
1148
1343
|
line_id: number;
|
|
1149
1344
|
analysis: {
|
|
1150
|
-
|
|
1345
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
1151
1346
|
value: number | null;
|
|
1152
1347
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1153
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
1348
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1349
|
+
error_message?: string | undefined;
|
|
1154
1350
|
};
|
|
1155
|
-
|
|
1351
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
1156
1352
|
value: number | null;
|
|
1157
1353
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1158
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
1354
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1355
|
+
error_message?: string | undefined;
|
|
1159
1356
|
};
|
|
1160
1357
|
ENDED_AT_LAST_STOP: {
|
|
1161
1358
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1162
1359
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1360
|
+
error_message?: string | undefined;
|
|
1163
1361
|
};
|
|
1164
1362
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
1165
1363
|
value: number | null;
|
|
1166
1364
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1167
1365
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
1366
|
+
error_message?: string | undefined;
|
|
1168
1367
|
};
|
|
1169
1368
|
MATCHING_APEX_LOCATIONS: {
|
|
1170
1369
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1171
1370
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1371
|
+
error_message?: string | undefined;
|
|
1172
1372
|
};
|
|
1173
1373
|
MATCHING_VEHICLE_IDS: {
|
|
1174
1374
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1175
1375
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
1376
|
+
error_message?: string | undefined;
|
|
1176
1377
|
};
|
|
1177
1378
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1178
1379
|
value: number | null;
|
|
1179
1380
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1180
1381
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1382
|
+
error_message?: string | undefined;
|
|
1181
1383
|
};
|
|
1182
1384
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
1183
1385
|
value: number | null;
|
|
1184
1386
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1185
1387
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
1388
|
+
error_message?: string | undefined;
|
|
1186
1389
|
};
|
|
1187
1390
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1188
1391
|
value: number | null;
|
|
1189
1392
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1190
1393
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1394
|
+
error_message?: string | undefined;
|
|
1191
1395
|
};
|
|
1192
1396
|
EXPECTED_START_TIME: {
|
|
1193
1397
|
value: number | null;
|
|
1194
1398
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1195
1399
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1400
|
+
error_message?: string | undefined;
|
|
1196
1401
|
};
|
|
1197
1402
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1198
1403
|
value: number | null;
|
|
1199
1404
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1200
1405
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1406
|
+
error_message?: string | undefined;
|
|
1201
1407
|
};
|
|
1202
1408
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1203
1409
|
value: number | null;
|
|
1204
1410
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1205
1411
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1412
|
+
error_message?: string | undefined;
|
|
1206
1413
|
};
|
|
1207
1414
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1208
1415
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1209
1416
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1417
|
+
error_message?: string | undefined;
|
|
1210
1418
|
};
|
|
1211
1419
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1212
1420
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -1214,10 +1422,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1214
1422
|
stop_ids_first: string[] | null;
|
|
1215
1423
|
stop_ids_last: string[] | null;
|
|
1216
1424
|
stop_ids_middle: string[] | null;
|
|
1425
|
+
error_message?: string | undefined;
|
|
1217
1426
|
};
|
|
1218
1427
|
TRANSACTION_SEQUENTIALITY: {
|
|
1219
1428
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1220
1429
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1430
|
+
error_message?: string | undefined;
|
|
1221
1431
|
};
|
|
1222
1432
|
} | null;
|
|
1223
1433
|
apex_locations_qty: number | null;
|
|
@@ -1260,6 +1470,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1260
1470
|
line_id: z.ZodOptional<z.ZodNumber>;
|
|
1261
1471
|
analysis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1262
1472
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodObject<{
|
|
1473
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1263
1474
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1264
1475
|
} & {
|
|
1265
1476
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_FIRST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP"]>;
|
|
@@ -1268,12 +1479,15 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1268
1479
|
value: number | null;
|
|
1269
1480
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1270
1481
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1482
|
+
error_message?: string | undefined;
|
|
1271
1483
|
}, {
|
|
1272
1484
|
value: number | null;
|
|
1273
1485
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1274
1486
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1487
|
+
error_message?: string | undefined;
|
|
1275
1488
|
}>;
|
|
1276
1489
|
AVG_INTERVAL_VEHICLE_EVENTS: z.ZodObject<{
|
|
1490
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1277
1491
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1278
1492
|
} & {
|
|
1279
1493
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "AVG_INTERVAL_OUTSIDE_LIMIT", "AVG_INTERVAL_WITHIN_LIMIT"]>;
|
|
@@ -1282,23 +1496,29 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1282
1496
|
value: number | null;
|
|
1283
1497
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1284
1498
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
1499
|
+
error_message?: string | undefined;
|
|
1285
1500
|
}, {
|
|
1286
1501
|
value: number | null;
|
|
1287
1502
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1288
1503
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
1504
|
+
error_message?: string | undefined;
|
|
1289
1505
|
}>;
|
|
1290
1506
|
ENDED_AT_LAST_STOP: z.ZodObject<{
|
|
1507
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1291
1508
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1292
1509
|
} & {
|
|
1293
1510
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
|
|
1294
1511
|
}, "strict", z.ZodTypeAny, {
|
|
1295
1512
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1296
1513
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1514
|
+
error_message?: string | undefined;
|
|
1297
1515
|
}, {
|
|
1298
1516
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1299
1517
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1518
|
+
error_message?: string | undefined;
|
|
1300
1519
|
}>;
|
|
1301
1520
|
EXPECTED_APEX_VALIDATION_INTERVAL: z.ZodObject<{
|
|
1521
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1302
1522
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1303
1523
|
} & {
|
|
1304
1524
|
reason: z.ZodEnum<["NO_VALIDATIONS_FOUND", "UNEXPECTED_VALIDATION_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
|
|
@@ -1307,26 +1527,32 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1307
1527
|
value: number | null;
|
|
1308
1528
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1309
1529
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1530
|
+
error_message?: string | undefined;
|
|
1310
1531
|
}, {
|
|
1311
1532
|
value: number | null;
|
|
1312
1533
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1313
1534
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1535
|
+
error_message?: string | undefined;
|
|
1314
1536
|
}>;
|
|
1315
|
-
|
|
1537
|
+
EXPECTED_DRIVER_ID_QTY: z.ZodObject<{
|
|
1538
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1316
1539
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1317
1540
|
} & {
|
|
1318
|
-
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "
|
|
1541
|
+
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_DRIVER_ID_QTY", "EXPECTED_DRIVER_ID_QTY"]>;
|
|
1319
1542
|
value: z.ZodNullable<z.ZodNumber>;
|
|
1320
1543
|
}, "strict", z.ZodTypeAny, {
|
|
1321
1544
|
value: number | null;
|
|
1322
1545
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1323
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
1546
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1547
|
+
error_message?: string | undefined;
|
|
1324
1548
|
}, {
|
|
1325
1549
|
value: number | null;
|
|
1326
1550
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1327
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
1551
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1552
|
+
error_message?: string | undefined;
|
|
1328
1553
|
}>;
|
|
1329
1554
|
EXPECTED_START_TIME: z.ZodObject<{
|
|
1555
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1330
1556
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1331
1557
|
} & {
|
|
1332
1558
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "UNKNOWN_START", "EARLY_START", "LATE_START", "START_ON_TIME"]>;
|
|
@@ -1335,12 +1561,15 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1335
1561
|
value: number | null;
|
|
1336
1562
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1337
1563
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1564
|
+
error_message?: string | undefined;
|
|
1338
1565
|
}, {
|
|
1339
1566
|
value: number | null;
|
|
1340
1567
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1341
1568
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1569
|
+
error_message?: string | undefined;
|
|
1342
1570
|
}>;
|
|
1343
1571
|
EXPECTED_VEHICLE_EVENT_DELAY: z.ZodObject<{
|
|
1572
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1344
1573
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1345
1574
|
} & {
|
|
1346
1575
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_VEHICLE_EVENTS_DELAY", "EXPECTED_VEHICLE_EVENTS_DELAY"]>;
|
|
@@ -1349,12 +1578,15 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1349
1578
|
value: number | null;
|
|
1350
1579
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1351
1580
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1581
|
+
error_message?: string | undefined;
|
|
1352
1582
|
}, {
|
|
1353
1583
|
value: number | null;
|
|
1354
1584
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1355
1585
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1586
|
+
error_message?: string | undefined;
|
|
1356
1587
|
}>;
|
|
1357
1588
|
EXPECTED_VEHICLE_EVENTS_QTY: z.ZodObject<{
|
|
1589
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1358
1590
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1359
1591
|
} & {
|
|
1360
1592
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENTS_QTY", "UNEXPECTED_VEHICLE_EVENTS_QTY"]>;
|
|
@@ -1363,48 +1595,60 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1363
1595
|
value: number | null;
|
|
1364
1596
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1365
1597
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
1598
|
+
error_message?: string | undefined;
|
|
1366
1599
|
}, {
|
|
1367
1600
|
value: number | null;
|
|
1368
1601
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1369
1602
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
1603
|
+
error_message?: string | undefined;
|
|
1370
1604
|
}>;
|
|
1371
|
-
|
|
1605
|
+
EXPECTED_VEHICLE_ID_QTY: z.ZodObject<{
|
|
1606
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1372
1607
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1373
1608
|
} & {
|
|
1374
|
-
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "
|
|
1609
|
+
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "UNEXPECTED_VEHICLE_ID_QTY", "EXPECTED_VEHICLE_ID_QTY"]>;
|
|
1375
1610
|
value: z.ZodNullable<z.ZodNumber>;
|
|
1376
1611
|
}, "strict", z.ZodTypeAny, {
|
|
1377
1612
|
value: number | null;
|
|
1378
1613
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1379
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
1614
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1615
|
+
error_message?: string | undefined;
|
|
1380
1616
|
}, {
|
|
1381
1617
|
value: number | null;
|
|
1382
1618
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1383
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
1619
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1620
|
+
error_message?: string | undefined;
|
|
1384
1621
|
}>;
|
|
1385
1622
|
MATCHING_APEX_LOCATIONS: z.ZodObject<{
|
|
1623
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1386
1624
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1387
1625
|
} & {
|
|
1388
1626
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
|
|
1389
1627
|
}, "strict", z.ZodTypeAny, {
|
|
1390
1628
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1391
1629
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1630
|
+
error_message?: string | undefined;
|
|
1392
1631
|
}, {
|
|
1393
1632
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1394
1633
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1634
|
+
error_message?: string | undefined;
|
|
1395
1635
|
}>;
|
|
1396
1636
|
MATCHING_VEHICLE_IDS: z.ZodObject<{
|
|
1637
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1397
1638
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1398
1639
|
} & {
|
|
1399
1640
|
reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS_FOUND", "NO_APEX_TRANSACTIONS_FOUND"]>;
|
|
1400
1641
|
}, "strict", z.ZodTypeAny, {
|
|
1401
1642
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1402
1643
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
1644
|
+
error_message?: string | undefined;
|
|
1403
1645
|
}, {
|
|
1404
1646
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1405
1647
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
1648
|
+
error_message?: string | undefined;
|
|
1406
1649
|
}>;
|
|
1407
1650
|
SIMPLE_ONE_APEX_VALIDATION: z.ZodObject<{
|
|
1651
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1408
1652
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1409
1653
|
} & {
|
|
1410
1654
|
reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "ONE_OR_MORE_APEX_VALIDATIONS"]>;
|
|
@@ -1413,23 +1657,29 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1413
1657
|
value: number | null;
|
|
1414
1658
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1415
1659
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1660
|
+
error_message?: string | undefined;
|
|
1416
1661
|
}, {
|
|
1417
1662
|
value: number | null;
|
|
1418
1663
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1419
1664
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1665
|
+
error_message?: string | undefined;
|
|
1420
1666
|
}>;
|
|
1421
1667
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: z.ZodObject<{
|
|
1668
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1422
1669
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1423
1670
|
} & {
|
|
1424
1671
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
|
|
1425
1672
|
}, "strict", z.ZodTypeAny, {
|
|
1426
1673
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1427
1674
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1675
|
+
error_message?: string | undefined;
|
|
1428
1676
|
}, {
|
|
1429
1677
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1430
1678
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1679
|
+
error_message?: string | undefined;
|
|
1431
1680
|
}>;
|
|
1432
1681
|
SIMPLE_THREE_VEHICLE_EVENTS: z.ZodObject<{
|
|
1682
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1433
1683
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1434
1684
|
} & {
|
|
1435
1685
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "MISSING_FIRST_STOPS", "MISSING_MIDDLE_STOPS", "MISSING_LAST_STOPS", "ALL_STOPS_FOUND"]>;
|
|
@@ -1442,85 +1692,103 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1442
1692
|
stop_ids_first: string[] | null;
|
|
1443
1693
|
stop_ids_last: string[] | null;
|
|
1444
1694
|
stop_ids_middle: string[] | null;
|
|
1695
|
+
error_message?: string | undefined;
|
|
1445
1696
|
}, {
|
|
1446
1697
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1447
1698
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
1448
1699
|
stop_ids_first: string[] | null;
|
|
1449
1700
|
stop_ids_last: string[] | null;
|
|
1450
1701
|
stop_ids_middle: string[] | null;
|
|
1702
|
+
error_message?: string | undefined;
|
|
1451
1703
|
}>;
|
|
1452
1704
|
TRANSACTION_SEQUENTIALITY: z.ZodObject<{
|
|
1705
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
1453
1706
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
1454
1707
|
} & {
|
|
1455
1708
|
reason: z.ZodEnum<["MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
|
|
1456
1709
|
}, "strict", z.ZodTypeAny, {
|
|
1457
1710
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1458
1711
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1712
|
+
error_message?: string | undefined;
|
|
1459
1713
|
}, {
|
|
1460
1714
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1461
1715
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1716
|
+
error_message?: string | undefined;
|
|
1462
1717
|
}>;
|
|
1463
1718
|
}, "strip", z.ZodTypeAny, {
|
|
1464
|
-
|
|
1719
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
1465
1720
|
value: number | null;
|
|
1466
1721
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1467
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
1722
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1723
|
+
error_message?: string | undefined;
|
|
1468
1724
|
};
|
|
1469
|
-
|
|
1725
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
1470
1726
|
value: number | null;
|
|
1471
1727
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1472
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
1728
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1729
|
+
error_message?: string | undefined;
|
|
1473
1730
|
};
|
|
1474
1731
|
ENDED_AT_LAST_STOP: {
|
|
1475
1732
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1476
1733
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1734
|
+
error_message?: string | undefined;
|
|
1477
1735
|
};
|
|
1478
1736
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
1479
1737
|
value: number | null;
|
|
1480
1738
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1481
1739
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
1740
|
+
error_message?: string | undefined;
|
|
1482
1741
|
};
|
|
1483
1742
|
MATCHING_APEX_LOCATIONS: {
|
|
1484
1743
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1485
1744
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1745
|
+
error_message?: string | undefined;
|
|
1486
1746
|
};
|
|
1487
1747
|
MATCHING_VEHICLE_IDS: {
|
|
1488
1748
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1489
1749
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
1750
|
+
error_message?: string | undefined;
|
|
1490
1751
|
};
|
|
1491
1752
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1492
1753
|
value: number | null;
|
|
1493
1754
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1494
1755
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1756
|
+
error_message?: string | undefined;
|
|
1495
1757
|
};
|
|
1496
1758
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
1497
1759
|
value: number | null;
|
|
1498
1760
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1499
1761
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
1762
|
+
error_message?: string | undefined;
|
|
1500
1763
|
};
|
|
1501
1764
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1502
1765
|
value: number | null;
|
|
1503
1766
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1504
1767
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1768
|
+
error_message?: string | undefined;
|
|
1505
1769
|
};
|
|
1506
1770
|
EXPECTED_START_TIME: {
|
|
1507
1771
|
value: number | null;
|
|
1508
1772
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1509
1773
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1774
|
+
error_message?: string | undefined;
|
|
1510
1775
|
};
|
|
1511
1776
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1512
1777
|
value: number | null;
|
|
1513
1778
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1514
1779
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1780
|
+
error_message?: string | undefined;
|
|
1515
1781
|
};
|
|
1516
1782
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1517
1783
|
value: number | null;
|
|
1518
1784
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1519
1785
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1786
|
+
error_message?: string | undefined;
|
|
1520
1787
|
};
|
|
1521
1788
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1522
1789
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1523
1790
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1791
|
+
error_message?: string | undefined;
|
|
1524
1792
|
};
|
|
1525
1793
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1526
1794
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -1528,72 +1796,87 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1528
1796
|
stop_ids_first: string[] | null;
|
|
1529
1797
|
stop_ids_last: string[] | null;
|
|
1530
1798
|
stop_ids_middle: string[] | null;
|
|
1799
|
+
error_message?: string | undefined;
|
|
1531
1800
|
};
|
|
1532
1801
|
TRANSACTION_SEQUENTIALITY: {
|
|
1533
1802
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1534
1803
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1804
|
+
error_message?: string | undefined;
|
|
1535
1805
|
};
|
|
1536
1806
|
}, {
|
|
1537
|
-
|
|
1807
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
1538
1808
|
value: number | null;
|
|
1539
1809
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1540
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
1810
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1811
|
+
error_message?: string | undefined;
|
|
1541
1812
|
};
|
|
1542
|
-
|
|
1813
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
1543
1814
|
value: number | null;
|
|
1544
1815
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1545
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
1816
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1817
|
+
error_message?: string | undefined;
|
|
1546
1818
|
};
|
|
1547
1819
|
ENDED_AT_LAST_STOP: {
|
|
1548
1820
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1549
1821
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1822
|
+
error_message?: string | undefined;
|
|
1550
1823
|
};
|
|
1551
1824
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
1552
1825
|
value: number | null;
|
|
1553
1826
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1554
1827
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
1828
|
+
error_message?: string | undefined;
|
|
1555
1829
|
};
|
|
1556
1830
|
MATCHING_APEX_LOCATIONS: {
|
|
1557
1831
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1558
1832
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1833
|
+
error_message?: string | undefined;
|
|
1559
1834
|
};
|
|
1560
1835
|
MATCHING_VEHICLE_IDS: {
|
|
1561
1836
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1562
1837
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
1838
|
+
error_message?: string | undefined;
|
|
1563
1839
|
};
|
|
1564
1840
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1565
1841
|
value: number | null;
|
|
1566
1842
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1567
1843
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1844
|
+
error_message?: string | undefined;
|
|
1568
1845
|
};
|
|
1569
1846
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
1570
1847
|
value: number | null;
|
|
1571
1848
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1572
1849
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
1850
|
+
error_message?: string | undefined;
|
|
1573
1851
|
};
|
|
1574
1852
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1575
1853
|
value: number | null;
|
|
1576
1854
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1577
1855
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1856
|
+
error_message?: string | undefined;
|
|
1578
1857
|
};
|
|
1579
1858
|
EXPECTED_START_TIME: {
|
|
1580
1859
|
value: number | null;
|
|
1581
1860
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1582
1861
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1862
|
+
error_message?: string | undefined;
|
|
1583
1863
|
};
|
|
1584
1864
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1585
1865
|
value: number | null;
|
|
1586
1866
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1587
1867
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1868
|
+
error_message?: string | undefined;
|
|
1588
1869
|
};
|
|
1589
1870
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1590
1871
|
value: number | null;
|
|
1591
1872
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1592
1873
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1874
|
+
error_message?: string | undefined;
|
|
1593
1875
|
};
|
|
1594
1876
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1595
1877
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1596
1878
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1879
|
+
error_message?: string | undefined;
|
|
1597
1880
|
};
|
|
1598
1881
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1599
1882
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -1601,10 +1884,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1601
1884
|
stop_ids_first: string[] | null;
|
|
1602
1885
|
stop_ids_last: string[] | null;
|
|
1603
1886
|
stop_ids_middle: string[] | null;
|
|
1887
|
+
error_message?: string | undefined;
|
|
1604
1888
|
};
|
|
1605
1889
|
TRANSACTION_SEQUENTIALITY: {
|
|
1606
1890
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1607
1891
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1892
|
+
error_message?: string | undefined;
|
|
1608
1893
|
};
|
|
1609
1894
|
}>>>;
|
|
1610
1895
|
apex_locations_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1644,66 +1929,79 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1644
1929
|
agency_id?: string | undefined;
|
|
1645
1930
|
line_id?: number | undefined;
|
|
1646
1931
|
analysis?: {
|
|
1647
|
-
|
|
1932
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
1648
1933
|
value: number | null;
|
|
1649
1934
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1650
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
1935
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1936
|
+
error_message?: string | undefined;
|
|
1651
1937
|
};
|
|
1652
|
-
|
|
1938
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
1653
1939
|
value: number | null;
|
|
1654
1940
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1655
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
1941
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1942
|
+
error_message?: string | undefined;
|
|
1656
1943
|
};
|
|
1657
1944
|
ENDED_AT_LAST_STOP: {
|
|
1658
1945
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1659
1946
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1947
|
+
error_message?: string | undefined;
|
|
1660
1948
|
};
|
|
1661
1949
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
1662
1950
|
value: number | null;
|
|
1663
1951
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1664
1952
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
1953
|
+
error_message?: string | undefined;
|
|
1665
1954
|
};
|
|
1666
1955
|
MATCHING_APEX_LOCATIONS: {
|
|
1667
1956
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1668
1957
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1958
|
+
error_message?: string | undefined;
|
|
1669
1959
|
};
|
|
1670
1960
|
MATCHING_VEHICLE_IDS: {
|
|
1671
1961
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1672
1962
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
1963
|
+
error_message?: string | undefined;
|
|
1673
1964
|
};
|
|
1674
1965
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1675
1966
|
value: number | null;
|
|
1676
1967
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1677
1968
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1969
|
+
error_message?: string | undefined;
|
|
1678
1970
|
};
|
|
1679
1971
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
1680
1972
|
value: number | null;
|
|
1681
1973
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1682
1974
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
1975
|
+
error_message?: string | undefined;
|
|
1683
1976
|
};
|
|
1684
1977
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1685
1978
|
value: number | null;
|
|
1686
1979
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1687
1980
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1981
|
+
error_message?: string | undefined;
|
|
1688
1982
|
};
|
|
1689
1983
|
EXPECTED_START_TIME: {
|
|
1690
1984
|
value: number | null;
|
|
1691
1985
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1692
1986
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1987
|
+
error_message?: string | undefined;
|
|
1693
1988
|
};
|
|
1694
1989
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1695
1990
|
value: number | null;
|
|
1696
1991
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1697
1992
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1993
|
+
error_message?: string | undefined;
|
|
1698
1994
|
};
|
|
1699
1995
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1700
1996
|
value: number | null;
|
|
1701
1997
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1702
1998
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1999
|
+
error_message?: string | undefined;
|
|
1703
2000
|
};
|
|
1704
2001
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1705
2002
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1706
2003
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
2004
|
+
error_message?: string | undefined;
|
|
1707
2005
|
};
|
|
1708
2006
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1709
2007
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -1711,10 +2009,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1711
2009
|
stop_ids_first: string[] | null;
|
|
1712
2010
|
stop_ids_last: string[] | null;
|
|
1713
2011
|
stop_ids_middle: string[] | null;
|
|
2012
|
+
error_message?: string | undefined;
|
|
1714
2013
|
};
|
|
1715
2014
|
TRANSACTION_SEQUENTIALITY: {
|
|
1716
2015
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1717
2016
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
2017
|
+
error_message?: string | undefined;
|
|
1718
2018
|
};
|
|
1719
2019
|
} | null | undefined;
|
|
1720
2020
|
apex_locations_qty?: number | null | undefined;
|
|
@@ -1768,66 +2068,79 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1768
2068
|
agency_id?: string | undefined;
|
|
1769
2069
|
line_id?: number | undefined;
|
|
1770
2070
|
analysis?: {
|
|
1771
|
-
|
|
2071
|
+
EXPECTED_DRIVER_ID_QTY: {
|
|
1772
2072
|
value: number | null;
|
|
1773
2073
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1774
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
2074
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
2075
|
+
error_message?: string | undefined;
|
|
1775
2076
|
};
|
|
1776
|
-
|
|
2077
|
+
EXPECTED_VEHICLE_ID_QTY: {
|
|
1777
2078
|
value: number | null;
|
|
1778
2079
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1779
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
2080
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
2081
|
+
error_message?: string | undefined;
|
|
1780
2082
|
};
|
|
1781
2083
|
ENDED_AT_LAST_STOP: {
|
|
1782
2084
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1783
2085
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
2086
|
+
error_message?: string | undefined;
|
|
1784
2087
|
};
|
|
1785
2088
|
EXPECTED_VEHICLE_EVENTS_QTY: {
|
|
1786
2089
|
value: number | null;
|
|
1787
2090
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1788
2091
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
2092
|
+
error_message?: string | undefined;
|
|
1789
2093
|
};
|
|
1790
2094
|
MATCHING_APEX_LOCATIONS: {
|
|
1791
2095
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1792
2096
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
2097
|
+
error_message?: string | undefined;
|
|
1793
2098
|
};
|
|
1794
2099
|
MATCHING_VEHICLE_IDS: {
|
|
1795
2100
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1796
2101
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
2102
|
+
error_message?: string | undefined;
|
|
1797
2103
|
};
|
|
1798
2104
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1799
2105
|
value: number | null;
|
|
1800
2106
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1801
2107
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
2108
|
+
error_message?: string | undefined;
|
|
1802
2109
|
};
|
|
1803
2110
|
AVG_INTERVAL_VEHICLE_EVENTS: {
|
|
1804
2111
|
value: number | null;
|
|
1805
2112
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1806
2113
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
2114
|
+
error_message?: string | undefined;
|
|
1807
2115
|
};
|
|
1808
2116
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1809
2117
|
value: number | null;
|
|
1810
2118
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1811
2119
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
2120
|
+
error_message?: string | undefined;
|
|
1812
2121
|
};
|
|
1813
2122
|
EXPECTED_START_TIME: {
|
|
1814
2123
|
value: number | null;
|
|
1815
2124
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1816
2125
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
2126
|
+
error_message?: string | undefined;
|
|
1817
2127
|
};
|
|
1818
2128
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1819
2129
|
value: number | null;
|
|
1820
2130
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1821
2131
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
2132
|
+
error_message?: string | undefined;
|
|
1822
2133
|
};
|
|
1823
2134
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1824
2135
|
value: number | null;
|
|
1825
2136
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1826
2137
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
2138
|
+
error_message?: string | undefined;
|
|
1827
2139
|
};
|
|
1828
2140
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1829
2141
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1830
2142
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
2143
|
+
error_message?: string | undefined;
|
|
1831
2144
|
};
|
|
1832
2145
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1833
2146
|
grade: "error" | "pass" | "fail" | "skip";
|
|
@@ -1835,10 +2148,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1835
2148
|
stop_ids_first: string[] | null;
|
|
1836
2149
|
stop_ids_last: string[] | null;
|
|
1837
2150
|
stop_ids_middle: string[] | null;
|
|
2151
|
+
error_message?: string | undefined;
|
|
1838
2152
|
};
|
|
1839
2153
|
TRANSACTION_SEQUENTIALITY: {
|
|
1840
2154
|
grade: "error" | "pass" | "fail" | "skip";
|
|
1841
2155
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
2156
|
+
error_message?: string | undefined;
|
|
1842
2157
|
};
|
|
1843
2158
|
} | null | undefined;
|
|
1844
2159
|
apex_locations_qty?: number | null | undefined;
|