@tmlmobilidade/types 20251027.1158.39 → 20251028.1440.40

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.
@@ -14,23 +14,50 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
14
14
  } & {
15
15
  properties: z.ZodObject<{
16
16
  agency_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
- end_date: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
18
- line_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
19
- start_date: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
17
+ analysis_ended_at_last_stop_grade: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
18
+ analysis_expected_apex_validation_interval: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
19
+ analysis_simple_three_vehicle_events_grade: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
20
+ analysis_transaction_sequentiality: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
21
+ date_end: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
22
+ date_start: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
23
+ delay_statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["delayed", "early", "ontime", "none"]>, "many">>;
24
+ operational_statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["ended", "missed", "running", "scheduled"]>, "many">>;
25
+ seen_statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["gone", "seen", "unseen"]>, "many">>;
26
+ line_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27
+ stop_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ acceptance_status: z.ZodOptional<z.ZodArray<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected", "none"]>, "many">>;
20
29
  }, "strip", z.ZodTypeAny, {
21
- end_date: number & {
30
+ date_end: number & {
22
31
  __brand: "UnixTimestamp";
23
32
  };
24
- start_date: number & {
33
+ date_start: number & {
25
34
  __brand: "UnixTimestamp";
26
35
  };
27
36
  agency_ids?: string[] | undefined;
28
- line_ids?: number[] | undefined;
37
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
38
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
39
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
40
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
41
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
42
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
43
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
44
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
45
+ line_ids?: string[] | undefined;
46
+ stop_ids?: string[] | undefined;
29
47
  }, {
30
- end_date: number;
31
- start_date: number;
48
+ date_end: number;
49
+ date_start: number;
32
50
  agency_ids?: string[] | undefined;
33
- line_ids?: number[] | undefined;
51
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
52
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
53
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
54
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
55
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
56
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
57
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
58
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
59
+ line_ids?: string[] | undefined;
60
+ stop_ids?: string[] | undefined;
34
61
  }>;
35
62
  type: z.ZodLiteral<"ride">;
36
63
  }, "strict", z.ZodTypeAny, {
@@ -45,14 +72,23 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
45
72
  file_name: string;
46
73
  processing_status: "error" | "waiting" | "processing" | "complete";
47
74
  properties: {
48
- end_date: number & {
75
+ date_end: number & {
49
76
  __brand: "UnixTimestamp";
50
77
  };
51
- start_date: number & {
78
+ date_start: number & {
52
79
  __brand: "UnixTimestamp";
53
80
  };
54
81
  agency_ids?: string[] | undefined;
55
- line_ids?: number[] | undefined;
82
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
83
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
84
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
85
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
86
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
87
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
88
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
89
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
90
+ line_ids?: string[] | undefined;
91
+ stop_ids?: string[] | undefined;
56
92
  };
57
93
  created_by?: string | undefined;
58
94
  updated_by?: string | undefined;
@@ -65,10 +101,19 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
65
101
  file_name: string;
66
102
  processing_status: "error" | "waiting" | "processing" | "complete";
67
103
  properties: {
68
- end_date: number;
69
- start_date: number;
104
+ date_end: number;
105
+ date_start: number;
70
106
  agency_ids?: string[] | undefined;
71
- line_ids?: number[] | undefined;
107
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
108
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
109
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
110
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
111
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
112
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
113
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
114
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
115
+ line_ids?: string[] | undefined;
116
+ stop_ids?: string[] | undefined;
72
117
  };
73
118
  created_by?: string | undefined;
74
119
  updated_by?: string | undefined;
@@ -49,6 +49,7 @@ export declare const FlatRideSchema: z.ZodObject<{
49
49
  apex_validations_qty: z.ZodNumber;
50
50
  created_at: z.ZodNumber;
51
51
  driver_ids: z.ZodString;
52
+ end_delay_status: z.ZodString;
52
53
  end_time_observed: z.ZodNumber;
53
54
  end_time_scheduled: z.ZodNumber;
54
55
  extension_observed: z.ZodNumber;
@@ -59,6 +60,7 @@ export declare const FlatRideSchema: z.ZodObject<{
59
60
  is_locked: z.ZodBoolean;
60
61
  line_id: z.ZodNumber;
61
62
  operational_date: z.ZodString;
63
+ operational_status: z.ZodString;
62
64
  passengers_estimated: z.ZodNumber;
63
65
  passengers_observed: z.ZodNumber;
64
66
  passengers_observed_on_board_sales_amount: z.ZodNumber;
@@ -71,6 +73,8 @@ export declare const FlatRideSchema: z.ZodObject<{
71
73
  route_id: z.ZodString;
72
74
  seen_first_at: z.ZodNumber;
73
75
  seen_last_at: z.ZodNumber;
76
+ seen_status: z.ZodString;
77
+ start_delay_status: z.ZodString;
74
78
  start_time_observed: z.ZodNumber;
75
79
  start_time_scheduled: z.ZodNumber;
76
80
  system_status: z.ZodString;
@@ -81,6 +85,7 @@ export declare const FlatRideSchema: z.ZodObject<{
81
85
  _id: string;
82
86
  created_at: number;
83
87
  updated_at: number;
88
+ is_locked: boolean;
84
89
  agency_id: string;
85
90
  apex_locations_qty: number;
86
91
  apex_on_board_refunds_amount: number;
@@ -154,11 +159,15 @@ export declare const FlatRideSchema: z.ZodObject<{
154
159
  analysis_TRANSACTION_SEQUENTIALITY_grade: string;
155
160
  analysis_TRANSACTION_SEQUENTIALITY_missing_qty: number;
156
161
  analysis_TRANSACTION_SEQUENTIALITY_reason: string;
157
- is_locked: boolean;
162
+ end_delay_status: string;
163
+ operational_status: string;
164
+ seen_status: string;
165
+ start_delay_status: string;
158
166
  }, {
159
167
  _id: string;
160
168
  created_at: number;
161
169
  updated_at: number;
170
+ is_locked: boolean;
162
171
  agency_id: string;
163
172
  apex_locations_qty: number;
164
173
  apex_on_board_refunds_amount: number;
@@ -232,49 +241,97 @@ export declare const FlatRideSchema: z.ZodObject<{
232
241
  analysis_TRANSACTION_SEQUENTIALITY_grade: string;
233
242
  analysis_TRANSACTION_SEQUENTIALITY_missing_qty: number;
234
243
  analysis_TRANSACTION_SEQUENTIALITY_reason: string;
235
- is_locked: boolean;
244
+ end_delay_status: string;
245
+ operational_status: string;
246
+ seen_status: string;
247
+ start_delay_status: string;
236
248
  }>;
237
249
  export declare const RideExportPropertiesSchema: z.ZodObject<{
238
250
  properties: z.ZodObject<{
239
251
  agency_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
240
- end_date: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
241
- line_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
242
- start_date: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
252
+ analysis_ended_at_last_stop_grade: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
253
+ analysis_expected_apex_validation_interval: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
254
+ analysis_simple_three_vehicle_events_grade: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
255
+ analysis_transaction_sequentiality: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
256
+ date_end: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
257
+ date_start: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
258
+ delay_statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["delayed", "early", "ontime", "none"]>, "many">>;
259
+ operational_statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["ended", "missed", "running", "scheduled"]>, "many">>;
260
+ seen_statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["gone", "seen", "unseen"]>, "many">>;
261
+ line_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
262
+ stop_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
263
+ acceptance_status: z.ZodOptional<z.ZodArray<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected", "none"]>, "many">>;
243
264
  }, "strip", z.ZodTypeAny, {
244
- end_date: number & {
265
+ date_end: number & {
245
266
  __brand: "UnixTimestamp";
246
267
  };
247
- start_date: number & {
268
+ date_start: number & {
248
269
  __brand: "UnixTimestamp";
249
270
  };
250
271
  agency_ids?: string[] | undefined;
251
- line_ids?: number[] | undefined;
272
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
273
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
274
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
275
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
276
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
277
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
278
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
279
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
280
+ line_ids?: string[] | undefined;
281
+ stop_ids?: string[] | undefined;
252
282
  }, {
253
- end_date: number;
254
- start_date: number;
283
+ date_end: number;
284
+ date_start: number;
255
285
  agency_ids?: string[] | undefined;
256
- line_ids?: number[] | undefined;
286
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
287
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
288
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
289
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
290
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
291
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
292
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
293
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
294
+ line_ids?: string[] | undefined;
295
+ stop_ids?: string[] | undefined;
257
296
  }>;
258
297
  type: z.ZodLiteral<"ride">;
259
298
  }, "strip", z.ZodTypeAny, {
260
299
  type: "ride";
261
300
  properties: {
262
- end_date: number & {
301
+ date_end: number & {
263
302
  __brand: "UnixTimestamp";
264
303
  };
265
- start_date: number & {
304
+ date_start: number & {
266
305
  __brand: "UnixTimestamp";
267
306
  };
268
307
  agency_ids?: string[] | undefined;
269
- line_ids?: number[] | undefined;
308
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
309
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
310
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
311
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
312
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
313
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
314
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
315
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
316
+ line_ids?: string[] | undefined;
317
+ stop_ids?: string[] | undefined;
270
318
  };
271
319
  }, {
272
320
  type: "ride";
273
321
  properties: {
274
- end_date: number;
275
- start_date: number;
322
+ date_end: number;
323
+ date_start: number;
276
324
  agency_ids?: string[] | undefined;
277
- line_ids?: number[] | undefined;
325
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
326
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
327
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
328
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
329
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
330
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
331
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
332
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
333
+ line_ids?: string[] | undefined;
334
+ stop_ids?: string[] | undefined;
278
335
  };
279
336
  }>;
280
337
  export declare const RideExportSchema: z.ZodObject<{
@@ -289,23 +346,50 @@ export declare const RideExportSchema: z.ZodObject<{
289
346
  } & {
290
347
  properties: z.ZodObject<{
291
348
  agency_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
292
- end_date: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
293
- line_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
294
- start_date: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
349
+ analysis_ended_at_last_stop_grade: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
350
+ analysis_expected_apex_validation_interval: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
351
+ analysis_simple_three_vehicle_events_grade: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
352
+ analysis_transaction_sequentiality: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>, "many">>;
353
+ date_end: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
354
+ date_start: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
355
+ delay_statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["delayed", "early", "ontime", "none"]>, "many">>;
356
+ operational_statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["ended", "missed", "running", "scheduled"]>, "many">>;
357
+ seen_statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["gone", "seen", "unseen"]>, "many">>;
358
+ line_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
359
+ stop_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
360
+ acceptance_status: z.ZodOptional<z.ZodArray<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected", "none"]>, "many">>;
295
361
  }, "strip", z.ZodTypeAny, {
296
- end_date: number & {
362
+ date_end: number & {
297
363
  __brand: "UnixTimestamp";
298
364
  };
299
- start_date: number & {
365
+ date_start: number & {
300
366
  __brand: "UnixTimestamp";
301
367
  };
302
368
  agency_ids?: string[] | undefined;
303
- line_ids?: number[] | undefined;
369
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
370
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
371
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
372
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
373
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
374
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
375
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
376
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
377
+ line_ids?: string[] | undefined;
378
+ stop_ids?: string[] | undefined;
304
379
  }, {
305
- end_date: number;
306
- start_date: number;
380
+ date_end: number;
381
+ date_start: number;
307
382
  agency_ids?: string[] | undefined;
308
- line_ids?: number[] | undefined;
383
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
384
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
385
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
386
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
387
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
388
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
389
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
390
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
391
+ line_ids?: string[] | undefined;
392
+ stop_ids?: string[] | undefined;
309
393
  }>;
310
394
  type: z.ZodLiteral<"ride">;
311
395
  }, "strict", z.ZodTypeAny, {
@@ -320,14 +404,23 @@ export declare const RideExportSchema: z.ZodObject<{
320
404
  file_name: string;
321
405
  processing_status: "error" | "waiting" | "processing" | "complete";
322
406
  properties: {
323
- end_date: number & {
407
+ date_end: number & {
324
408
  __brand: "UnixTimestamp";
325
409
  };
326
- start_date: number & {
410
+ date_start: number & {
327
411
  __brand: "UnixTimestamp";
328
412
  };
329
413
  agency_ids?: string[] | undefined;
330
- line_ids?: number[] | undefined;
414
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
415
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
416
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
417
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
418
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
419
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
420
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
421
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
422
+ line_ids?: string[] | undefined;
423
+ stop_ids?: string[] | undefined;
331
424
  };
332
425
  created_by?: string | undefined;
333
426
  updated_by?: string | undefined;
@@ -340,10 +433,19 @@ export declare const RideExportSchema: z.ZodObject<{
340
433
  file_name: string;
341
434
  processing_status: "error" | "waiting" | "processing" | "complete";
342
435
  properties: {
343
- end_date: number;
344
- start_date: number;
436
+ date_end: number;
437
+ date_start: number;
345
438
  agency_ids?: string[] | undefined;
346
- line_ids?: number[] | undefined;
439
+ acceptance_status?: ("rejected" | "none" | "justification_required" | "under_review" | "accepted")[] | undefined;
440
+ analysis_ended_at_last_stop_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
441
+ analysis_expected_apex_validation_interval?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
442
+ analysis_simple_three_vehicle_events_grade?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
443
+ analysis_transaction_sequentiality?: ("none" | "pass" | "fail" | "skip" | "error")[] | undefined;
444
+ delay_statuses?: ("none" | "delayed" | "early" | "ontime")[] | undefined;
445
+ operational_statuses?: ("ended" | "missed" | "running" | "scheduled")[] | undefined;
446
+ seen_statuses?: ("gone" | "seen" | "unseen")[] | undefined;
447
+ line_ids?: string[] | undefined;
448
+ stop_ids?: string[] | undefined;
347
449
  };
348
450
  created_by?: string | undefined;
349
451
  updated_by?: string | undefined;
@@ -1,5 +1,8 @@
1
1
  /* * */
2
- import { RideSchema } from '../rides/ride.js';
2
+ import { unixTimeStampSchema } from '../_common/unix-timestamp.js';
3
+ import { RideAcceptanceStatusSchema } from '../rides/ride-acceptance.js';
4
+ import { RideAnalysisGradeWithNoneSchema } from '../rides/ride-analysis.js';
5
+ import { RideDelayStatusSchema, RideOperationalStatusSchema, RideSeenStatusSchema } from '../rides/ride.js';
3
6
  import { z } from 'zod';
4
7
  import { FileExportBaseSchema } from './common.js';
5
8
  /* DATA SCHEMA */
@@ -54,6 +57,7 @@ export const FlatRideSchema = z.object({
54
57
  apex_validations_qty: z.number(),
55
58
  created_at: z.number(),
56
59
  driver_ids: z.string(),
60
+ end_delay_status: z.string(),
57
61
  end_time_observed: z.number(),
58
62
  end_time_scheduled: z.number(),
59
63
  extension_observed: z.number(),
@@ -64,6 +68,7 @@ export const FlatRideSchema = z.object({
64
68
  is_locked: z.boolean(),
65
69
  line_id: z.number(),
66
70
  operational_date: z.string(),
71
+ operational_status: z.string(),
67
72
  passengers_estimated: z.number(),
68
73
  passengers_observed: z.number(),
69
74
  passengers_observed_on_board_sales_amount: z.number(),
@@ -76,6 +81,8 @@ export const FlatRideSchema = z.object({
76
81
  route_id: z.string(),
77
82
  seen_first_at: z.number(),
78
83
  seen_last_at: z.number(),
84
+ seen_status: z.string(),
85
+ start_delay_status: z.string(),
79
86
  start_time_observed: z.number(),
80
87
  start_time_scheduled: z.number(),
81
88
  system_status: z.string(),
@@ -87,10 +94,24 @@ export const FlatRideSchema = z.object({
87
94
  /* * */
88
95
  export const RideExportPropertiesSchema = z.object({
89
96
  properties: z.object({
90
- agency_ids: z.array(RideSchema.shape.agency_id).optional(),
91
- end_date: RideSchema.shape.end_time_scheduled,
92
- line_ids: z.array(RideSchema.shape.line_id).optional(),
93
- start_date: RideSchema.shape.start_time_scheduled,
97
+ agency_ids: z.array(z.string()).optional(),
98
+ /* * */
99
+ analysis_ended_at_last_stop_grade: z.array(RideAnalysisGradeWithNoneSchema).optional(),
100
+ analysis_expected_apex_validation_interval: z.array(RideAnalysisGradeWithNoneSchema).optional(),
101
+ analysis_simple_three_vehicle_events_grade: z.array(RideAnalysisGradeWithNoneSchema).optional(),
102
+ analysis_transaction_sequentiality: z.array(RideAnalysisGradeWithNoneSchema).optional(),
103
+ /* * */
104
+ date_end: unixTimeStampSchema,
105
+ date_start: unixTimeStampSchema,
106
+ /* * */
107
+ delay_statuses: z.array(RideDelayStatusSchema).optional(),
108
+ operational_statuses: z.array(RideOperationalStatusSchema).optional(),
109
+ seen_statuses: z.array(RideSeenStatusSchema).optional(),
110
+ /* * */
111
+ line_ids: z.array(z.string()).optional(),
112
+ stop_ids: z.array(z.string()).optional(),
113
+ /* * */
114
+ acceptance_status: z.array(z.enum([...RideAcceptanceStatusSchema.options, 'none'])).optional(),
94
115
  }),
95
116
  type: z.literal('ride'),
96
117
  });
@@ -262,7 +262,6 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
262
262
  updated_at: number & {
263
263
  __brand: "UnixTimestamp";
264
264
  };
265
- is_locked: boolean;
266
265
  acceptance_status: "rejected" | "justification_required" | "under_review" | "accepted";
267
266
  analysis_summary: Record<string, {
268
267
  grade: "pass" | "fail" | "skip" | "error";
@@ -308,6 +307,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
308
307
  created_by?: string | undefined;
309
308
  updated_by?: string | undefined;
310
309
  })[];
310
+ is_locked: boolean;
311
311
  justification: {
312
312
  created_at: number & {
313
313
  __brand: "UnixTimestamp";
@@ -345,7 +345,6 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
345
345
  ride_id: string;
346
346
  created_by?: string | undefined;
347
347
  updated_by?: string | undefined;
348
- is_locked?: boolean | undefined;
349
348
  comments?: ({
350
349
  created_at: number;
351
350
  updated_at: number;
@@ -374,6 +373,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
374
373
  created_by?: string | undefined;
375
374
  updated_by?: string | undefined;
376
375
  })[] | undefined;
376
+ is_locked?: boolean | undefined;
377
377
  }>;
378
378
  export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
379
379
  _id: z.ZodOptional<z.ZodString>;
@@ -381,7 +381,6 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
381
381
  created_by: z.ZodOptional<z.ZodString>;
382
382
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
383
383
  updated_by: z.ZodOptional<z.ZodString>;
384
- is_locked: z.ZodDefault<z.ZodBoolean>;
385
384
  acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
386
385
  analysis_summary: z.ZodRecord<z.ZodString, z.ZodObject<{
387
386
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
@@ -553,6 +552,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
553
552
  created_by?: string | undefined;
554
553
  updated_by?: string | undefined;
555
554
  }>, "many">>;
555
+ is_locked: z.ZodDefault<z.ZodBoolean>;
556
556
  justification: z.ZodNullable<z.ZodObject<Omit<{
557
557
  _id: z.ZodString;
558
558
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -586,7 +586,6 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
586
586
  }>>;
587
587
  ride_id: z.ZodString;
588
588
  }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
589
- is_locked: boolean;
590
589
  acceptance_status: "rejected" | "justification_required" | "under_review" | "accepted";
591
590
  analysis_summary: Record<string, {
592
591
  grade: "pass" | "fail" | "skip" | "error";
@@ -632,6 +631,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
632
631
  created_by?: string | undefined;
633
632
  updated_by?: string | undefined;
634
633
  })[];
634
+ is_locked: boolean;
635
635
  justification: {
636
636
  created_at: number & {
637
637
  __brand: "UnixTimestamp";
@@ -668,7 +668,6 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
668
668
  _id?: string | undefined;
669
669
  created_by?: string | undefined;
670
670
  updated_by?: string | undefined;
671
- is_locked?: boolean | undefined;
672
671
  comments?: ({
673
672
  created_at: number;
674
673
  updated_at: number;
@@ -697,12 +696,12 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
697
696
  created_by?: string | undefined;
698
697
  updated_by?: string | undefined;
699
698
  })[] | undefined;
699
+ is_locked?: boolean | undefined;
700
700
  }>;
701
701
  export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
702
702
  _id: z.ZodOptional<z.ZodString>;
703
703
  updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
704
704
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
705
- is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
706
705
  acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
707
706
  analysis_summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
708
707
  grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
@@ -874,6 +873,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
874
873
  created_by?: string | undefined;
875
874
  updated_by?: string | undefined;
876
875
  }>, "many">>>;
876
+ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
877
877
  justification: z.ZodOptional<z.ZodNullable<z.ZodObject<Omit<{
878
878
  _id: z.ZodString;
879
879
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -910,7 +910,6 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
910
910
  _id?: string | undefined;
911
911
  updated_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
912
912
  updated_by?: string | undefined;
913
- is_locked?: boolean | undefined;
914
913
  acceptance_status?: "rejected" | "justification_required" | "under_review" | "accepted" | undefined;
915
914
  analysis_summary?: Record<string, {
916
915
  grade: "pass" | "fail" | "skip" | "error";
@@ -956,6 +955,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
956
955
  created_by?: string | undefined;
957
956
  updated_by?: string | undefined;
958
957
  })[] | undefined;
958
+ is_locked?: boolean | undefined;
959
959
  justification?: {
960
960
  created_at: number & {
961
961
  __brand: "UnixTimestamp";
@@ -974,7 +974,6 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
974
974
  _id?: string | undefined;
975
975
  updated_at?: number | undefined;
976
976
  updated_by?: string | undefined;
977
- is_locked?: boolean | undefined;
978
977
  acceptance_status?: "rejected" | "justification_required" | "under_review" | "accepted" | undefined;
979
978
  analysis_summary?: Record<string, {
980
979
  grade: "pass" | "fail" | "skip" | "error";
@@ -1008,6 +1007,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
1008
1007
  created_by?: string | undefined;
1009
1008
  updated_by?: string | undefined;
1010
1009
  })[] | undefined;
1010
+ is_locked?: boolean | undefined;
1011
1011
  justification?: {
1012
1012
  created_at: number;
1013
1013
  updated_at: number;
@@ -1,6 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  export declare const RIDE_ANALYSIS_GRADE_OPTIONS: readonly ["pass", "fail", "skip", "error"];
3
3
  export declare const RideAnalysisGradeSchema: z.ZodEnum<["pass", "fail", "skip", "error"]>;
4
+ export type RideAnalysisGrade = z.infer<typeof RideAnalysisGradeSchema>;
5
+ export declare const RideAnalysisGradeWithNoneSchema: z.ZodUnion<[z.ZodEnum<["pass", "fail", "skip", "error"]>, z.ZodLiteral<"none">]>;
6
+ export type RideAnalysisGradeWithNone = z.infer<typeof RideAnalysisGradeWithNoneSchema>;
4
7
  /**
5
8
  * Schema for ride analysis summary.
6
9
  *
@@ -3,6 +3,7 @@ import { z } from 'zod';
3
3
  /* * */
4
4
  export const RIDE_ANALYSIS_GRADE_OPTIONS = ['pass', 'fail', 'skip', 'error'];
5
5
  export const RideAnalysisGradeSchema = z.enum(RIDE_ANALYSIS_GRADE_OPTIONS);
6
+ export const RideAnalysisGradeWithNoneSchema = RideAnalysisGradeSchema.or(z.literal('none'));
6
7
  /* * */
7
8
  /**
8
9
  * Schema for ride analysis summary.
@@ -45,7 +45,6 @@ export declare const RideAuditSchema: z.ZodObject<{
45
45
  updated_at: number & {
46
46
  __brand: "UnixTimestamp";
47
47
  };
48
- is_locked: boolean;
49
48
  comments: {
50
49
  created_at: number & {
51
50
  __brand: "UnixTimestamp";
@@ -59,6 +58,7 @@ export declare const RideAuditSchema: z.ZodObject<{
59
58
  created_by?: string | undefined;
60
59
  updated_by?: string | undefined;
61
60
  }[];
61
+ is_locked: boolean;
62
62
  ride_id: string;
63
63
  created_by?: string | undefined;
64
64
  updated_by?: string | undefined;
@@ -86,7 +86,6 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
86
86
  created_by: z.ZodOptional<z.ZodString>;
87
87
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
88
88
  updated_by: z.ZodOptional<z.ZodString>;
89
- is_locked: z.ZodDefault<z.ZodBoolean>;
90
89
  comments: z.ZodArray<z.ZodObject<{
91
90
  _id: z.ZodOptional<z.ZodString>;
92
91
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -116,9 +115,9 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
116
115
  created_by?: string | undefined;
117
116
  updated_by?: string | undefined;
118
117
  }>, "many">;
118
+ is_locked: z.ZodDefault<z.ZodBoolean>;
119
119
  ride_id: z.ZodString;
120
120
  }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
121
- is_locked: boolean;
122
121
  comments: {
123
122
  created_at: number & {
124
123
  __brand: "UnixTimestamp";
@@ -132,6 +131,7 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
132
131
  created_by?: string | undefined;
133
132
  updated_by?: string | undefined;
134
133
  }[];
134
+ is_locked: boolean;
135
135
  ride_id: string;
136
136
  _id?: string | undefined;
137
137
  created_by?: string | undefined;
@@ -155,7 +155,6 @@ export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
155
155
  export declare const UpdateRideAuditSchema: z.ZodObject<{
156
156
  _id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
157
157
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
158
- is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
159
158
  comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
159
  _id: z.ZodOptional<z.ZodString>;
161
160
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -185,11 +184,11 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
185
184
  created_by?: string | undefined;
186
185
  updated_by?: string | undefined;
187
186
  }>, "many">>;
187
+ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
188
188
  ride_id: z.ZodOptional<z.ZodString>;
189
189
  }, "strict", z.ZodTypeAny, {
190
190
  _id?: string | undefined;
191
191
  updated_by?: string | undefined;
192
- is_locked?: boolean | undefined;
193
192
  comments?: {
194
193
  created_at: number & {
195
194
  __brand: "UnixTimestamp";
@@ -203,11 +202,11 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
203
202
  created_by?: string | undefined;
204
203
  updated_by?: string | undefined;
205
204
  }[] | undefined;
205
+ is_locked?: boolean | undefined;
206
206
  ride_id?: string | undefined;
207
207
  }, {
208
208
  _id?: string | undefined;
209
209
  updated_by?: string | undefined;
210
- is_locked?: boolean | undefined;
211
210
  comments?: {
212
211
  created_at: number;
213
212
  updated_at: number;
@@ -217,6 +216,7 @@ export declare const UpdateRideAuditSchema: z.ZodObject<{
217
216
  created_by?: string | undefined;
218
217
  updated_by?: string | undefined;
219
218
  }[] | undefined;
219
+ is_locked?: boolean | undefined;
220
220
  ride_id?: string | undefined;
221
221
  }>;
222
222
  export type RideAudit = z.infer<typeof RideAuditSchema>;
@@ -1,4 +1,15 @@
1
+ import { RideAnalysis } from './ride-analysis.js';
1
2
  import { z } from 'zod';
3
+ import { RideAcceptanceStatusSchema } from './ride-acceptance.js';
4
+ export declare const RIDE_OPERATIONAL_STATUS_OPTIONS: readonly ["ended", "missed", "running", "scheduled"];
5
+ export declare const RideOperationalStatusSchema: z.ZodEnum<["ended", "missed", "running", "scheduled"]>;
6
+ export type RideOperationalStatus = z.infer<typeof RideOperationalStatusSchema>;
7
+ export declare const RIDE_DELAY_STATUS_OPTIONS: readonly ["delayed", "early", "ontime", "none"];
8
+ export declare const RideDelayStatusSchema: z.ZodEnum<["delayed", "early", "ontime", "none"]>;
9
+ export type RideDelayStatus = z.infer<typeof RideDelayStatusSchema>;
10
+ export declare const RIDE_SEEN_STATUS_OPTIONS: readonly ["gone", "seen", "unseen"];
11
+ export declare const RideSeenStatusSchema: z.ZodEnum<["gone", "seen", "unseen"]>;
12
+ export type RideSeenStatus = z.infer<typeof RideSeenStatusSchema>;
2
13
  export declare const RideSchema: z.ZodObject<{
3
14
  _id: z.ZodString;
4
15
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -2238,6 +2249,31 @@ export declare const UpdateRideSchema: z.ZodObject<{
2238
2249
  export type Ride = z.infer<typeof RideSchema>;
2239
2250
  export type CreateRideDto = z.infer<typeof CreateRideSchema>;
2240
2251
  export type UpdateRideDto = z.infer<typeof UpdateRideSchema>;
2252
+ export interface RideNormalized extends Ride {
2253
+ acceptance_status: typeof RideAcceptanceStatusSchema.options[number];
2254
+ analysis_ended_at_last_stop_grade: 'none' | RideAnalysis['grade'];
2255
+ analysis_expected_apex_validation_interval: 'none' | RideAnalysis['grade'];
2256
+ analysis_simple_three_vehicle_events_grade: 'none' | RideAnalysis['grade'];
2257
+ analysis_transaction_sequentiality: 'none' | RideAnalysis['grade'];
2258
+ /**
2259
+ * @deprecated use `start_time_observed_display` instead
2260
+ */
2261
+ delay_status: typeof RIDE_DELAY_STATUS_OPTIONS[number];
2262
+ /**
2263
+ * @deprecated use `start_time_observed_display` instead
2264
+ */
2265
+ delay_value_display: null | string;
2266
+ end_delay_status: typeof RIDE_DELAY_STATUS_OPTIONS[number];
2267
+ end_delay_value_display: null | string;
2268
+ end_time_observed_display: null | string;
2269
+ end_time_scheduled_display: string;
2270
+ operational_status: typeof RIDE_OPERATIONAL_STATUS_OPTIONS[number];
2271
+ seen_status: typeof RIDE_SEEN_STATUS_OPTIONS[number];
2272
+ start_delay_status: typeof RIDE_DELAY_STATUS_OPTIONS[number];
2273
+ start_delay_value_display: null | string;
2274
+ start_time_observed_display: null | string;
2275
+ start_time_scheduled_display: string;
2276
+ }
2241
2277
  export declare const RidePermissionSchema: z.ZodObject<{
2242
2278
  agency_ids: z.ZodArray<z.ZodString, "many">;
2243
2279
  }, "strip", z.ZodTypeAny, {
@@ -6,6 +6,16 @@ import { atLeastOneVehicleEventOnFirstStopSchema, endedAtLastStopSchema, expecte
6
6
  import { ProcessingStatusSchema } from '../system/processing-status.js';
7
7
  import { z } from 'zod';
8
8
  /* * */
9
+ /* * */
10
+ export const RIDE_OPERATIONAL_STATUS_OPTIONS = ['ended', 'missed', 'running', 'scheduled'];
11
+ export const RideOperationalStatusSchema = z.enum(RIDE_OPERATIONAL_STATUS_OPTIONS);
12
+ /* * */
13
+ export const RIDE_DELAY_STATUS_OPTIONS = ['delayed', 'early', 'ontime', 'none'];
14
+ export const RideDelayStatusSchema = z.enum(RIDE_DELAY_STATUS_OPTIONS);
15
+ /* * */
16
+ export const RIDE_SEEN_STATUS_OPTIONS = ['gone', 'seen', 'unseen'];
17
+ export const RideSeenStatusSchema = z.enum(RIDE_SEEN_STATUS_OPTIONS);
18
+ /* * */
9
19
  export const RideSchema = DocumentSchema.extend({
10
20
  agency_id: z.string(),
11
21
  analysis: z.object({
@@ -234,13 +234,6 @@ export declare const StopSchema: z.ZodObject<{
234
234
  __brand: "UnixTimestamp";
235
235
  };
236
236
  name: string;
237
- is_locked: boolean;
238
- has_bench: "unknown" | "yes" | "no";
239
- has_network_map: "unknown" | "yes" | "no";
240
- has_schedules: "unknown" | "yes" | "no";
241
- has_shelter: "unknown" | "yes" | "no";
242
- has_stop_sign: "unknown" | "yes" | "no";
243
- municipality_id: string;
244
237
  comments: ({
245
238
  created_at: number & {
246
239
  __brand: "UnixTimestamp";
@@ -281,9 +274,16 @@ export declare const StopSchema: z.ZodObject<{
281
274
  created_by?: string | undefined;
282
275
  updated_by?: string | undefined;
283
276
  })[];
277
+ is_locked: boolean;
278
+ operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
279
+ has_bench: "unknown" | "yes" | "no";
280
+ has_network_map: "unknown" | "yes" | "no";
281
+ has_schedules: "unknown" | "yes" | "no";
282
+ has_shelter: "unknown" | "yes" | "no";
283
+ has_stop_sign: "unknown" | "yes" | "no";
284
+ municipality_id: string;
284
285
  is_archived: boolean;
285
286
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
286
- operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
287
287
  district_id: string;
288
288
  latitude: number;
289
289
  longitude: number;
@@ -322,12 +322,6 @@ export declare const StopSchema: z.ZodObject<{
322
322
  created_at: number;
323
323
  updated_at: number;
324
324
  name: string;
325
- has_bench: "unknown" | "yes" | "no";
326
- has_network_map: "unknown" | "yes" | "no";
327
- has_schedules: "unknown" | "yes" | "no";
328
- has_shelter: "unknown" | "yes" | "no";
329
- has_stop_sign: "unknown" | "yes" | "no";
330
- municipality_id: string;
331
325
  comments: ({
332
326
  created_at: number;
333
327
  updated_at: number;
@@ -356,8 +350,14 @@ export declare const StopSchema: z.ZodObject<{
356
350
  created_by?: string | undefined;
357
351
  updated_by?: string | undefined;
358
352
  })[];
359
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
360
353
  operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
354
+ has_bench: "unknown" | "yes" | "no";
355
+ has_network_map: "unknown" | "yes" | "no";
356
+ has_schedules: "unknown" | "yes" | "no";
357
+ has_shelter: "unknown" | "yes" | "no";
358
+ has_stop_sign: "unknown" | "yes" | "no";
359
+ municipality_id: string;
360
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
361
361
  district_id: string;
362
362
  latitude: number;
363
363
  longitude: number;
@@ -662,13 +662,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
662
662
  observations: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
663
  }, "_id" | "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
664
664
  name: string;
665
- is_locked: boolean;
666
- has_bench: "unknown" | "yes" | "no";
667
- has_network_map: "unknown" | "yes" | "no";
668
- has_schedules: "unknown" | "yes" | "no";
669
- has_shelter: "unknown" | "yes" | "no";
670
- has_stop_sign: "unknown" | "yes" | "no";
671
- municipality_id: string;
672
665
  comments: ({
673
666
  created_at: number & {
674
667
  __brand: "UnixTimestamp";
@@ -709,9 +702,16 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
709
702
  created_by?: string | undefined;
710
703
  updated_by?: string | undefined;
711
704
  })[];
705
+ is_locked: boolean;
706
+ operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
707
+ has_bench: "unknown" | "yes" | "no";
708
+ has_network_map: "unknown" | "yes" | "no";
709
+ has_schedules: "unknown" | "yes" | "no";
710
+ has_shelter: "unknown" | "yes" | "no";
711
+ has_stop_sign: "unknown" | "yes" | "no";
712
+ municipality_id: string;
712
713
  is_archived: boolean;
713
714
  jurisdiction: "unknown" | "ip" | "municipality" | "other";
714
- operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
715
715
  district_id: string;
716
716
  latitude: number;
717
717
  longitude: number;
@@ -747,12 +747,6 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
747
747
  observations?: string | null | undefined;
748
748
  }, {
749
749
  name: string;
750
- has_bench: "unknown" | "yes" | "no";
751
- has_network_map: "unknown" | "yes" | "no";
752
- has_schedules: "unknown" | "yes" | "no";
753
- has_shelter: "unknown" | "yes" | "no";
754
- has_stop_sign: "unknown" | "yes" | "no";
755
- municipality_id: string;
756
750
  comments: ({
757
751
  created_at: number;
758
752
  updated_at: number;
@@ -781,8 +775,14 @@ export declare const CreateStopSchema: z.ZodObject<Omit<{
781
775
  created_by?: string | undefined;
782
776
  updated_by?: string | undefined;
783
777
  })[];
784
- jurisdiction: "unknown" | "ip" | "municipality" | "other";
785
778
  operational_status: "active" | "inactive" | "provisional" | "seasonal" | "voided";
779
+ has_bench: "unknown" | "yes" | "no";
780
+ has_network_map: "unknown" | "yes" | "no";
781
+ has_schedules: "unknown" | "yes" | "no";
782
+ has_shelter: "unknown" | "yes" | "no";
783
+ has_stop_sign: "unknown" | "yes" | "no";
784
+ municipality_id: string;
785
+ jurisdiction: "unknown" | "ip" | "municipality" | "other";
786
786
  district_id: string;
787
787
  latitude: number;
788
788
  longitude: number;
@@ -823,16 +823,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
823
823
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
824
824
  name: z.ZodOptional<z.ZodString>;
825
825
  short_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
826
- is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
827
- has_bench: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
828
- has_network_map: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
829
- has_schedules: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
830
- has_shelter: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
831
- has_stop_sign: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
832
- municipality_id: z.ZodOptional<z.ZodString>;
833
- parish_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
834
- shelter_code: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
835
- shelter_maintainer: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
836
826
  comments: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
837
827
  _id: z.ZodOptional<z.ZodString>;
838
828
  created_at: z.ZodEffects<z.ZodNumber, import("./_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -993,11 +983,21 @@ export declare const UpdateStopSchema: z.ZodObject<{
993
983
  created_by?: string | undefined;
994
984
  updated_by?: string | undefined;
995
985
  }>, "many">>;
986
+ is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
987
+ operational_status: z.ZodOptional<z.ZodEnum<["active", "inactive", "provisional", "seasonal", "voided"]>>;
988
+ has_bench: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
989
+ has_network_map: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
990
+ has_schedules: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
991
+ has_shelter: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
992
+ has_stop_sign: z.ZodOptional<z.ZodEnum<["yes", "no", "unknown"]>>;
993
+ municipality_id: z.ZodOptional<z.ZodString>;
994
+ parish_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
995
+ shelter_code: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
996
+ shelter_maintainer: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
996
997
  is_archived: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
997
998
  jurisdiction: z.ZodOptional<z.ZodEnum<["ip", "municipality", "other", "unknown"]>>;
998
999
  legacy_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
999
1000
  new_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1000
- operational_status: z.ZodOptional<z.ZodEnum<["active", "inactive", "provisional", "seasonal", "voided"]>>;
1001
1001
  tts_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1002
1002
  district_id: z.ZodOptional<z.ZodString>;
1003
1003
  latitude: z.ZodOptional<z.ZodNumber>;
@@ -1027,16 +1027,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
1027
1027
  updated_by?: string | undefined;
1028
1028
  name?: string | undefined;
1029
1029
  short_name?: string | null | undefined;
1030
- is_locked?: boolean | undefined;
1031
- has_bench?: "unknown" | "yes" | "no" | undefined;
1032
- has_network_map?: "unknown" | "yes" | "no" | undefined;
1033
- has_schedules?: "unknown" | "yes" | "no" | undefined;
1034
- has_shelter?: "unknown" | "yes" | "no" | undefined;
1035
- has_stop_sign?: "unknown" | "yes" | "no" | undefined;
1036
- municipality_id?: string | undefined;
1037
- parish_id?: string | null | undefined;
1038
- shelter_code?: string | null | undefined;
1039
- shelter_maintainer?: string | null | undefined;
1040
1030
  comments?: ({
1041
1031
  created_at: number & {
1042
1032
  __brand: "UnixTimestamp";
@@ -1077,11 +1067,21 @@ export declare const UpdateStopSchema: z.ZodObject<{
1077
1067
  created_by?: string | undefined;
1078
1068
  updated_by?: string | undefined;
1079
1069
  })[] | undefined;
1070
+ is_locked?: boolean | undefined;
1071
+ operational_status?: "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1072
+ has_bench?: "unknown" | "yes" | "no" | undefined;
1073
+ has_network_map?: "unknown" | "yes" | "no" | undefined;
1074
+ has_schedules?: "unknown" | "yes" | "no" | undefined;
1075
+ has_shelter?: "unknown" | "yes" | "no" | undefined;
1076
+ has_stop_sign?: "unknown" | "yes" | "no" | undefined;
1077
+ municipality_id?: string | undefined;
1078
+ parish_id?: string | null | undefined;
1079
+ shelter_code?: string | null | undefined;
1080
+ shelter_maintainer?: string | null | undefined;
1080
1081
  is_archived?: boolean | undefined;
1081
1082
  jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
1082
1083
  legacy_id?: string | null | undefined;
1083
1084
  new_name?: string | null | undefined;
1084
- operational_status?: "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1085
1085
  tts_name?: string | null | undefined;
1086
1086
  district_id?: string | undefined;
1087
1087
  latitude?: number | undefined;
@@ -1111,16 +1111,6 @@ export declare const UpdateStopSchema: z.ZodObject<{
1111
1111
  updated_by?: string | undefined;
1112
1112
  name?: string | undefined;
1113
1113
  short_name?: string | null | undefined;
1114
- is_locked?: boolean | undefined;
1115
- has_bench?: "unknown" | "yes" | "no" | undefined;
1116
- has_network_map?: "unknown" | "yes" | "no" | undefined;
1117
- has_schedules?: "unknown" | "yes" | "no" | undefined;
1118
- has_shelter?: "unknown" | "yes" | "no" | undefined;
1119
- has_stop_sign?: "unknown" | "yes" | "no" | undefined;
1120
- municipality_id?: string | undefined;
1121
- parish_id?: string | null | undefined;
1122
- shelter_code?: string | null | undefined;
1123
- shelter_maintainer?: string | null | undefined;
1124
1114
  comments?: ({
1125
1115
  created_at: number;
1126
1116
  updated_at: number;
@@ -1149,11 +1139,21 @@ export declare const UpdateStopSchema: z.ZodObject<{
1149
1139
  created_by?: string | undefined;
1150
1140
  updated_by?: string | undefined;
1151
1141
  })[] | undefined;
1142
+ is_locked?: boolean | undefined;
1143
+ operational_status?: "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1144
+ has_bench?: "unknown" | "yes" | "no" | undefined;
1145
+ has_network_map?: "unknown" | "yes" | "no" | undefined;
1146
+ has_schedules?: "unknown" | "yes" | "no" | undefined;
1147
+ has_shelter?: "unknown" | "yes" | "no" | undefined;
1148
+ has_stop_sign?: "unknown" | "yes" | "no" | undefined;
1149
+ municipality_id?: string | undefined;
1150
+ parish_id?: string | null | undefined;
1151
+ shelter_code?: string | null | undefined;
1152
+ shelter_maintainer?: string | null | undefined;
1152
1153
  is_archived?: boolean | undefined;
1153
1154
  jurisdiction?: "unknown" | "ip" | "municipality" | "other" | undefined;
1154
1155
  legacy_id?: string | null | undefined;
1155
1156
  new_name?: string | null | undefined;
1156
- operational_status?: "active" | "inactive" | "provisional" | "seasonal" | "voided" | undefined;
1157
1157
  tts_name?: string | null | undefined;
1158
1158
  district_id?: string | undefined;
1159
1159
  latitude?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20251027.1158.39",
3
+ "version": "20251028.1440.40",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",