@tmlmobilidade/types 20251217.1540.37 → 20251218.110.37

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.
Files changed (119) hide show
  1. package/dist/_common/comment.js +15 -6
  2. package/dist/_common/document.d.ts +3 -0
  3. package/dist/_common/document.js +4 -3
  4. package/dist/_common/status.d.ts +15 -1
  5. package/dist/_common/status.js +24 -6
  6. package/dist/_common/unix-timestamp.d.ts +1 -1
  7. package/dist/_common/unix-timestamp.js +1 -1
  8. package/dist/agency.d.ts +18 -13
  9. package/dist/agency.js +1 -1
  10. package/dist/alert.d.ts +101 -112
  11. package/dist/alert.js +18 -19
  12. package/dist/apex/simplified-apex-location.d.ts +5 -4
  13. package/dist/apex/simplified-apex-location.js +6 -4
  14. package/dist/apex/simplified-apex-on-board-refund.d.ts +5 -4
  15. package/dist/apex/simplified-apex-on-board-refund.js +6 -4
  16. package/dist/apex/simplified-apex-on-board-sale.d.ts +5 -4
  17. package/dist/apex/simplified-apex-on-board-sale.js +6 -4
  18. package/dist/apex/simplified-apex-validation.d.ts +9 -8
  19. package/dist/apex/simplified-apex-validation.js +6 -4
  20. package/dist/auth/login.d.ts +1 -1
  21. package/dist/auth/login.js +1 -1
  22. package/dist/auth/role.d.ts +260 -149
  23. package/dist/auth/role.js +1 -1
  24. package/dist/auth/session.d.ts +9 -7
  25. package/dist/auth/session.js +6 -4
  26. package/dist/auth/user.d.ts +737 -207
  27. package/dist/auth/user.js +12 -9
  28. package/dist/auth/verification-token.d.ts +9 -7
  29. package/dist/auth/verification-token.js +6 -4
  30. package/dist/dates/annotation.d.ts +94 -0
  31. package/dist/dates/annotation.js +14 -0
  32. package/dist/dates/index.d.ts +1 -0
  33. package/dist/dates/index.js +1 -0
  34. package/dist/file-exports/{common.d.ts → base.d.ts} +6 -5
  35. package/dist/file-exports/{common.js → base.js} +7 -4
  36. package/dist/file-exports/file-exports.d.ts +124 -0
  37. package/dist/file-exports/file-exports.js +7 -0
  38. package/dist/file-exports/index.d.ts +3 -126
  39. package/dist/file-exports/index.js +3 -9
  40. package/dist/file-exports/ride-export.d.ts +13 -13
  41. package/dist/file-exports/ride-export.js +5 -5
  42. package/dist/file.d.ts +3 -3
  43. package/dist/file.js +4 -2
  44. package/dist/index.d.ts +2 -1
  45. package/dist/index.js +2 -1
  46. package/dist/notification.d.ts +9 -7
  47. package/dist/notification.js +4 -2
  48. package/dist/organization.d.ts +24 -15
  49. package/dist/organization.js +3 -3
  50. package/dist/permissions/agencies.d.ts +3 -3
  51. package/dist/permissions/agencies.js +1 -1
  52. package/dist/permissions/alerts.d.ts +6 -6
  53. package/dist/permissions/alerts.js +2 -2
  54. package/dist/permissions/dates.d.ts +25 -0
  55. package/dist/permissions/dates.js +16 -0
  56. package/dist/permissions/gtfs-validations.d.ts +3 -3
  57. package/dist/permissions/gtfs-validations.js +1 -0
  58. package/dist/permissions/index.d.ts +49 -27
  59. package/dist/permissions/index.js +2 -0
  60. package/dist/permissions/organizations.d.ts +3 -3
  61. package/dist/permissions/organizations.js +1 -0
  62. package/dist/permissions/plans.d.ts +3 -3
  63. package/dist/permissions/plans.js +1 -1
  64. package/dist/permissions/roles.d.ts +3 -3
  65. package/dist/permissions/roles.js +1 -0
  66. package/dist/permissions/stops.d.ts +3 -3
  67. package/dist/permissions/stops.js +1 -1
  68. package/dist/permissions/users.d.ts +3 -3
  69. package/dist/permissions/users.js +1 -0
  70. package/dist/plans/gtfs-validation.d.ts +12 -3
  71. package/dist/plans/gtfs-validation.js +1 -1
  72. package/dist/plans/plan-app-status.js +2 -2
  73. package/dist/plans/plan-pcgi-legacy.d.ts +1 -1
  74. package/dist/plans/plan-pcgi-legacy.js +1 -1
  75. package/dist/plans/plan.d.ts +9 -9
  76. package/dist/proposed-change.d.ts +12 -3
  77. package/dist/proposed-change.js +1 -1
  78. package/dist/rides/ride-acceptance.d.ts +23 -19
  79. package/dist/rides/ride-acceptance.js +5 -3
  80. package/dist/rides/ride-analysis.d.ts +16 -16
  81. package/dist/rides/ride-analysis.js +16 -16
  82. package/dist/rides/ride-audit.d.ts +11 -11
  83. package/dist/rides/ride-audit.js +1 -1
  84. package/dist/rides/ride-overrides.d.ts +1 -1
  85. package/dist/rides/ride-overrides.js +1 -1
  86. package/dist/rides/ride.d.ts +56 -55
  87. package/dist/rides/ride.js +10 -8
  88. package/dist/sams/sam-analysis.d.ts +1 -1
  89. package/dist/sams/sam-analysis.js +4 -4
  90. package/dist/sams/sam.d.ts +13 -13
  91. package/dist/sams/sam.js +7 -5
  92. package/dist/stops/connections.d.ts +3 -0
  93. package/dist/stops/connections.js +15 -0
  94. package/dist/stops/equipment.d.ts +3 -0
  95. package/dist/stops/equipment.js +9 -0
  96. package/dist/stops/facilities.d.ts +4 -0
  97. package/dist/stops/facilities.js +16 -0
  98. package/dist/stops/index.d.ts +9 -0
  99. package/dist/stops/index.js +9 -0
  100. package/dist/stops/jurisdiction.d.ts +4 -0
  101. package/dist/stops/jurisdiction.js +10 -0
  102. package/dist/stops/name-abbreviations.d.ts +11 -0
  103. package/dist/stops/name-abbreviations.js +117 -0
  104. package/dist/stops/parent-station.d.ts +76 -0
  105. package/dist/stops/parent-station.js +11 -0
  106. package/dist/stops/road-type.d.ts +3 -0
  107. package/dist/stops/road-type.js +13 -0
  108. package/dist/stops/stop-area.d.ts +67 -0
  109. package/dist/stops/stop-area.js +10 -0
  110. package/dist/{stop.d.ts → stops/stop.d.ts} +271 -345
  111. package/dist/stops/stop.js +78 -0
  112. package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.d.ts +1 -21
  113. package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.js +4 -5
  114. package/dist/vehicle-events/simplified-vehicle-event.d.ts +4 -3
  115. package/dist/vehicle-events/simplified-vehicle-event.js +6 -4
  116. package/dist/zone.d.ts +10 -10
  117. package/dist/zone.js +1 -1
  118. package/package.json +2 -2
  119. package/dist/stop.js +0 -102
