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