@tmlmobilidade/go-types-operation 20260907.2103.49 → 20260908.220.27

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.
@@ -0,0 +1,45 @@
1
+ import { z } from 'zod';
2
+ export declare const RideAnalysisExpectedVehicleEventCoverageGeoSchema: z.ZodObject<{
3
+ agency_id: z.ZodString;
4
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
5
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
6
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7
+ ride_id: z.ZodString;
8
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
9
+ } & {
10
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "LESS_THAN_90_PCT_COVERAGE", "90_PCT_OR_MORE_COVERAGE"]>>>;
11
+ stops_coverage_absolute: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
12
+ stops_coverage_percentage: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ agency_id: string;
15
+ updated_at: number & {
16
+ __brand: "UnixMilliseconds";
17
+ };
18
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null;
19
+ grade_status: "error" | "skip" | "pass" | "fail";
20
+ operational_date: number & {
21
+ __brand: "OperationalDateInt";
22
+ };
23
+ remarks: string | null;
24
+ ride_id: string;
25
+ stops_coverage_absolute: number | null;
26
+ stops_coverage_percentage: number | null;
27
+ }, {
28
+ agency_id: string;
29
+ updated_at: string | number;
30
+ grade_status: string;
31
+ operational_date: string | number;
32
+ ride_id: string;
33
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null | undefined;
34
+ remarks?: string | null | undefined;
35
+ stops_coverage_absolute?: string | number | null | undefined;
36
+ stops_coverage_percentage?: string | number | null | undefined;
37
+ }>;
38
+ /**
39
+ * Tests whether at least 90% of all stops are covered by at least one vehicle event,
40
+ * using the GPS coordinates of the vehicle events and the geofences of the stops.
41
+ * @param total_stops_qty The number of stops that are expected to be covered by at least one vehicle event.
42
+ * @param covered_stops_qty The number of stops that are covered by at least one vehicle event.
43
+ * @param covered_stops_percentage The percentage of stops that are covered by at least one vehicle event.
44
+ */
45
+ export type RideAnalysisExpectedVehicleEventCoverageGeo = z.infer<typeof RideAnalysisExpectedVehicleEventCoverageGeoSchema>;
@@ -0,0 +1,10 @@
1
+ /* * */
2
+ import { RideAnalysisBaseSchema } from './ride-analysis-base.js';
3
+ import { NonNegativeIntegerSchema, PercentSchema } from '@tmlmobilidade/go-types-shared';
4
+ import { z } from 'zod';
5
+ /* * */
6
+ export const RideAnalysisExpectedVehicleEventCoverageGeoSchema = RideAnalysisBaseSchema.extend({
7
+ reason: z.enum(['NO_PATH_DATA', 'NO_VEHICLE_EVENTS', 'LESS_THAN_90_PCT_COVERAGE', '90_PCT_OR_MORE_COVERAGE']).nullable().default(null),
8
+ stops_coverage_absolute: NonNegativeIntegerSchema.nullable().default(null),
9
+ stops_coverage_percentage: PercentSchema.nullable().default(null),
10
+ });
@@ -3,6 +3,7 @@ export * from './at-least-one-vehicle-event-on-last-stop.js';
3
3
  export * from './expected-apex-validation-interval.js';
4
4
  export * from './expected-driver-id-qty.js';
5
5
  export * from './expected-start-time.js';
6
+ export * from './expected-vehicle-event-coverage-geo.js';
6
7
  export * from './expected-vehicle-event-delay.js';
7
8
  export * from './expected-vehicle-event-interval.js';
8
9
  export * from './expected-vehicle-event-qty.js';
@@ -3,6 +3,7 @@ export * from './at-least-one-vehicle-event-on-last-stop.js';
3
3
  export * from './expected-apex-validation-interval.js';
4
4
  export * from './expected-driver-id-qty.js';
5
5
  export * from './expected-start-time.js';
6
+ export * from './expected-vehicle-event-coverage-geo.js';
6
7
  export * from './expected-vehicle-event-delay.js';
7
8
  export * from './expected-vehicle-event-interval.js';
