@tmlmobilidade/types 20251031.1051.3 → 20251103.1255.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,9 +14,9 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
14
14
|
} & {
|
|
15
15
|
properties: z.ZodObject<{
|
|
16
16
|
agency_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
|
-
|
|
17
|
+
analysis_ended_at_last_stop: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
18
18
|
analysis_expected_apex_validation_interval: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
19
|
-
|
|
19
|
+
analysis_simple_three_vehicle_events: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
20
20
|
analysis_transaction_sequentiality: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
21
21
|
date_end: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
22
22
|
date_start: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -35,9 +35,9 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
35
35
|
};
|
|
36
36
|
agency_ids?: string[] | undefined;
|
|
37
37
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
38
|
-
|
|
38
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
39
39
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
40
|
-
|
|
40
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
41
41
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
42
42
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
43
43
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -49,9 +49,9 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
49
49
|
date_start: number;
|
|
50
50
|
agency_ids?: string[] | undefined;
|
|
51
51
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
52
|
-
|
|
52
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
53
53
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
54
|
-
|
|
54
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
55
55
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
56
56
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
57
57
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -80,9 +80,9 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
80
80
|
};
|
|
81
81
|
agency_ids?: string[] | undefined;
|
|
82
82
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
83
|
-
|
|
83
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
84
84
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
85
|
-
|
|
85
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
86
86
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
87
87
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
88
88
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -105,9 +105,9 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
105
105
|
date_start: number;
|
|
106
106
|
agency_ids?: string[] | undefined;
|
|
107
107
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
108
|
-
|
|
108
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
109
109
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
110
|
-
|
|
110
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
111
111
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
112
112
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
113
113
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -2,65 +2,27 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const FlatRideSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
agency_id: z.ZodString;
|
|
5
|
-
analysis_AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP_grade: z.ZodString;
|
|
6
|
-
analysis_AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP_reason: z.ZodString;
|
|
7
|
-
analysis_ENDED_AT_LAST_STOP_grade: z.ZodString;
|
|
8
|
-
analysis_ENDED_AT_LAST_STOP_reason: z.ZodString;
|
|
9
|
-
analysis_EXPECTED_APEX_VALIDATION_INTERVAL_grade: z.ZodString;
|
|
10
|
-
analysis_EXPECTED_APEX_VALIDATION_INTERVAL_reason: z.ZodString;
|
|
11
|
-
analysis_EXPECTED_DRIVER_ID_QTY_grade: z.ZodString;
|
|
12
|
-
analysis_EXPECTED_DRIVER_ID_QTY_reason: z.ZodString;
|
|
13
|
-
analysis_EXPECTED_START_TIME_grade: z.ZodString;
|
|
14
|
-
analysis_EXPECTED_START_TIME_reason: z.ZodString;
|
|
15
|
-
analysis_EXPECTED_START_TIME_value: z.ZodNumber;
|
|
16
|
-
analysis_EXPECTED_VEHICLE_EVENT_DELAY_grade: z.ZodString;
|
|
17
|
-
analysis_EXPECTED_VEHICLE_EVENT_DELAY_reason: z.ZodString;
|
|
18
|
-
analysis_EXPECTED_VEHICLE_EVENT_INTERVAL_grade: z.ZodString;
|
|
19
|
-
analysis_EXPECTED_VEHICLE_EVENT_INTERVAL_reason: z.ZodString;
|
|
20
|
-
analysis_EXPECTED_VEHICLE_EVENT_QTY_expected_qty: z.ZodNumber;
|
|
21
|
-
analysis_EXPECTED_VEHICLE_EVENT_QTY_found_qty: z.ZodNumber;
|
|
22
|
-
analysis_EXPECTED_VEHICLE_EVENT_QTY_grade: z.ZodString;
|
|
23
|
-
analysis_EXPECTED_VEHICLE_EVENT_QTY_reason: z.ZodString;
|
|
24
|
-
analysis_EXPECTED_VEHICLE_ID_QTY_grade: z.ZodString;
|
|
25
|
-
analysis_EXPECTED_VEHICLE_ID_QTY_reason: z.ZodString;
|
|
26
|
-
analysis_MATCHING_APEX_LOCATIONS_grade: z.ZodString;
|
|
27
|
-
analysis_MATCHING_APEX_LOCATIONS_reason: z.ZodString;
|
|
28
|
-
analysis_MATCHING_VEHICLE_IDS_grade: z.ZodString;
|
|
29
|
-
analysis_MATCHING_VEHICLE_IDS_reason: z.ZodString;
|
|
30
|
-
analysis_SIMPLE_ONE_APEX_VALIDATION_grade: z.ZodString;
|
|
31
|
-
analysis_SIMPLE_ONE_APEX_VALIDATION_reason: z.ZodString;
|
|
32
|
-
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION_grade: z.ZodString;
|
|
33
|
-
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION_reason: z.ZodString;
|
|
34
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_grade: z.ZodString;
|
|
35
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_reason: z.ZodString;
|
|
36
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_first: z.ZodString;
|
|
37
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_last: z.ZodString;
|
|
38
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_middle: z.ZodString;
|
|
39
|
-
analysis_TRANSACTION_SEQUENTIALITY_expected_qty: z.ZodNumber;
|
|
40
|
-
analysis_TRANSACTION_SEQUENTIALITY_found_qty: z.ZodNumber;
|
|
41
|
-
analysis_TRANSACTION_SEQUENTIALITY_grade: z.ZodString;
|
|
42
|
-
analysis_TRANSACTION_SEQUENTIALITY_missing_qty: z.ZodNumber;
|
|
43
|
-
analysis_TRANSACTION_SEQUENTIALITY_reason: z.ZodString;
|
|
44
|
-
apex_locations_qty: z.ZodNumber;
|
|
45
|
-
apex_on_board_refunds_amount: z.ZodNumber;
|
|
46
|
-
apex_on_board_refunds_qty: z.ZodNumber;
|
|
47
|
-
apex_on_board_sales_amount: z.ZodNumber;
|
|
48
|
-
apex_on_board_sales_qty: z.ZodNumber;
|
|
49
|
-
apex_validations_qty: z.ZodNumber;
|
|
50
|
-
created_at: z.ZodNumber;
|
|
51
5
|
driver_ids: z.ZodString;
|
|
52
|
-
end_delay_status: z.ZodString;
|
|
53
|
-
end_time_observed: z.ZodNumber;
|
|
54
|
-
end_time_scheduled: z.ZodNumber;
|
|
55
|
-
extension_observed: z.ZodNumber;
|
|
56
|
-
extension_scheduled: z.ZodNumber;
|
|
57
|
-
hashed_shape_id: z.ZodString;
|
|
58
|
-
hashed_trip_id: z.ZodString;
|
|
59
6
|
headsign: z.ZodString;
|
|
60
|
-
is_locked: z.ZodBoolean;
|
|
61
7
|
line_id: z.ZodNumber;
|
|
8
|
+
pattern_id: z.ZodString;
|
|
9
|
+
plan_id: z.ZodString;
|
|
10
|
+
route_id: z.ZodString;
|
|
11
|
+
trip_id: z.ZodString;
|
|
12
|
+
vehicle_ids: z.ZodString;
|
|
62
13
|
operational_date: z.ZodString;
|
|
63
14
|
operational_status: z.ZodString;
|
|
15
|
+
start_delay_status: z.ZodString;
|
|
16
|
+
start_time_observed: z.ZodString;
|
|
17
|
+
start_time_scheduled: z.ZodString;
|
|
18
|
+
end_delay_status: z.ZodString;
|
|
19
|
+
end_time_observed: z.ZodString;
|
|
20
|
+
end_time_scheduled: z.ZodString;
|
|
21
|
+
extension_observed: z.ZodNumber;
|
|
22
|
+
extension_scheduled: z.ZodNumber;
|
|
23
|
+
seen_first_at: z.ZodString;
|
|
24
|
+
seen_last_at: z.ZodString;
|
|
25
|
+
seen_status: z.ZodString;
|
|
64
26
|
passengers_estimated: z.ZodNumber;
|
|
65
27
|
passengers_observed: z.ZodNumber;
|
|
66
28
|
passengers_observed_on_board_sales_amount: z.ZodNumber;
|
|
@@ -68,19 +30,36 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
68
30
|
passengers_observed_prepaid_amount: z.ZodNumber;
|
|
69
31
|
passengers_observed_prepaid_qty: z.ZodNumber;
|
|
70
32
|
passengers_observed_subscription_qty: z.ZodNumber;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
33
|
+
apex_locations_qty: z.ZodNumber;
|
|
34
|
+
apex_on_board_refunds_amount: z.ZodNumber;
|
|
35
|
+
apex_on_board_refunds_qty: z.ZodNumber;
|
|
36
|
+
apex_on_board_sales_amount: z.ZodNumber;
|
|
37
|
+
apex_on_board_sales_qty: z.ZodNumber;
|
|
38
|
+
apex_validations_qty: z.ZodNumber;
|
|
39
|
+
analysis_AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodString;
|
|
40
|
+
analysis_ENDED_AT_LAST_STOP: z.ZodString;
|
|
41
|
+
analysis_EXPECTED_APEX_VALIDATION_INTERVAL: z.ZodString;
|
|
42
|
+
analysis_EXPECTED_DRIVER_ID_QTY: z.ZodString;
|
|
43
|
+
analysis_EXPECTED_START_TIME: z.ZodString;
|
|
44
|
+
analysis_EXPECTED_START_TIME_value: z.ZodNumber;
|
|
45
|
+
analysis_EXPECTED_VEHICLE_EVENT_DELAY: z.ZodString;
|
|
46
|
+
analysis_EXPECTED_VEHICLE_EVENT_INTERVAL: z.ZodString;
|
|
47
|
+
analysis_EXPECTED_VEHICLE_EVENT_QTY: z.ZodString;
|
|
48
|
+
analysis_EXPECTED_VEHICLE_EVENT_QTY_expected_qty: z.ZodNumber;
|
|
49
|
+
analysis_EXPECTED_VEHICLE_EVENT_QTY_found_qty: z.ZodNumber;
|
|
50
|
+
analysis_EXPECTED_VEHICLE_ID_QTY: z.ZodString;
|
|
51
|
+
analysis_MATCHING_APEX_LOCATIONS: z.ZodString;
|
|
52
|
+
analysis_MATCHING_VEHICLE_IDS: z.ZodString;
|
|
53
|
+
analysis_SIMPLE_ONE_APEX_VALIDATION: z.ZodString;
|
|
54
|
+
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: z.ZodString;
|
|
55
|
+
analysis_SIMPLE_THREE_VEHICLE_EVENTS: z.ZodString;
|
|
56
|
+
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_first: z.ZodString;
|
|
57
|
+
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_last: z.ZodString;
|
|
58
|
+
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_middle: z.ZodString;
|
|
59
|
+
analysis_TRANSACTION_SEQUENTIALITY: z.ZodString;
|
|
60
|
+
analysis_TRANSACTION_SEQUENTIALITY_expected_qty: z.ZodNumber;
|
|
61
|
+
analysis_TRANSACTION_SEQUENTIALITY_found_qty: z.ZodNumber;
|
|
62
|
+
analysis_TRANSACTION_SEQUENTIALITY_missing_qty: z.ZodNumber;
|
|
84
63
|
acceptance_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>>;
|
|
85
64
|
justification_cause: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_INCIDENT", "SYSTEM_FAILURE", "TRAFFIC_JAM", "VEHICLE_ISSUE"]>>>;
|
|
86
65
|
justification_source: z.ZodOptional<z.ZodNullable<z.ZodEnum<["MANUAL", "ALERT"]>>>;
|
|
@@ -88,9 +67,6 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
88
67
|
pto_message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
89
68
|
}, "strip", z.ZodTypeAny, {
|
|
90
69
|
_id: string;
|
|
91
|
-
created_at: number;
|
|
92
|
-
updated_at: number;
|
|
93
|
-
is_locked: boolean;
|
|
94
70
|
agency_id: string;
|
|
95
71
|
apex_locations_qty: number;
|
|
96
72
|
apex_on_board_refunds_amount: number;
|
|
@@ -99,12 +75,10 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
99
75
|
apex_on_board_sales_qty: number;
|
|
100
76
|
apex_validations_qty: number;
|
|
101
77
|
driver_ids: string;
|
|
102
|
-
end_time_observed:
|
|
103
|
-
end_time_scheduled:
|
|
78
|
+
end_time_observed: string;
|
|
79
|
+
end_time_scheduled: string;
|
|
104
80
|
extension_observed: number;
|
|
105
81
|
extension_scheduled: number;
|
|
106
|
-
hashed_shape_id: string;
|
|
107
|
-
hashed_trip_id: string;
|
|
108
82
|
headsign: string;
|
|
109
83
|
line_id: number;
|
|
110
84
|
operational_date: string;
|
|
@@ -118,56 +92,40 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
118
92
|
pattern_id: string;
|
|
119
93
|
plan_id: string;
|
|
120
94
|
route_id: string;
|
|
121
|
-
seen_first_at:
|
|
122
|
-
seen_last_at:
|
|
123
|
-
start_time_observed:
|
|
124
|
-
start_time_scheduled:
|
|
125
|
-
system_status: string;
|
|
95
|
+
seen_first_at: string;
|
|
96
|
+
seen_last_at: string;
|
|
97
|
+
start_time_observed: string;
|
|
98
|
+
start_time_scheduled: string;
|
|
126
99
|
trip_id: string;
|
|
127
100
|
vehicle_ids: string;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
analysis_EXPECTED_START_TIME_reason: string;
|
|
101
|
+
operational_status: string;
|
|
102
|
+
start_delay_status: string;
|
|
103
|
+
end_delay_status: string;
|
|
104
|
+
seen_status: string;
|
|
105
|
+
analysis_AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: string;
|
|
106
|
+
analysis_ENDED_AT_LAST_STOP: string;
|
|
107
|
+
analysis_EXPECTED_APEX_VALIDATION_INTERVAL: string;
|
|
108
|
+
analysis_EXPECTED_DRIVER_ID_QTY: string;
|
|
109
|
+
analysis_EXPECTED_START_TIME: string;
|
|
138
110
|
analysis_EXPECTED_START_TIME_value: number;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
analysis_EXPECTED_VEHICLE_EVENT_INTERVAL_reason: string;
|
|
111
|
+
analysis_EXPECTED_VEHICLE_EVENT_DELAY: string;
|
|
112
|
+
analysis_EXPECTED_VEHICLE_EVENT_INTERVAL: string;
|
|
113
|
+
analysis_EXPECTED_VEHICLE_EVENT_QTY: string;
|
|
143
114
|
analysis_EXPECTED_VEHICLE_EVENT_QTY_expected_qty: number;
|
|
144
115
|
analysis_EXPECTED_VEHICLE_EVENT_QTY_found_qty: number;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
analysis_MATCHING_VEHICLE_IDS_grade: string;
|
|
152
|
-
analysis_MATCHING_VEHICLE_IDS_reason: string;
|
|
153
|
-
analysis_SIMPLE_ONE_APEX_VALIDATION_grade: string;
|
|
154
|
-
analysis_SIMPLE_ONE_APEX_VALIDATION_reason: string;
|
|
155
|
-
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION_grade: string;
|
|
156
|
-
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION_reason: string;
|
|
157
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_grade: string;
|
|
158
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_reason: string;
|
|
116
|
+
analysis_EXPECTED_VEHICLE_ID_QTY: string;
|
|
117
|
+
analysis_MATCHING_APEX_LOCATIONS: string;
|
|
118
|
+
analysis_MATCHING_VEHICLE_IDS: string;
|
|
119
|
+
analysis_SIMPLE_ONE_APEX_VALIDATION: string;
|
|
120
|
+
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: string;
|
|
121
|
+
analysis_SIMPLE_THREE_VEHICLE_EVENTS: string;
|
|
159
122
|
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_first: string;
|
|
160
123
|
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_last: string;
|
|
161
124
|
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_middle: string;
|
|
125
|
+
analysis_TRANSACTION_SEQUENTIALITY: string;
|
|
162
126
|
analysis_TRANSACTION_SEQUENTIALITY_expected_qty: number;
|
|
163
127
|
analysis_TRANSACTION_SEQUENTIALITY_found_qty: number;
|
|
164
|
-
analysis_TRANSACTION_SEQUENTIALITY_grade: string;
|
|
165
128
|
analysis_TRANSACTION_SEQUENTIALITY_missing_qty: number;
|
|
166
|
-
analysis_TRANSACTION_SEQUENTIALITY_reason: string;
|
|
167
|
-
end_delay_status: string;
|
|
168
|
-
operational_status: string;
|
|
169
|
-
seen_status: string;
|
|
170
|
-
start_delay_status: string;
|
|
171
129
|
acceptance_status?: "rejected" | "justification_required" | "under_review" | "accepted" | null | undefined;
|
|
172
130
|
pto_message?: string | null | undefined;
|
|
173
131
|
justification_cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_INCIDENT" | "SYSTEM_FAILURE" | "TRAFFIC_JAM" | "VEHICLE_ISSUE" | null | undefined;
|
|
@@ -175,9 +133,6 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
175
133
|
manual_trip_id?: string | null | undefined;
|
|
176
134
|
}, {
|
|
177
135
|
_id: string;
|
|
178
|
-
created_at: number;
|
|
179
|
-
updated_at: number;
|
|
180
|
-
is_locked: boolean;
|
|
181
136
|
agency_id: string;
|
|
182
137
|
apex_locations_qty: number;
|
|
183
138
|
apex_on_board_refunds_amount: number;
|
|
@@ -186,12 +141,10 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
186
141
|
apex_on_board_sales_qty: number;
|
|
187
142
|
apex_validations_qty: number;
|
|
188
143
|
driver_ids: string;
|
|
189
|
-
end_time_observed:
|
|
190
|
-
end_time_scheduled:
|
|
144
|
+
end_time_observed: string;
|
|
145
|
+
end_time_scheduled: string;
|
|
191
146
|
extension_observed: number;
|
|
192
147
|
extension_scheduled: number;
|
|
193
|
-
hashed_shape_id: string;
|
|
194
|
-
hashed_trip_id: string;
|
|
195
148
|
headsign: string;
|
|
196
149
|
line_id: number;
|
|
197
150
|
operational_date: string;
|
|
@@ -205,56 +158,40 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
205
158
|
pattern_id: string;
|
|
206
159
|
plan_id: string;
|
|
207
160
|
route_id: string;
|
|
208
|
-
seen_first_at:
|
|
209
|
-
seen_last_at:
|
|
210
|
-
start_time_observed:
|
|
211
|
-
start_time_scheduled:
|
|
212
|
-
system_status: string;
|
|
161
|
+
seen_first_at: string;
|
|
162
|
+
seen_last_at: string;
|
|
163
|
+
start_time_observed: string;
|
|
164
|
+
start_time_scheduled: string;
|
|
213
165
|
trip_id: string;
|
|
214
166
|
vehicle_ids: string;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
analysis_EXPECTED_START_TIME_reason: string;
|
|
167
|
+
operational_status: string;
|
|
168
|
+
start_delay_status: string;
|
|
169
|
+
end_delay_status: string;
|
|
170
|
+
seen_status: string;
|
|
171
|
+
analysis_AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: string;
|
|
172
|
+
analysis_ENDED_AT_LAST_STOP: string;
|
|
173
|
+
analysis_EXPECTED_APEX_VALIDATION_INTERVAL: string;
|
|
174
|
+
analysis_EXPECTED_DRIVER_ID_QTY: string;
|
|
175
|
+
analysis_EXPECTED_START_TIME: string;
|
|
225
176
|
analysis_EXPECTED_START_TIME_value: number;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
analysis_EXPECTED_VEHICLE_EVENT_INTERVAL_reason: string;
|
|
177
|
+
analysis_EXPECTED_VEHICLE_EVENT_DELAY: string;
|
|
178
|
+
analysis_EXPECTED_VEHICLE_EVENT_INTERVAL: string;
|
|
179
|
+
analysis_EXPECTED_VEHICLE_EVENT_QTY: string;
|
|
230
180
|
analysis_EXPECTED_VEHICLE_EVENT_QTY_expected_qty: number;
|
|
231
181
|
analysis_EXPECTED_VEHICLE_EVENT_QTY_found_qty: number;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
analysis_MATCHING_VEHICLE_IDS_grade: string;
|
|
239
|
-
analysis_MATCHING_VEHICLE_IDS_reason: string;
|
|
240
|
-
analysis_SIMPLE_ONE_APEX_VALIDATION_grade: string;
|
|
241
|
-
analysis_SIMPLE_ONE_APEX_VALIDATION_reason: string;
|
|
242
|
-
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION_grade: string;
|
|
243
|
-
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION_reason: string;
|
|
244
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_grade: string;
|
|
245
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_reason: string;
|
|
182
|
+
analysis_EXPECTED_VEHICLE_ID_QTY: string;
|
|
183
|
+
analysis_MATCHING_APEX_LOCATIONS: string;
|
|
184
|
+
analysis_MATCHING_VEHICLE_IDS: string;
|
|
185
|
+
analysis_SIMPLE_ONE_APEX_VALIDATION: string;
|
|
186
|
+
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: string;
|
|
187
|
+
analysis_SIMPLE_THREE_VEHICLE_EVENTS: string;
|
|
246
188
|
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_first: string;
|
|
247
189
|
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_last: string;
|
|
248
190
|
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_middle: string;
|
|
191
|
+
analysis_TRANSACTION_SEQUENTIALITY: string;
|
|
249
192
|
analysis_TRANSACTION_SEQUENTIALITY_expected_qty: number;
|
|
250
193
|
analysis_TRANSACTION_SEQUENTIALITY_found_qty: number;
|
|
251
|
-
analysis_TRANSACTION_SEQUENTIALITY_grade: string;
|
|
252
194
|
analysis_TRANSACTION_SEQUENTIALITY_missing_qty: number;
|
|
253
|
-
analysis_TRANSACTION_SEQUENTIALITY_reason: string;
|
|
254
|
-
end_delay_status: string;
|
|
255
|
-
operational_status: string;
|
|
256
|
-
seen_status: string;
|
|
257
|
-
start_delay_status: string;
|
|
258
195
|
acceptance_status?: "rejected" | "justification_required" | "under_review" | "accepted" | null | undefined;
|
|
259
196
|
pto_message?: string | null | undefined;
|
|
260
197
|
justification_cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "ROAD_INCIDENT" | "SYSTEM_FAILURE" | "TRAFFIC_JAM" | "VEHICLE_ISSUE" | null | undefined;
|
|
@@ -264,9 +201,9 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
264
201
|
export declare const RideExportPropertiesSchema: z.ZodObject<{
|
|
265
202
|
properties: z.ZodObject<{
|
|
266
203
|
agency_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
267
|
-
|
|
204
|
+
analysis_ended_at_last_stop: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
268
205
|
analysis_expected_apex_validation_interval: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
269
|
-
|
|
206
|
+
analysis_simple_three_vehicle_events: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
270
207
|
analysis_transaction_sequentiality: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
271
208
|
date_end: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
272
209
|
date_start: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -285,9 +222,9 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
|
|
|
285
222
|
};
|
|
286
223
|
agency_ids?: string[] | undefined;
|
|
287
224
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
288
|
-
|
|
225
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
289
226
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
290
|
-
|
|
227
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
291
228
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
292
229
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
293
230
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -299,9 +236,9 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
|
|
|
299
236
|
date_start: number;
|
|
300
237
|
agency_ids?: string[] | undefined;
|
|
301
238
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
302
|
-
|
|
239
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
303
240
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
304
|
-
|
|
241
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
305
242
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
306
243
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
307
244
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -321,9 +258,9 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
|
|
|
321
258
|
};
|
|
322
259
|
agency_ids?: string[] | undefined;
|
|
323
260
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
324
|
-
|
|
261
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
325
262
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
326
|
-
|
|
263
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
327
264
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
328
265
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
329
266
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -338,9 +275,9 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
|
|
|
338
275
|
date_start: number;
|
|
339
276
|
agency_ids?: string[] | undefined;
|
|
340
277
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
341
|
-
|
|
278
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
342
279
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
343
|
-
|
|
280
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
344
281
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
345
282
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
346
283
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -361,9 +298,9 @@ export declare const RideExportSchema: z.ZodObject<{
|
|
|
361
298
|
} & {
|
|
362
299
|
properties: z.ZodObject<{
|
|
363
300
|
agency_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
364
|
-
|
|
301
|
+
analysis_ended_at_last_stop: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
365
302
|
analysis_expected_apex_validation_interval: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
366
|
-
|
|
303
|
+
analysis_simple_three_vehicle_events: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
367
304
|
analysis_transaction_sequentiality: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
|
|
368
305
|
date_end: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
369
306
|
date_start: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -382,9 +319,9 @@ export declare const RideExportSchema: z.ZodObject<{
|
|
|
382
319
|
};
|
|
383
320
|
agency_ids?: string[] | undefined;
|
|
384
321
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
385
|
-
|
|
322
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
386
323
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
387
|
-
|
|
324
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
388
325
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
389
326
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
390
327
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -396,9 +333,9 @@ export declare const RideExportSchema: z.ZodObject<{
|
|
|
396
333
|
date_start: number;
|
|
397
334
|
agency_ids?: string[] | undefined;
|
|
398
335
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
399
|
-
|
|
336
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
400
337
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
401
|
-
|
|
338
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
402
339
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
403
340
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
404
341
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -427,9 +364,9 @@ export declare const RideExportSchema: z.ZodObject<{
|
|
|
427
364
|
};
|
|
428
365
|
agency_ids?: string[] | undefined;
|
|
429
366
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
430
|
-
|
|
367
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
431
368
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
432
|
-
|
|
369
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
433
370
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
434
371
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
435
372
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -452,9 +389,9 @@ export declare const RideExportSchema: z.ZodObject<{
|
|
|
452
389
|
date_start: number;
|
|
453
390
|
agency_ids?: string[] | undefined;
|
|
454
391
|
acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
|
|
455
|
-
|
|
392
|
+
analysis_ended_at_last_stop?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
456
393
|
analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
457
|
-
|
|
394
|
+
analysis_simple_three_vehicle_events?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
458
395
|
analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
|
|
459
396
|
delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
|
|
460
397
|
operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
|
|
@@ -9,67 +9,38 @@ import { FileExportBaseSchema } from './common.js';
|
|
|
9
9
|
/* DATA SCHEMA */
|
|
10
10
|
/* * */
|
|
11
11
|
export const FlatRideSchema = z.object({
|
|
12
|
+
/* META */
|
|
13
|
+
/* * */
|
|
12
14
|
_id: z.string(),
|
|
13
15
|
agency_id: z.string(),
|
|
14
|
-
analysis_AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP_grade: z.string(),
|
|
15
|
-
analysis_AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP_reason: z.string(),
|
|
16
|
-
analysis_ENDED_AT_LAST_STOP_grade: z.string(),
|
|
17
|
-
analysis_ENDED_AT_LAST_STOP_reason: z.string(),
|
|
18
|
-
analysis_EXPECTED_APEX_VALIDATION_INTERVAL_grade: z.string(),
|
|
19
|
-
analysis_EXPECTED_APEX_VALIDATION_INTERVAL_reason: z.string(),
|
|
20
|
-
analysis_EXPECTED_DRIVER_ID_QTY_grade: z.string(),
|
|
21
|
-
analysis_EXPECTED_DRIVER_ID_QTY_reason: z.string(),
|
|
22
|
-
analysis_EXPECTED_START_TIME_grade: z.string(),
|
|
23
|
-
analysis_EXPECTED_START_TIME_reason: z.string(),
|
|
24
|
-
analysis_EXPECTED_START_TIME_value: z.number(),
|
|
25
|
-
analysis_EXPECTED_VEHICLE_EVENT_DELAY_grade: z.string(),
|
|
26
|
-
analysis_EXPECTED_VEHICLE_EVENT_DELAY_reason: z.string(),
|
|
27
|
-
analysis_EXPECTED_VEHICLE_EVENT_INTERVAL_grade: z.string(),
|
|
28
|
-
analysis_EXPECTED_VEHICLE_EVENT_INTERVAL_reason: z.string(),
|
|
29
|
-
analysis_EXPECTED_VEHICLE_EVENT_QTY_expected_qty: z.number(),
|
|
30
|
-
analysis_EXPECTED_VEHICLE_EVENT_QTY_found_qty: z.number(),
|
|
31
|
-
analysis_EXPECTED_VEHICLE_EVENT_QTY_grade: z.string(),
|
|
32
|
-
analysis_EXPECTED_VEHICLE_EVENT_QTY_reason: z.string(),
|
|
33
|
-
analysis_EXPECTED_VEHICLE_ID_QTY_grade: z.string(),
|
|
34
|
-
analysis_EXPECTED_VEHICLE_ID_QTY_reason: z.string(),
|
|
35
|
-
analysis_MATCHING_APEX_LOCATIONS_grade: z.string(),
|
|
36
|
-
analysis_MATCHING_APEX_LOCATIONS_reason: z.string(),
|
|
37
|
-
analysis_MATCHING_VEHICLE_IDS_grade: z.string(),
|
|
38
|
-
analysis_MATCHING_VEHICLE_IDS_reason: z.string(),
|
|
39
|
-
analysis_SIMPLE_ONE_APEX_VALIDATION_grade: z.string(),
|
|
40
|
-
analysis_SIMPLE_ONE_APEX_VALIDATION_reason: z.string(),
|
|
41
|
-
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION_grade: z.string(),
|
|
42
|
-
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION_reason: z.string(),
|
|
43
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_grade: z.string(),
|
|
44
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_reason: z.string(),
|
|
45
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_first: z.string(),
|
|
46
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_last: z.string(),
|
|
47
|
-
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_middle: z.string(),
|
|
48
|
-
analysis_TRANSACTION_SEQUENTIALITY_expected_qty: z.number(),
|
|
49
|
-
analysis_TRANSACTION_SEQUENTIALITY_found_qty: z.number(),
|
|
50
|
-
analysis_TRANSACTION_SEQUENTIALITY_grade: z.string(),
|
|
51
|
-
analysis_TRANSACTION_SEQUENTIALITY_missing_qty: z.number(),
|
|
52
|
-
analysis_TRANSACTION_SEQUENTIALITY_reason: z.string(),
|
|
53
|
-
apex_locations_qty: z.number(),
|
|
54
|
-
apex_on_board_refunds_amount: z.number(),
|
|
55
|
-
apex_on_board_refunds_qty: z.number(),
|
|
56
|
-
apex_on_board_sales_amount: z.number(),
|
|
57
|
-
apex_on_board_sales_qty: z.number(),
|
|
58
|
-
apex_validations_qty: z.number(),
|
|
59
|
-
created_at: z.number(),
|
|
60
16
|
driver_ids: z.string(),
|
|
61
|
-
end_delay_status: z.string(),
|
|
62
|
-
end_time_observed: z.number(),
|
|
63
|
-
end_time_scheduled: z.number(),
|
|
64
|
-
extension_observed: z.number(),
|
|
65
|
-
extension_scheduled: z.number(),
|
|
66
|
-
hashed_shape_id: z.string(),
|
|
67
|
-
hashed_trip_id: z.string(),
|
|
68
17
|
headsign: z.string(),
|
|
69
|
-
is_locked: z.boolean(),
|
|
70
18
|
line_id: z.number(),
|
|
19
|
+
pattern_id: z.string(),
|
|
20
|
+
plan_id: z.string(),
|
|
21
|
+
route_id: z.string(),
|
|
22
|
+
trip_id: z.string(),
|
|
23
|
+
vehicle_ids: z.string(),
|
|
24
|
+
/* TIME & STATUS */
|
|
25
|
+
/* * */
|
|
71
26
|
operational_date: z.string(),
|
|
72
27
|
operational_status: z.string(),
|
|
28
|
+
//
|
|
29
|
+
start_delay_status: z.string(),
|
|
30
|
+
start_time_observed: z.string(),
|
|
31
|
+
start_time_scheduled: z.string(),
|
|
32
|
+
//
|
|
33
|
+
end_delay_status: z.string(),
|
|
34
|
+
end_time_observed: z.string(),
|
|
35
|
+
end_time_scheduled: z.string(),
|
|
36
|
+
extension_observed: z.number(),
|
|
37
|
+
extension_scheduled: z.number(),
|
|
38
|
+
//
|
|
39
|
+
seen_first_at: z.string(),
|
|
40
|
+
seen_last_at: z.string(),
|
|
41
|
+
seen_status: z.string(),
|
|
42
|
+
/* PASSENGERS */
|
|
43
|
+
/* * */
|
|
73
44
|
passengers_estimated: z.number(),
|
|
74
45
|
passengers_observed: z.number(),
|
|
75
46
|
passengers_observed_on_board_sales_amount: z.number(),
|
|
@@ -77,19 +48,40 @@ export const FlatRideSchema = z.object({
|
|
|
77
48
|
passengers_observed_prepaid_amount: z.number(),
|
|
78
49
|
passengers_observed_prepaid_qty: z.number(),
|
|
79
50
|
passengers_observed_subscription_qty: z.number(),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
51
|
+
/* APEX */
|
|
52
|
+
/* * */
|
|
53
|
+
apex_locations_qty: z.number(),
|
|
54
|
+
apex_on_board_refunds_amount: z.number(),
|
|
55
|
+
apex_on_board_refunds_qty: z.number(),
|
|
56
|
+
apex_on_board_sales_amount: z.number(),
|
|
57
|
+
apex_on_board_sales_qty: z.number(),
|
|
58
|
+
apex_validations_qty: z.number(),
|
|
59
|
+
/* ANALYSIS */
|
|
60
|
+
/* * */
|
|
61
|
+
analysis_AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.string(),
|
|
62
|
+
analysis_ENDED_AT_LAST_STOP: z.string(),
|
|
63
|
+
analysis_EXPECTED_APEX_VALIDATION_INTERVAL: z.string(),
|
|
64
|
+
analysis_EXPECTED_DRIVER_ID_QTY: z.string(),
|
|
65
|
+
analysis_EXPECTED_START_TIME: z.string(),
|
|
66
|
+
analysis_EXPECTED_START_TIME_value: z.number(),
|
|
67
|
+
analysis_EXPECTED_VEHICLE_EVENT_DELAY: z.string(),
|
|
68
|
+
analysis_EXPECTED_VEHICLE_EVENT_INTERVAL: z.string(),
|
|
69
|
+
analysis_EXPECTED_VEHICLE_EVENT_QTY: z.string(),
|
|
70
|
+
analysis_EXPECTED_VEHICLE_EVENT_QTY_expected_qty: z.number(),
|
|
71
|
+
analysis_EXPECTED_VEHICLE_EVENT_QTY_found_qty: z.number(),
|
|
72
|
+
analysis_EXPECTED_VEHICLE_ID_QTY: z.string(),
|
|
73
|
+
analysis_MATCHING_APEX_LOCATIONS: z.string(),
|
|
74
|
+
analysis_MATCHING_VEHICLE_IDS: z.string(),
|
|
75
|
+
analysis_SIMPLE_ONE_APEX_VALIDATION: z.string(),
|
|
76
|
+
analysis_SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: z.string(),
|
|
77
|
+
analysis_SIMPLE_THREE_VEHICLE_EVENTS: z.string(),
|
|
78
|
+
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_first: z.string(),
|
|
79
|
+
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_last: z.string(),
|
|
80
|
+
analysis_SIMPLE_THREE_VEHICLE_EVENTS_stop_ids_middle: z.string(),
|
|
81
|
+
analysis_TRANSACTION_SEQUENTIALITY: z.string(),
|
|
82
|
+
analysis_TRANSACTION_SEQUENTIALITY_expected_qty: z.number(),
|
|
83
|
+
analysis_TRANSACTION_SEQUENTIALITY_found_qty: z.number(),
|
|
84
|
+
analysis_TRANSACTION_SEQUENTIALITY_missing_qty: z.number(),
|
|
93
85
|
/* ACCEPTANCE / JUSTIFICATION */
|
|
94
86
|
/* * */
|
|
95
87
|
acceptance_status: z.enum(RideAcceptanceStatusSchema.options).nullish(),
|
|
@@ -104,9 +96,9 @@ export const RideExportPropertiesSchema = z.object({
|
|
|
104
96
|
properties: z.object({
|
|
105
97
|
agency_ids: z.array(z.string()).optional(),
|
|
106
98
|
/* * */
|
|
107
|
-
|
|
99
|
+
analysis_ended_at_last_stop: z.array(RideAnalysisGradeWithNoneSchema).optional(),
|
|
108
100
|
analysis_expected_apex_validation_interval: z.array(RideAnalysisGradeWithNoneSchema).optional(),
|
|
109
|
-
|
|
101
|
+
analysis_simple_three_vehicle_events: z.array(RideAnalysisGradeWithNoneSchema).optional(),
|
|
110
102
|
analysis_transaction_sequentiality: z.array(RideAnalysisGradeWithNoneSchema).optional(),
|
|
111
103
|
/* * */
|
|
112
104
|
date_end: unixTimeStampSchema,
|
package/package.json
CHANGED