@tmlmobilidade/types 20251103.1255.55 → 20251202.1821.43
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
|
@@ -22,10 +22,10 @@ export declare const RideAnalysisSummarySchema: z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
22
22
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
23
23
|
reason: z.ZodString;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
grade: "
|
|
25
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
26
26
|
reason: string;
|
|
27
27
|
}, {
|
|
28
|
-
grade: "
|
|
28
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
29
29
|
reason: string;
|
|
30
30
|
}>>;
|
|
31
31
|
export type RideAnalysisSummary = z.infer<typeof RideAnalysisSummarySchema>;
|
|
@@ -34,11 +34,11 @@ export declare const RideAnalysisSchema: z.ZodObject<{
|
|
|
34
34
|
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
35
35
|
reason: z.ZodString;
|
|
36
36
|
}, "strict", z.ZodTypeAny, {
|
|
37
|
-
grade: "
|
|
37
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
38
38
|
reason: string;
|
|
39
39
|
error_message?: string | undefined;
|
|
40
40
|
}, {
|
|
41
|
-
grade: "
|
|
41
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
42
42
|
reason: string;
|
|
43
43
|
error_message?: string | undefined;
|
|
44
44
|
}>;
|
|
@@ -51,12 +51,12 @@ export declare const atLeastOneVehicleEventOnFirstStopSchema: z.ZodObject<{
|
|
|
51
51
|
value: z.ZodNullable<z.ZodNumber>;
|
|
52
52
|
}, "strict", z.ZodTypeAny, {
|
|
53
53
|
value: number | null;
|
|
54
|
-
grade: "
|
|
54
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
55
55
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
56
56
|
error_message?: string | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
value: number | null;
|
|
59
|
-
grade: "
|
|
59
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
60
60
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
|
|
61
61
|
error_message?: string | undefined;
|
|
62
62
|
}>;
|
|
@@ -69,12 +69,12 @@ export declare const expectedDriverIdQtySchema: z.ZodObject<{
|
|
|
69
69
|
value: z.ZodNullable<z.ZodNumber>;
|
|
70
70
|
}, "strict", z.ZodTypeAny, {
|
|
71
71
|
value: number | null;
|
|
72
|
-
grade: "
|
|
72
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
73
73
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
74
74
|
error_message?: string | undefined;
|
|
75
75
|
}, {
|
|
76
76
|
value: number | null;
|
|
77
|
-
grade: "
|
|
77
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
78
78
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
|
|
79
79
|
error_message?: string | undefined;
|
|
80
80
|
}>;
|
|
@@ -87,12 +87,12 @@ export declare const expectedVehicleIdQtySchema: z.ZodObject<{
|
|
|
87
87
|
value: z.ZodNullable<z.ZodNumber>;
|
|
88
88
|
}, "strict", z.ZodTypeAny, {
|
|
89
89
|
value: number | null;
|
|
90
|
-
grade: "
|
|
90
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
91
91
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
92
92
|
error_message?: string | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
value: number | null;
|
|
95
|
-
grade: "
|
|
95
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
96
96
|
reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
|
|
97
97
|
error_message?: string | undefined;
|
|
98
98
|
}>;
|
|
@@ -105,12 +105,12 @@ export declare const expectedVehicleEventIntervalSchema: z.ZodObject<{
|
|
|
105
105
|
value: z.ZodNullable<z.ZodNumber>;
|
|
106
106
|
}, "strict", z.ZodTypeAny, {
|
|
107
107
|
value: number | null;
|
|
108
|
-
grade: "
|
|
108
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
109
109
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
110
110
|
error_message?: string | undefined;
|
|
111
111
|
}, {
|
|
112
112
|
value: number | null;
|
|
113
|
-
grade: "
|
|
113
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
114
114
|
reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
|
|
115
115
|
error_message?: string | undefined;
|
|
116
116
|
}>;
|
|
@@ -121,11 +121,11 @@ export declare const endedAtLastStopSchema: z.ZodObject<{
|
|
|
121
121
|
} & {
|
|
122
122
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
|
|
123
123
|
}, "strict", z.ZodTypeAny, {
|
|
124
|
-
grade: "
|
|
124
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
125
125
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
126
126
|
error_message?: string | undefined;
|
|
127
127
|
}, {
|
|
128
|
-
grade: "
|
|
128
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
129
129
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
|
|
130
130
|
error_message?: string | undefined;
|
|
131
131
|
}>;
|
|
@@ -138,12 +138,12 @@ export declare const expectedVehicleEventDelaySchema: z.ZodObject<{
|
|
|
138
138
|
value: z.ZodNullable<z.ZodNumber>;
|
|
139
139
|
}, "strict", z.ZodTypeAny, {
|
|
140
140
|
value: number | null;
|
|
141
|
-
grade: "
|
|
141
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
142
142
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
143
143
|
error_message?: string | undefined;
|
|
144
144
|
}, {
|
|
145
145
|
value: number | null;
|
|
146
|
-
grade: "
|
|
146
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
147
147
|
reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
|
|
148
148
|
error_message?: string | undefined;
|
|
149
149
|
}>;
|
|
@@ -156,13 +156,13 @@ export declare const expectedVehicleEventQtySchema: z.ZodObject<{
|
|
|
156
156
|
found_qty: z.ZodNullable<z.ZodNumber>;
|
|
157
157
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_QTY", "UNEXPECTED_VEHICLE_EVENT_QTY"]>;
|
|
158
158
|
}, "strict", z.ZodTypeAny, {
|
|
159
|
-
grade: "
|
|
159
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
160
160
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
161
161
|
expected_qty: number | null;
|
|
162
162
|
found_qty: number | null;
|
|
163
163
|
error_message?: string | undefined;
|
|
164
164
|
}, {
|
|
165
|
-
grade: "
|
|
165
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
166
166
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
|
|
167
167
|
expected_qty: number | null;
|
|
168
168
|
found_qty: number | null;
|
|
@@ -175,11 +175,11 @@ export declare const matchingApexLocationsSchema: z.ZodObject<{
|
|
|
175
175
|
} & {
|
|
176
176
|
reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
|
|
177
177
|
}, "strict", z.ZodTypeAny, {
|
|
178
|
-
grade: "
|
|
178
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
179
179
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
180
180
|
error_message?: string | undefined;
|
|
181
181
|
}, {
|
|
182
|
-
grade: "
|
|
182
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
183
183
|
reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
|
|
184
184
|
error_message?: string | undefined;
|
|
185
185
|
}>;
|
|
@@ -192,12 +192,12 @@ export declare const expectedStartTimeSchema: z.ZodObject<{
|
|
|
192
192
|
value: z.ZodNullable<z.ZodNumber>;
|
|
193
193
|
}, "strict", z.ZodTypeAny, {
|
|
194
194
|
value: number | null;
|
|
195
|
-
grade: "
|
|
195
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
196
196
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
197
197
|
error_message?: string | undefined;
|
|
198
198
|
}, {
|
|
199
199
|
value: number | null;
|
|
200
|
-
grade: "
|
|
200
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
201
201
|
reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
|
|
202
202
|
error_message?: string | undefined;
|
|
203
203
|
}>;
|
|
@@ -210,12 +210,12 @@ export declare const simpleOneApexValidationSchema: z.ZodObject<{
|
|
|
210
210
|
value: z.ZodNullable<z.ZodNumber>;
|
|
211
211
|
}, "strict", z.ZodTypeAny, {
|
|
212
212
|
value: number | null;
|
|
213
|
-
grade: "
|
|
213
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
214
214
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
215
215
|
error_message?: string | undefined;
|
|
216
216
|
}, {
|
|
217
217
|
value: number | null;
|
|
218
|
-
grade: "
|
|
218
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
219
219
|
reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
|
|
220
220
|
error_message?: string | undefined;
|
|
221
221
|
}>;
|
|
@@ -226,11 +226,11 @@ export declare const simpleOneVehicleEventOrApexValidationSchema: z.ZodObject<{
|
|
|
226
226
|
} & {
|
|
227
227
|
reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
|
|
228
228
|
}, "strict", z.ZodTypeAny, {
|
|
229
|
-
grade: "
|
|
229
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
230
230
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
231
231
|
error_message?: string | undefined;
|
|
232
232
|
}, {
|
|
233
|
-
grade: "
|
|
233
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
234
234
|
reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
|
|
235
235
|
error_message?: string | undefined;
|
|
236
236
|
}>;
|
|
@@ -244,14 +244,14 @@ export declare const simpleThreeVehicleEventsSchema: z.ZodObject<{
|
|
|
244
244
|
stop_ids_last: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
245
245
|
stop_ids_middle: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
246
246
|
}, "strict", z.ZodTypeAny, {
|
|
247
|
-
grade: "
|
|
247
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
248
248
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
249
249
|
stop_ids_first: string[] | null;
|
|
250
250
|
stop_ids_last: string[] | null;
|
|
251
251
|
stop_ids_middle: string[] | null;
|
|
252
252
|
error_message?: string | undefined;
|
|
253
253
|
}, {
|
|
254
|
-
grade: "
|
|
254
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
255
255
|
reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
|
|
256
256
|
stop_ids_first: string[] | null;
|
|
257
257
|
stop_ids_last: string[] | null;
|
|
@@ -268,14 +268,14 @@ export declare const transactionSequentialitySchema: z.ZodObject<{
|
|
|
268
268
|
missing_qty: z.ZodNullable<z.ZodNumber>;
|
|
269
269
|
reason: z.ZodEnum<["NO_TRANSACTIONS", "MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
|
|
270
270
|
}, "strict", z.ZodTypeAny, {
|
|
271
|
-
grade: "
|
|
271
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
272
272
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
273
273
|
expected_qty: number | null;
|
|
274
274
|
found_qty: number | null;
|
|
275
275
|
missing_qty: number | null;
|
|
276
276
|
error_message?: string | undefined;
|
|
277
277
|
}, {
|
|
278
|
-
grade: "
|
|
278
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
279
279
|
reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
|
|
280
280
|
expected_qty: number | null;
|
|
281
281
|
found_qty: number | null;
|
|
@@ -289,11 +289,11 @@ export declare const matchingVehicleIdsSchema: z.ZodObject<{
|
|
|
289
289
|
} & {
|
|
290
290
|
reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS", "NO_APEX_TRANSACTIONS"]>;
|
|
291
291
|
}, "strict", z.ZodTypeAny, {
|
|
292
|
-
grade: "
|
|
292
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
293
293
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
294
294
|
error_message?: string | undefined;
|
|
295
295
|
}, {
|
|
296
|
-
grade: "
|
|
296
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
297
297
|
reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
|
|
298
298
|
error_message?: string | undefined;
|
|
299
299
|
}>;
|
|
@@ -304,11 +304,11 @@ export declare const expectedApexValidationIntervalSchema: z.ZodObject<{
|
|
|
304
304
|
} & {
|
|
305
305
|
reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "NOT_ENOUGH_VALIDATIONS", "INTERVALS_TOO_SHORT", "NON_ORGANIC_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
|
|
306
306
|
}, "strict", z.ZodTypeAny, {
|
|
307
|
-
grade: "
|
|
307
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
308
308
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
309
309
|
error_message?: string | undefined;
|
|
310
310
|
}, {
|
|
311
|
-
grade: "
|
|
311
|
+
grade: "error" | "pass" | "fail" | "skip";
|
|
312
312
|
reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
|
|
313
313
|
error_message?: string | undefined;
|
|
314
314
|
}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const RideAuditSchema: z.ZodObject<{
|
|
3
3
|
_id: z.ZodString;
|
|
4
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
4
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
5
5
|
created_by: z.ZodOptional<z.ZodString>;
|
|
6
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
6
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
7
7
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
8
|
} & {
|
|
9
9
|
comments: z.ZodArray<z.ZodObject<{
|
|
10
10
|
_id: z.ZodOptional<z.ZodString>;
|
|
11
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
11
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
12
12
|
created_by: z.ZodOptional<z.ZodString>;
|
|
13
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
13
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
14
14
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
15
15
|
message: z.ZodString;
|
|
16
16
|
type: z.ZodLiteral<"note">;
|
|
@@ -82,15 +82,15 @@ export declare const RideAuditSchema: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
|
|
84
84
|
_id: z.ZodOptional<z.ZodString>;
|
|
85
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
85
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
86
86
|
created_by: z.ZodOptional<z.ZodString>;
|
|
87
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
87
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
88
88
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
89
89
|
comments: z.ZodArray<z.ZodObject<{
|
|
90
90
|
_id: z.ZodOptional<z.ZodString>;
|
|
91
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
91
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
92
92
|
created_by: z.ZodOptional<z.ZodString>;
|
|
93
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
93
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
94
94
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
95
95
|
message: z.ZodString;
|
|
96
96
|
type: z.ZodLiteral<"note">;
|
|
@@ -157,9 +157,9 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
|
|
|
157
157
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
158
158
|
comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
159
159
|
_id: z.ZodOptional<z.ZodString>;
|
|
160
|
-
created_at: z.ZodEffects<z.ZodNumber, import("../
|
|
160
|
+
created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
161
161
|
created_by: z.ZodOptional<z.ZodString>;
|
|
162
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("../
|
|
162
|
+
updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
|
|
163
163
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
164
164
|
message: z.ZodString;
|
|
165
165
|
type: z.ZodLiteral<"note">;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DelayStatusSchema, OperationalStatusSchema, SeenStatusSchema } from '../_common/status.js';
|
|
2
|
+
import { RideAcceptanceStatusSchema } from './ride-acceptance.js';
|
|
3
|
+
import { RideAnalysis } from './ride-analysis.js';
|
|
4
|
+
import { Ride } from './ride.js';
|
|
5
|
+
export interface RideNormalized extends Ride {
|
|
6
|
+
acceptance_status: typeof RideAcceptanceStatusSchema.options[number];
|
|
7
|
+
analysis_ended_at_last_stop_grade: 'none' | RideAnalysis['grade'];
|
|
8
|
+
analysis_expected_apex_validation_interval: 'none' | RideAnalysis['grade'];
|
|
9
|
+
analysis_simple_three_vehicle_events_grade: 'none' | RideAnalysis['grade'];
|
|
10
|
+
analysis_transaction_sequentiality: 'none' | RideAnalysis['grade'];
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use `start_time_observed_display` instead
|
|
13
|
+
*/
|
|
14
|
+
delay_status: typeof DelayStatusSchema.options[number];
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated use `start_time_observed_display` instead
|
|
17
|
+
*/
|
|
18
|
+
delay_value_display: null | string;
|
|
19
|
+
end_delay_status: typeof DelayStatusSchema.options[number];
|
|
20
|
+
end_delay_value_display: null | string;
|
|
21
|
+
end_time_observed_display: null | string;
|
|
22
|
+
end_time_scheduled_display: string;
|
|
23
|
+
operational_status: typeof OperationalStatusSchema.options[number];
|
|
24
|
+
seen_status: typeof SeenStatusSchema.options[number];
|
|
25
|
+
start_delay_status: typeof DelayStatusSchema.options[number];
|
|
26
|
+
start_delay_value_display: null | string;
|
|
27
|
+
start_time_observed_display: null | string;
|
|
28
|
+
start_time_scheduled_display: string;
|
|
29
|
+
}
|