@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.
|
@@ -2,17 +2,21 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const RIDE_ANALYSIS_GRADE_OPTIONS: readonly ["pass", "fail", "skip", "error"];
|
|
3
3
|
export declare const RideAnalysisGradeSchema: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
4
4
|
export declare const RideAnalysisSchema: z.ZodObject<{
|
|
5
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
5
6
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
6
7
|
reason: z.ZodString;
|
|
7
8
|
}, "strict", z.ZodTypeAny, {
|
|
8
9
|
grade: "error" | "pass" | "fail" | "skip";
|
|
9
10
|
reason: string;
|
|
11
|
+
error_message?: string | undefined;
|
|
10
12
|
}, {
|
|
11
13
|
grade: "error" | "pass" | "fail" | "skip";
|
|
12
14
|
reason: string;
|
|
15
|
+
error_message?: string | undefined;
|
|
13
16
|
}>;
|
|
14
17
|
export type RideAnalysis = z.infer<typeof RideAnalysisSchema>;
|
|
15
18
|
export declare const atLeastOneVehicleEventOnFirstStopSchema: z.ZodObject<{
|
|
19
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
16
20
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
17
21
|
} & {
|
|
18
22
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_FIRST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP"]>;
|
|
@@ -21,43 +25,52 @@ export declare const atLeastOneVehicleEventOnFirstStopSchema: z.ZodObject<{
|
|
|
21
25
|
value: number | null;
|
|
22
26
|
grade: "error" | "pass" | "fail" | "skip";
|
|
23
27
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
28
|
+
error_message?: string | undefined;
|
|
24
29
|
}, {
|
|
25
30
|
value: number | null;
|
|
26
31
|
grade: "error" | "pass" | "fail" | "skip";
|
|
27
32
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
33
|
+
error_message?: string | undefined;
|
|
28
34
|
}>;
|
|
29
35
|
export type AtLeastOneVehicleEventOnFirstStop = z.infer<typeof atLeastOneVehicleEventOnFirstStopSchema>;
|
|
30
|
-
export declare const
|
|
36
|
+
export declare const expectedDriverIdQtySchema: z.ZodObject<{
|
|
37
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
31
38
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
32
39
|
} & {
|
|
33
|
-
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "
|
|
40
|
+
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_DRIVER_ID_QTY", "EXPECTED_DRIVER_ID_QTY"]>;
|
|
34
41
|
value: z.ZodNullable<z.ZodNumber>;
|
|
35
42
|
}, "strict", z.ZodTypeAny, {
|
|
36
43
|
value: number | null;
|
|
37
44
|
grade: "error" | "pass" | "fail" | "skip";
|
|
38
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
45
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
46
|
+
error_message?: string | undefined;
|
|
39
47
|
}, {
|
|
40
48
|
value: number | null;
|
|
41
49
|
grade: "error" | "pass" | "fail" | "skip";
|
|
42
|
-
reason: "NO_VEHICLE_EVENTS" | "
|
|
50
|
+
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
51
|
+
error_message?: string | undefined;
|
|
43
52
|
}>;
|
|
44
|
-
export type
|
|
45
|
-
export declare const
|
|
53
|
+
export type ExpectedDriverIdQty = z.infer<typeof expectedDriverIdQtySchema>;
|
|
54
|
+
export declare const expectedVehicleIdQtySchema: z.ZodObject<{
|
|
55
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
46
56
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
47
57
|
} & {
|
|
48
|
-
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "
|
|
58
|
+
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "UNEXPECTED_VEHICLE_ID_QTY", "EXPECTED_VEHICLE_ID_QTY"]>;
|
|
49
59
|
value: z.ZodNullable<z.ZodNumber>;
|
|
50
60
|
}, "strict", z.ZodTypeAny, {
|
|
51
61
|
value: number | null;
|
|
52
62
|
grade: "error" | "pass" | "fail" | "skip";
|
|
53
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
63
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
64
|
+
error_message?: string | undefined;
|
|
54
65
|
}, {
|
|
55
66
|
value: number | null;
|
|
56
67
|
grade: "error" | "pass" | "fail" | "skip";
|
|
57
|
-
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "
|
|
68
|
+
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
69
|
+
error_message?: string | undefined;
|
|
58
70
|
}>;
|
|
59
|
-
export type
|
|
71
|
+
export type ExpectedVehicleIdQty = z.infer<typeof expectedVehicleIdQtySchema>;
|
|
60
72
|
export declare const avgIntervalVehicleEventsSchema: z.ZodObject<{
|
|
73
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
61
74
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
62
75
|
} & {
|
|
63
76
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "AVG_INTERVAL_OUTSIDE_LIMIT", "AVG_INTERVAL_WITHIN_LIMIT"]>;
|
|
@@ -66,25 +79,31 @@ export declare const avgIntervalVehicleEventsSchema: z.ZodObject<{
|
|
|
66
79
|
value: number | null;
|
|
67
80
|
grade: "error" | "pass" | "fail" | "skip";
|
|
68
81
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
82
|
+
error_message?: string | undefined;
|
|
69
83
|
}, {
|
|
70
84
|
value: number | null;
|
|
71
85
|
grade: "error" | "pass" | "fail" | "skip";
|
|
72
86
|
reason: "NO_VEHICLE_EVENTS" | "AVG_INTERVAL_OUTSIDE_LIMIT" | "AVG_INTERVAL_WITHIN_LIMIT";
|
|
87
|
+
error_message?: string | undefined;
|
|
73
88
|
}>;
|
|
74
89
|
export type AvgIntervalVehicleEvents = z.infer<typeof avgIntervalVehicleEventsSchema>;
|
|
75
90
|
export declare const endedAtLastStopSchema: z.ZodObject<{
|
|
91
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
76
92
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
77
93
|
} & {
|
|
78
94
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
|
|
79
95
|
}, "strict", z.ZodTypeAny, {
|
|
80
96
|
grade: "error" | "pass" | "fail" | "skip";
|
|
81
97
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
98
|
+
error_message?: string | undefined;
|
|
82
99
|
}, {
|
|
83
100
|
grade: "error" | "pass" | "fail" | "skip";
|
|
84
101
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
102
|
+
error_message?: string | undefined;
|
|
85
103
|
}>;
|
|
86
104
|
export type EndedAtLastStop = z.infer<typeof endedAtLastStopSchema>;
|
|
87
105
|
export declare const expectedVehicleEventDelaySchema: z.ZodObject<{
|
|
106
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
88
107
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
89
108
|
} & {
|
|
90
109
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_VEHICLE_EVENTS_DELAY", "EXPECTED_VEHICLE_EVENTS_DELAY"]>;
|
|
@@ -93,13 +112,16 @@ export declare const expectedVehicleEventDelaySchema: z.ZodObject<{
|
|
|
93
112
|
value: number | null;
|
|
94
113
|
grade: "error" | "pass" | "fail" | "skip";
|
|
95
114
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
115
|
+
error_message?: string | undefined;
|
|
96
116
|
}, {
|
|
97
117
|
value: number | null;
|
|
98
118
|
grade: "error" | "pass" | "fail" | "skip";
|
|
99
119
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
120
|
+
error_message?: string | undefined;
|
|
100
121
|
}>;
|
|
101
122
|
export type ExpectedVehicleEventDelay = z.infer<typeof expectedVehicleEventDelaySchema>;
|
|
102
123
|
export declare const expectedVehicleEventsQtySchema: z.ZodObject<{
|
|
124
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
103
125
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
104
126
|
} & {
|
|
105
127
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENTS_QTY", "UNEXPECTED_VEHICLE_EVENTS_QTY"]>;
|
|
@@ -108,25 +130,31 @@ export declare const expectedVehicleEventsQtySchema: z.ZodObject<{
|
|
|
108
130
|
value: number | null;
|
|
109
131
|
grade: "error" | "pass" | "fail" | "skip";
|
|
110
132
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
133
|
+
error_message?: string | undefined;
|
|
111
134
|
}, {
|
|
112
135
|
value: number | null;
|
|
113
136
|
grade: "error" | "pass" | "fail" | "skip";
|
|
114
137
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENTS_QTY" | "UNEXPECTED_VEHICLE_EVENTS_QTY";
|
|
138
|
+
error_message?: string | undefined;
|
|
115
139
|
}>;
|
|
116
140
|
export type ExpectedVehicleEventsQty = z.infer<typeof expectedVehicleEventsQtySchema>;
|
|
117
141
|
export declare const matchingApexLocationsSchema: z.ZodObject<{
|
|
142
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
118
143
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
119
144
|
} & {
|
|
120
145
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
|
|
121
146
|
}, "strict", z.ZodTypeAny, {
|
|
122
147
|
grade: "error" | "pass" | "fail" | "skip";
|
|
123
148
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
149
|
+
error_message?: string | undefined;
|
|
124
150
|
}, {
|
|
125
151
|
grade: "error" | "pass" | "fail" | "skip";
|
|
126
152
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
153
|
+
error_message?: string | undefined;
|
|
127
154
|
}>;
|
|
128
155
|
export type MatchingApexLocations = z.infer<typeof matchingApexLocationsSchema>;
|
|
129
156
|
export declare const expectedStartTimeSchema: z.ZodObject<{
|
|
157
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
130
158
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
131
159
|
} & {
|
|
132
160
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "UNKNOWN_START", "EARLY_START", "LATE_START", "START_ON_TIME"]>;
|
|
@@ -135,13 +163,16 @@ export declare const expectedStartTimeSchema: z.ZodObject<{
|
|
|
135
163
|
value: number | null;
|
|
136
164
|
grade: "error" | "pass" | "fail" | "skip";
|
|
137
165
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
166
|
+
error_message?: string | undefined;
|
|
138
167
|
}, {
|
|
139
168
|
value: number | null;
|
|
140
169
|
grade: "error" | "pass" | "fail" | "skip";
|
|
141
170
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
171
|
+
error_message?: string | undefined;
|
|
142
172
|
}>;
|
|
143
173
|
export type ExpectedStartTime = z.infer<typeof expectedStartTimeSchema>;
|
|
144
174
|
export declare const simpleOneApexValidationSchema: z.ZodObject<{
|
|
175
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
145
176
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
146
177
|
} & {
|
|
147
178
|
reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "ONE_OR_MORE_APEX_VALIDATIONS"]>;
|
|
@@ -150,25 +181,31 @@ export declare const simpleOneApexValidationSchema: z.ZodObject<{
|
|
|
150
181
|
value: number | null;
|
|
151
182
|
grade: "error" | "pass" | "fail" | "skip";
|
|
152
183
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
184
|
+
error_message?: string | undefined;
|
|
153
185
|
}, {
|
|
154
186
|
value: number | null;
|
|
155
187
|
grade: "error" | "pass" | "fail" | "skip";
|
|
156
188
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
189
|
+
error_message?: string | undefined;
|
|
157
190
|
}>;
|
|
158
191
|
export type SimpleOneApexValidation = z.infer<typeof simpleOneApexValidationSchema>;
|
|
159
192
|
export declare const simpleOneVehicleEventOrApexValidationSchema: z.ZodObject<{
|
|
193
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
160
194
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
161
195
|
} & {
|
|
162
196
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
|
|
163
197
|
}, "strict", z.ZodTypeAny, {
|
|
164
198
|
grade: "error" | "pass" | "fail" | "skip";
|
|
165
199
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
200
|
+
error_message?: string | undefined;
|
|
166
201
|
}, {
|
|
167
202
|
grade: "error" | "pass" | "fail" | "skip";
|
|
168
203
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
204
|
+
error_message?: string | undefined;
|
|
169
205
|
}>;
|
|
170
206
|
export type SimpleOneVehicleEventOrApexValidation = z.infer<typeof simpleOneVehicleEventOrApexValidationSchema>;
|
|
171
207
|
export declare const simpleThreeVehicleEventsSchema: z.ZodObject<{
|
|
208
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
172
209
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
173
210
|
} & {
|
|
174
211
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "MISSING_FIRST_STOPS", "MISSING_MIDDLE_STOPS", "MISSING_LAST_STOPS", "ALL_STOPS_FOUND"]>;
|
|
@@ -181,39 +218,48 @@ export declare const simpleThreeVehicleEventsSchema: z.ZodObject<{
|
|
|
181
218
|
stop_ids_first: string[] | null;
|
|
182
219
|
stop_ids_last: string[] | null;
|
|
183
220
|
stop_ids_middle: string[] | null;
|
|
221
|
+
error_message?: string | undefined;
|
|
184
222
|
}, {
|
|
185
223
|
grade: "error" | "pass" | "fail" | "skip";
|
|
186
224
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
187
225
|
stop_ids_first: string[] | null;
|
|
188
226
|
stop_ids_last: string[] | null;
|
|
189
227
|
stop_ids_middle: string[] | null;
|
|
228
|
+
error_message?: string | undefined;
|
|
190
229
|
}>;
|
|
191
230
|
export type SimpleThreeVehicleEvents = z.infer<typeof simpleThreeVehicleEventsSchema>;
|
|
192
231
|
export declare const transactionSequentialitySchema: z.ZodObject<{
|
|
232
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
193
233
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
194
234
|
} & {
|
|
195
235
|
reason: z.ZodEnum<["MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
|
|
196
236
|
}, "strict", z.ZodTypeAny, {
|
|
197
237
|
grade: "error" | "pass" | "fail" | "skip";
|
|
198
238
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
239
|
+
error_message?: string | undefined;
|
|
199
240
|
}, {
|
|
200
241
|
grade: "error" | "pass" | "fail" | "skip";
|
|
201
242
|
reason: "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
243
|
+
error_message?: string | undefined;
|
|
202
244
|
}>;
|
|
203
245
|
export type TransactionSequentiality = z.infer<typeof transactionSequentialitySchema>;
|
|
204
246
|
export declare const matchingVehicleIdsSchema: z.ZodObject<{
|
|
247
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
205
248
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
206
249
|
} & {
|
|
207
250
|
reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS_FOUND", "NO_APEX_TRANSACTIONS_FOUND"]>;
|
|
208
251
|
}, "strict", z.ZodTypeAny, {
|
|
209
252
|
grade: "error" | "pass" | "fail" | "skip";
|
|
210
253
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
254
|
+
error_message?: string | undefined;
|
|
211
255
|
}, {
|
|
212
256
|
grade: "error" | "pass" | "fail" | "skip";
|
|
213
257
|
reason: "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_VEHICLE_EVENTS_FOUND" | "NO_APEX_TRANSACTIONS_FOUND";
|
|
258
|
+
error_message?: string | undefined;
|
|
214
259
|
}>;
|
|
215
260
|
export type MatchingVehicleIds = z.infer<typeof matchingVehicleIdsSchema>;
|
|
216
261
|
export declare const expectedApexValidationIntervalSchema: z.ZodObject<{
|
|
262
|
+
error_message: z.ZodOptional<z.ZodString>;
|
|
217
263
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
218
264
|
} & {
|
|
219
265
|
reason: z.ZodEnum<["NO_VALIDATIONS_FOUND", "UNEXPECTED_VALIDATION_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
|
|
@@ -222,9 +268,11 @@ export declare const expectedApexValidationIntervalSchema: z.ZodObject<{
|
|
|
222
268
|
value: number | null;
|
|
223
269
|
grade: "error" | "pass" | "fail" | "skip";
|
|
224
270
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
271
|
+
error_message?: string | undefined;
|
|
225
272
|
}, {
|
|
226
273
|
value: number | null;
|
|
227
274
|
grade: "error" | "pass" | "fail" | "skip";
|
|
228
275
|
reason: "NO_VALIDATIONS_FOUND" | "UNEXPECTED_VALIDATION_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
276
|
+
error_message?: string | undefined;
|
|
229
277
|
}>;
|
|
230
278
|
export type ExpectedApexValidationInterval = z.infer<typeof expectedApexValidationIntervalSchema>;
|
|
@@ -5,6 +5,7 @@ export const RIDE_ANALYSIS_GRADE_OPTIONS = ['pass', 'fail', 'skip', 'error'];
|
|
|
5
5
|
export const RideAnalysisGradeSchema = z.enum(RIDE_ANALYSIS_GRADE_OPTIONS);
|
|
6
6
|
/* * */
|
|
7
7
|
export const RideAnalysisSchema = z.object({
|
|
8
|
+
error_message: z.string().optional(),
|
|
8
9
|
grade: RideAnalysisGradeSchema,
|
|
9
10
|
reason: z.string(),
|
|
10
11
|
}).strict();
|
|
@@ -14,13 +15,13 @@ export const atLeastOneVehicleEventOnFirstStopSchema = RideAnalysisSchema.extend
|
|
|
14
15
|
value: z.number().nullable(),
|
|
15
16
|
}).strict();
|
|
16
17
|
/* * */
|
|
17
|
-
export const
|
|
18
|
-
reason: z.enum(['NO_VEHICLE_EVENTS', '
|
|
18
|
+
export const expectedDriverIdQtySchema = RideAnalysisSchema.extend({
|
|
19
|
+
reason: z.enum(['NO_VEHICLE_EVENTS', 'UNEXPECTED_DRIVER_ID_QTY', 'EXPECTED_DRIVER_ID_QTY']),
|
|
19
20
|
value: z.number().nullable(),
|
|
20
21
|
}).strict();
|
|
21
22
|
/* * */
|
|
22
|
-
export const
|
|
23
|
-
reason: z.enum(['NO_VEHICLE_EVENTS', 'NO_APEX_VALIDATIONS', '
|
|
23
|
+
export const expectedVehicleIdQtySchema = RideAnalysisSchema.extend({
|
|
24
|
+
reason: z.enum(['NO_VEHICLE_EVENTS', 'NO_APEX_VALIDATIONS', 'UNEXPECTED_VEHICLE_ID_QTY', 'EXPECTED_VEHICLE_ID_QTY']),
|
|
24
25
|
value: z.number().nullable(),
|
|
25
26
|
}).strict();
|
|
26
27
|
/* * */
|