@@ -1,11 +1,12 @@
1
1
  import { z } from 'zod';
2
- export declare const RideSchema: z.ZodObject<{
2
+ export declare const RideSchema: z.ZodObject<Omit<{
3
3
  _id: z.ZodString;
4
4
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
5
5
  created_by: z.ZodOptional<z.ZodString>;
6
+ is_locked: z.ZodDefault<z.ZodBoolean>;
6
7
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
7
8
  updated_by: z.ZodOptional<z.ZodString>;
8
- } & {
9
+ }, "is_locked"> & {
9
10
  agency_id: z.ZodString;
10
11
  analysis: z.ZodNullable<z.ZodObject<{
11
12
  AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodObject<{
@@ -14,7 +15,7 @@ export declare const RideSchema: z.ZodObject<{
14
15
  } & {
15
16
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_FIRST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP"]>;
16
17
  value: z.ZodNullable<z.ZodNumber>;
17
- }, "strict", z.ZodTypeAny, {
18
+ }, "strip", z.ZodTypeAny, {
18
19
  value: number | null;
19
20
  grade: "error" | "pass" | "fail" | "skip";
20
21
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
@@ -30,7 +31,7 @@ export declare const RideSchema: z.ZodObject<{
30
31
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
31
32
  } & {
32
33
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
33
- }, "strict", z.ZodTypeAny, {
34
+ }, "strip", z.ZodTypeAny, {
34
35
  grade: "error" | "pass" | "fail" | "skip";
35
36
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
36
37
  error_message?: string | undefined;
@@ -44,7 +45,7 @@ export declare const RideSchema: z.ZodObject<{
44
45
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
45
46
  } & {
46
47
  reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "NOT_ENOUGH_VALIDATIONS", "INTERVALS_TOO_SHORT", "NON_ORGANIC_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
47
- }, "strict", z.ZodTypeAny, {
48
+ }, "strip", z.ZodTypeAny, {
48
49
  grade: "error" | "pass" | "fail" | "skip";
49
50
  reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
50
51
  error_message?: string | undefined;
@@ -59,7 +60,7 @@ export declare const RideSchema: z.ZodObject<{
59
60
  } & {
60
61
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_DRIVER_ID_QTY", "EXPECTED_DRIVER_ID_QTY"]>;
61
62
  value: z.ZodNullable<z.ZodNumber>;
62
- }, "strict", z.ZodTypeAny, {
63
+ }, "strip", z.ZodTypeAny, {
63
64
  value: number | null;
64
65
  grade: "error" | "pass" | "fail" | "skip";
65
66
  reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
@@ -76,7 +77,7 @@ export declare const RideSchema: z.ZodObject<{
76
77
  } & {
77
78
  reason: z.ZodEnum<["NO_START_TIME_SCHEDULED", "NO_VEHICLE_EVENTS", "UNKNOWN_START", "EARLY_START", "LATE_START", "START_ON_TIME"]>;
78
79
  value: z.ZodNullable<z.ZodNumber>;
79
- }, "strict", z.ZodTypeAny, {
80
+ }, "strip", z.ZodTypeAny, {
80
81
  value: number | null;
81
82
  grade: "error" | "pass" | "fail" | "skip";
82
83
  reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
@@ -93,7 +94,7 @@ export declare const RideSchema: z.ZodObject<{
93
94
  } & {
94
95
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_VEHICLE_EVENTS_DELAY", "EXPECTED_VEHICLE_EVENTS_DELAY"]>;
95
96
  value: z.ZodNullable<z.ZodNumber>;
96
- }, "strict", z.ZodTypeAny, {
97
+ }, "strip", z.ZodTypeAny, {
97
98
  value: number | null;
98
99
  grade: "error" | "pass" | "fail" | "skip";
99
100
  reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
@@ -110,7 +111,7 @@ export declare const RideSchema: z.ZodObject<{
110
111
  } & {
111
112
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_INTERVAL", "UNEXPECTED_VEHICLE_EVENT_INTERVAL"]>;
112
113
  value: z.ZodNullable<z.ZodNumber>;
113
- }, "strict", z.ZodTypeAny, {
114
+ }, "strip", z.ZodTypeAny, {
114
115
  value: number | null;
115
116
  grade: "error" | "pass" | "fail" | "skip";
116
117
  reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
@@ -128,7 +129,7 @@ export declare const RideSchema: z.ZodObject<{
128
129
  expected_qty: z.ZodNullable<z.ZodNumber>;
129
130
  found_qty: z.ZodNullable<z.ZodNumber>;
130
131
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_QTY", "UNEXPECTED_VEHICLE_EVENT_QTY"]>;
131
- }, "strict", z.ZodTypeAny, {
132
+ }, "strip", z.ZodTypeAny, {
132
133
  grade: "error" | "pass" | "fail" | "skip";
133
134
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
134
135
  expected_qty: number | null;
@@ -147,7 +148,7 @@ export declare const RideSchema: z.ZodObject<{
147
148
  } & {
148
149
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "UNEXPECTED_VEHICLE_ID_QTY", "EXPECTED_VEHICLE_ID_QTY"]>;
149
150
  value: z.ZodNullable<z.ZodNumber>;
150
- }, "strict", z.ZodTypeAny, {
151
+ }, "strip", z.ZodTypeAny, {
151
152
  value: number | null;
152
153
  grade: "error" | "pass" | "fail" | "skip";
153
154
  reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
@@ -163,7 +164,7 @@ export declare const RideSchema: z.ZodObject<{
163
164
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
164
165
  } & {
165
166
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
166
- }, "strict", z.ZodTypeAny, {
167
+ }, "strip", z.ZodTypeAny, {
167
168
  grade: "error" | "pass" | "fail" | "skip";
168
169
  reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
169
170
  error_message?: string | undefined;
@@ -177,7 +178,7 @@ export declare const RideSchema: z.ZodObject<{
177
178
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
178
179
  } & {
179
180
  reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS", "NO_APEX_TRANSACTIONS"]>;
180
- }, "strict", z.ZodTypeAny, {
181
+ }, "strip", z.ZodTypeAny, {
181
182
  grade: "error" | "pass" | "fail" | "skip";
182
183
  reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
183
184
  error_message?: string | undefined;
@@ -192,7 +193,7 @@ export declare const RideSchema: z.ZodObject<{
192
193
  } & {
193
194
  reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "ONE_OR_MORE_APEX_VALIDATIONS"]>;
194
195
  value: z.ZodNullable<z.ZodNumber>;
195
- }, "strict", z.ZodTypeAny, {
196
+ }, "strip", z.ZodTypeAny, {
196
197
  value: number | null;
197
198
  grade: "error" | "pass" | "fail" | "skip";
198
199
  reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
@@ -208,7 +209,7 @@ export declare const RideSchema: z.ZodObject<{
208
209
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
209
210
  } & {
210
211
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
211
- }, "strict", z.ZodTypeAny, {
212
+ }, "strip", z.ZodTypeAny, {
212
213
  grade: "error" | "pass" | "fail" | "skip";
213
214
  reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
214
215
  error_message?: string | undefined;
@@ -225,7 +226,7 @@ export declare const RideSchema: z.ZodObject<{
225
226
  stop_ids_first: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
226
227
  stop_ids_last: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
227
228
  stop_ids_middle: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
228
- }, "strict", z.ZodTypeAny, {
229
+ }, "strip", z.ZodTypeAny, {
229
230
  grade: "error" | "pass" | "fail" | "skip";
230
231
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
231
232
  stop_ids_first: string[] | null;
@@ -248,7 +249,7 @@ export declare const RideSchema: z.ZodObject<{
248
249
  found_qty: z.ZodNullable<z.ZodNumber>;
249
250
  missing_qty: z.ZodNullable<z.ZodNumber>;
250
251
  reason: z.ZodEnum<["NO_TRANSACTIONS", "MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
251
- }, "strict", z.ZodTypeAny, {
252
+ }, "strip", z.ZodTypeAny, {
252
253
  grade: "error" | "pass" | "fail" | "skip";
253
254
  reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
254
255
  expected_qty: number | null;
@@ -491,6 +492,7 @@ export declare const RideSchema: z.ZodObject<{
491
492
  line_id: number;
492
493
  pattern_id: string;
493
494
  trip_id: string;
495
+ seen_last_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
494
496
  driver_ids: string[];
495
497
  headsign: string;
496
498
  plan_id: string;
@@ -510,7 +512,6 @@ export declare const RideSchema: z.ZodObject<{
510
512
  extension_observed: number | null;
511
513
  extension_scheduled: number;
512
514
  seen_first_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
513
- seen_last_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
514
515
  passengers_estimated: number | null;
515
516
  passengers_observed: number | null;
516
517
  passengers_observed_on_board_sales_amount: number | null;
@@ -629,6 +630,7 @@ export declare const RideSchema: z.ZodObject<{
629
630
  line_id: number;
630
631
  pattern_id: string;
631
632
  trip_id: string;
633
+ seen_last_at: number | null;
632
634
  driver_ids: string[];
633
635
  headsign: string;
634
636
  plan_id: string;
@@ -642,7 +644,6 @@ export declare const RideSchema: z.ZodObject<{
642
644
  extension_observed: number | null;
643
645
  extension_scheduled: number;
644
646
  seen_first_at: number | null;
645
- seen_last_at: number | null;
646
647
  passengers_estimated: number | null;
647
648
  passengers_observed: number | null;
648
649
  passengers_observed_on_board_sales_amount: number | null;
@@ -764,6 +765,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
764
765
  line_id: z.ZodNumber;
765
766
  pattern_id: z.ZodString;
766
767
  trip_id: z.ZodString;
768
+ seen_last_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
767
769
  driver_ids: z.ZodArray<z.ZodString, "many">;
768
770
  headsign: z.ZodString;
769
771
  plan_id: z.ZodString;
@@ -777,7 +779,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
777
779
  extension_observed: z.ZodNullable<z.ZodNumber>;
778
780
  extension_scheduled: z.ZodNumber;
779
781
  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
782
  passengers_estimated: z.ZodNullable<z.ZodNumber>;
782
783
  passengers_observed: z.ZodNullable<z.ZodNumber>;
783
784
  passengers_observed_on_board_sales_amount: z.ZodNullable<z.ZodNumber>;
@@ -798,7 +799,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
798
799
  } & {
799
800
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_FIRST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP"]>;
800
801
  value: z.ZodNullable<z.ZodNumber>;
801
- }, "strict", z.ZodTypeAny, {
802
+ }, "strip", z.ZodTypeAny, {
802
803
  value: number | null;
803
804
  grade: "error" | "pass" | "fail" | "skip";
804
805
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
@@ -814,7 +815,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
814
815
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
815
816
  } & {
816
817
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
817
- }, "strict", z.ZodTypeAny, {
818
+ }, "strip", z.ZodTypeAny, {
818
819
  grade: "error" | "pass" | "fail" | "skip";
819
820
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
820
821
  error_message?: string | undefined;
@@ -828,7 +829,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
828
829
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
829
830
  } & {
830
831
  reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "NOT_ENOUGH_VALIDATIONS", "INTERVALS_TOO_SHORT", "NON_ORGANIC_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
831
- }, "strict", z.ZodTypeAny, {
832
+ }, "strip", z.ZodTypeAny, {
832
833
  grade: "error" | "pass" | "fail" | "skip";
833
834
  reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
834
835
  error_message?: string | undefined;
@@ -843,7 +844,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
843
844
  } & {
844
845
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_DRIVER_ID_QTY", "EXPECTED_DRIVER_ID_QTY"]>;
845
846
  value: z.ZodNullable<z.ZodNumber>;
846
- }, "strict", z.ZodTypeAny, {
847
+ }, "strip", z.ZodTypeAny, {
847
848
  value: number | null;
848
849
  grade: "error" | "pass" | "fail" | "skip";
849
850
  reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
@@ -860,7 +861,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
860
861
  } & {
861
862
  reason: z.ZodEnum<["NO_START_TIME_SCHEDULED", "NO_VEHICLE_EVENTS", "UNKNOWN_START", "EARLY_START", "LATE_START", "START_ON_TIME"]>;
862
863
  value: z.ZodNullable<z.ZodNumber>;
863
- }, "strict", z.ZodTypeAny, {
864
+ }, "strip", z.ZodTypeAny, {
864
865
  value: number | null;
865
866
  grade: "error" | "pass" | "fail" | "skip";
866
867
  reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
@@ -877,7 +878,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
877
878
  } & {
878
879
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_VEHICLE_EVENTS_DELAY", "EXPECTED_VEHICLE_EVENTS_DELAY"]>;
879
880
  value: z.ZodNullable<z.ZodNumber>;
880
- }, "strict", z.ZodTypeAny, {
881
+ }, "strip", z.ZodTypeAny, {
881
882
  value: number | null;
882
883
  grade: "error" | "pass" | "fail" | "skip";
883
884
  reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
@@ -894,7 +895,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
894
895
  } & {
895
896
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_INTERVAL", "UNEXPECTED_VEHICLE_EVENT_INTERVAL"]>;
896
897
  value: z.ZodNullable<z.ZodNumber>;
897
- }, "strict", z.ZodTypeAny, {
898
+ }, "strip", z.ZodTypeAny, {
898
899
  value: number | null;
899
900
  grade: "error" | "pass" | "fail" | "skip";
900
901
  reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
@@ -912,7 +913,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
912
913
  expected_qty: z.ZodNullable<z.ZodNumber>;
913
914
  found_qty: z.ZodNullable<z.ZodNumber>;
914
915
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_QTY", "UNEXPECTED_VEHICLE_EVENT_QTY"]>;
915
- }, "strict", z.ZodTypeAny, {
916
+ }, "strip", z.ZodTypeAny, {
916
917
  grade: "error" | "pass" | "fail" | "skip";
917
918
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
918
919
  expected_qty: number | null;
@@ -931,7 +932,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
931
932
  } & {
932
933
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "UNEXPECTED_VEHICLE_ID_QTY", "EXPECTED_VEHICLE_ID_QTY"]>;
933
934
  value: z.ZodNullable<z.ZodNumber>;
934
- }, "strict", z.ZodTypeAny, {
935
+ }, "strip", z.ZodTypeAny, {
935
936
  value: number | null;
936
937
  grade: "error" | "pass" | "fail" | "skip";
937
938
  reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
@@ -947,7 +948,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
947
948
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
948
949
  } & {
949
950
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
950
- }, "strict", z.ZodTypeAny, {
951
+ }, "strip", z.ZodTypeAny, {
951
952
  grade: "error" | "pass" | "fail" | "skip";
952
953
  reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
953
954
  error_message?: string | undefined;
@@ -961,7 +962,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
961
962
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
962
963
  } & {
963
964
  reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS", "NO_APEX_TRANSACTIONS"]>;
964
- }, "strict", z.ZodTypeAny, {
965
+ }, "strip", z.ZodTypeAny, {
965
966
  grade: "error" | "pass" | "fail" | "skip";
966
967
  reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
967
968
  error_message?: string | undefined;
@@ -976,7 +977,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
976
977
  } & {
977
978
  reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "ONE_OR_MORE_APEX_VALIDATIONS"]>;
978
979
  value: z.ZodNullable<z.ZodNumber>;
979
- }, "strict", z.ZodTypeAny, {
980
+ }, "strip", z.ZodTypeAny, {
980
981
  value: number | null;
981
982
  grade: "error" | "pass" | "fail" | "skip";
982
983
  reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
@@ -992,7 +993,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
992
993
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
993
994
  } & {
994
995
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
995
- }, "strict", z.ZodTypeAny, {
996
+ }, "strip", z.ZodTypeAny, {
996
997
  grade: "error" | "pass" | "fail" | "skip";
997
998
  reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
998
999
  error_message?: string | undefined;
@@ -1009,7 +1010,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1009
1010
  stop_ids_first: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1010
1011
  stop_ids_last: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1011
1012
  stop_ids_middle: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1012
- }, "strict", z.ZodTypeAny, {
1013
+ }, "strip", z.ZodTypeAny, {
1013
1014
  grade: "error" | "pass" | "fail" | "skip";
1014
1015
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
1015
1016
  stop_ids_first: string[] | null;
@@ -1032,7 +1033,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1032
1033
  found_qty: z.ZodNullable<z.ZodNumber>;
1033
1034
  missing_qty: z.ZodNullable<z.ZodNumber>;
1034
1035
  reason: z.ZodEnum<["NO_TRANSACTIONS", "MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
1035
- }, "strict", z.ZodTypeAny, {
1036
+ }, "strip", z.ZodTypeAny, {
1036
1037
  grade: "error" | "pass" | "fail" | "skip";
1037
1038
  reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
1038
1039
  expected_qty: number | null;
@@ -1238,6 +1239,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1238
1239
  line_id: number;
1239
1240
  pattern_id: string;
1240
1241
  trip_id: string;
1242
+ seen_last_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
1241
1243
  driver_ids: string[];
1242
1244
  headsign: string;
1243
1245
  plan_id: string;
@@ -1257,7 +1259,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1257
1259
  extension_observed: number | null;
1258
1260
  extension_scheduled: number;
1259
1261
  seen_first_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
1260
- seen_last_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
1261
1262
  passengers_estimated: number | null;
1262
1263
  passengers_observed: number | null;
1263
1264
  passengers_observed_on_board_sales_amount: number | null;
@@ -1374,6 +1375,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1374
1375
  line_id: number;
1375
1376
  pattern_id: string;
1376
1377
  trip_id: string;
1378
+ seen_last_at: number | null;
1377
1379
  driver_ids: string[];
1378
1380
  headsign: string;
1379
1381
  plan_id: string;
@@ -1387,7 +1389,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1387
1389
  extension_observed: number | null;
1388
1390
  extension_scheduled: number;
1389
1391
  seen_first_at: number | null;
1390
- seen_last_at: number | null;
1391
1392
  passengers_estimated: number | null;
1392
1393
  passengers_observed: number | null;
1393
1394
  passengers_observed_on_board_sales_amount: number | null;
@@ -1507,6 +1508,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1507
1508
  line_id: z.ZodOptional<z.ZodNumber>;
1508
1509
  pattern_id: z.ZodOptional<z.ZodString>;
1509
1510
  trip_id: z.ZodOptional<z.ZodString>;
1511
+ seen_last_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
1510
1512
  driver_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1511
1513
  headsign: z.ZodOptional<z.ZodString>;
1512
1514
  plan_id: z.ZodOptional<z.ZodString>;
@@ -1520,7 +1522,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
1520
1522
  extension_observed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1521
1523
  extension_scheduled: z.ZodOptional<z.ZodNumber>;
1522
1524
  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
1525
  passengers_estimated: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1525
1526
  passengers_observed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1526
1527
  passengers_observed_on_board_sales_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1541,7 +1542,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1541
1542
  } & {
1542
1543
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "NO_VEHICLE_EVENTS_ON_FIRST_STOP", "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP"]>;
1543
1544
  value: z.ZodNullable<z.ZodNumber>;
1544
- }, "strict", z.ZodTypeAny, {
1545
+ }, "strip", z.ZodTypeAny, {
1545
1546
  value: number | null;
1546
1547
  grade: "error" | "pass" | "fail" | "skip";
1547
1548
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "NO_VEHICLE_EVENTS_ON_FIRST_STOP" | "ONE_OR_MORE_VEHICLE_EVENTS_ON_FIRST_STOP";
@@ -1557,7 +1558,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1557
1558
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
1558
1559
  } & {
1559
1560
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "ENDED_AT_LAST_STOP", "ENDED_OUTSIDE_OF_LAST_STOP"]>;
1560
- }, "strict", z.ZodTypeAny, {
1561
+ }, "strip", z.ZodTypeAny, {
1561
1562
  grade: "error" | "pass" | "fail" | "skip";
1562
1563
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "ENDED_AT_LAST_STOP" | "ENDED_OUTSIDE_OF_LAST_STOP";
1563
1564
  error_message?: string | undefined;
@@ -1571,7 +1572,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1571
1572
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
1572
1573
  } & {
1573
1574
  reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "NOT_ENOUGH_VALIDATIONS", "INTERVALS_TOO_SHORT", "NON_ORGANIC_INTERVALS", "EXPECTED_VALIDATION_INTERVALS"]>;
1574
- }, "strict", z.ZodTypeAny, {
1575
+ }, "strip", z.ZodTypeAny, {
1575
1576
  grade: "error" | "pass" | "fail" | "skip";
1576
1577
  reason: "NO_APEX_VALIDATIONS" | "NOT_ENOUGH_VALIDATIONS" | "INTERVALS_TOO_SHORT" | "NON_ORGANIC_INTERVALS" | "EXPECTED_VALIDATION_INTERVALS";
1577
1578
  error_message?: string | undefined;
@@ -1586,7 +1587,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1586
1587
  } & {
1587
1588
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_DRIVER_ID_QTY", "EXPECTED_DRIVER_ID_QTY"]>;
1588
1589
  value: z.ZodNullable<z.ZodNumber>;
1589
- }, "strict", z.ZodTypeAny, {
1590
+ }, "strip", z.ZodTypeAny, {
1590
1591
  value: number | null;
1591
1592
  grade: "error" | "pass" | "fail" | "skip";
1592
1593
  reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_DRIVER_ID_QTY" | "EXPECTED_DRIVER_ID_QTY";
@@ -1603,7 +1604,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1603
1604
  } & {
1604
1605
  reason: z.ZodEnum<["NO_START_TIME_SCHEDULED", "NO_VEHICLE_EVENTS", "UNKNOWN_START", "EARLY_START", "LATE_START", "START_ON_TIME"]>;
1605
1606
  value: z.ZodNullable<z.ZodNumber>;
1606
- }, "strict", z.ZodTypeAny, {
1607
+ }, "strip", z.ZodTypeAny, {
1607
1608
  value: number | null;
1608
1609
  grade: "error" | "pass" | "fail" | "skip";
1609
1610
  reason: "NO_VEHICLE_EVENTS" | "NO_START_TIME_SCHEDULED" | "UNKNOWN_START" | "EARLY_START" | "LATE_START" | "START_ON_TIME";
@@ -1620,7 +1621,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1620
1621
  } & {
1621
1622
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "UNEXPECTED_VEHICLE_EVENTS_DELAY", "EXPECTED_VEHICLE_EVENTS_DELAY"]>;
1622
1623
  value: z.ZodNullable<z.ZodNumber>;
1623
- }, "strict", z.ZodTypeAny, {
1624
+ }, "strip", z.ZodTypeAny, {
1624
1625
  value: number | null;
1625
1626
  grade: "error" | "pass" | "fail" | "skip";
1626
1627
  reason: "NO_VEHICLE_EVENTS" | "UNEXPECTED_VEHICLE_EVENTS_DELAY" | "EXPECTED_VEHICLE_EVENTS_DELAY";
@@ -1637,7 +1638,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1637
1638
  } & {
1638
1639
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_INTERVAL", "UNEXPECTED_VEHICLE_EVENT_INTERVAL"]>;
1639
1640
  value: z.ZodNullable<z.ZodNumber>;
1640
- }, "strict", z.ZodTypeAny, {
1641
+ }, "strip", z.ZodTypeAny, {
1641
1642
  value: number | null;
1642
1643
  grade: "error" | "pass" | "fail" | "skip";
1643
1644
  reason: "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_INTERVAL" | "UNEXPECTED_VEHICLE_EVENT_INTERVAL";
@@ -1655,7 +1656,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1655
1656
  expected_qty: z.ZodNullable<z.ZodNumber>;
1656
1657
  found_qty: z.ZodNullable<z.ZodNumber>;
1657
1658
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_VEHICLE_EVENTS", "EXPECTED_VEHICLE_EVENT_QTY", "UNEXPECTED_VEHICLE_EVENT_QTY"]>;
1658
- }, "strict", z.ZodTypeAny, {
1659
+ }, "strip", z.ZodTypeAny, {
1659
1660
  grade: "error" | "pass" | "fail" | "skip";
1660
1661
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "EXPECTED_VEHICLE_EVENT_QTY" | "UNEXPECTED_VEHICLE_EVENT_QTY";
1661
1662
  expected_qty: number | null;
@@ -1674,7 +1675,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1674
1675
  } & {
1675
1676
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS", "NO_APEX_VALIDATIONS", "UNEXPECTED_VEHICLE_ID_QTY", "EXPECTED_VEHICLE_ID_QTY"]>;
1676
1677
  value: z.ZodNullable<z.ZodNumber>;
1677
- }, "strict", z.ZodTypeAny, {
1678
+ }, "strip", z.ZodTypeAny, {
1678
1679
  value: number | null;
1679
1680
  grade: "error" | "pass" | "fail" | "skip";
1680
1681
  reason: "NO_VEHICLE_EVENTS" | "NO_APEX_VALIDATIONS" | "UNEXPECTED_VEHICLE_ID_QTY" | "EXPECTED_VEHICLE_ID_QTY";
@@ -1690,7 +1691,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1690
1691
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
1691
1692
  } & {
1692
1693
  reason: z.ZodEnum<["NO_PATH_DATA", "NO_APEX_LOCATIONS", "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP", "MATCHING_APEX_LOCATIONS"]>;
1693
- }, "strict", z.ZodTypeAny, {
1694
+ }, "strip", z.ZodTypeAny, {
1694
1695
  grade: "error" | "pass" | "fail" | "skip";
1695
1696
  reason: "NO_PATH_DATA" | "NO_APEX_LOCATIONS" | "MISSING_APEX_LOCATION_FOR_AT_LEAST_ONE_STOP" | "MATCHING_APEX_LOCATIONS";
1696
1697
  error_message?: string | undefined;
@@ -1704,7 +1705,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1704
1705
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
1705
1706
  } & {
1706
1707
  reason: z.ZodEnum<["MATCHING_VEHICLE_IDS", "VEHICLE_ID_MISMATCH", "NO_VEHICLE_EVENTS", "NO_APEX_TRANSACTIONS"]>;
1707
- }, "strict", z.ZodTypeAny, {
1708
+ }, "strip", z.ZodTypeAny, {
1708
1709
  grade: "error" | "pass" | "fail" | "skip";
1709
1710
  reason: "NO_VEHICLE_EVENTS" | "MATCHING_VEHICLE_IDS" | "VEHICLE_ID_MISMATCH" | "NO_APEX_TRANSACTIONS";
1710
1711
  error_message?: string | undefined;
@@ -1719,7 +1720,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1719
1720
  } & {
1720
1721
  reason: z.ZodEnum<["NO_APEX_VALIDATIONS", "ONE_OR_MORE_APEX_VALIDATIONS"]>;
1721
1722
  value: z.ZodNullable<z.ZodNumber>;
1722
- }, "strict", z.ZodTypeAny, {
1723
+ }, "strip", z.ZodTypeAny, {
1723
1724
  value: number | null;
1724
1725
  grade: "error" | "pass" | "fail" | "skip";
1725
1726
  reason: "NO_APEX_VALIDATIONS" | "ONE_OR_MORE_APEX_VALIDATIONS";
@@ -1735,7 +1736,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1735
1736
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
1736
1737
  } & {
1737
1738
  reason: z.ZodEnum<["NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS", "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION"]>;
1738
- }, "strict", z.ZodTypeAny, {
1739
+ }, "strip", z.ZodTypeAny, {
1739
1740
  grade: "error" | "pass" | "fail" | "skip";
1740
1741
  reason: "NO_VEHICLE_EVENTS_OR_APEX_VALIDATIONS" | "FOUND_VEHICLE_EVENT_OR_APEX_VALIDATION";
1741
1742
  error_message?: string | undefined;
@@ -1752,7 +1753,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1752
1753
  stop_ids_first: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1753
1754
  stop_ids_last: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1754
1755
  stop_ids_middle: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1755
- }, "strict", z.ZodTypeAny, {
1756
+ }, "strip", z.ZodTypeAny, {
1756
1757
  grade: "error" | "pass" | "fail" | "skip";
1757
1758
  reason: "NO_PATH_DATA" | "NO_VEHICLE_EVENTS" | "MISSING_FIRST_STOPS" | "MISSING_MIDDLE_STOPS" | "MISSING_LAST_STOPS" | "ALL_STOPS_FOUND";
1758
1759
  stop_ids_first: string[] | null;
@@ -1775,7 +1776,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1775
1776
  found_qty: z.ZodNullable<z.ZodNumber>;
1776
1777
  missing_qty: z.ZodNullable<z.ZodNumber>;
1777
1778
  reason: z.ZodEnum<["NO_TRANSACTIONS", "MISSING_TRANSACTIONS", "ALL_TRANSACTIONS_RECEIVED"]>;
1778
- }, "strict", z.ZodTypeAny, {
1779
+ }, "strip", z.ZodTypeAny, {
1779
1780
  grade: "error" | "pass" | "fail" | "skip";
1780
1781
  reason: "NO_TRANSACTIONS" | "MISSING_TRANSACTIONS" | "ALL_TRANSACTIONS_RECEIVED";
1781
1782
  expected_qty: number | null;
@@ -1983,6 +1984,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1983
1984
  line_id?: number | undefined;
1984
1985
  pattern_id?: string | undefined;
1985
1986
  trip_id?: string | undefined;
1987
+ seen_last_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
1986
1988
  driver_ids?: string[] | undefined;
1987
1989
  headsign?: string | undefined;
1988
1990
  plan_id?: string | undefined;
@@ -1996,7 +1998,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
1996
1998
  extension_observed?: number | null | undefined;
1997
1999
  extension_scheduled?: number | undefined;
1998
2000
  seen_first_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
1999
- seen_last_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
2000
2001
  passengers_estimated?: number | null | undefined;
2001
2002
  passengers_observed?: number | null | undefined;
2002
2003
  passengers_observed_on_board_sales_amount?: number | null | undefined;
@@ -2112,6 +2113,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
2112
2113
  line_id?: number | undefined;
2113
2114
  pattern_id?: string | undefined;
2114
2115
  trip_id?: string | undefined;
2116
+ seen_last_at?: number | null | undefined;
2115
2117
  driver_ids?: string[] | undefined;
2116
2118
  headsign?: string | undefined;
2117
2119
  plan_id?: string | undefined;
@@ -2125,7 +2127,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
2125
2127
  extension_observed?: number | null | undefined;
2126
2128
  extension_scheduled?: number | undefined;
2127
2129
  seen_first_at?: number | null | undefined;
2128
- seen_last_at?: number | null | undefined;
2129
2130
  passengers_estimated?: number | null | undefined;
2130
2131
  passengers_observed?: number | null | undefined;
2131
2132
  passengers_observed_on_board_sales_amount?: number | null | undefined;
@@ -2,11 +2,13 @@
2
2
  import { DocumentSchema } from '../_common/document.js';
3
3
  import { operationalDateSchema } from '../_common/operational-date.js';
4
4
  import { ProcessingStatusSchema } from '../_common/status.js';
5
- import { unixTimeStampSchema } from '../_common/unix-timestamp.js';
5
+ import { UnixTimeStampSchema } from '../_common/unix-timestamp.js';
6
6
  import { atLeastOneVehicleEventOnFirstStopSchema, endedAtLastStopSchema, expectedApexValidationIntervalSchema, expectedDriverIdQtySchema, expectedStartTimeSchema, expectedVehicleEventDelaySchema, expectedVehicleEventIntervalSchema, expectedVehicleEventQtySchema, expectedVehicleIdQtySchema, matchingApexLocationsSchema, matchingVehicleIdsSchema, simpleOneApexValidationSchema, simpleOneVehicleEventOrApexValidationSchema, simpleThreeVehicleEventsSchema, transactionSequentialitySchema } from './ride-analysis.js';
7
7
  import { z } from 'zod';
8
8
  /* * */
9
- export const RideSchema = DocumentSchema.extend({
9
+ export const RideSchema = DocumentSchema
10
+ .omit({ is_locked: true })
11
+ .extend({
10
12
  agency_id: z.string(),
11
13
  analysis: z.object({
12
14
  AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: atLeastOneVehicleEventOnFirstStopSchema,
@@ -32,8 +34,8 @@ export const RideSchema = DocumentSchema.extend({
32
34
  apex_on_board_sales_qty: z.number().nullable(),
33
35
  apex_validations_qty: z.number().nullable(),
34
36
  driver_ids: z.array(z.string()),
35
- end_time_observed: unixTimeStampSchema.nullable(),
36
- end_time_scheduled: unixTimeStampSchema,
37
+ end_time_observed: UnixTimeStampSchema.nullable(),
38
+ end_time_scheduled: UnixTimeStampSchema,
37
39
  extension_observed: z.number().nullable(),
38
40
  extension_scheduled: z.number(),
39
41
  hashed_shape_id: z.string(),
@@ -51,10 +53,10 @@ export const RideSchema = DocumentSchema.extend({
51
53
  pattern_id: z.string(),
52
54
  plan_id: z.string(),
53
55
  route_id: z.string(),
54
- seen_first_at: unixTimeStampSchema.nullable(),
55
- seen_last_at: unixTimeStampSchema.nullable(),
56
- start_time_observed: unixTimeStampSchema.nullable(),
57
- start_time_scheduled: unixTimeStampSchema,
56
+ seen_first_at: UnixTimeStampSchema.nullable(),
57
+ seen_last_at: UnixTimeStampSchema.nullable(),
58
+ start_time_observed: UnixTimeStampSchema.nullable(),
59
+ start_time_scheduled: UnixTimeStampSchema,
58
60
  system_status: ProcessingStatusSchema.default('waiting'),
59
61
  trip_id: z.string(),
60
62
  vehicle_ids: z.array(z.number()),
@@ -14,7 +14,7 @@ export declare const SamAnalysisSchema: z.ZodObject<{
14
14
  transactions_found: z.ZodNumber;
15
15
  transactions_missing: z.ZodNumber;
16
16
  vehicle_id: z.ZodNullable<z.ZodNumber>;
17
- }, "strict", z.ZodTypeAny, {
17
+ }, "strip", z.ZodTypeAny, {
18
18
  apex_version: string | null;
19
19
  device_id: string | null;
20
20
  vehicle_id: number | null;
@@ -1,21 +1,21 @@
1
1
  /* * */
2
- import { unixTimeStampSchema } from '../_common/unix-timestamp.js';
2
+ import { UnixTimeStampSchema } from '../_common/unix-timestamp.js';
3
3
  import { SimplifiedApexTypeSchema } from '../apex/simplified-apex-type.js';
4
4
  import { z } from 'zod';
5
5
  /* * */
6
6
  export const SamAnalysisSchema = z.object({
7
7
  apex_version: z.string().nullable(),
8
8
  device_id: z.string().nullable(),
9
- end_time: unixTimeStampSchema.nullable(),
9
+ end_time: UnixTimeStampSchema.nullable(),
10
10
  first_transaction_ase_counter_value: z.number().nullable(),
11
11
  first_transaction_id: z.string().nullable(),
12
12
  first_transaction_type: SimplifiedApexTypeSchema.nullable(),
13
13
  last_transaction_ase_counter_value: z.number().nullable(),
14
14
  last_transaction_id: z.string().nullable(),
15
15
  last_transaction_type: SimplifiedApexTypeSchema.nullable(),
16
- start_time: unixTimeStampSchema.nullable(),
16
+ start_time: UnixTimeStampSchema.nullable(),
17
17
  transactions_expected: z.number(),
18
18
  transactions_found: z.number(),
19
19
  transactions_missing: z.number(),
20
20
  vehicle_id: z.number().nullable(),
21
- }).strict();
21
+ });