@tmlmobilidade/types 20251103.1255.55 → 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 → _common}/index.d.ts +4 -2
- package/dist/{src/_common → _common}/index.js +4 -2
- package/dist/_common/mongo.d.ts +3 -0
- package/dist/_common/status.d.ts +13 -0
- package/dist/_common/status.js +20 -0
- package/dist/_common/utility.js +1 -0
- package/dist/{src/agency.d.ts → agency.d.ts} +4 -15
- package/dist/{src/agency.js → agency.js} +1 -6
- package/dist/{src/alert.d.ts → alert.d.ts} +20 -21
- package/dist/{src/alert.js → alert.js} +8 -14
- package/dist/{src/simplified-apex → apex}/simplified-apex-validation.d.ts +20 -20
- package/dist/{src/auth → auth}/index.d.ts +1 -1
- package/dist/{src/auth → auth}/index.js +1 -1
- package/dist/{src/auth → auth}/password-requirements.js +2 -1
- package/dist/auth/role.d.ts +958 -0
- package/dist/{src/auth → auth}/role.js +2 -2
- package/dist/{src/auth → auth}/session.d.ts +13 -9
- package/dist/{src/auth → auth}/session.js +1 -1
- package/dist/auth/user.d.ts +1281 -0
- package/dist/{src/auth → auth}/user.js +11 -14
- package/dist/{src/file-exports → file-exports}/common.d.ts +9 -8
- package/dist/{src/file-exports → file-exports}/common.js +1 -1
- package/dist/file-exports/index.d.ts +121 -0
- package/dist/file-exports/ride-export.d.ts +410 -0
- package/dist/file-exports/ride-export.js +131 -0
- package/dist/{src/file.d.ts → file.d.ts} +18 -18
- package/dist/gtfs/agency.d.ts +30 -0
- package/dist/gtfs/agency.js +13 -0
- package/dist/gtfs/feed-info.d.ts +33 -0
- package/dist/{src/gtfs.js → gtfs/feed-info.js} +1 -11
- package/dist/{src/gtfs → gtfs}/index.d.ts +3 -0
- package/dist/{src/gtfs → gtfs}/index.js +3 -0
- package/dist/gtfs/service-alert.d.ts +26 -0
- package/dist/index.d.ts +22 -22
- package/dist/index.js +22 -22
- package/dist/locations/census.d.ts +211 -0
- package/dist/locations/census.js +2 -0
- package/dist/locations/district.d.ts +24 -0
- package/dist/locations/district.js +2 -0
- package/dist/locations/index.d.ts +6 -0
- package/dist/locations/index.js +6 -0
- package/dist/locations/locality.d.ts +27 -0
- package/dist/locations/locality.js +2 -0
- package/dist/locations/municipality.d.ts +25 -0
- package/dist/locations/municipality.js +2 -0
- package/dist/locations/parish.d.ts +26 -0
- package/dist/locations/parish.js +2 -0
- package/dist/locations/queries.d.ts +117 -0
- package/dist/{src/locations.js → locations/queries.js} +5 -16
- package/dist/metrics/demand/demand_by_agency.d.ts +210 -0
- package/dist/metrics/demand/demand_by_agency.js +39 -0
- package/dist/metrics/demand/demand_by_category.d.ts +475 -0
- package/dist/metrics/demand/demand_by_category.js +114 -0
- package/dist/metrics/demand/demand_by_line.d.ts +246 -0
- package/dist/metrics/demand/demand_by_line.js +56 -0
- package/dist/metrics/demand/demand_by_pattern.d.ts +332 -0
- package/dist/metrics/demand/demand_by_pattern.js +56 -0
- package/dist/metrics/demand/demand_by_product.d.ts +475 -0
- package/dist/metrics/demand/demand_by_product.js +114 -0
- package/dist/metrics/demand/index.d.ts +6 -0
- package/dist/metrics/demand/index.js +8 -0
- package/dist/metrics/demand/records.d.ts +320 -0
- package/dist/metrics/demand/records.js +53 -0
- package/dist/metrics/index.d.ts +2647 -0
- package/dist/metrics/index.js +48 -0
- package/dist/metrics/realtime.d.ts +667 -0
- package/dist/metrics/realtime.js +41 -0
- package/dist/{src/notification.d.ts → notification.d.ts} +4 -4
- package/dist/{src/organization.d.ts → organization.d.ts} +32 -32
- package/dist/{src/organization.js → organization.js} +7 -7
- package/dist/permissions/agencies.d.ts +12 -0
- package/dist/permissions/agencies.js +13 -0
- package/dist/permissions/alerts.d.ts +36 -0
- package/dist/permissions/alerts.js +25 -0
- package/dist/permissions/controller.d.ts +36 -0
- package/dist/permissions/controller.js +30 -0
- package/dist/permissions/gtfs-validations.d.ts +25 -0
- package/dist/permissions/gtfs-validations.js +14 -0
- package/dist/permissions/home.d.ts +12 -0
- package/dist/permissions/home.js +10 -0
- package/dist/permissions/index.d.ts +268 -0
- package/dist/permissions/index.js +149 -0
- package/dist/permissions/organizations.d.ts +12 -0
- package/dist/permissions/organizations.js +12 -0
- package/dist/permissions/performance.d.ts +12 -0
- package/dist/permissions/performance.js +9 -0
- package/dist/permissions/plans.d.ts +25 -0
- package/dist/permissions/plans.js +22 -0
- package/dist/permissions/roles.d.ts +12 -0
- package/dist/permissions/roles.js +12 -0
- package/dist/permissions/stops.d.ts +30 -0
- package/dist/permissions/stops.js +17 -0
- package/dist/permissions/users.d.ts +12 -0
- package/dist/permissions/users.js +12 -0
- package/dist/{src/plans → plans}/gtfs-validation.d.ts +55 -63
- package/dist/{src/plans → plans}/gtfs-validation.js +3 -6
- package/dist/plans/plan-app-status.d.ts +15 -0
- package/dist/plans/plan-app-status.js +10 -0
- package/dist/{src/plans → plans}/plan.d.ts +240 -104
- package/dist/{src/plans → plans}/plan.js +8 -10
- package/dist/{src/_common/proposed-change.d.ts → proposed-change.d.ts} +21 -22
- package/dist/{src/_common/proposed-change.js → proposed-change.js} +5 -7
- package/dist/{src/rides → rides}/index.d.ts +1 -0
- package/dist/{src/rides → rides}/index.js +1 -0
- package/dist/{src/rides → rides}/ride-acceptance.d.ts +65 -65
- package/dist/{src/rides → rides}/ride-analysis.d.ts +34 -34
- package/dist/{src/rides → rides}/ride-audit.d.ts +10 -10
- package/dist/rides/ride-normalized.d.ts +29 -0
- package/dist/rides/ride-normalized.js +2 -0
- package/dist/{src/rides → rides}/ride.d.ts +523 -567
- package/dist/{src/rides → rides}/ride.js +2 -16
- package/dist/{src/sams → sams}/sam-analysis.d.ts +11 -11
- package/dist/{src/sams → sams}/sam-analysis.js +4 -4
- package/dist/{src/sams → sams}/sam.d.ts +76 -76
- package/dist/{src/sams → sams}/sam.js +1 -1
- package/dist/{src/stop.d.ts → stop.d.ts} +32 -43
- package/dist/{src/stop.js → stop.js} +3 -8
- package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.d.ts +77 -0
- package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.js +21 -0
- package/dist/vehicle-events/index.d.ts +2 -0
- package/dist/vehicle-events/index.js +2 -0
- package/dist/{src/vehicle-event.d.ts → vehicle-events/simplified-vehicle-event.d.ts} +9 -9
- package/dist/{src/vehicle-event.js → vehicle-events/simplified-vehicle-event.js} +3 -3
- package/dist/wiki.js +2 -0
- package/dist/{src/zone.d.ts → zone.d.ts} +2 -16
- package/dist/{src/zone.js → zone.js} +0 -6
- package/package.json +18 -21
- package/README.md +0 -13
- package/dist/src/_common/email.d.ts +0 -4
- package/dist/src/_common/email.js +0 -7
- package/dist/src/auth/permission.d.ts +0 -19
- package/dist/src/auth/permission.js +0 -8
- package/dist/src/auth/role.d.ts +0 -127
- package/dist/src/auth/user.d.ts +0 -311
- package/dist/src/file-exports/index.d.ts +0 -121
- package/dist/src/file-exports/ride-export.d.ts +0 -407
- package/dist/src/file-exports/ride-export.js +0 -120
- package/dist/src/gtfs.d.ts +0 -88
- package/dist/src/locations.d.ts +0 -319
- package/dist/src/metrics/demand.d.ts +0 -803
- package/dist/src/metrics/demand.js +0 -153
- package/dist/src/metrics/index.d.ts +0 -806
- package/dist/src/metrics/index.js +0 -19
- package/dist/src/plans/plan-controller.d.ts +0 -15
- package/dist/src/plans/plan-controller.js +0 -10
- package/dist/src/system/index.d.ts +0 -2
- package/dist/src/system/index.js +0 -2
- package/dist/src/system/processing-status.d.ts +0 -9
- package/dist/src/system/processing-status.js +0 -5
- package/dist/{src/_common → _common}/comment.d.ts +8 -8
- package/dist/{src/_common → _common}/comment.js +0 -0
- package/dist/{src/_common → _common}/document.d.ts +0 -0
- package/dist/{src/_common → _common}/document.js +0 -0
- package/dist/{src/system → _common}/environment.d.ts +0 -0
- package/dist/{src/system → _common}/environment.js +0 -0
- package/dist/{src/_common → _common}/fastify.d.ts +0 -0
- package/dist/{src/_common → _common}/fastify.js +0 -0
- package/dist/{src/_common/utility.js → _common/mongo.js} +0 -0
- package/dist/{src/_common → _common}/operational-date.d.ts +0 -0
- package/dist/{src/_common → _common}/operational-date.js +0 -0
- package/dist/{src/_common → _common}/unix-timestamp.d.ts +0 -0
- package/dist/{src/_common → _common}/unix-timestamp.js +0 -0
- package/dist/{src/_common → _common}/utility.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/index.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/index.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection-decision.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection-decision.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-inspection.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-location.d.ts +16 -16
- package/dist/{src/simplified-apex → apex}/simplified-apex-location.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-refund.d.ts +20 -20
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-refund.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-sale.d.ts +25 -25
- package/dist/{src/simplified-apex → apex}/simplified-apex-on-board-sale.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-type.d.ts +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-type.js +0 -0
- package/dist/{src/simplified-apex → apex}/simplified-apex-validation.js +0 -0
- package/dist/{src/auth → auth}/login.d.ts +0 -0
- package/dist/{src/auth → auth}/login.js +0 -0
- package/dist/{src/auth → auth}/password-requirements.d.ts +0 -0
- package/dist/{src/auth → auth}/verification-token.d.ts +0 -0
- package/dist/{src/auth → auth}/verification-token.js +0 -0
- package/dist/{src/file-exports → file-exports}/index.js +0 -0
- package/dist/{src/file.js → file.js} +0 -0
- package/dist/{src/gtfs → gtfs}/calendar-dates.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/calendar-dates.js +0 -0
- package/dist/{src/gtfs → gtfs}/calendar.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/calendar.js +0 -0
- package/dist/{src/gtfs → gtfs}/cause-effetcs.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/cause-effetcs.js +0 -0
- package/dist/{src/gtfs → gtfs}/common.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/common.js +0 -0
- package/dist/{src/gtfs → gtfs}/routes.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/routes.js +0 -0
- package/dist/{src/pcgi/pcgi-apex-location.js → gtfs/service-alert.js} +0 -0
- package/dist/{src/gtfs → gtfs}/shapes.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/shapes.js +0 -0
- package/dist/{src/gtfs → gtfs}/stop-times.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/stop-times.js +0 -0
- package/dist/{src/gtfs → gtfs}/stops.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/stops.js +0 -0
- package/dist/{src/gtfs → gtfs}/trips.d.ts +0 -0
- package/dist/{src/gtfs → gtfs}/trips.js +0 -0
- package/dist/{src/metrics → metrics}/common.d.ts +0 -0
- package/dist/{src/metrics → metrics}/common.js +0 -0
- package/dist/{src/notification.js → notification.js} +0 -0
- package/dist/{src/pcgi → pcgi}/index.d.ts +0 -0
- package/dist/{src/pcgi → pcgi}/index.js +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-location.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-apex-refund.js → pcgi/pcgi-apex-location.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-refund.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-apex-sale.js → pcgi/pcgi-apex-refund.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-sale.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-apex-validation.js → pcgi/pcgi-apex-sale.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-apex-validation.d.ts +0 -0
- package/dist/{src/pcgi/pcgi-transaction-entity.js → pcgi/pcgi-apex-validation.js} +0 -0
- package/dist/{src/pcgi → pcgi}/pcgi-transaction-entity.d.ts +0 -0
- package/dist/{src/rides/hashed-shape.js → pcgi/pcgi-transaction-entity.js} +0 -0
- package/dist/{src/plans → plans}/index.d.ts +0 -0
- package/dist/{src/plans → plans}/index.js +0 -0
- package/dist/{src/plans → plans}/plan-pcgi-legacy.d.ts +0 -0
- package/dist/{src/plans → plans}/plan-pcgi-legacy.js +0 -0
- package/dist/{src/rides → rides}/hashed-shape.d.ts +0 -0
- package/dist/{src/rides/hashed-trip.js → rides/hashed-shape.js} +0 -0
- package/dist/{src/rides → rides}/hashed-trip.d.ts +0 -0
- package/dist/{src/wiki.js → rides/hashed-trip.js} +0 -0
- package/dist/{src/rides → rides}/ride-acceptance.js +1 -1
- /package/dist/{src/rides → rides}/ride-analysis.js +0 -0
- /package/dist/{src/rides → rides}/ride-audit.js +0 -0
- /package/dist/{src/rides → rides}/ride-overrides.d.ts +0 -0
- /package/dist/{src/rides → rides}/ride-overrides.js +0 -0
- /package/dist/{src/sams → sams}/index.d.ts +0 -0
- /package/dist/{src/sams → sams}/index.js +0 -0
- /package/dist/{src/wiki.d.ts → wiki.d.ts} +0 -0
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import { RideAnalysis } from './ride-analysis.js';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
import { RideAcceptanceStatusSchema } from './ride-acceptance.js';
|
|
4
|
-
export declare const RIDE_OPERATIONAL_STATUS_OPTIONS: readonly ["ended", "missed", "running", "scheduled"];
|
|
5
|
-
export declare const RideOperationalStatusSchema: z.ZodEnum<["ended", "missed", "running", "scheduled"]>;
|
|
6
|
-
export type RideOperationalStatus = z.infer<typeof RideOperationalStatusSchema>;
|
|
7
|
-
export declare const RIDE_DELAY_STATUS_OPTIONS: readonly ["delayed", "early", "ontime", "none"];
|
|
8
|
-
export declare const RideDelayStatusSchema: z.ZodEnum<["delayed", "early", "ontime", "none"]>;
|
|
9
|
-
export type RideDelayStatus = z.infer<typeof RideDelayStatusSchema>;
|
|
10
|
-
export declare const RIDE_SEEN_STATUS_OPTIONS: readonly ["gone", "seen", "unseen"];
|
|
11
|
-
export declare const RideSeenStatusSchema: z.ZodEnum<["gone", "seen", "unseen"]>;
|
|
12
|
-
export type RideSeenStatus = z.infer<typeof RideSeenStatusSchema>;
|
|
13
2
|
export declare const RideSchema: z.ZodObject<{
|
|
14
3
|
_id: z.ZodString;
|
|
15
4
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -27,12 +16,12 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
27
16
|
value: z.ZodNullable<z.ZodNumber>;
|
|
28
17
|
}, "strict", z.ZodTypeAny, {
|
|
29
18
|
value: number | null;
|
|
30
|
-
grade: "
|
|
19
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
31
20
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
32
21
|
error_message?: string | undefined;
|
|
33
22
|
}, {
|
|
34
23
|
value: number | null;
|
|
35
|
-
grade: "
|
|
24
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
36
25
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
37
26
|
error_message?: string | undefined;
|
|
38
27
|
}>;
|
|
@@ -42,11 +31,11 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
42
31
|
} & {
|
|
43
32
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
|
|
44
33
|
}, "strict", z.ZodTypeAny, {
|
|
45
|
-
grade: "
|
|
34
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
46
35
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
47
36
|
error_message?: string | undefined;
|
|
48
37
|
}, {
|
|
49
|
-
grade: "
|
|
38
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
50
39
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
51
40
|
error_message?: string | undefined;
|
|
52
41
|
}>;
|
|
@@ -56,11 +45,11 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
56
45
|
} & {
|
|
57
46
|
reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "NOT_ENOUGH_VALIDATIONS", "INTERVALS_TOO_SHORT", "NON_ORGANIC_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
|
|
58
47
|
}, "strict", z.ZodTypeAny, {
|
|
59
|
-
grade: "
|
|
48
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
60
49
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
61
50
|
error_message?: string | undefined;
|
|
62
51
|
}, {
|
|
63
|
-
grade: "
|
|
52
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
64
53
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
65
54
|
error_message?: string | undefined;
|
|
66
55
|
}>;
|
|
@@ -72,12 +61,12 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
72
61
|
value: z.ZodNullable<z.ZodNumber>;
|
|
73
62
|
}, "strict", z.ZodTypeAny, {
|
|
74
63
|
value: number | null;
|
|
75
|
-
grade: "
|
|
64
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
76
65
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
77
66
|
error_message?: string | undefined;
|
|
78
67
|
}, {
|
|
79
68
|
value: number | null;
|
|
80
|
-
grade: "
|
|
69
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
81
70
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
82
71
|
error_message?: string | undefined;
|
|
83
72
|
}>;
|
|
@@ -89,12 +78,12 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
89
78
|
value: z.ZodNullable<z.ZodNumber>;
|
|
90
79
|
}, "strict", z.ZodTypeAny, {
|
|
91
80
|
value: number | null;
|
|
92
|
-
grade: "
|
|
81
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
93
82
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
94
83
|
error_message?: string | undefined;
|
|
95
84
|
}, {
|
|
96
85
|
value: number | null;
|
|
97
|
-
grade: "
|
|
86
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
98
87
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
99
88
|
error_message?: string | undefined;
|
|
100
89
|
}>;
|
|
@@ -106,12 +95,12 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
106
95
|
value: z.ZodNullable<z.ZodNumber>;
|
|
107
96
|
}, "strict", z.ZodTypeAny, {
|
|
108
97
|
value: number | null;
|
|
109
|
-
grade: "
|
|
98
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
110
99
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
111
100
|
error_message?: string | undefined;
|
|
112
101
|
}, {
|
|
113
102
|
value: number | null;
|
|
114
|
-
grade: "
|
|
103
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
115
104
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
116
105
|
error_message?: string | undefined;
|
|
117
106
|
}>;
|
|
@@ -123,12 +112,12 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
123
112
|
value: z.ZodNullable<z.ZodNumber>;
|
|
124
113
|
}, "strict", z.ZodTypeAny, {
|
|
125
114
|
value: number | null;
|
|
126
|
-
grade: "
|
|
115
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
127
116
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
128
117
|
error_message?: string | undefined;
|
|
129
118
|
}, {
|
|
130
119
|
value: number | null;
|
|
131
|
-
grade: "
|
|
120
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
132
121
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
133
122
|
error_message?: string | undefined;
|
|
134
123
|
}>;
|
|
@@ -140,13 +129,13 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
140
129
|
found_qty: z.ZodNullable<z.ZodNumber>;
|
|
141
130
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_QTY", "UNEXPECTED_VEHICLE_EVENT_QTY"]>;
|
|
142
131
|
}, "strict", z.ZodTypeAny, {
|
|
143
|
-
grade: "
|
|
132
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
144
133
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
145
134
|
expected_qty: number | null;
|
|
146
135
|
found_qty: number | null;
|
|
147
136
|
error_message?: string | undefined;
|
|
148
137
|
}, {
|
|
149
|
-
grade: "
|
|
138
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
150
139
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
151
140
|
expected_qty: number | null;
|
|
152
141
|
found_qty: number | null;
|
|
@@ -160,12 +149,12 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
160
149
|
value: z.ZodNullable<z.ZodNumber>;
|
|
161
150
|
}, "strict", z.ZodTypeAny, {
|
|
162
151
|
value: number | null;
|
|
163
|
-
grade: "
|
|
152
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
164
153
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
165
154
|
error_message?: string | undefined;
|
|
166
155
|
}, {
|
|
167
156
|
value: number | null;
|
|
168
|
-
grade: "
|
|
157
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
169
158
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
170
159
|
error_message?: string | undefined;
|
|
171
160
|
}>;
|
|
@@ -175,11 +164,11 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
175
164
|
} & {
|
|
176
165
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
|
|
177
166
|
}, "strict", z.ZodTypeAny, {
|
|
178
|
-
grade: "
|
|
167
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
179
168
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
180
169
|
error_message?: string | undefined;
|
|
181
170
|
}, {
|
|
182
|
-
grade: "
|
|
171
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
183
172
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
184
173
|
error_message?: string | undefined;
|
|
185
174
|
}>;
|
|
@@ -189,11 +178,11 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
189
178
|
} & {
|
|
190
179
|
reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS", "NO_APEX_TRANSACTIONS"]>;
|
|
191
180
|
}, "strict", z.ZodTypeAny, {
|
|
192
|
-
grade: "
|
|
181
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
193
182
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
194
183
|
error_message?: string | undefined;
|
|
195
184
|
}, {
|
|
196
|
-
grade: "
|
|
185
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
197
186
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
198
187
|
error_message?: string | undefined;
|
|
199
188
|
}>;
|
|
@@ -205,12 +194,12 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
205
194
|
value: z.ZodNullable<z.ZodNumber>;
|
|
206
195
|
}, "strict", z.ZodTypeAny, {
|
|
207
196
|
value: number | null;
|
|
208
|
-
grade: "
|
|
197
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
209
198
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
210
199
|
error_message?: string | undefined;
|
|
211
200
|
}, {
|
|
212
201
|
value: number | null;
|
|
213
|
-
grade: "
|
|
202
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
214
203
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
215
204
|
error_message?: string | undefined;
|
|
216
205
|
}>;
|
|
@@ -220,11 +209,11 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
220
209
|
} & {
|
|
221
210
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
|
|
222
211
|
}, "strict", z.ZodTypeAny, {
|
|
223
|
-
grade: "
|
|
212
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
224
213
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
225
214
|
error_message?: string | undefined;
|
|
226
215
|
}, {
|
|
227
|
-
grade: "
|
|
216
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
228
217
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
229
218
|
error_message?: string | undefined;
|
|
230
219
|
}>;
|
|
@@ -237,14 +226,14 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
237
226
|
stop_ids_last: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
238
227
|
stop_ids_middle: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
239
228
|
}, "strict", z.ZodTypeAny, {
|
|
240
|
-
grade: "
|
|
229
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
241
230
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
242
231
|
stop_ids_first: string[] | null;
|
|
243
232
|
stop_ids_last: string[] | null;
|
|
244
233
|
stop_ids_middle: string[] | null;
|
|
245
234
|
error_message?: string | undefined;
|
|
246
235
|
}, {
|
|
247
|
-
grade: "
|
|
236
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
248
237
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
249
238
|
stop_ids_first: string[] | null;
|
|
250
239
|
stop_ids_last: string[] | null;
|
|
@@ -260,14 +249,14 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
260
249
|
missing_qty: z.ZodNullable<z.ZodNumber>;
|
|
261
250
|
reason: z.ZodEnum<["NO_TRANSACTIONS", "MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
|
|
262
251
|
}, "strict", z.ZodTypeAny, {
|
|
263
|
-
grade: "
|
|
252
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
264
253
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
265
254
|
expected_qty: number | null;
|
|
266
255
|
found_qty: number | null;
|
|
267
256
|
missing_qty: number | null;
|
|
268
257
|
error_message?: string | undefined;
|
|
269
258
|
}, {
|
|
270
|
-
grade: "
|
|
259
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
271
260
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
272
261
|
expected_qty: number | null;
|
|
273
262
|
found_qty: number | null;
|
|
@@ -277,80 +266,80 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
277
266
|
}, "strip", z.ZodTypeAny, {
|
|
278
267
|
EXPECTED_DRIVER_ID_QTY: {
|
|
279
268
|
value: number | null;
|
|
280
|
-
grade: "
|
|
269
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
281
270
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
282
271
|
error_message?: string | undefined;
|
|
283
272
|
};
|
|
284
273
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
285
274
|
value: number | null;
|
|
286
|
-
grade: "
|
|
275
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
287
276
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
288
277
|
error_message?: string | undefined;
|
|
289
278
|
};
|
|
290
279
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
291
280
|
value: number | null;
|
|
292
|
-
grade: "
|
|
281
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
293
282
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
294
283
|
error_message?: string | undefined;
|
|
295
284
|
};
|
|
296
285
|
ENDED_AT_LAST_STOP: {
|
|
297
|
-
grade: "
|
|
286
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
298
287
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
299
288
|
error_message?: string | undefined;
|
|
300
289
|
};
|
|
301
290
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
302
|
-
grade: "
|
|
291
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
303
292
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
304
293
|
expected_qty: number | null;
|
|
305
294
|
found_qty: number | null;
|
|
306
295
|
error_message?: string | undefined;
|
|
307
296
|
};
|
|
308
297
|
MATCHING_APEX_LOCATIONS: {
|
|
309
|
-
grade: "
|
|
298
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
310
299
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
311
300
|
error_message?: string | undefined;
|
|
312
301
|
};
|
|
313
302
|
MATCHING_VEHICLE_IDS: {
|
|
314
|
-
grade: "
|
|
303
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
315
304
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
316
305
|
error_message?: string | undefined;
|
|
317
306
|
};
|
|
318
307
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
319
308
|
value: number | null;
|
|
320
|
-
grade: "
|
|
309
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
321
310
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
322
311
|
error_message?: string | undefined;
|
|
323
312
|
};
|
|
324
313
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
325
|
-
grade: "
|
|
314
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
326
315
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
327
316
|
error_message?: string | undefined;
|
|
328
317
|
};
|
|
329
318
|
EXPECTED_START_TIME: {
|
|
330
319
|
value: number | null;
|
|
331
|
-
grade: "
|
|
320
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
332
321
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
333
322
|
error_message?: string | undefined;
|
|
334
323
|
};
|
|
335
324
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
336
325
|
value: number | null;
|
|
337
|
-
grade: "
|
|
326
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
338
327
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
339
328
|
error_message?: string | undefined;
|
|
340
329
|
};
|
|
341
330
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
342
331
|
value: number | null;
|
|
343
|
-
grade: "
|
|
332
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
344
333
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
345
334
|
error_message?: string | undefined;
|
|
346
335
|
};
|
|
347
336
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
348
|
-
grade: "
|
|
337
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
349
338
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
350
339
|
error_message?: string | undefined;
|
|
351
340
|
};
|
|
352
341
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
353
|
-
grade: "
|
|
342
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
354
343
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
355
344
|
stop_ids_first: string[] | null;
|
|
356
345
|
stop_ids_last: string[] | null;
|
|
@@ -358,7 +347,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
358
347
|
error_message?: string | undefined;
|
|
359
348
|
};
|
|
360
349
|
TRANSACTION_SEQUENTIALITY: {
|
|
361
|
-
grade: "
|
|
350
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
362
351
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
363
352
|
expected_qty: number | null;
|
|
364
353
|
found_qty: number | null;
|
|
@@ -368,80 +357,80 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
368
357
|
}, {
|
|
369
358
|
EXPECTED_DRIVER_ID_QTY: {
|
|
370
359
|
value: number | null;
|
|
371
|
-
grade: "
|
|
360
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
372
361
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
373
362
|
error_message?: string | undefined;
|
|
374
363
|
};
|
|
375
364
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
376
365
|
value: number | null;
|
|
377
|
-
grade: "
|
|
366
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
378
367
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
379
368
|
error_message?: string | undefined;
|
|
380
369
|
};
|
|
381
370
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
382
371
|
value: number | null;
|
|
383
|
-
grade: "
|
|
372
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
384
373
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
385
374
|
error_message?: string | undefined;
|
|
386
375
|
};
|
|
387
376
|
ENDED_AT_LAST_STOP: {
|
|
388
|
-
grade: "
|
|
377
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
389
378
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
390
379
|
error_message?: string | undefined;
|
|
391
380
|
};
|
|
392
381
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
393
|
-
grade: "
|
|
382
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
394
383
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
395
384
|
expected_qty: number | null;
|
|
396
385
|
found_qty: number | null;
|
|
397
386
|
error_message?: string | undefined;
|
|
398
387
|
};
|
|
399
388
|
MATCHING_APEX_LOCATIONS: {
|
|
400
|
-
grade: "
|
|
389
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
401
390
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
402
391
|
error_message?: string | undefined;
|
|
403
392
|
};
|
|
404
393
|
MATCHING_VEHICLE_IDS: {
|
|
405
|
-
grade: "
|
|
394
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
406
395
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
407
396
|
error_message?: string | undefined;
|
|
408
397
|
};
|
|
409
398
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
410
399
|
value: number | null;
|
|
411
|
-
grade: "
|
|
400
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
412
401
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
413
402
|
error_message?: string | undefined;
|
|
414
403
|
};
|
|
415
404
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
416
|
-
grade: "
|
|
405
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
417
406
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
418
407
|
error_message?: string | undefined;
|
|
419
408
|
};
|
|
420
409
|
EXPECTED_START_TIME: {
|
|
421
410
|
value: number | null;
|
|
422
|
-
grade: "
|
|
411
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
423
412
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
424
413
|
error_message?: string | undefined;
|
|
425
414
|
};
|
|
426
415
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
427
416
|
value: number | null;
|
|
428
|
-
grade: "
|
|
417
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
429
418
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
430
419
|
error_message?: string | undefined;
|
|
431
420
|
};
|
|
432
421
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
433
422
|
value: number | null;
|
|
434
|
-
grade: "
|
|
423
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
435
424
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
436
425
|
error_message?: string | undefined;
|
|
437
426
|
};
|
|
438
427
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
439
|
-
grade: "
|
|
428
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
440
429
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
441
430
|
error_message?: string | undefined;
|
|
442
431
|
};
|
|
443
432
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
444
|
-
grade: "
|
|
433
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
445
434
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
446
435
|
stop_ids_first: string[] | null;
|
|
447
436
|
stop_ids_last: string[] | null;
|
|
@@ -449,7 +438,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
449
438
|
error_message?: string | undefined;
|
|
450
439
|
};
|
|
451
440
|
TRANSACTION_SEQUENTIALITY: {
|
|
452
|
-
grade: "
|
|
441
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
453
442
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
454
443
|
expected_qty: number | null;
|
|
455
444
|
found_qty: number | null;
|
|
@@ -487,7 +476,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
487
476
|
seen_last_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
488
477
|
start_time_observed: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
489
478
|
start_time_scheduled: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
490
|
-
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
479
|
+
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
|
|
491
480
|
trip_id: z.ZodString;
|
|
492
481
|
vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
493
482
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -499,83 +488,119 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
499
488
|
__brand: "UnixTimestamp";
|
|
500
489
|
};
|
|
501
490
|
agency_id: string;
|
|
491
|
+
line_id: number;
|
|
492
|
+
pattern_id: string;
|
|
493
|
+
trip_id: string;
|
|
494
|
+
driver_ids: string[];
|
|
495
|
+
headsign: string;
|
|
496
|
+
plan_id: string;
|
|
497
|
+
route_id: string;
|
|
498
|
+
vehicle_ids: number[];
|
|
499
|
+
operational_date: string & {
|
|
500
|
+
__brand: "OperationalDate";
|
|
501
|
+
};
|
|
502
|
+
start_time_observed: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
503
|
+
start_time_scheduled: number & {
|
|
504
|
+
__brand: "UnixTimestamp";
|
|
505
|
+
};
|
|
506
|
+
end_time_observed: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
507
|
+
end_time_scheduled: number & {
|
|
508
|
+
__brand: "UnixTimestamp";
|
|
509
|
+
};
|
|
510
|
+
extension_observed: number | null;
|
|
511
|
+
extension_scheduled: number;
|
|
512
|
+
seen_first_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
513
|
+
seen_last_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
514
|
+
passengers_estimated: number | null;
|
|
515
|
+
passengers_observed: number | null;
|
|
516
|
+
passengers_observed_on_board_sales_amount: number | null;
|
|
517
|
+
passengers_observed_on_board_sales_qty: number | null;
|
|
518
|
+
passengers_observed_prepaid_amount: number | null;
|
|
519
|
+
passengers_observed_prepaid_qty: number | null;
|
|
520
|
+
passengers_observed_subscription_qty: number | null;
|
|
521
|
+
apex_locations_qty: number | null;
|
|
522
|
+
apex_on_board_refunds_amount: number | null;
|
|
523
|
+
apex_on_board_refunds_qty: number | null;
|
|
524
|
+
apex_on_board_sales_amount: number | null;
|
|
525
|
+
apex_on_board_sales_qty: number | null;
|
|
526
|
+
apex_validations_qty: number | null;
|
|
502
527
|
analysis: {
|
|
503
528
|
EXPECTED_DRIVER_ID_QTY: {
|
|
504
529
|
value: number | null;
|
|
505
|
-
grade: "
|
|
530
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
506
531
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
507
532
|
error_message?: string | undefined;
|
|
508
533
|
};
|
|
509
534
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
510
535
|
value: number | null;
|
|
511
|
-
grade: "
|
|
536
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
512
537
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
513
538
|
error_message?: string | undefined;
|
|
514
539
|
};
|
|
515
540
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
516
541
|
value: number | null;
|
|
517
|
-
grade: "
|
|
542
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
518
543
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
519
544
|
error_message?: string | undefined;
|
|
520
545
|
};
|
|
521
546
|
ENDED_AT_LAST_STOP: {
|
|
522
|
-
grade: "
|
|
547
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
523
548
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
524
549
|
error_message?: string | undefined;
|
|
525
550
|
};
|
|
526
551
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
527
|
-
grade: "
|
|
552
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
528
553
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
529
554
|
expected_qty: number | null;
|
|
530
555
|
found_qty: number | null;
|
|
531
556
|
error_message?: string | undefined;
|
|
532
557
|
};
|
|
533
558
|
MATCHING_APEX_LOCATIONS: {
|
|
534
|
-
grade: "
|
|
559
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
535
560
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
536
561
|
error_message?: string | undefined;
|
|
537
562
|
};
|
|
538
563
|
MATCHING_VEHICLE_IDS: {
|
|
539
|
-
grade: "
|
|
564
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
540
565
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
541
566
|
error_message?: string | undefined;
|
|
542
567
|
};
|
|
543
568
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
544
569
|
value: number | null;
|
|
545
|
-
grade: "
|
|
570
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
546
571
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
547
572
|
error_message?: string | undefined;
|
|
548
573
|
};
|
|
549
574
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
550
|
-
grade: "
|
|
575
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
551
576
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
552
577
|
error_message?: string | undefined;
|
|
553
578
|
};
|
|
554
579
|
EXPECTED_START_TIME: {
|
|
555
580
|
value: number | null;
|
|
556
|
-
grade: "
|
|
581
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
557
582
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
558
583
|
error_message?: string | undefined;
|
|
559
584
|
};
|
|
560
585
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
561
586
|
value: number | null;
|
|
562
|
-
grade: "
|
|
587
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
563
588
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
564
589
|
error_message?: string | undefined;
|
|
565
590
|
};
|
|
566
591
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
567
592
|
value: number | null;
|
|
568
|
-
grade: "
|
|
593
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
569
594
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
570
595
|
error_message?: string | undefined;
|
|
571
596
|
};
|
|
572
597
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
573
|
-
grade: "
|
|
598
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
574
599
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
575
600
|
error_message?: string | undefined;
|
|
576
601
|
};
|
|
577
602
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
578
|
-
grade: "
|
|
603
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
579
604
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
580
605
|
stop_ids_first: string[] | null;
|
|
581
606
|
stop_ids_last: string[] | null;
|
|
@@ -583,7 +608,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
583
608
|
error_message?: string | undefined;
|
|
584
609
|
};
|
|
585
610
|
TRANSACTION_SEQUENTIALITY: {
|
|
586
|
-
grade: "
|
|
611
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
587
612
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
588
613
|
expected_qty: number | null;
|
|
589
614
|
found_qty: number | null;
|
|
@@ -591,26 +616,33 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
591
616
|
error_message?: string | undefined;
|
|
592
617
|
};
|
|
593
618
|
} | null;
|
|
594
|
-
apex_locations_qty: number | null;
|
|
595
|
-
apex_on_board_refunds_amount: number | null;
|
|
596
|
-
apex_on_board_refunds_qty: number | null;
|
|
597
|
-
apex_on_board_sales_amount: number | null;
|
|
598
|
-
apex_on_board_sales_qty: number | null;
|
|
599
|
-
apex_validations_qty: number | null;
|
|
600
|
-
driver_ids: string[];
|
|
601
|
-
end_time_observed: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
602
|
-
end_time_scheduled: number & {
|
|
603
|
-
__brand: "UnixTimestamp";
|
|
604
|
-
};
|
|
605
|
-
extension_observed: number | null;
|
|
606
|
-
extension_scheduled: number;
|
|
607
619
|
hashed_shape_id: string;
|
|
608
620
|
hashed_trip_id: string;
|
|
609
|
-
|
|
621
|
+
system_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
622
|
+
created_by?: string | undefined;
|
|
623
|
+
updated_by?: string | undefined;
|
|
624
|
+
}, {
|
|
625
|
+
_id: string;
|
|
626
|
+
created_at: number;
|
|
627
|
+
updated_at: number;
|
|
628
|
+
agency_id: string;
|
|
610
629
|
line_id: number;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
630
|
+
pattern_id: string;
|
|
631
|
+
trip_id: string;
|
|
632
|
+
driver_ids: string[];
|
|
633
|
+
headsign: string;
|
|
634
|
+
plan_id: string;
|
|
635
|
+
route_id: string;
|
|
636
|
+
vehicle_ids: number[];
|
|
637
|
+
operational_date: string;
|
|
638
|
+
start_time_observed: number | null;
|
|
639
|
+
start_time_scheduled: number;
|
|
640
|
+
end_time_observed: number | null;
|
|
641
|
+
end_time_scheduled: number;
|
|
642
|
+
extension_observed: number | null;
|
|
643
|
+
extension_scheduled: number;
|
|
644
|
+
seen_first_at: number | null;
|
|
645
|
+
seen_last_at: number | null;
|
|
614
646
|
passengers_estimated: number | null;
|
|
615
647
|
passengers_observed: number | null;
|
|
616
648
|
passengers_observed_on_board_sales_amount: number | null;
|
|
@@ -618,102 +650,89 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
618
650
|
passengers_observed_prepaid_amount: number | null;
|
|
619
651
|
passengers_observed_prepaid_qty: number | null;
|
|
620
652
|
passengers_observed_subscription_qty: number | null;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
start_time_scheduled: number & {
|
|
628
|
-
__brand: "UnixTimestamp";
|
|
629
|
-
};
|
|
630
|
-
system_status: "error" | "waiting" | "processing" | "complete";
|
|
631
|
-
trip_id: string;
|
|
632
|
-
vehicle_ids: number[];
|
|
633
|
-
created_by?: string | undefined;
|
|
634
|
-
updated_by?: string | undefined;
|
|
635
|
-
}, {
|
|
636
|
-
_id: string;
|
|
637
|
-
created_at: number;
|
|
638
|
-
updated_at: number;
|
|
639
|
-
agency_id: string;
|
|
653
|
+
apex_locations_qty: number | null;
|
|
654
|
+
apex_on_board_refunds_amount: number | null;
|
|
655
|
+
apex_on_board_refunds_qty: number | null;
|
|
656
|
+
apex_on_board_sales_amount: number | null;
|
|
657
|
+
apex_on_board_sales_qty: number | null;
|
|
658
|
+
apex_validations_qty: number | null;
|
|
640
659
|
analysis: {
|
|
641
660
|
EXPECTED_DRIVER_ID_QTY: {
|
|
642
661
|
value: number | null;
|
|
643
|
-
grade: "
|
|
662
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
644
663
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
645
664
|
error_message?: string | undefined;
|
|
646
665
|
};
|
|
647
666
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
648
667
|
value: number | null;
|
|
649
|
-
grade: "
|
|
668
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
650
669
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
651
670
|
error_message?: string | undefined;
|
|
652
671
|
};
|
|
653
672
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
654
673
|
value: number | null;
|
|
655
|
-
grade: "
|
|
674
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
656
675
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
657
676
|
error_message?: string | undefined;
|
|
658
677
|
};
|
|
659
678
|
ENDED_AT_LAST_STOP: {
|
|
660
|
-
grade: "
|
|
679
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
661
680
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
662
681
|
error_message?: string | undefined;
|
|
663
682
|
};
|
|
664
683
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
665
|
-
grade: "
|
|
684
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
666
685
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
667
686
|
expected_qty: number | null;
|
|
668
687
|
found_qty: number | null;
|
|
669
688
|
error_message?: string | undefined;
|
|
670
689
|
};
|
|
671
690
|
MATCHING_APEX_LOCATIONS: {
|
|
672
|
-
grade: "
|
|
691
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
673
692
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
674
693
|
error_message?: string | undefined;
|
|
675
694
|
};
|
|
676
695
|
MATCHING_VEHICLE_IDS: {
|
|
677
|
-
grade: "
|
|
696
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
678
697
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
679
698
|
error_message?: string | undefined;
|
|
680
699
|
};
|
|
681
700
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
682
701
|
value: number | null;
|
|
683
|
-
grade: "
|
|
702
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
684
703
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
685
704
|
error_message?: string | undefined;
|
|
686
705
|
};
|
|
687
706
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
688
|
-
grade: "
|
|
707
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
689
708
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
690
709
|
error_message?: string | undefined;
|
|
691
710
|
};
|
|
692
711
|
EXPECTED_START_TIME: {
|
|
693
712
|
value: number | null;
|
|
694
|
-
grade: "
|
|
713
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
695
714
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
696
715
|
error_message?: string | undefined;
|
|
697
716
|
};
|
|
698
717
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
699
718
|
value: number | null;
|
|
700
|
-
grade: "
|
|
719
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
701
720
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
702
721
|
error_message?: string | undefined;
|
|
703
722
|
};
|
|
704
723
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
705
724
|
value: number | null;
|
|
706
|
-
grade: "
|
|
725
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
707
726
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
708
727
|
error_message?: string | undefined;
|
|
709
728
|
};
|
|
710
729
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
711
|
-
grade: "
|
|
730
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
712
731
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
713
732
|
error_message?: string | undefined;
|
|
714
733
|
};
|
|
715
734
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
716
|
-
grade: "
|
|
735
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
717
736
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
718
737
|
stop_ids_first: string[] | null;
|
|
719
738
|
stop_ids_last: string[] | null;
|
|
@@ -721,7 +740,7 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
721
740
|
error_message?: string | undefined;
|
|
722
741
|
};
|
|
723
742
|
TRANSACTION_SEQUENTIALITY: {
|
|
724
|
-
grade: "
|
|
743
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
725
744
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
726
745
|
expected_qty: number | null;
|
|
727
746
|
found_qty: number | null;
|
|
@@ -729,41 +748,11 @@ export declare const RideSchema: z.ZodObject<{
|
|
|
729
748
|
error_message?: string | undefined;
|
|
730
749
|
};
|
|
731
750
|
} | null;
|
|
732
|
-
apex_locations_qty: number | null;
|
|
733
|
-
apex_on_board_refunds_amount: number | null;
|
|
734
|
-
apex_on_board_refunds_qty: number | null;
|
|
735
|
-
apex_on_board_sales_amount: number | null;
|
|
736
|
-
apex_on_board_sales_qty: number | null;
|
|
737
|
-
apex_validations_qty: number | null;
|
|
738
|
-
driver_ids: string[];
|
|
739
|
-
end_time_observed: number | null;
|
|
740
|
-
end_time_scheduled: number;
|
|
741
|
-
extension_observed: number | null;
|
|
742
|
-
extension_scheduled: number;
|
|
743
751
|
hashed_shape_id: string;
|
|
744
752
|
hashed_trip_id: string;
|
|
745
|
-
headsign: string;
|
|
746
|
-
line_id: number;
|
|
747
|
-
operational_date: string;
|
|
748
|
-
passengers_estimated: number | null;
|
|
749
|
-
passengers_observed: number | null;
|
|
750
|
-
passengers_observed_on_board_sales_amount: number | null;
|
|
751
|
-
passengers_observed_on_board_sales_qty: number | null;
|
|
752
|
-
passengers_observed_prepaid_amount: number | null;
|
|
753
|
-
passengers_observed_prepaid_qty: number | null;
|
|
754
|
-
passengers_observed_subscription_qty: number | null;
|
|
755
|
-
pattern_id: string;
|
|
756
|
-
plan_id: string;
|
|
757
|
-
route_id: string;
|
|
758
|
-
seen_first_at: number | null;
|
|
759
|
-
seen_last_at: number | null;
|
|
760
|
-
start_time_observed: number | null;
|
|
761
|
-
start_time_scheduled: number;
|
|
762
|
-
trip_id: string;
|
|
763
|
-
vehicle_ids: number[];
|
|
764
753
|
created_by?: string | undefined;
|
|
765
754
|
updated_by?: string | undefined;
|
|
766
|
-
system_status?: "
|
|
755
|
+
system_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
767
756
|
}>;
|
|
768
757
|
export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
769
758
|
_id: z.ZodOptional<z.ZodString>;
|
|
@@ -772,6 +761,36 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
772
761
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
773
762
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
774
763
|
agency_id: z.ZodString;
|
|
764
|
+
line_id: z.ZodNumber;
|
|
765
|
+
pattern_id: z.ZodString;
|
|
766
|
+
trip_id: z.ZodString;
|
|
767
|
+
driver_ids: z.ZodArray<z.ZodString, "many">;
|
|
768
|
+
headsign: z.ZodString;
|
|
769
|
+
plan_id: z.ZodString;
|
|
770
|
+
route_id: z.ZodString;
|
|
771
|
+
vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
772
|
+
operational_date: z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>;
|
|
773
|
+
start_time_observed: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
774
|
+
start_time_scheduled: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
775
|
+
end_time_observed: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
776
|
+
end_time_scheduled: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
777
|
+
extension_observed: z.ZodNullable<z.ZodNumber>;
|
|
778
|
+
extension_scheduled: z.ZodNumber;
|
|
779
|
+
seen_first_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
780
|
+
seen_last_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
781
|
+
passengers_estimated: z.ZodNullable<z.ZodNumber>;
|
|
782
|
+
passengers_observed: z.ZodNullable<z.ZodNumber>;
|
|
783
|
+
passengers_observed_on_board_sales_amount: z.ZodNullable<z.ZodNumber>;
|
|
784
|
+
passengers_observed_on_board_sales_qty: z.ZodNullable<z.ZodNumber>;
|
|
785
|
+
passengers_observed_prepaid_amount: z.ZodNullable<z.ZodNumber>;
|
|
786
|
+
passengers_observed_prepaid_qty: z.ZodNullable<z.ZodNumber>;
|
|
787
|
+
passengers_observed_subscription_qty: z.ZodNullable<z.ZodNumber>;
|
|
788
|
+
apex_locations_qty: z.ZodNullable<z.ZodNumber>;
|
|
789
|
+
apex_on_board_refunds_amount: z.ZodNullable<z.ZodNumber>;
|
|
790
|
+
apex_on_board_refunds_qty: z.ZodNullable<z.ZodNumber>;
|
|
791
|
+
apex_on_board_sales_amount: z.ZodNullable<z.ZodNumber>;
|
|
792
|
+
apex_on_board_sales_qty: z.ZodNullable<z.ZodNumber>;
|
|
793
|
+
apex_validations_qty: z.ZodNullable<z.ZodNumber>;
|
|
775
794
|
analysis: z.ZodNullable<z.ZodObject<{
|
|
776
795
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodObject<{
|
|
777
796
|
error_message: z.ZodOptional<z.ZodString>;
|
|
@@ -781,12 +800,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
781
800
|
value: z.ZodNullable<z.ZodNumber>;
|
|
782
801
|
}, "strict", z.ZodTypeAny, {
|
|
783
802
|
value: number | null;
|
|
784
|
-
grade: "
|
|
803
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
785
804
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
786
805
|
error_message?: string | undefined;
|
|
787
806
|
}, {
|
|
788
807
|
value: number | null;
|
|
789
|
-
grade: "
|
|
808
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
790
809
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
791
810
|
error_message?: string | undefined;
|
|
792
811
|
}>;
|
|
@@ -796,11 +815,11 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
796
815
|
} & {
|
|
797
816
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
|
|
798
817
|
}, "strict", z.ZodTypeAny, {
|
|
799
|
-
grade: "
|
|
818
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
800
819
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
801
820
|
error_message?: string | undefined;
|
|
802
821
|
}, {
|
|
803
|
-
grade: "
|
|
822
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
804
823
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
805
824
|
error_message?: string | undefined;
|
|
806
825
|
}>;
|
|
@@ -810,11 +829,11 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
810
829
|
} & {
|
|
811
830
|
reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "NOT_ENOUGH_VALIDATIONS", "INTERVALS_TOO_SHORT", "NON_ORGANIC_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
|
|
812
831
|
}, "strict", z.ZodTypeAny, {
|
|
813
|
-
grade: "
|
|
832
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
814
833
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
815
834
|
error_message?: string | undefined;
|
|
816
835
|
}, {
|
|
817
|
-
grade: "
|
|
836
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
818
837
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
819
838
|
error_message?: string | undefined;
|
|
820
839
|
}>;
|
|
@@ -826,12 +845,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
826
845
|
value: z.ZodNullable<z.ZodNumber>;
|
|
827
846
|
}, "strict", z.ZodTypeAny, {
|
|
828
847
|
value: number | null;
|
|
829
|
-
grade: "
|
|
848
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
830
849
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
831
850
|
error_message?: string | undefined;
|
|
832
851
|
}, {
|
|
833
852
|
value: number | null;
|
|
834
|
-
grade: "
|
|
853
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
835
854
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
836
855
|
error_message?: string | undefined;
|
|
837
856
|
}>;
|
|
@@ -843,12 +862,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
843
862
|
value: z.ZodNullable<z.ZodNumber>;
|
|
844
863
|
}, "strict", z.ZodTypeAny, {
|
|
845
864
|
value: number | null;
|
|
846
|
-
grade: "
|
|
865
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
847
866
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
848
867
|
error_message?: string | undefined;
|
|
849
868
|
}, {
|
|
850
869
|
value: number | null;
|
|
851
|
-
grade: "
|
|
870
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
852
871
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
853
872
|
error_message?: string | undefined;
|
|
854
873
|
}>;
|
|
@@ -860,12 +879,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
860
879
|
value: z.ZodNullable<z.ZodNumber>;
|
|
861
880
|
}, "strict", z.ZodTypeAny, {
|
|
862
881
|
value: number | null;
|
|
863
|
-
grade: "
|
|
882
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
864
883
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
865
884
|
error_message?: string | undefined;
|
|
866
885
|
}, {
|
|
867
886
|
value: number | null;
|
|
868
|
-
grade: "
|
|
887
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
869
888
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
870
889
|
error_message?: string | undefined;
|
|
871
890
|
}>;
|
|
@@ -877,12 +896,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
877
896
|
value: z.ZodNullable<z.ZodNumber>;
|
|
878
897
|
}, "strict", z.ZodTypeAny, {
|
|
879
898
|
value: number | null;
|
|
880
|
-
grade: "
|
|
899
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
881
900
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
882
901
|
error_message?: string | undefined;
|
|
883
902
|
}, {
|
|
884
903
|
value: number | null;
|
|
885
|
-
grade: "
|
|
904
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
886
905
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
887
906
|
error_message?: string | undefined;
|
|
888
907
|
}>;
|
|
@@ -894,13 +913,13 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
894
913
|
found_qty: z.ZodNullable<z.ZodNumber>;
|
|
895
914
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_QTY", "UNEXPECTED_VEHICLE_EVENT_QTY"]>;
|
|
896
915
|
}, "strict", z.ZodTypeAny, {
|
|
897
|
-
grade: "
|
|
916
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
898
917
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
899
918
|
expected_qty: number | null;
|
|
900
919
|
found_qty: number | null;
|
|
901
920
|
error_message?: string | undefined;
|
|
902
921
|
}, {
|
|
903
|
-
grade: "
|
|
922
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
904
923
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
905
924
|
expected_qty: number | null;
|
|
906
925
|
found_qty: number | null;
|
|
@@ -914,12 +933,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
914
933
|
value: z.ZodNullable<z.ZodNumber>;
|
|
915
934
|
}, "strict", z.ZodTypeAny, {
|
|
916
935
|
value: number | null;
|
|
917
|
-
grade: "
|
|
936
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
918
937
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
919
938
|
error_message?: string | undefined;
|
|
920
939
|
}, {
|
|
921
940
|
value: number | null;
|
|
922
|
-
grade: "
|
|
941
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
923
942
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
924
943
|
error_message?: string | undefined;
|
|
925
944
|
}>;
|
|
@@ -929,11 +948,11 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
929
948
|
} & {
|
|
930
949
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
|
|
931
950
|
}, "strict", z.ZodTypeAny, {
|
|
932
|
-
grade: "
|
|
951
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
933
952
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
934
953
|
error_message?: string | undefined;
|
|
935
954
|
}, {
|
|
936
|
-
grade: "
|
|
955
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
937
956
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
938
957
|
error_message?: string | undefined;
|
|
939
958
|
}>;
|
|
@@ -943,11 +962,11 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
943
962
|
} & {
|
|
944
963
|
reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS", "NO_APEX_TRANSACTIONS"]>;
|
|
945
964
|
}, "strict", z.ZodTypeAny, {
|
|
946
|
-
grade: "
|
|
965
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
947
966
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
948
967
|
error_message?: string | undefined;
|
|
949
968
|
}, {
|
|
950
|
-
grade: "
|
|
969
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
951
970
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
952
971
|
error_message?: string | undefined;
|
|
953
972
|
}>;
|
|
@@ -959,12 +978,12 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
959
978
|
value: z.ZodNullable<z.ZodNumber>;
|
|
960
979
|
}, "strict", z.ZodTypeAny, {
|
|
961
980
|
value: number | null;
|
|
962
|
-
grade: "
|
|
981
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
963
982
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
964
983
|
error_message?: string | undefined;
|
|
965
984
|
}, {
|
|
966
985
|
value: number | null;
|
|
967
|
-
grade: "
|
|
986
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
968
987
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
969
988
|
error_message?: string | undefined;
|
|
970
989
|
}>;
|
|
@@ -974,11 +993,11 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
974
993
|
} & {
|
|
975
994
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
|
|
976
995
|
}, "strict", z.ZodTypeAny, {
|
|
977
|
-
grade: "
|
|
996
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
978
997
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
979
998
|
error_message?: string | undefined;
|
|
980
999
|
}, {
|
|
981
|
-
grade: "
|
|
1000
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
982
1001
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
983
1002
|
error_message?: string | undefined;
|
|
984
1003
|
}>;
|
|
@@ -991,14 +1010,14 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
991
1010
|
stop_ids_last: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
992
1011
|
stop_ids_middle: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
993
1012
|
}, "strict", z.ZodTypeAny, {
|
|
994
|
-
grade: "
|
|
1013
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
995
1014
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
996
1015
|
stop_ids_first: string[] | null;
|
|
997
1016
|
stop_ids_last: string[] | null;
|
|
998
1017
|
stop_ids_middle: string[] | null;
|
|
999
1018
|
error_message?: string | undefined;
|
|
1000
1019
|
}, {
|
|
1001
|
-
grade: "
|
|
1020
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1002
1021
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
1003
1022
|
stop_ids_first: string[] | null;
|
|
1004
1023
|
stop_ids_last: string[] | null;
|
|
@@ -1014,14 +1033,14 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1014
1033
|
missing_qty: z.ZodNullable<z.ZodNumber>;
|
|
1015
1034
|
reason: z.ZodEnum<["NO_TRANSACTIONS", "MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
|
|
1016
1035
|
}, "strict", z.ZodTypeAny, {
|
|
1017
|
-
grade: "
|
|
1036
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1018
1037
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1019
1038
|
expected_qty: number | null;
|
|
1020
1039
|
found_qty: number | null;
|
|
1021
1040
|
missing_qty: number | null;
|
|
1022
1041
|
error_message?: string | undefined;
|
|
1023
1042
|
}, {
|
|
1024
|
-
grade: "
|
|
1043
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1025
1044
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1026
1045
|
expected_qty: number | null;
|
|
1027
1046
|
found_qty: number | null;
|
|
@@ -1031,80 +1050,80 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1031
1050
|
}, "strip", z.ZodTypeAny, {
|
|
1032
1051
|
EXPECTED_DRIVER_ID_QTY: {
|
|
1033
1052
|
value: number | null;
|
|
1034
|
-
grade: "
|
|
1053
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1035
1054
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1036
1055
|
error_message?: string | undefined;
|
|
1037
1056
|
};
|
|
1038
1057
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
1039
1058
|
value: number | null;
|
|
1040
|
-
grade: "
|
|
1059
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1041
1060
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1042
1061
|
error_message?: string | undefined;
|
|
1043
1062
|
};
|
|
1044
1063
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
1045
1064
|
value: number | null;
|
|
1046
|
-
grade: "
|
|
1065
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1047
1066
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
1048
1067
|
error_message?: string | undefined;
|
|
1049
1068
|
};
|
|
1050
1069
|
ENDED_AT_LAST_STOP: {
|
|
1051
|
-
grade: "
|
|
1070
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1052
1071
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1053
1072
|
error_message?: string | undefined;
|
|
1054
1073
|
};
|
|
1055
1074
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
1056
|
-
grade: "
|
|
1075
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1057
1076
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
1058
1077
|
expected_qty: number | null;
|
|
1059
1078
|
found_qty: number | null;
|
|
1060
1079
|
error_message?: string | undefined;
|
|
1061
1080
|
};
|
|
1062
1081
|
MATCHING_APEX_LOCATIONS: {
|
|
1063
|
-
grade: "
|
|
1082
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1064
1083
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1065
1084
|
error_message?: string | undefined;
|
|
1066
1085
|
};
|
|
1067
1086
|
MATCHING_VEHICLE_IDS: {
|
|
1068
|
-
grade: "
|
|
1087
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1069
1088
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
1070
1089
|
error_message?: string | undefined;
|
|
1071
1090
|
};
|
|
1072
1091
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1073
1092
|
value: number | null;
|
|
1074
|
-
grade: "
|
|
1093
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1075
1094
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1076
1095
|
error_message?: string | undefined;
|
|
1077
1096
|
};
|
|
1078
1097
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1079
|
-
grade: "
|
|
1098
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1080
1099
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1081
1100
|
error_message?: string | undefined;
|
|
1082
1101
|
};
|
|
1083
1102
|
EXPECTED_START_TIME: {
|
|
1084
1103
|
value: number | null;
|
|
1085
|
-
grade: "
|
|
1104
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1086
1105
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1087
1106
|
error_message?: string | undefined;
|
|
1088
1107
|
};
|
|
1089
1108
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1090
1109
|
value: number | null;
|
|
1091
|
-
grade: "
|
|
1110
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1092
1111
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1093
1112
|
error_message?: string | undefined;
|
|
1094
1113
|
};
|
|
1095
1114
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1096
1115
|
value: number | null;
|
|
1097
|
-
grade: "
|
|
1116
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1098
1117
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1099
1118
|
error_message?: string | undefined;
|
|
1100
1119
|
};
|
|
1101
1120
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1102
|
-
grade: "
|
|
1121
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1103
1122
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1104
1123
|
error_message?: string | undefined;
|
|
1105
1124
|
};
|
|
1106
1125
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1107
|
-
grade: "
|
|
1126
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1108
1127
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
1109
1128
|
stop_ids_first: string[] | null;
|
|
1110
1129
|
stop_ids_last: string[] | null;
|
|
@@ -1112,7 +1131,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1112
1131
|
error_message?: string | undefined;
|
|
1113
1132
|
};
|
|
1114
1133
|
TRANSACTION_SEQUENTIALITY: {
|
|
1115
|
-
grade: "
|
|
1134
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1116
1135
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1117
1136
|
expected_qty: number | null;
|
|
1118
1137
|
found_qty: number | null;
|
|
@@ -1122,80 +1141,80 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1122
1141
|
}, {
|
|
1123
1142
|
EXPECTED_DRIVER_ID_QTY: {
|
|
1124
1143
|
value: number | null;
|
|
1125
|
-
grade: "
|
|
1144
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1126
1145
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1127
1146
|
error_message?: string | undefined;
|
|
1128
1147
|
};
|
|
1129
1148
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
1130
1149
|
value: number | null;
|
|
1131
|
-
grade: "
|
|
1150
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1132
1151
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1133
1152
|
error_message?: string | undefined;
|
|
1134
1153
|
};
|
|
1135
1154
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
1136
1155
|
value: number | null;
|
|
1137
|
-
grade: "
|
|
1156
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1138
1157
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
1139
1158
|
error_message?: string | undefined;
|
|
1140
1159
|
};
|
|
1141
1160
|
ENDED_AT_LAST_STOP: {
|
|
1142
|
-
grade: "
|
|
1161
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1143
1162
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1144
1163
|
error_message?: string | undefined;
|
|
1145
1164
|
};
|
|
1146
1165
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
1147
|
-
grade: "
|
|
1166
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1148
1167
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
1149
1168
|
expected_qty: number | null;
|
|
1150
1169
|
found_qty: number | null;
|
|
1151
1170
|
error_message?: string | undefined;
|
|
1152
1171
|
};
|
|
1153
1172
|
MATCHING_APEX_LOCATIONS: {
|
|
1154
|
-
grade: "
|
|
1173
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1155
1174
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1156
1175
|
error_message?: string | undefined;
|
|
1157
1176
|
};
|
|
1158
1177
|
MATCHING_VEHICLE_IDS: {
|
|
1159
|
-
grade: "
|
|
1178
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1160
1179
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
1161
1180
|
error_message?: string | undefined;
|
|
1162
1181
|
};
|
|
1163
1182
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1164
1183
|
value: number | null;
|
|
1165
|
-
grade: "
|
|
1184
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1166
1185
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1167
1186
|
error_message?: string | undefined;
|
|
1168
1187
|
};
|
|
1169
1188
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1170
|
-
grade: "
|
|
1189
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1171
1190
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1172
1191
|
error_message?: string | undefined;
|
|
1173
1192
|
};
|
|
1174
1193
|
EXPECTED_START_TIME: {
|
|
1175
1194
|
value: number | null;
|
|
1176
|
-
grade: "
|
|
1195
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1177
1196
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1178
1197
|
error_message?: string | undefined;
|
|
1179
1198
|
};
|
|
1180
1199
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1181
1200
|
value: number | null;
|
|
1182
|
-
grade: "
|
|
1201
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1183
1202
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1184
1203
|
error_message?: string | undefined;
|
|
1185
1204
|
};
|
|
1186
1205
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1187
1206
|
value: number | null;
|
|
1188
|
-
grade: "
|
|
1207
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1189
1208
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1190
1209
|
error_message?: string | undefined;
|
|
1191
1210
|
};
|
|
1192
1211
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1193
|
-
grade: "
|
|
1212
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1194
1213
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1195
1214
|
error_message?: string | undefined;
|
|
1196
1215
|
};
|
|
1197
1216
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1198
|
-
grade: "
|
|
1217
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1199
1218
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
1200
1219
|
stop_ids_first: string[] | null;
|
|
1201
1220
|
stop_ids_last: string[] | null;
|
|
@@ -1203,7 +1222,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1203
1222
|
error_message?: string | undefined;
|
|
1204
1223
|
};
|
|
1205
1224
|
TRANSACTION_SEQUENTIALITY: {
|
|
1206
|
-
grade: "
|
|
1225
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1207
1226
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1208
1227
|
expected_qty: number | null;
|
|
1209
1228
|
found_qty: number | null;
|
|
@@ -1211,118 +1230,124 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1211
1230
|
error_message?: string | undefined;
|
|
1212
1231
|
};
|
|
1213
1232
|
}>>;
|
|
1214
|
-
apex_locations_qty: z.ZodNullable<z.ZodNumber>;
|
|
1215
|
-
apex_on_board_refunds_amount: z.ZodNullable<z.ZodNumber>;
|
|
1216
|
-
apex_on_board_refunds_qty: z.ZodNullable<z.ZodNumber>;
|
|
1217
|
-
apex_on_board_sales_amount: z.ZodNullable<z.ZodNumber>;
|
|
1218
|
-
apex_on_board_sales_qty: z.ZodNullable<z.ZodNumber>;
|
|
1219
|
-
apex_validations_qty: z.ZodNullable<z.ZodNumber>;
|
|
1220
|
-
driver_ids: z.ZodArray<z.ZodString, "many">;
|
|
1221
|
-
end_time_observed: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1222
|
-
end_time_scheduled: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
1223
|
-
extension_observed: z.ZodNullable<z.ZodNumber>;
|
|
1224
|
-
extension_scheduled: z.ZodNumber;
|
|
1225
1233
|
hashed_shape_id: z.ZodString;
|
|
1226
1234
|
hashed_trip_id: z.ZodString;
|
|
1227
|
-
|
|
1228
|
-
line_id: z.ZodNumber;
|
|
1229
|
-
operational_date: z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>;
|
|
1230
|
-
passengers_estimated: z.ZodNullable<z.ZodNumber>;
|
|
1231
|
-
passengers_observed: z.ZodNullable<z.ZodNumber>;
|
|
1232
|
-
passengers_observed_on_board_sales_amount: z.ZodNullable<z.ZodNumber>;
|
|
1233
|
-
passengers_observed_on_board_sales_qty: z.ZodNullable<z.ZodNumber>;
|
|
1234
|
-
passengers_observed_prepaid_amount: z.ZodNullable<z.ZodNumber>;
|
|
1235
|
-
passengers_observed_prepaid_qty: z.ZodNullable<z.ZodNumber>;
|
|
1236
|
-
passengers_observed_subscription_qty: z.ZodNullable<z.ZodNumber>;
|
|
1237
|
-
pattern_id: z.ZodString;
|
|
1238
|
-
plan_id: z.ZodString;
|
|
1239
|
-
route_id: z.ZodString;
|
|
1240
|
-
seen_first_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1241
|
-
seen_last_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1242
|
-
start_time_observed: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1243
|
-
start_time_scheduled: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
1244
|
-
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
|
|
1245
|
-
trip_id: z.ZodString;
|
|
1246
|
-
vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
1235
|
+
system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>;
|
|
1247
1236
|
}, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
1248
1237
|
agency_id: string;
|
|
1238
|
+
line_id: number;
|
|
1239
|
+
pattern_id: string;
|
|
1240
|
+
trip_id: string;
|
|
1241
|
+
driver_ids: string[];
|
|
1242
|
+
headsign: string;
|
|
1243
|
+
plan_id: string;
|
|
1244
|
+
route_id: string;
|
|
1245
|
+
vehicle_ids: number[];
|
|
1246
|
+
operational_date: string & {
|
|
1247
|
+
__brand: "OperationalDate";
|
|
1248
|
+
};
|
|
1249
|
+
start_time_observed: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
1250
|
+
start_time_scheduled: number & {
|
|
1251
|
+
__brand: "UnixTimestamp";
|
|
1252
|
+
};
|
|
1253
|
+
end_time_observed: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
1254
|
+
end_time_scheduled: number & {
|
|
1255
|
+
__brand: "UnixTimestamp";
|
|
1256
|
+
};
|
|
1257
|
+
extension_observed: number | null;
|
|
1258
|
+
extension_scheduled: number;
|
|
1259
|
+
seen_first_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
1260
|
+
seen_last_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
1261
|
+
passengers_estimated: number | null;
|
|
1262
|
+
passengers_observed: number | null;
|
|
1263
|
+
passengers_observed_on_board_sales_amount: number | null;
|
|
1264
|
+
passengers_observed_on_board_sales_qty: number | null;
|
|
1265
|
+
passengers_observed_prepaid_amount: number | null;
|
|
1266
|
+
passengers_observed_prepaid_qty: number | null;
|
|
1267
|
+
passengers_observed_subscription_qty: number | null;
|
|
1268
|
+
apex_locations_qty: number | null;
|
|
1269
|
+
apex_on_board_refunds_amount: number | null;
|
|
1270
|
+
apex_on_board_refunds_qty: number | null;
|
|
1271
|
+
apex_on_board_sales_amount: number | null;
|
|
1272
|
+
apex_on_board_sales_qty: number | null;
|
|
1273
|
+
apex_validations_qty: number | null;
|
|
1249
1274
|
analysis: {
|
|
1250
1275
|
EXPECTED_DRIVER_ID_QTY: {
|
|
1251
1276
|
value: number | null;
|
|
1252
|
-
grade: "
|
|
1277
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1253
1278
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1254
1279
|
error_message?: string | undefined;
|
|
1255
1280
|
};
|
|
1256
1281
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
1257
1282
|
value: number | null;
|
|
1258
|
-
grade: "
|
|
1283
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1259
1284
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1260
1285
|
error_message?: string | undefined;
|
|
1261
1286
|
};
|
|
1262
1287
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
1263
1288
|
value: number | null;
|
|
1264
|
-
grade: "
|
|
1289
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1265
1290
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
1266
1291
|
error_message?: string | undefined;
|
|
1267
1292
|
};
|
|
1268
1293
|
ENDED_AT_LAST_STOP: {
|
|
1269
|
-
grade: "
|
|
1294
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1270
1295
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1271
1296
|
error_message?: string | undefined;
|
|
1272
1297
|
};
|
|
1273
1298
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
1274
|
-
grade: "
|
|
1299
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1275
1300
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
1276
1301
|
expected_qty: number | null;
|
|
1277
1302
|
found_qty: number | null;
|
|
1278
1303
|
error_message?: string | undefined;
|
|
1279
1304
|
};
|
|
1280
1305
|
MATCHING_APEX_LOCATIONS: {
|
|
1281
|
-
grade: "
|
|
1306
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1282
1307
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1283
1308
|
error_message?: string | undefined;
|
|
1284
1309
|
};
|
|
1285
1310
|
MATCHING_VEHICLE_IDS: {
|
|
1286
|
-
grade: "
|
|
1311
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1287
1312
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
1288
1313
|
error_message?: string | undefined;
|
|
1289
1314
|
};
|
|
1290
1315
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1291
1316
|
value: number | null;
|
|
1292
|
-
grade: "
|
|
1317
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1293
1318
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1294
1319
|
error_message?: string | undefined;
|
|
1295
1320
|
};
|
|
1296
1321
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1297
|
-
grade: "
|
|
1322
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1298
1323
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1299
1324
|
error_message?: string | undefined;
|
|
1300
1325
|
};
|
|
1301
1326
|
EXPECTED_START_TIME: {
|
|
1302
1327
|
value: number | null;
|
|
1303
|
-
grade: "
|
|
1328
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1304
1329
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1305
1330
|
error_message?: string | undefined;
|
|
1306
1331
|
};
|
|
1307
1332
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1308
1333
|
value: number | null;
|
|
1309
|
-
grade: "
|
|
1334
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1310
1335
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1311
1336
|
error_message?: string | undefined;
|
|
1312
1337
|
};
|
|
1313
1338
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1314
1339
|
value: number | null;
|
|
1315
|
-
grade: "
|
|
1340
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1316
1341
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1317
1342
|
error_message?: string | undefined;
|
|
1318
1343
|
};
|
|
1319
1344
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1320
|
-
grade: "
|
|
1345
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1321
1346
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1322
1347
|
error_message?: string | undefined;
|
|
1323
1348
|
};
|
|
1324
1349
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1325
|
-
grade: "
|
|
1350
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1326
1351
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
1327
1352
|
stop_ids_first: string[] | null;
|
|
1328
1353
|
stop_ids_last: string[] | null;
|
|
@@ -1330,7 +1355,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1330
1355
|
error_message?: string | undefined;
|
|
1331
1356
|
};
|
|
1332
1357
|
TRANSACTION_SEQUENTIALITY: {
|
|
1333
|
-
grade: "
|
|
1358
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1334
1359
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1335
1360
|
expected_qty: number | null;
|
|
1336
1361
|
found_qty: number | null;
|
|
@@ -1338,26 +1363,31 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1338
1363
|
error_message?: string | undefined;
|
|
1339
1364
|
};
|
|
1340
1365
|
} | null;
|
|
1341
|
-
apex_locations_qty: number | null;
|
|
1342
|
-
apex_on_board_refunds_amount: number | null;
|
|
1343
|
-
apex_on_board_refunds_qty: number | null;
|
|
1344
|
-
apex_on_board_sales_amount: number | null;
|
|
1345
|
-
apex_on_board_sales_qty: number | null;
|
|
1346
|
-
apex_validations_qty: number | null;
|
|
1347
|
-
driver_ids: string[];
|
|
1348
|
-
end_time_observed: import("../_common/unix-timestamp.js").UnixTimestamp | null;
|
|
1349
|
-
end_time_scheduled: number & {
|
|
1350
|
-
__brand: "UnixTimestamp";
|
|
1351
|
-
};
|
|
1352
|
-
extension_observed: number | null;
|
|
1353
|
-
extension_scheduled: number;
|
|
1354
1366
|
hashed_shape_id: string;
|
|
1355
1367
|
hashed_trip_id: string;
|
|
1356
|
-
|
|
1368
|
+
system_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
1369
|
+
_id?: string | undefined;
|
|
1370
|
+
created_by?: string | undefined;
|
|
1371
|
+
updated_by?: string | undefined;
|
|
1372
|
+
}, {
|
|
1373
|
+
agency_id: string;
|
|
1357
1374
|
line_id: number;
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1375
|
+
pattern_id: string;
|
|
1376
|
+
trip_id: string;
|
|
1377
|
+
driver_ids: string[];
|
|
1378
|
+
headsign: string;
|
|
1379
|
+
plan_id: string;
|
|
1380
|
+
route_id: string;
|
|
1381
|
+
vehicle_ids: number[];
|
|
1382
|
+
operational_date: string;
|
|
1383
|
+
start_time_observed: number | null;
|
|
1384
|
+
start_time_scheduled: number;
|
|
1385
|
+
end_time_observed: number | null;
|
|
1386
|
+
end_time_scheduled: number;
|
|
1387
|
+
extension_observed: number | null;
|
|
1388
|
+
extension_scheduled: number;
|
|
1389
|
+
seen_first_at: number | null;
|
|
1390
|
+
seen_last_at: number | null;
|
|
1361
1391
|
passengers_estimated: number | null;
|
|
1362
1392
|
passengers_observed: number | null;
|
|
1363
1393
|
passengers_observed_on_board_sales_amount: number | null;
|
|
@@ -1365,100 +1395,89 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1365
1395
|
passengers_observed_prepaid_amount: number | null;
|
|
1366
1396
|
passengers_observed_prepaid_qty: number | null;
|
|
1367
1397
|
passengers_observed_subscription_qty: number | null;
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
start_time_scheduled: number & {
|
|
1375
|
-
__brand: "UnixTimestamp";
|
|
1376
|
-
};
|
|
1377
|
-
system_status: "error" | "waiting" | "processing" | "complete";
|
|
1378
|
-
trip_id: string;
|
|
1379
|
-
vehicle_ids: number[];
|
|
1380
|
-
_id?: string | undefined;
|
|
1381
|
-
created_by?: string | undefined;
|
|
1382
|
-
updated_by?: string | undefined;
|
|
1383
|
-
}, {
|
|
1384
|
-
agency_id: string;
|
|
1398
|
+
apex_locations_qty: number | null;
|
|
1399
|
+
apex_on_board_refunds_amount: number | null;
|
|
1400
|
+
apex_on_board_refunds_qty: number | null;
|
|
1401
|
+
apex_on_board_sales_amount: number | null;
|
|
1402
|
+
apex_on_board_sales_qty: number | null;
|
|
1403
|
+
apex_validations_qty: number | null;
|
|
1385
1404
|
analysis: {
|
|
1386
1405
|
EXPECTED_DRIVER_ID_QTY: {
|
|
1387
1406
|
value: number | null;
|
|
1388
|
-
grade: "
|
|
1407
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1389
1408
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1390
1409
|
error_message?: string | undefined;
|
|
1391
1410
|
};
|
|
1392
1411
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
1393
1412
|
value: number | null;
|
|
1394
|
-
grade: "
|
|
1413
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1395
1414
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1396
1415
|
error_message?: string | undefined;
|
|
1397
1416
|
};
|
|
1398
1417
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
1399
1418
|
value: number | null;
|
|
1400
|
-
grade: "
|
|
1419
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1401
1420
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
1402
1421
|
error_message?: string | undefined;
|
|
1403
1422
|
};
|
|
1404
1423
|
ENDED_AT_LAST_STOP: {
|
|
1405
|
-
grade: "
|
|
1424
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1406
1425
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1407
1426
|
error_message?: string | undefined;
|
|
1408
1427
|
};
|
|
1409
1428
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
1410
|
-
grade: "
|
|
1429
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1411
1430
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
1412
1431
|
expected_qty: number | null;
|
|
1413
1432
|
found_qty: number | null;
|
|
1414
1433
|
error_message?: string | undefined;
|
|
1415
1434
|
};
|
|
1416
1435
|
MATCHING_APEX_LOCATIONS: {
|
|
1417
|
-
grade: "
|
|
1436
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1418
1437
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1419
1438
|
error_message?: string | undefined;
|
|
1420
1439
|
};
|
|
1421
1440
|
MATCHING_VEHICLE_IDS: {
|
|
1422
|
-
grade: "
|
|
1441
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1423
1442
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
1424
1443
|
error_message?: string | undefined;
|
|
1425
1444
|
};
|
|
1426
1445
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1427
1446
|
value: number | null;
|
|
1428
|
-
grade: "
|
|
1447
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1429
1448
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1430
1449
|
error_message?: string | undefined;
|
|
1431
1450
|
};
|
|
1432
1451
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1433
|
-
grade: "
|
|
1452
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1434
1453
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1435
1454
|
error_message?: string | undefined;
|
|
1436
1455
|
};
|
|
1437
1456
|
EXPECTED_START_TIME: {
|
|
1438
1457
|
value: number | null;
|
|
1439
|
-
grade: "
|
|
1458
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1440
1459
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1441
1460
|
error_message?: string | undefined;
|
|
1442
1461
|
};
|
|
1443
1462
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1444
1463
|
value: number | null;
|
|
1445
|
-
grade: "
|
|
1464
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1446
1465
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1447
1466
|
error_message?: string | undefined;
|
|
1448
1467
|
};
|
|
1449
1468
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1450
1469
|
value: number | null;
|
|
1451
|
-
grade: "
|
|
1470
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1452
1471
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1453
1472
|
error_message?: string | undefined;
|
|
1454
1473
|
};
|
|
1455
1474
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1456
|
-
grade: "
|
|
1475
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1457
1476
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1458
1477
|
error_message?: string | undefined;
|
|
1459
1478
|
};
|
|
1460
1479
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1461
|
-
grade: "
|
|
1480
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1462
1481
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
1463
1482
|
stop_ids_first: string[] | null;
|
|
1464
1483
|
stop_ids_last: string[] | null;
|
|
@@ -1466,7 +1485,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1466
1485
|
error_message?: string | undefined;
|
|
1467
1486
|
};
|
|
1468
1487
|
TRANSACTION_SEQUENTIALITY: {
|
|
1469
|
-
grade: "
|
|
1488
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1470
1489
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1471
1490
|
expected_qty: number | null;
|
|
1472
1491
|
found_qty: number | null;
|
|
@@ -1474,47 +1493,47 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
|
|
|
1474
1493
|
error_message?: string | undefined;
|
|
1475
1494
|
};
|
|
1476
1495
|
} | null;
|
|
1477
|
-
apex_locations_qty: number | null;
|
|
1478
|
-
apex_on_board_refunds_amount: number | null;
|
|
1479
|
-
apex_on_board_refunds_qty: number | null;
|
|
1480
|
-
apex_on_board_sales_amount: number | null;
|
|
1481
|
-
apex_on_board_sales_qty: number | null;
|
|
1482
|
-
apex_validations_qty: number | null;
|
|
1483
|
-
driver_ids: string[];
|
|
1484
|
-
end_time_observed: number | null;
|
|
1485
|
-
end_time_scheduled: number;
|
|
1486
|
-
extension_observed: number | null;
|
|
1487
|
-
extension_scheduled: number;
|
|
1488
1496
|
hashed_shape_id: string;
|
|
1489
1497
|
hashed_trip_id: string;
|
|
1490
|
-
headsign: string;
|
|
1491
|
-
line_id: number;
|
|
1492
|
-
operational_date: string;
|
|
1493
|
-
passengers_estimated: number | null;
|
|
1494
|
-
passengers_observed: number | null;
|
|
1495
|
-
passengers_observed_on_board_sales_amount: number | null;
|
|
1496
|
-
passengers_observed_on_board_sales_qty: number | null;
|
|
1497
|
-
passengers_observed_prepaid_amount: number | null;
|
|
1498
|
-
passengers_observed_prepaid_qty: number | null;
|
|
1499
|
-
passengers_observed_subscription_qty: number | null;
|
|
1500
|
-
pattern_id: string;
|
|
1501
|
-
plan_id: string;
|
|
1502
|
-
route_id: string;
|
|
1503
|
-
seen_first_at: number | null;
|
|
1504
|
-
seen_last_at: number | null;
|
|
1505
|
-
start_time_observed: number | null;
|
|
1506
|
-
start_time_scheduled: number;
|
|
1507
|
-
trip_id: string;
|
|
1508
|
-
vehicle_ids: number[];
|
|
1509
1498
|
_id?: string | undefined;
|
|
1510
1499
|
created_by?: string | undefined;
|
|
1511
1500
|
updated_by?: string | undefined;
|
|
1512
|
-
system_status?: "
|
|
1501
|
+
system_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
1513
1502
|
}>;
|
|
1514
1503
|
export declare const UpdateRideSchema: z.ZodObject<{
|
|
1515
1504
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1516
1505
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1517
1506
|
agency_id: z.ZodOptional<z.ZodString>;
|
|
1507
|
+
line_id: z.ZodOptional<z.ZodNumber>;
|
|
1508
|
+
pattern_id: z.ZodOptional<z.ZodString>;
|
|
1509
|
+
trip_id: z.ZodOptional<z.ZodString>;
|
|
1510
|
+
driver_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1511
|
+
headsign: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
plan_id: z.ZodOptional<z.ZodString>;
|
|
1513
|
+
route_id: z.ZodOptional<z.ZodString>;
|
|
1514
|
+
vehicle_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1515
|
+
operational_date: z.ZodOptional<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>;
|
|
1516
|
+
start_time_observed: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1517
|
+
start_time_scheduled: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1518
|
+
end_time_observed: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1519
|
+
end_time_scheduled: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1520
|
+
extension_observed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1521
|
+
extension_scheduled: z.ZodOptional<z.ZodNumber>;
|
|
1522
|
+
seen_first_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1523
|
+
seen_last_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1524
|
+
passengers_estimated: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1525
|
+
passengers_observed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1526
|
+
passengers_observed_on_board_sales_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1527
|
+
passengers_observed_on_board_sales_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1528
|
+
passengers_observed_prepaid_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1529
|
+
passengers_observed_prepaid_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1530
|
+
passengers_observed_subscription_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1531
|
+
apex_locations_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1532
|
+
apex_on_board_refunds_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1533
|
+
apex_on_board_refunds_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1534
|
+
apex_on_board_sales_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1535
|
+
apex_on_board_sales_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1536
|
+
apex_validations_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1518
1537
|
analysis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1519
1538
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodObject<{
|
|
1520
1539
|
error_message: z.ZodOptional<z.ZodString>;
|
|
@@ -1524,12 +1543,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1524
1543
|
value: z.ZodNullable<z.ZodNumber>;
|
|
1525
1544
|
}, "strict", z.ZodTypeAny, {
|
|
1526
1545
|
value: number | null;
|
|
1527
|
-
grade: "
|
|
1546
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1528
1547
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1529
1548
|
error_message?: string | undefined;
|
|
1530
1549
|
}, {
|
|
1531
1550
|
value: number | null;
|
|
1532
|
-
grade: "
|
|
1551
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1533
1552
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1534
1553
|
error_message?: string | undefined;
|
|
1535
1554
|
}>;
|
|
@@ -1539,11 +1558,11 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1539
1558
|
} & {
|
|
1540
1559
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
|
|
1541
1560
|
}, "strict", z.ZodTypeAny, {
|
|
1542
|
-
grade: "
|
|
1561
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1543
1562
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1544
1563
|
error_message?: string | undefined;
|
|
1545
1564
|
}, {
|
|
1546
|
-
grade: "
|
|
1565
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1547
1566
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1548
1567
|
error_message?: string | undefined;
|
|
1549
1568
|
}>;
|
|
@@ -1553,11 +1572,11 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1553
1572
|
} & {
|
|
1554
1573
|
reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "NOT_ENOUGH_VALIDATIONS", "INTERVALS_TOO_SHORT", "NON_ORGANIC_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
|
|
1555
1574
|
}, "strict", z.ZodTypeAny, {
|
|
1556
|
-
grade: "
|
|
1575
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1557
1576
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1558
1577
|
error_message?: string | undefined;
|
|
1559
1578
|
}, {
|
|
1560
|
-
grade: "
|
|
1579
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1561
1580
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1562
1581
|
error_message?: string | undefined;
|
|
1563
1582
|
}>;
|
|
@@ -1569,12 +1588,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1569
1588
|
value: z.ZodNullable<z.ZodNumber>;
|
|
1570
1589
|
}, "strict", z.ZodTypeAny, {
|
|
1571
1590
|
value: number | null;
|
|
1572
|
-
grade: "
|
|
1591
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1573
1592
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1574
1593
|
error_message?: string | undefined;
|
|
1575
1594
|
}, {
|
|
1576
1595
|
value: number | null;
|
|
1577
|
-
grade: "
|
|
1596
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1578
1597
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1579
1598
|
error_message?: string | undefined;
|
|
1580
1599
|
}>;
|
|
@@ -1586,12 +1605,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1586
1605
|
value: z.ZodNullable<z.ZodNumber>;
|
|
1587
1606
|
}, "strict", z.ZodTypeAny, {
|
|
1588
1607
|
value: number | null;
|
|
1589
|
-
grade: "
|
|
1608
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1590
1609
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1591
1610
|
error_message?: string | undefined;
|
|
1592
1611
|
}, {
|
|
1593
1612
|
value: number | null;
|
|
1594
|
-
grade: "
|
|
1613
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1595
1614
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1596
1615
|
error_message?: string | undefined;
|
|
1597
1616
|
}>;
|
|
@@ -1603,12 +1622,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1603
1622
|
value: z.ZodNullable<z.ZodNumber>;
|
|
1604
1623
|
}, "strict", z.ZodTypeAny, {
|
|
1605
1624
|
value: number | null;
|
|
1606
|
-
grade: "
|
|
1625
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1607
1626
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1608
1627
|
error_message?: string | undefined;
|
|
1609
1628
|
}, {
|
|
1610
1629
|
value: number | null;
|
|
1611
|
-
grade: "
|
|
1630
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1612
1631
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1613
1632
|
error_message?: string | undefined;
|
|
1614
1633
|
}>;
|
|
@@ -1620,12 +1639,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1620
1639
|
value: z.ZodNullable<z.ZodNumber>;
|
|
1621
1640
|
}, "strict", z.ZodTypeAny, {
|
|
1622
1641
|
value: number | null;
|
|
1623
|
-
grade: "
|
|
1642
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1624
1643
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
1625
1644
|
error_message?: string | undefined;
|
|
1626
1645
|
}, {
|
|
1627
1646
|
value: number | null;
|
|
1628
|
-
grade: "
|
|
1647
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1629
1648
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
1630
1649
|
error_message?: string | undefined;
|
|
1631
1650
|
}>;
|
|
@@ -1637,13 +1656,13 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1637
1656
|
found_qty: z.ZodNullable<z.ZodNumber>;
|
|
1638
1657
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_QTY", "UNEXPECTED_VEHICLE_EVENT_QTY"]>;
|
|
1639
1658
|
}, "strict", z.ZodTypeAny, {
|
|
1640
|
-
grade: "
|
|
1659
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1641
1660
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
1642
1661
|
expected_qty: number | null;
|
|
1643
1662
|
found_qty: number | null;
|
|
1644
1663
|
error_message?: string | undefined;
|
|
1645
1664
|
}, {
|
|
1646
|
-
grade: "
|
|
1665
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1647
1666
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
1648
1667
|
expected_qty: number | null;
|
|
1649
1668
|
found_qty: number | null;
|
|
@@ -1657,12 +1676,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1657
1676
|
value: z.ZodNullable<z.ZodNumber>;
|
|
1658
1677
|
}, "strict", z.ZodTypeAny, {
|
|
1659
1678
|
value: number | null;
|
|
1660
|
-
grade: "
|
|
1679
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1661
1680
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1662
1681
|
error_message?: string | undefined;
|
|
1663
1682
|
}, {
|
|
1664
1683
|
value: number | null;
|
|
1665
|
-
grade: "
|
|
1684
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1666
1685
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1667
1686
|
error_message?: string | undefined;
|
|
1668
1687
|
}>;
|
|
@@ -1672,11 +1691,11 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1672
1691
|
} & {
|
|
1673
1692
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
|
|
1674
1693
|
}, "strict", z.ZodTypeAny, {
|
|
1675
|
-
grade: "
|
|
1694
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1676
1695
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1677
1696
|
error_message?: string | undefined;
|
|
1678
1697
|
}, {
|
|
1679
|
-
grade: "
|
|
1698
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1680
1699
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1681
1700
|
error_message?: string | undefined;
|
|
1682
1701
|
}>;
|
|
@@ -1686,11 +1705,11 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1686
1705
|
} & {
|
|
1687
1706
|
reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS", "NO_APEX_TRANSACTIONS"]>;
|
|
1688
1707
|
}, "strict", z.ZodTypeAny, {
|
|
1689
|
-
grade: "
|
|
1708
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1690
1709
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
1691
1710
|
error_message?: string | undefined;
|
|
1692
1711
|
}, {
|
|
1693
|
-
grade: "
|
|
1712
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1694
1713
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
1695
1714
|
error_message?: string | undefined;
|
|
1696
1715
|
}>;
|
|
@@ -1702,12 +1721,12 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1702
1721
|
value: z.ZodNullable<z.ZodNumber>;
|
|
1703
1722
|
}, "strict", z.ZodTypeAny, {
|
|
1704
1723
|
value: number | null;
|
|
1705
|
-
grade: "
|
|
1724
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1706
1725
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1707
1726
|
error_message?: string | undefined;
|
|
1708
1727
|
}, {
|
|
1709
1728
|
value: number | null;
|
|
1710
|
-
grade: "
|
|
1729
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1711
1730
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1712
1731
|
error_message?: string | undefined;
|
|
1713
1732
|
}>;
|
|
@@ -1717,11 +1736,11 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1717
1736
|
} & {
|
|
1718
1737
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
|
|
1719
1738
|
}, "strict", z.ZodTypeAny, {
|
|
1720
|
-
grade: "
|
|
1739
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1721
1740
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1722
1741
|
error_message?: string | undefined;
|
|
1723
1742
|
}, {
|
|
1724
|
-
grade: "
|
|
1743
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1725
1744
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1726
1745
|
error_message?: string | undefined;
|
|
1727
1746
|
}>;
|
|
@@ -1734,14 +1753,14 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1734
1753
|
stop_ids_last: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
1735
1754
|
stop_ids_middle: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
1736
1755
|
}, "strict", z.ZodTypeAny, {
|
|
1737
|
-
grade: "
|
|
1756
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1738
1757
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
1739
1758
|
stop_ids_first: string[] | null;
|
|
1740
1759
|
stop_ids_last: string[] | null;
|
|
1741
1760
|
stop_ids_middle: string[] | null;
|
|
1742
1761
|
error_message?: string | undefined;
|
|
1743
1762
|
}, {
|
|
1744
|
-
grade: "
|
|
1763
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1745
1764
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
1746
1765
|
stop_ids_first: string[] | null;
|
|
1747
1766
|
stop_ids_last: string[] | null;
|
|
@@ -1757,14 +1776,14 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1757
1776
|
missing_qty: z.ZodNullable<z.ZodNumber>;
|
|
1758
1777
|
reason: z.ZodEnum<["NO_TRANSACTIONS", "MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
|
|
1759
1778
|
}, "strict", z.ZodTypeAny, {
|
|
1760
|
-
grade: "
|
|
1779
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1761
1780
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1762
1781
|
expected_qty: number | null;
|
|
1763
1782
|
found_qty: number | null;
|
|
1764
1783
|
missing_qty: number | null;
|
|
1765
1784
|
error_message?: string | undefined;
|
|
1766
1785
|
}, {
|
|
1767
|
-
grade: "
|
|
1786
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1768
1787
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1769
1788
|
expected_qty: number | null;
|
|
1770
1789
|
found_qty: number | null;
|
|
@@ -1774,80 +1793,80 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1774
1793
|
}, "strip", z.ZodTypeAny, {
|
|
1775
1794
|
EXPECTED_DRIVER_ID_QTY: {
|
|
1776
1795
|
value: number | null;
|
|
1777
|
-
grade: "
|
|
1796
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1778
1797
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1779
1798
|
error_message?: string | undefined;
|
|
1780
1799
|
};
|
|
1781
1800
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
1782
1801
|
value: number | null;
|
|
1783
|
-
grade: "
|
|
1802
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1784
1803
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1785
1804
|
error_message?: string | undefined;
|
|
1786
1805
|
};
|
|
1787
1806
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
1788
1807
|
value: number | null;
|
|
1789
|
-
grade: "
|
|
1808
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1790
1809
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
1791
1810
|
error_message?: string | undefined;
|
|
1792
1811
|
};
|
|
1793
1812
|
ENDED_AT_LAST_STOP: {
|
|
1794
|
-
grade: "
|
|
1813
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1795
1814
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1796
1815
|
error_message?: string | undefined;
|
|
1797
1816
|
};
|
|
1798
1817
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
1799
|
-
grade: "
|
|
1818
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1800
1819
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
1801
1820
|
expected_qty: number | null;
|
|
1802
1821
|
found_qty: number | null;
|
|
1803
1822
|
error_message?: string | undefined;
|
|
1804
1823
|
};
|
|
1805
1824
|
MATCHING_APEX_LOCATIONS: {
|
|
1806
|
-
grade: "
|
|
1825
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1807
1826
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1808
1827
|
error_message?: string | undefined;
|
|
1809
1828
|
};
|
|
1810
1829
|
MATCHING_VEHICLE_IDS: {
|
|
1811
|
-
grade: "
|
|
1830
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1812
1831
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
1813
1832
|
error_message?: string | undefined;
|
|
1814
1833
|
};
|
|
1815
1834
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1816
1835
|
value: number | null;
|
|
1817
|
-
grade: "
|
|
1836
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1818
1837
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1819
1838
|
error_message?: string | undefined;
|
|
1820
1839
|
};
|
|
1821
1840
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1822
|
-
grade: "
|
|
1841
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1823
1842
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1824
1843
|
error_message?: string | undefined;
|
|
1825
1844
|
};
|
|
1826
1845
|
EXPECTED_START_TIME: {
|
|
1827
1846
|
value: number | null;
|
|
1828
|
-
grade: "
|
|
1847
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1829
1848
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1830
1849
|
error_message?: string | undefined;
|
|
1831
1850
|
};
|
|
1832
1851
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1833
1852
|
value: number | null;
|
|
1834
|
-
grade: "
|
|
1853
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1835
1854
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1836
1855
|
error_message?: string | undefined;
|
|
1837
1856
|
};
|
|
1838
1857
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1839
1858
|
value: number | null;
|
|
1840
|
-
grade: "
|
|
1859
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1841
1860
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1842
1861
|
error_message?: string | undefined;
|
|
1843
1862
|
};
|
|
1844
1863
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1845
|
-
grade: "
|
|
1864
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1846
1865
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1847
1866
|
error_message?: string | undefined;
|
|
1848
1867
|
};
|
|
1849
1868
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1850
|
-
grade: "
|
|
1869
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1851
1870
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
1852
1871
|
stop_ids_first: string[] | null;
|
|
1853
1872
|
stop_ids_last: string[] | null;
|
|
@@ -1855,7 +1874,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1855
1874
|
error_message?: string | undefined;
|
|
1856
1875
|
};
|
|
1857
1876
|
TRANSACTION_SEQUENTIALITY: {
|
|
1858
|
-
grade: "
|
|
1877
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1859
1878
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1860
1879
|
expected_qty: number | null;
|
|
1861
1880
|
found_qty: number | null;
|
|
@@ -1865,80 +1884,80 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1865
1884
|
}, {
|
|
1866
1885
|
EXPECTED_DRIVER_ID_QTY: {
|
|
1867
1886
|
value: number | null;
|
|
1868
|
-
grade: "
|
|
1887
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1869
1888
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1870
1889
|
error_message?: string | undefined;
|
|
1871
1890
|
};
|
|
1872
1891
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
1873
1892
|
value: number | null;
|
|
1874
|
-
grade: "
|
|
1893
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1875
1894
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
1876
1895
|
error_message?: string | undefined;
|
|
1877
1896
|
};
|
|
1878
1897
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
1879
1898
|
value: number | null;
|
|
1880
|
-
grade: "
|
|
1899
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1881
1900
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
1882
1901
|
error_message?: string | undefined;
|
|
1883
1902
|
};
|
|
1884
1903
|
ENDED_AT_LAST_STOP: {
|
|
1885
|
-
grade: "
|
|
1904
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1886
1905
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
1887
1906
|
error_message?: string | undefined;
|
|
1888
1907
|
};
|
|
1889
1908
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
1890
|
-
grade: "
|
|
1909
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1891
1910
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
1892
1911
|
expected_qty: number | null;
|
|
1893
1912
|
found_qty: number | null;
|
|
1894
1913
|
error_message?: string | undefined;
|
|
1895
1914
|
};
|
|
1896
1915
|
MATCHING_APEX_LOCATIONS: {
|
|
1897
|
-
grade: "
|
|
1916
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1898
1917
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
1899
1918
|
error_message?: string | undefined;
|
|
1900
1919
|
};
|
|
1901
1920
|
MATCHING_VEHICLE_IDS: {
|
|
1902
|
-
grade: "
|
|
1921
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1903
1922
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
1904
1923
|
error_message?: string | undefined;
|
|
1905
1924
|
};
|
|
1906
1925
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
1907
1926
|
value: number | null;
|
|
1908
|
-
grade: "
|
|
1927
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1909
1928
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
1910
1929
|
error_message?: string | undefined;
|
|
1911
1930
|
};
|
|
1912
1931
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
1913
|
-
grade: "
|
|
1932
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1914
1933
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
1915
1934
|
error_message?: string | undefined;
|
|
1916
1935
|
};
|
|
1917
1936
|
EXPECTED_START_TIME: {
|
|
1918
1937
|
value: number | null;
|
|
1919
|
-
grade: "
|
|
1938
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1920
1939
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
1921
1940
|
error_message?: string | undefined;
|
|
1922
1941
|
};
|
|
1923
1942
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
1924
1943
|
value: number | null;
|
|
1925
|
-
grade: "
|
|
1944
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1926
1945
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
1927
1946
|
error_message?: string | undefined;
|
|
1928
1947
|
};
|
|
1929
1948
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
1930
1949
|
value: number | null;
|
|
1931
|
-
grade: "
|
|
1950
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1932
1951
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
1933
1952
|
error_message?: string | undefined;
|
|
1934
1953
|
};
|
|
1935
1954
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
1936
|
-
grade: "
|
|
1955
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1937
1956
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
1938
1957
|
error_message?: string | undefined;
|
|
1939
1958
|
};
|
|
1940
1959
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
1941
|
-
grade: "
|
|
1960
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1942
1961
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
1943
1962
|
stop_ids_first: string[] | null;
|
|
1944
1963
|
stop_ids_last: string[] | null;
|
|
@@ -1946,7 +1965,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1946
1965
|
error_message?: string | undefined;
|
|
1947
1966
|
};
|
|
1948
1967
|
TRANSACTION_SEQUENTIALITY: {
|
|
1949
|
-
grade: "
|
|
1968
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1950
1969
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
1951
1970
|
expected_qty: number | null;
|
|
1952
1971
|
found_qty: number | null;
|
|
@@ -1954,120 +1973,120 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
1954
1973
|
error_message?: string | undefined;
|
|
1955
1974
|
};
|
|
1956
1975
|
}>>>;
|
|
1957
|
-
apex_locations_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1958
|
-
apex_on_board_refunds_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1959
|
-
apex_on_board_refunds_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1960
|
-
apex_on_board_sales_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1961
|
-
apex_on_board_sales_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1962
|
-
apex_validations_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1963
|
-
driver_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1964
|
-
end_time_observed: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1965
|
-
end_time_scheduled: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1966
|
-
extension_observed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1967
|
-
extension_scheduled: z.ZodOptional<z.ZodNumber>;
|
|
1968
1976
|
hashed_shape_id: z.ZodOptional<z.ZodString>;
|
|
1969
1977
|
hashed_trip_id: z.ZodOptional<z.ZodString>;
|
|
1970
|
-
|
|
1971
|
-
line_id: z.ZodOptional<z.ZodNumber>;
|
|
1972
|
-
operational_date: z.ZodOptional<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>;
|
|
1973
|
-
passengers_estimated: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1974
|
-
passengers_observed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1975
|
-
passengers_observed_on_board_sales_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1976
|
-
passengers_observed_on_board_sales_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1977
|
-
passengers_observed_prepaid_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1978
|
-
passengers_observed_prepaid_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1979
|
-
passengers_observed_subscription_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1980
|
-
pattern_id: z.ZodOptional<z.ZodString>;
|
|
1981
|
-
plan_id: z.ZodOptional<z.ZodString>;
|
|
1982
|
-
route_id: z.ZodOptional<z.ZodString>;
|
|
1983
|
-
seen_first_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1984
|
-
seen_last_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1985
|
-
start_time_observed: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
|
|
1986
|
-
start_time_scheduled: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
|
|
1987
|
-
system_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>>;
|
|
1988
|
-
trip_id: z.ZodOptional<z.ZodString>;
|
|
1989
|
-
vehicle_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1978
|
+
system_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
|
|
1990
1979
|
}, "strip", z.ZodTypeAny, {
|
|
1991
1980
|
_id?: string | undefined;
|
|
1992
1981
|
updated_by?: string | undefined;
|
|
1993
1982
|
agency_id?: string | undefined;
|
|
1983
|
+
line_id?: number | undefined;
|
|
1984
|
+
pattern_id?: string | undefined;
|
|
1985
|
+
trip_id?: string | undefined;
|
|
1986
|
+
driver_ids?: string[] | undefined;
|
|
1987
|
+
headsign?: string | undefined;
|
|
1988
|
+
plan_id?: string | undefined;
|
|
1989
|
+
route_id?: string | undefined;
|
|
1990
|
+
vehicle_ids?: number[] | undefined;
|
|
1991
|
+
operational_date?: import("../_common/operational-date.js").OperationalDate | undefined;
|
|
1992
|
+
start_time_observed?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
1993
|
+
start_time_scheduled?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
1994
|
+
end_time_observed?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
1995
|
+
end_time_scheduled?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
1996
|
+
extension_observed?: number | null | undefined;
|
|
1997
|
+
extension_scheduled?: number | undefined;
|
|
1998
|
+
seen_first_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
1999
|
+
seen_last_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
2000
|
+
passengers_estimated?: number | null | undefined;
|
|
2001
|
+
passengers_observed?: number | null | undefined;
|
|
2002
|
+
passengers_observed_on_board_sales_amount?: number | null | undefined;
|
|
2003
|
+
passengers_observed_on_board_sales_qty?: number | null | undefined;
|
|
2004
|
+
passengers_observed_prepaid_amount?: number | null | undefined;
|
|
2005
|
+
passengers_observed_prepaid_qty?: number | null | undefined;
|
|
2006
|
+
passengers_observed_subscription_qty?: number | null | undefined;
|
|
2007
|
+
apex_locations_qty?: number | null | undefined;
|
|
2008
|
+
apex_on_board_refunds_amount?: number | null | undefined;
|
|
2009
|
+
apex_on_board_refunds_qty?: number | null | undefined;
|
|
2010
|
+
apex_on_board_sales_amount?: number | null | undefined;
|
|
2011
|
+
apex_on_board_sales_qty?: number | null | undefined;
|
|
2012
|
+
apex_validations_qty?: number | null | undefined;
|
|
1994
2013
|
analysis?: {
|
|
1995
2014
|
EXPECTED_DRIVER_ID_QTY: {
|
|
1996
2015
|
value: number | null;
|
|
1997
|
-
grade: "
|
|
2016
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
1998
2017
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
1999
2018
|
error_message?: string | undefined;
|
|
2000
2019
|
};
|
|
2001
2020
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
2002
2021
|
value: number | null;
|
|
2003
|
-
grade: "
|
|
2022
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2004
2023
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
2005
2024
|
error_message?: string | undefined;
|
|
2006
2025
|
};
|
|
2007
2026
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
2008
2027
|
value: number | null;
|
|
2009
|
-
grade: "
|
|
2028
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2010
2029
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
2011
2030
|
error_message?: string | undefined;
|
|
2012
2031
|
};
|
|
2013
2032
|
ENDED_AT_LAST_STOP: {
|
|
2014
|
-
grade: "
|
|
2033
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2015
2034
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
2016
2035
|
error_message?: string | undefined;
|
|
2017
2036
|
};
|
|
2018
2037
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
2019
|
-
grade: "
|
|
2038
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2020
2039
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
2021
2040
|
expected_qty: number | null;
|
|
2022
2041
|
found_qty: number | null;
|
|
2023
2042
|
error_message?: string | undefined;
|
|
2024
2043
|
};
|
|
2025
2044
|
MATCHING_APEX_LOCATIONS: {
|
|
2026
|
-
grade: "
|
|
2045
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2027
2046
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
2028
2047
|
error_message?: string | undefined;
|
|
2029
2048
|
};
|
|
2030
2049
|
MATCHING_VEHICLE_IDS: {
|
|
2031
|
-
grade: "
|
|
2050
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2032
2051
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
2033
2052
|
error_message?: string | undefined;
|
|
2034
2053
|
};
|
|
2035
2054
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
2036
2055
|
value: number | null;
|
|
2037
|
-
grade: "
|
|
2056
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2038
2057
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
2039
2058
|
error_message?: string | undefined;
|
|
2040
2059
|
};
|
|
2041
2060
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
2042
|
-
grade: "
|
|
2061
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2043
2062
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
2044
2063
|
error_message?: string | undefined;
|
|
2045
2064
|
};
|
|
2046
2065
|
EXPECTED_START_TIME: {
|
|
2047
2066
|
value: number | null;
|
|
2048
|
-
grade: "
|
|
2067
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2049
2068
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
2050
2069
|
error_message?: string | undefined;
|
|
2051
2070
|
};
|
|
2052
2071
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
2053
2072
|
value: number | null;
|
|
2054
|
-
grade: "
|
|
2073
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2055
2074
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
2056
2075
|
error_message?: string | undefined;
|
|
2057
2076
|
};
|
|
2058
2077
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
2059
2078
|
value: number | null;
|
|
2060
|
-
grade: "
|
|
2079
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2061
2080
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
2062
2081
|
error_message?: string | undefined;
|
|
2063
2082
|
};
|
|
2064
2083
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
2065
|
-
grade: "
|
|
2084
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2066
2085
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
2067
2086
|
error_message?: string | undefined;
|
|
2068
2087
|
};
|
|
2069
2088
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
2070
|
-
grade: "
|
|
2089
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2071
2090
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
2072
2091
|
stop_ids_first: string[] | null;
|
|
2073
2092
|
stop_ids_last: string[] | null;
|
|
@@ -2075,7 +2094,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2075
2094
|
error_message?: string | undefined;
|
|
2076
2095
|
};
|
|
2077
2096
|
TRANSACTION_SEQUENTIALITY: {
|
|
2078
|
-
grade: "
|
|
2097
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2079
2098
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
2080
2099
|
expected_qty: number | null;
|
|
2081
2100
|
found_qty: number | null;
|
|
@@ -2083,22 +2102,30 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2083
2102
|
error_message?: string | undefined;
|
|
2084
2103
|
};
|
|
2085
2104
|
} | null | undefined;
|
|
2086
|
-
apex_locations_qty?: number | null | undefined;
|
|
2087
|
-
apex_on_board_refunds_amount?: number | null | undefined;
|
|
2088
|
-
apex_on_board_refunds_qty?: number | null | undefined;
|
|
2089
|
-
apex_on_board_sales_amount?: number | null | undefined;
|
|
2090
|
-
apex_on_board_sales_qty?: number | null | undefined;
|
|
2091
|
-
apex_validations_qty?: number | null | undefined;
|
|
2092
|
-
driver_ids?: string[] | undefined;
|
|
2093
|
-
end_time_observed?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
|
|
2094
|
-
end_time_scheduled?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
2095
|
-
extension_observed?: number | null | undefined;
|
|
2096
|
-
extension_scheduled?: number | undefined;
|
|
2097
2105
|
hashed_shape_id?: string | undefined;
|
|
2098
2106
|
hashed_trip_id?: string | undefined;
|
|
2099
|
-
|
|
2107
|
+
system_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
2108
|
+
}, {
|
|
2109
|
+
_id?: string | undefined;
|
|
2110
|
+
updated_by?: string | undefined;
|
|
2111
|
+
agency_id?: string | undefined;
|
|
2100
2112
|
line_id?: number | undefined;
|
|
2101
|
-
|
|
2113
|
+
pattern_id?: string | undefined;
|
|
2114
|
+
trip_id?: string | undefined;
|
|
2115
|
+
driver_ids?: string[] | undefined;
|
|
2116
|
+
headsign?: string | undefined;
|
|
2117
|
+
plan_id?: string | undefined;
|
|
2118
|
+
route_id?: string | undefined;
|
|
2119
|
+
vehicle_ids?: number[] | undefined;
|
|
2120
|
+
operational_date?: string | undefined;
|
|
2121
|
+
start_time_observed?: number | null | undefined;
|
|
2122
|
+
start_time_scheduled?: number | undefined;
|
|
2123
|
+
end_time_observed?: number | null | undefined;
|
|
2124
|
+
end_time_scheduled?: number | undefined;
|
|
2125
|
+
extension_observed?: number | null | undefined;
|
|
2126
|
+
extension_scheduled?: number | undefined;
|
|
2127
|
+
seen_first_at?: number | null | undefined;
|
|
2128
|
+
seen_last_at?: number | null | undefined;
|
|
2102
2129
|
passengers_estimated?: number | null | undefined;
|
|
2103
2130
|
passengers_observed?: number | null | undefined;
|
|
2104
2131
|
passengers_observed_on_board_sales_amount?: number | null | undefined;
|
|
@@ -2106,97 +2133,89 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2106
2133
|
passengers_observed_prepaid_amount?: number | null | undefined;
|
|
2107
2134
|
passengers_observed_prepaid_qty?: number | null | undefined;
|
|
2108
2135
|
passengers_observed_subscription_qty?: number | null | undefined;
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
start_time_scheduled?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
|
|
2116
|
-
system_status?: "error" | "waiting" | "processing" | "complete" | undefined;
|
|
2117
|
-
trip_id?: string | undefined;
|
|
2118
|
-
vehicle_ids?: number[] | undefined;
|
|
2119
|
-
}, {
|
|
2120
|
-
_id?: string | undefined;
|
|
2121
|
-
updated_by?: string | undefined;
|
|
2122
|
-
agency_id?: string | undefined;
|
|
2136
|
+
apex_locations_qty?: number | null | undefined;
|
|
2137
|
+
apex_on_board_refunds_amount?: number | null | undefined;
|
|
2138
|
+
apex_on_board_refunds_qty?: number | null | undefined;
|
|
2139
|
+
apex_on_board_sales_amount?: number | null | undefined;
|
|
2140
|
+
apex_on_board_sales_qty?: number | null | undefined;
|
|
2141
|
+
apex_validations_qty?: number | null | undefined;
|
|
2123
2142
|
analysis?: {
|
|
2124
2143
|
EXPECTED_DRIVER_ID_QTY: {
|
|
2125
2144
|
value: number | null;
|
|
2126
|
-
grade: "
|
|
2145
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2127
2146
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
2128
2147
|
error_message?: string | undefined;
|
|
2129
2148
|
};
|
|
2130
2149
|
EXPECTED_VEHICLE_ID_QTY: {
|
|
2131
2150
|
value: number | null;
|
|
2132
|
-
grade: "
|
|
2151
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2133
2152
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
2134
2153
|
error_message?: string | undefined;
|
|
2135
2154
|
};
|
|
2136
2155
|
EXPECTED_VEHICLE_EVENT_INTERVAL: {
|
|
2137
2156
|
value: number | null;
|
|
2138
|
-
grade: "
|
|
2157
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2139
2158
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
2140
2159
|
error_message?: string | undefined;
|
|
2141
2160
|
};
|
|
2142
2161
|
ENDED_AT_LAST_STOP: {
|
|
2143
|
-
grade: "
|
|
2162
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2144
2163
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
2145
2164
|
error_message?: string | undefined;
|
|
2146
2165
|
};
|
|
2147
2166
|
EXPECTED_VEHICLE_EVENT_QTY: {
|
|
2148
|
-
grade: "
|
|
2167
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2149
2168
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
2150
2169
|
expected_qty: number | null;
|
|
2151
2170
|
found_qty: number | null;
|
|
2152
2171
|
error_message?: string | undefined;
|
|
2153
2172
|
};
|
|
2154
2173
|
MATCHING_APEX_LOCATIONS: {
|
|
2155
|
-
grade: "
|
|
2174
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2156
2175
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
2157
2176
|
error_message?: string | undefined;
|
|
2158
2177
|
};
|
|
2159
2178
|
MATCHING_VEHICLE_IDS: {
|
|
2160
|
-
grade: "
|
|
2179
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2161
2180
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
2162
2181
|
error_message?: string | undefined;
|
|
2163
2182
|
};
|
|
2164
2183
|
AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: {
|
|
2165
2184
|
value: number | null;
|
|
2166
|
-
grade: "
|
|
2185
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2167
2186
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
2168
2187
|
error_message?: string | undefined;
|
|
2169
2188
|
};
|
|
2170
2189
|
EXPECTED_APEX_VALIDATION_INTERVAL: {
|
|
2171
|
-
grade: "
|
|
2190
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2172
2191
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
2173
2192
|
error_message?: string | undefined;
|
|
2174
2193
|
};
|
|
2175
2194
|
EXPECTED_START_TIME: {
|
|
2176
2195
|
value: number | null;
|
|
2177
|
-
grade: "
|
|
2196
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2178
2197
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
2179
2198
|
error_message?: string | undefined;
|
|
2180
2199
|
};
|
|
2181
2200
|
EXPECTED_VEHICLE_EVENT_DELAY: {
|
|
2182
2201
|
value: number | null;
|
|
2183
|
-
grade: "
|
|
2202
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2184
2203
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
2185
2204
|
error_message?: string | undefined;
|
|
2186
2205
|
};
|
|
2187
2206
|
SIMPLE_ONE_APEX_VALIDATION: {
|
|
2188
2207
|
value: number | null;
|
|
2189
|
-
grade: "
|
|
2208
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2190
2209
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
2191
2210
|
error_message?: string | undefined;
|
|
2192
2211
|
};
|
|
2193
2212
|
SIMPLE_ONE_VEHICLE_EVENT_OR_APEX_VALIDATION: {
|
|
2194
|
-
grade: "
|
|
2213
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2195
2214
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
2196
2215
|
error_message?: string | undefined;
|
|
2197
2216
|
};
|
|
2198
2217
|
SIMPLE_THREE_VEHICLE_EVENTS: {
|
|
2199
|
-
grade: "
|
|
2218
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2200
2219
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
2201
2220
|
stop_ids_first: string[] | null;
|
|
2202
2221
|
stop_ids_last: string[] | null;
|
|
@@ -2204,7 +2223,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2204
2223
|
error_message?: string | undefined;
|
|
2205
2224
|
};
|
|
2206
2225
|
TRANSACTION_SEQUENTIALITY: {
|
|
2207
|
-
grade: "
|
|
2226
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
2208
2227
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
2209
2228
|
expected_qty: number | null;
|
|
2210
2229
|
found_qty: number | null;
|
|
@@ -2212,73 +2231,10 @@ export declare const UpdateRideSchema: z.ZodObject<{
|
|
|
2212
2231
|
error_message?: string | undefined;
|
|
2213
2232
|
};
|
|
2214
2233
|
} | null | undefined;
|
|
2215
|
-
apex_locations_qty?: number | null | undefined;
|
|
2216
|
-
apex_on_board_refunds_amount?: number | null | undefined;
|
|
2217
|
-
apex_on_board_refunds_qty?: number | null | undefined;
|
|
2218
|
-
apex_on_board_sales_amount?: number | null | undefined;
|
|
2219
|
-
apex_on_board_sales_qty?: number | null | undefined;
|
|
2220
|
-
apex_validations_qty?: number | null | undefined;
|
|
2221
|
-
driver_ids?: string[] | undefined;
|
|
2222
|
-
end_time_observed?: number | null | undefined;
|
|
2223
|
-
end_time_scheduled?: number | undefined;
|
|
2224
|
-
extension_observed?: number | null | undefined;
|
|
2225
|
-
extension_scheduled?: number | undefined;
|
|
2226
2234
|
hashed_shape_id?: string | undefined;
|
|
2227
2235
|
hashed_trip_id?: string | undefined;
|
|
2228
|
-
|
|
2229
|
-
line_id?: number | undefined;
|
|
2230
|
-
operational_date?: string | undefined;
|
|
2231
|
-
passengers_estimated?: number | null | undefined;
|
|
2232
|
-
passengers_observed?: number | null | undefined;
|
|
2233
|
-
passengers_observed_on_board_sales_amount?: number | null | undefined;
|
|
2234
|
-
passengers_observed_on_board_sales_qty?: number | null | undefined;
|
|
2235
|
-
passengers_observed_prepaid_amount?: number | null | undefined;
|
|
2236
|
-
passengers_observed_prepaid_qty?: number | null | undefined;
|
|
2237
|
-
passengers_observed_subscription_qty?: number | null | undefined;
|
|
2238
|
-
pattern_id?: string | undefined;
|
|
2239
|
-
plan_id?: string | undefined;
|
|
2240
|
-
route_id?: string | undefined;
|
|
2241
|
-
seen_first_at?: number | null | undefined;
|
|
2242
|
-
seen_last_at?: number | null | undefined;
|
|
2243
|
-
start_time_observed?: number | null | undefined;
|
|
2244
|
-
start_time_scheduled?: number | undefined;
|
|
2245
|
-
system_status?: "error" | "waiting" | "processing" | "complete" | undefined;
|
|
2246
|
-
trip_id?: string | undefined;
|
|
2247
|
-
vehicle_ids?: number[] | undefined;
|
|
2236
|
+
system_status?: "waiting" | "processing" | "complete" | "error" | "skipped" | undefined;
|
|
2248
2237
|
}>;
|
|
2249
2238
|
export type Ride = z.infer<typeof RideSchema>;
|
|
2250
2239
|
export type CreateRideDto = z.infer<typeof CreateRideSchema>;
|
|
2251
2240
|
export type UpdateRideDto = z.infer<typeof UpdateRideSchema>;
|
|
2252
|
-
export interface RideNormalized extends Ride {
|
|
2253
|
-
acceptance_status: typeof RideAcceptanceStatusSchema.options[number];
|
|
2254
|
-
analysis_ended_at_last_stop_grade: 'none' | RideAnalysis['grade'];
|
|
2255
|
-
analysis_expected_apex_validation_interval: 'none' | RideAnalysis['grade'];
|
|
2256
|
-
analysis_simple_three_vehicle_events_grade: 'none' | RideAnalysis['grade'];
|
|
2257
|
-
analysis_transaction_sequentiality: 'none' | RideAnalysis['grade'];
|
|
2258
|
-
/**
|
|
2259
|
-
* @deprecated use `start_time_observed_display` instead
|
|
2260
|
-
*/
|
|
2261
|
-
delay_status: typeof RIDE_DELAY_STATUS_OPTIONS[number];
|
|
2262
|
-
/**
|
|
2263
|
-
* @deprecated use `start_time_observed_display` instead
|
|
2264
|
-
*/
|
|
2265
|
-
delay_value_display: null | string;
|
|
2266
|
-
end_delay_status: typeof RIDE_DELAY_STATUS_OPTIONS[number];
|
|
2267
|
-
end_delay_value_display: null | string;
|
|
2268
|
-
end_time_observed_display: null | string;
|
|
2269
|
-
end_time_scheduled_display: string;
|
|
2270
|
-
operational_status: typeof RIDE_OPERATIONAL_STATUS_OPTIONS[number];
|
|
2271
|
-
seen_status: typeof RIDE_SEEN_STATUS_OPTIONS[number];
|
|
2272
|
-
start_delay_status: typeof RIDE_DELAY_STATUS_OPTIONS[number];
|
|
2273
|
-
start_delay_value_display: null | string;
|
|
2274
|
-
start_time_observed_display: null | string;
|
|
2275
|
-
start_time_scheduled_display: string;
|
|
2276
|
-
}
|
|
2277
|
-
export declare const RidePermissionSchema: z.ZodObject<{
|
|
2278
|
-
agency_ids: z.ZodArray<z.ZodString, "many">;
|
|
2279
|
-
}, "strip", z.ZodTypeAny, {
|
|
2280
|
-
agency_ids: string[];
|
|
2281
|
-
}, {
|
|
2282
|
-
agency_ids: string[];
|
|
2283
|
-
}>;
|
|
2284
|
-
export type RidePermission = z.infer<typeof RidePermissionSchema>;
|