8
9
  export * from './expected-vehicle-event-qty.js';
@@ -174,6 +174,42 @@ export declare const RideAnalysesRegistrySchema: z.ZodObject<{
174
174
  observed_start_time?: string | number | null | undefined;
175
175
  observed_start_time_delta?: string | number | null | undefined;
176
176
  }>;
177
+ expected_vehicle_event_coverage_geo: z.ZodObject<{
178
+ agency_id: z.ZodString;
179
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
180
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
181
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
182
+ ride_id: z.ZodString;
183
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
184
+ } & {
185
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "LESS_THAN_90_PCT_COVERAGE", "90_PCT_OR_MORE_COVERAGE"]>>>;
186
+ stops_coverage_absolute: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
187
+ stops_coverage_percentage: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ agency_id: string;
190
+ updated_at: number & {
191
+ __brand: "UnixMilliseconds";
192
+ };
193
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null;
194
+ grade_status: "error" | "skip" | "pass" | "fail";
195
+ operational_date: number & {
196
+ __brand: "OperationalDateInt";
197
+ };
198
+ remarks: string | null;
199
+ ride_id: string;
200
+ stops_coverage_absolute: number | null;
201
+ stops_coverage_percentage: number | null;
202
+ }, {
203
+ agency_id: string;
204
+ updated_at: string | number;
205
+ grade_status: string;
206
+ operational_date: string | number;
207
+ ride_id: string;
208
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null | undefined;
209
+ remarks?: string | null | undefined;
210
+ stops_coverage_absolute?: string | number | null | undefined;
211
+ stops_coverage_percentage?: string | number | null | undefined;
212
+ }>;
177
213
  expected_vehicle_event_delay: z.ZodObject<{
178
214
  agency_id: z.ZodString;
179
215
  grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
@@ -623,6 +659,21 @@ export declare const RideAnalysesRegistrySchema: z.ZodObject<{
623
659
  observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
624
660
  observed_start_time_delta: number | null;
625
661
  };
662
+ expected_vehicle_event_coverage_geo: {
663
+ agency_id: string;
664
+ updated_at: number & {
665
+ __brand: "UnixMilliseconds";
666
+ };
667
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null;
668
+ grade_status: "error" | "skip" | "pass" | "fail";
669
+ operational_date: number & {
670
+ __brand: "OperationalDateInt";
671
+ };
672
+ remarks: string | null;
673
+ ride_id: string;
674
+ stops_coverage_absolute: number | null;
675
+ stops_coverage_percentage: number | null;
676
+ };
626
677
  expected_vehicle_event_delay: {
627
678
  agency_id: string;
628
679
  updated_at: number & {
@@ -832,6 +883,17 @@ export declare const RideAnalysesRegistrySchema: z.ZodObject<{
832
883
  observed_start_time?: string | number | null | undefined;
833
884
  observed_start_time_delta?: string | number | null | undefined;
834
885
  };
886
+ expected_vehicle_event_coverage_geo: {
887
+ agency_id: string;
888
+ updated_at: string | number;
889
+ grade_status: string;
890
+ operational_date: string | number;
891
+ ride_id: string;
892
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null | undefined;
893
+ remarks?: string | null | undefined;
894
+ stops_coverage_absolute?: string | number | null | undefined;
895
+ stops_coverage_percentage?: string | number | null | undefined;
896
+ };
835
897
  expected_vehicle_event_delay: {
836
898
  agency_id: string;
837
899
  updated_at: string | number;
@@ -5,6 +5,7 @@ import { RideAnalysisAtLeastOneVehicleEventOnLastStopSchema } from './at-least-o
5
5
  import { RideAnalysisExpectedApexValidationIntervalSchema } from './expected-apex-validation-interval.js';
6
6
  import { RideAnalysisExpectedDriverIdQtySchema } from './expected-driver-id-qty.js';
7
7
  import { RideAnalysisExpectedStartTimeSchema } from './expected-start-time.js';
8
+ import { RideAnalysisExpectedVehicleEventCoverageGeoSchema } from './expected-vehicle-event-coverage-geo.js';
8
9
  import { RideAnalysisExpectedVehicleEventDelaySchema } from './expected-vehicle-event-delay.js';
9
10
  import { RideAnalysisExpectedVehicleEventIntervalSchema } from './expected-vehicle-event-interval.js';
10
11
  import { RideAnalysisExpectedVehicleEventQtySchema } from './expected-vehicle-event-qty.js';
@@ -22,6 +23,7 @@ export const RideAnalysesRegistrySchema = z.object({
22
23
  expected_apex_validation_interval: RideAnalysisExpectedApexValidationIntervalSchema,
23
24
  expected_driver_id_qty: RideAnalysisExpectedDriverIdQtySchema,
24
25
  expected_start_time: RideAnalysisExpectedStartTimeSchema,
26
+ expected_vehicle_event_coverage_geo: RideAnalysisExpectedVehicleEventCoverageGeoSchema,
25
27
  expected_vehicle_event_delay: RideAnalysisExpectedVehicleEventDelaySchema,
26
28
  expected_vehicle_event_interval: RideAnalysisExpectedVehicleEventIntervalSchema,
27
29
  expected_vehicle_event_qty: RideAnalysisExpectedVehicleEventQtySchema,
@@ -174,7 +174,7 @@ export declare const RideLifecycleSchema: z.ZodObject<{
174
174
  processing_status?: string | undefined;
175
175
  }>;
176
176
  export declare const RideAnalysesSchema: z.ZodObject<{
177
- analyses: z.ZodObject<{
177
+ analyses: z.ZodDefault<z.ZodNullable<z.ZodObject<{
178
178
  at_least_one_vehicle_event_on_first_stop: z.ZodObject<{
179
179
  agency_id: z.ZodString;
180
180
  grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
@@ -349,6 +349,42 @@ export declare const RideAnalysesSchema: z.ZodObject<{
349
349
  observed_start_time?: string | number | null | undefined;
350
350
  observed_start_time_delta?: string | number | null | undefined;
351
351
  }>;
352
+ expected_vehicle_event_coverage_geo: z.ZodObject<{
353
+ agency_id: z.ZodString;
354
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
355
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
356
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
357
+ ride_id: z.ZodString;
358
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
359
+ } & {
360
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "LESS_THAN_90_PCT_COVERAGE", "90_PCT_OR_MORE_COVERAGE"]>>>;
361
+ stops_coverage_absolute: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
362
+ stops_coverage_percentage: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ agency_id: string;
365
+ updated_at: number & {
366
+ __brand: "UnixMilliseconds";
367
+ };
368
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null;
369
+ grade_status: "error" | "skip" | "pass" | "fail";
370
+ operational_date: number & {
371
+ __brand: "OperationalDateInt";
372
+ };
373
+ remarks: string | null;
374
+ ride_id: string;
375
+ stops_coverage_absolute: number | null;
376
+ stops_coverage_percentage: number | null;
377
+ }, {
378
+ agency_id: string;
379
+ updated_at: string | number;
380
+ grade_status: string;
381
+ operational_date: string | number;
382
+ ride_id: string;
383
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null | undefined;
384
+ remarks?: string | null | undefined;
385
+ stops_coverage_absolute?: string | number | null | undefined;
386
+ stops_coverage_percentage?: string | number | null | undefined;
387
+ }>;
352
388
  expected_vehicle_event_delay: z.ZodObject<{
353
389
  agency_id: z.ZodString;
354
390
  grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
@@ -798,6 +834,21 @@ export declare const RideAnalysesSchema: z.ZodObject<{
798
834
  observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
799
835
  observed_start_time_delta: number | null;
800
836
  };
837
+ expected_vehicle_event_coverage_geo: {
838
+ agency_id: string;
839
+ updated_at: number & {
840
+ __brand: "UnixMilliseconds";
841
+ };
842
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null;
843
+ grade_status: "error" | "skip" | "pass" | "fail";
844
+ operational_date: number & {
845
+ __brand: "OperationalDateInt";
846
+ };
847
+ remarks: string | null;
848
+ ride_id: string;
849
+ stops_coverage_absolute: number | null;
850
+ stops_coverage_percentage: number | null;
851
+ };
801
852
  expected_vehicle_event_delay: {
802
853
  agency_id: string;
803
854
  updated_at: number & {
@@ -1007,6 +1058,17 @@ export declare const RideAnalysesSchema: z.ZodObject<{
1007
1058
  observed_start_time?: string | number | null | undefined;
1008
1059
  observed_start_time_delta?: string | number | null | undefined;
1009
1060
  };
1061
+ expected_vehicle_event_coverage_geo: {
1062
+ agency_id: string;
1063
+ updated_at: string | number;
1064
+ grade_status: string;
1065
+ operational_date: string | number;
1066
+ ride_id: string;
1067
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null | undefined;
1068
+ remarks?: string | null | undefined;
1069
+ stops_coverage_absolute?: string | number | null | undefined;
1070
+ stops_coverage_percentage?: string | number | null | undefined;
1071
+ };
1010
1072
  expected_vehicle_event_delay: {
1011
1073
  agency_id: string;
1012
1074
  updated_at: string | number;
@@ -1122,7 +1184,7 @@ export declare const RideAnalysesSchema: z.ZodObject<{
1122
1184
  found_transactions_qty?: string | number | null | undefined;
1123
1185
  missing_transactions_qty?: string | number | null | undefined;
1124
1186
  };
1125
- }>;
1187
+ }>>>;
1126
1188
  }, "strip", z.ZodTypeAny, {
1127
1189
  analyses: {
1128
1190
  at_least_one_vehicle_event_on_first_stop: {
@@ -1198,6 +1260,21 @@ export declare const RideAnalysesSchema: z.ZodObject<{
1198
1260
  observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
1199
1261
  observed_start_time_delta: number | null;
1200
1262
  };
1263
+ expected_vehicle_event_coverage_geo: {
1264
+ agency_id: string;
1265
+ updated_at: number & {
1266
+ __brand: "UnixMilliseconds";
1267
+ };
1268
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null;
1269
+ grade_status: "error" | "skip" | "pass" | "fail";
1270
+ operational_date: number & {
1271
+ __brand: "OperationalDateInt";
1272
+ };
1273
+ remarks: string | null;
1274
+ ride_id: string;
1275
+ stops_coverage_absolute: number | null;
1276
+ stops_coverage_percentage: number | null;
1277
+ };
1201
1278
  expected_vehicle_event_delay: {
1202
1279
  agency_id: string;
1203
1280
  updated_at: number & {
@@ -1353,9 +1430,9 @@ export declare const RideAnalysesSchema: z.ZodObject<{
1353
1430
  found_transactions_qty: number | null;
1354
1431
  missing_transactions_qty: number | null;
1355
1432
  };
1356
- };
1433
+ } | null;
1357
1434
  }, {
1358
- analyses: {
1435
+ analyses?: {
1359
1436
  at_least_one_vehicle_event_on_first_stop: {
1360
1437
  agency_id: string;
1361
1438
  updated_at: string | number;
@@ -1409,6 +1486,17 @@ export declare const RideAnalysesSchema: z.ZodObject<{
1409
1486
  observed_start_time?: string | number | null | undefined;
1410
1487
  observed_start_time_delta?: string | number | null | undefined;
1411
1488
  };
1489
+ expected_vehicle_event_coverage_geo: {
1490
+ agency_id: string;
1491
+ updated_at: string | number;
1492
+ grade_status: string;
1493
+ operational_date: string | number;
1494
+ ride_id: string;
1495
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null | undefined;
1496
+ remarks?: string | null | undefined;
1497
+ stops_coverage_absolute?: string | number | null | undefined;
1498
+ stops_coverage_percentage?: string | number | null | undefined;
1499
+ };
1412
1500
  expected_vehicle_event_delay: {
1413
1501
  agency_id: string;
1414
1502
  updated_at: string | number;
@@ -1524,7 +1612,7 @@ export declare const RideAnalysesSchema: z.ZodObject<{
1524
1612
  found_transactions_qty?: string | number | null | undefined;
1525
1613
  missing_transactions_qty?: string | number | null | undefined;
1526
1614
  };
1527
- };
1615
+ } | null | undefined;
1528
1616
  }>;
1529
1617
  export declare const RideSchema: z.ZodObject<{
1530
1618
  _id: z.ZodString;
@@ -1738,7 +1826,7 @@ export declare const RideWithAnalysesSchema: z.ZodObject<{
1738
1826
  processing_status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
1739
1827
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
1740
1828
  } & {
1741
- analyses: z.ZodObject<{
1829
+ analyses: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1742
1830
  at_least_one_vehicle_event_on_first_stop: z.ZodObject<{
1743
1831
  agency_id: z.ZodString;
1744
1832
  grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
@@ -1913,6 +2001,42 @@ export declare const RideWithAnalysesSchema: z.ZodObject<{
1913
2001
  observed_start_time?: string | number | null | undefined;
1914
2002
  observed_start_time_delta?: string | number | null | undefined;
1915
2003
  }>;
2004
+ expected_vehicle_event_coverage_geo: z.ZodObject<{
2005
+ agency_id: z.ZodString;
2006
+ grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
2007
+ operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
2008
+ remarks: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2009
+ ride_id: z.ZodString;
2010
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
2011
+ } & {
2012
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "LESS_THAN_90_PCT_COVERAGE", "90_PCT_OR_MORE_COVERAGE"]>>>;
2013
+ stops_coverage_absolute: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2014
+ stops_coverage_percentage: z.ZodDefault<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>>;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ agency_id: string;
2017
+ updated_at: number & {
2018
+ __brand: "UnixMilliseconds";
2019
+ };
2020
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null;
2021
+ grade_status: "error" | "skip" | "pass" | "fail";
2022
+ operational_date: number & {
2023
+ __brand: "OperationalDateInt";
2024
+ };
2025
+ remarks: string | null;
2026
+ ride_id: string;
2027
+ stops_coverage_absolute: number | null;
2028
+ stops_coverage_percentage: number | null;
2029
+ }, {
2030
+ agency_id: string;
2031
+ updated_at: string | number;
2032
+ grade_status: string;
2033
+ operational_date: string | number;
2034
+ ride_id: string;
2035
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null | undefined;
2036
+ remarks?: string | null | undefined;
2037
+ stops_coverage_absolute?: string | number | null | undefined;
2038
+ stops_coverage_percentage?: string | number | null | undefined;
2039
+ }>;
1916
2040
  expected_vehicle_event_delay: z.ZodObject<{
1917
2041
  agency_id: z.ZodString;
1918
2042
  grade_status: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["skip", "pass", "fail", "error"]>>;
@@ -2362,6 +2486,21 @@ export declare const RideWithAnalysesSchema: z.ZodObject<{
2362
2486
  observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
2363
2487
  observed_start_time_delta: number | null;
2364
2488
  };
2489
+ expected_vehicle_event_coverage_geo: {
2490
+ agency_id: string;
2491
+ updated_at: number & {
2492
+ __brand: "UnixMilliseconds";
2493
+ };
2494
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null;
2495
+ grade_status: "error" | "skip" | "pass" | "fail";
2496
+ operational_date: number & {
2497
+ __brand: "OperationalDateInt";
2498
+ };
2499
+ remarks: string | null;
2500
+ ride_id: string;
2501
+ stops_coverage_absolute: number | null;
2502
+ stops_coverage_percentage: number | null;
2503
+ };
2365
2504
  expected_vehicle_event_delay: {
2366
2505
  agency_id: string;
2367
2506
  updated_at: number & {
@@ -2571,6 +2710,17 @@ export declare const RideWithAnalysesSchema: z.ZodObject<{
2571
2710
  observed_start_time?: string | number | null | undefined;
2572
2711
  observed_start_time_delta?: string | number | null | undefined;
2573
2712
  };
2713
+ expected_vehicle_event_coverage_geo: {
2714
+ agency_id: string;
2715
+ updated_at: string | number;
2716
+ grade_status: string;
2717
+ operational_date: string | number;
2718
+ ride_id: string;
2719
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null | undefined;
2720
+ remarks?: string | null | undefined;
2721
+ stops_coverage_absolute?: string | number | null | undefined;
2722
+ stops_coverage_percentage?: string | number | null | undefined;
2723
+ };
2574
2724
  expected_vehicle_event_delay: {
2575
2725
  agency_id: string;
2576
2726
  updated_at: string | number;
@@ -2686,7 +2836,7 @@ export declare const RideWithAnalysesSchema: z.ZodObject<{
2686
2836
  found_transactions_qty?: string | number | null | undefined;
2687
2837
  missing_transactions_qty?: string | number | null | undefined;
2688
2838
  };
2689
- }>;
2839
+ }>>>;
2690
2840
  }, "strip", z.ZodTypeAny, {
2691
2841
  agency_id: string;
2692
2842
  _id: string;
@@ -2820,6 +2970,21 @@ export declare const RideWithAnalysesSchema: z.ZodObject<{
2820
2970
  observed_start_time: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
2821
2971
  observed_start_time_delta: number | null;
2822
2972
  };
2973
+ expected_vehicle_event_coverage_geo: {
2974
+ agency_id: string;
2975
+ updated_at: number & {
2976
+ __brand: "UnixMilliseconds";
2977
+ };
2978
+ reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null;
2979
+ grade_status: "error" | "skip" | "pass" | "fail";
2980
+ operational_date: number & {
2981
+ __brand: "OperationalDateInt";
2982
+ };
2983
+ remarks: string | null;
2984
+ ride_id: string;
2985
+ stops_coverage_absolute: number | null;
2986
+ stops_coverage_percentage: number | null;
2987
+ };
2823
2988
  expected_vehicle_event_delay: {
2824
2989
  agency_id: string;
2825
2990
  updated_at: number & {
@@ -2975,7 +3140,7 @@ export declare const RideWithAnalysesSchema: z.ZodObject<{
2975
3140
  found_transactions_qty: number | null;
2976
3141
  missing_transactions_qty: number | null;
2977
3142
  };
2978
- };
3143
+ } | null;
2979
3144
  }, {
2980
3145
  agency_id: string;
2981
3146
  _id: string;
@@ -2996,7 +3161,34 @@ export declare const RideWithAnalysesSchema: z.ZodObject<{
2996
3161
  end_time_scheduled: string | number;
2997
3162
  extension_scheduled: string | number;
2998
3163
  start_time_scheduled: string | number;
2999
- analyses: {
3164
+ processing_status?: string | undefined;
3165
+ route_color?: string | undefined;
3166
+ route_text_color?: string | undefined;
3167
+ end_time_observed?: string | number | null | undefined;
3168
+ extension_observed?: string | number | null | undefined;
3169
+ start_time_observed?: string | number | null | undefined;
3170
+ apex_banking_taps_amount?: string | number | null | undefined;
3171
+ apex_banking_taps_qty?: string | number | null | undefined;
3172
+ apex_locations_qty?: string | number | null | undefined;
3173
+ apex_refunds_amount?: string | number | null | undefined;
3174
+ apex_refunds_qty?: string | number | null | undefined;
3175
+ apex_sales_amount?: string | number | null | undefined;
3176
+ apex_sales_qty?: string | number | null | undefined;
3177
+ apex_validations_qty?: string | number | null | undefined;
3178
+ passengers_estimated?: string | number | null | undefined;
3179
+ passengers_observed?: string | number | null | undefined;
3180
+ passengers_observed_banking_taps_amount?: string | number | null | undefined;
3181
+ passengers_observed_banking_taps_qty?: string | number | null | undefined;
3182
+ passengers_observed_prepaid_amount?: string | number | null | undefined;
3183
+ passengers_observed_prepaid_qty?: string | number | null | undefined;
3184
+ passengers_observed_sales_amount?: string | number | null | undefined;
3185
+ passengers_observed_sales_qty?: string | number | null | undefined;
3186
+ passengers_observed_subscription_qty?: string | number | null | undefined;
3187
+ driver_ids?: string[] | undefined;
3188
+ seen_first_at?: string | number | null | undefined;
3189
+ seen_last_at?: string | number | null | undefined;
3190
+ vehicle_ids?: string[] | undefined;
3191
+ analyses?: {
3000
3192
  at_least_one_vehicle_event_on_first_stop: {
3001
3193
  agency_id: string;
3002
3194
  updated_at: string | number;
@@ -3050,6 +3242,17 @@ export declare const RideWithAnalysesSchema: z.ZodObject<{
3050
3242
  observed_start_time?: string | number | null | undefined;
3051
3243
  observed_start_time_delta?: string | number | null | undefined;
3052
3244
  };
3245
+ expected_vehicle_event_coverage_geo: {
3246
+ agency_id: string;
3247
+ updated_at: string | number;
3248
+ grade_status: string;
3249
+ operational_date: string | number;
3250
+ ride_id: string;
3251
+ reason?: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "LESS_THAN_90_PCT_COVERAGE" | "90_PCT_OR_MORE_COVERAGE" | null | undefined;
3252
+ remarks?: string | null | undefined;
3253
+ stops_coverage_absolute?: string | number | null | undefined;
3254
+ stops_coverage_percentage?: string | number | null | undefined;
3255
+ };
3053
3256
  expected_vehicle_event_delay: {
3054
3257
  agency_id: string;
3055
3258
  updated_at: string | number;
@@ -3165,34 +3368,7 @@ export declare const RideWithAnalysesSchema: z.ZodObject<{
3165
3368
  found_transactions_qty?: string | number | null | undefined;
3166
3369
  missing_transactions_qty?: string | number | null | undefined;
3167
3370
  };
3168
- };
3169
- processing_status?: string | undefined;
3170
- route_color?: string | undefined;
3171
- route_text_color?: string | undefined;
3172
- end_time_observed?: string | number | null | undefined;
3173
- extension_observed?: string | number | null | undefined;
3174
- start_time_observed?: string | number | null | undefined;
3175
- apex_banking_taps_amount?: string | number | null | undefined;
3176
- apex_banking_taps_qty?: string | number | null | undefined;
3177
- apex_locations_qty?: string | number | null | undefined;
3178
- apex_refunds_amount?: string | number | null | undefined;
3179
- apex_refunds_qty?: string | number | null | undefined;
3180
- apex_sales_amount?: string | number | null | undefined;
3181
- apex_sales_qty?: string | number | null | undefined;
3182
- apex_validations_qty?: string | number | null | undefined;
3183
- passengers_estimated?: string | number | null | undefined;
3184
- passengers_observed?: string | number | null | undefined;
3185
- passengers_observed_banking_taps_amount?: string | number | null | undefined;
3186
- passengers_observed_banking_taps_qty?: string | number | null | undefined;
3187
- passengers_observed_prepaid_amount?: string | number | null | undefined;
3188
- passengers_observed_prepaid_qty?: string | number | null | undefined;
3189
- passengers_observed_sales_amount?: string | number | null | undefined;
3190
- passengers_observed_sales_qty?: string | number | null | undefined;
3191
- passengers_observed_subscription_qty?: string | number | null | undefined;
3192
- driver_ids?: string[] | undefined;
3193
- seen_first_at?: string | number | null | undefined;
3194
- seen_last_at?: string | number | null | undefined;
3195
- vehicle_ids?: string[] | undefined;
3371
+ } | null | undefined;
3196
3372
  }>;
3197
3373
  /**
3198
3374
  * A Ride represents a single vehicle journey on a single route for a single day.
@@ -63,7 +63,7 @@ export const RideLifecycleSchema = z.object({
63
63
  updated_at: UnixMillisecondsSchema,
64
64
  });
65
65
  export const RideAnalysesSchema = z.object({
66
- analyses: RideAnalysesRegistrySchema,
66
+ analyses: RideAnalysesRegistrySchema.nullable().default(null),
67
67
  });
68
68
  /* * */
69
69
  export const RideSchema = RideIdentitySchema
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/go-types-operation",
3
- "version": "20260907.2103.49",
3
+ "version": "20260908.220.27",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"