@tmlmobilidade/types 20250910.1541.13 → 20250911.1034.51

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.
@@ -1,13 +1,11 @@
1
1
  /* * */
2
+ import { NoteCommentSchema } from '../_common/comment.js';
2
3
  import { DocumentSchema } from '../_common/document.js';
3
- import { RideAnalysisSchema } from './ride-analysis.js';
4
- import { RideJustificationSchema } from './ride-justification.js';
5
4
  import { z } from 'zod';
6
5
  /* * */
7
6
  export const RideAuditSchema = DocumentSchema.extend({
8
- analysis: RideAnalysisSchema,
7
+ comments: z.array(NoteCommentSchema),
9
8
  is_locked: z.boolean().default(false),
10
- justification: RideJustificationSchema,
11
9
  ride_id: z.string(),
12
10
  }).strict();
13
11
  export const CreateRideAuditSchema = RideAuditSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
@@ -13,6 +13,19 @@ export declare const RideJustificationSchema: z.ZodObject<{
13
13
  updated_by: z.ZodDefault<z.ZodString>;
14
14
  } & {
15
15
  acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
16
+ analysis: z.ZodObject<{
17
+ error_message: z.ZodOptional<z.ZodString>;
18
+ grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
19
+ reason: z.ZodString;
20
+ }, "strict", z.ZodTypeAny, {
21
+ grade: "error" | "pass" | "fail" | "skip";
22
+ reason: string;
23
+ error_message?: string | undefined;
24
+ }, {
25
+ grade: "error" | "pass" | "fail" | "skip";
26
+ reason: string;
27
+ error_message?: string | undefined;
28
+ }>;
16
29
  comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
17
30
  _id: z.ZodString;
18
31
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -230,6 +243,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
230
243
  }>, "many">>;
231
244
  justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
232
245
  pto_message: z.ZodDefault<z.ZodString>;
246
+ trip_id: z.ZodString;
233
247
  }, "strict", z.ZodTypeAny, {
234
248
  _id: string;
235
249
  created_at: number & {
@@ -240,7 +254,6 @@ export declare const RideJustificationSchema: z.ZodObject<{
240
254
  __brand: "UnixTimestamp";
241
255
  };
242
256
  updated_by: string;
243
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
244
257
  comments: ({
245
258
  _id: string;
246
259
  created_at: number & {
@@ -279,14 +292,27 @@ export declare const RideJustificationSchema: z.ZodObject<{
279
292
  curr_status: string;
280
293
  prev_status: string;
281
294
  })[];
295
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
296
+ analysis: {
297
+ grade: "error" | "pass" | "fail" | "skip";
298
+ reason: string;
299
+ error_message?: string | undefined;
300
+ };
282
301
  justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
283
302
  pto_message: string;
303
+ trip_id: string;
284
304
  }, {
285
305
  _id: string;
286
306
  created_at: number;
287
307
  updated_at: number;
288
308
  acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
309
+ analysis: {
310
+ grade: "error" | "pass" | "fail" | "skip";
311
+ reason: string;
312
+ error_message?: string | undefined;
313
+ };
289
314
  justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
315
+ trip_id: string;
290
316
  created_by?: string | undefined;
291
317
  updated_by?: string | undefined;
292
318
  comments?: ({
@@ -323,7 +349,6 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
323
349
  created_by: z.ZodDefault<z.ZodString>;
324
350
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
325
351
  updated_by: z.ZodDefault<z.ZodString>;
326
- acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
327
352
  comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
328
353
  _id: z.ZodString;
329
354
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -539,12 +564,26 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
539
564
  created_by?: string | undefined;
540
565
  updated_by?: string | undefined;
541
566
  }>, "many">>;
567
+ acceptance_status: z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>;
568
+ analysis: z.ZodObject<{
569
+ error_message: z.ZodOptional<z.ZodString>;
570
+ grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
571
+ reason: z.ZodString;
572
+ }, "strict", z.ZodTypeAny, {
573
+ grade: "error" | "pass" | "fail" | "skip";
574
+ reason: string;
575
+ error_message?: string | undefined;
576
+ }, {
577
+ grade: "error" | "pass" | "fail" | "skip";
578
+ reason: string;
579
+ error_message?: string | undefined;
580
+ }>;
542
581
  justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
543
582
  pto_message: z.ZodDefault<z.ZodString>;
583
+ trip_id: z.ZodString;
544
584
  }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
545
585
  created_by: string;
546
586
  updated_by: string;
547
- acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
548
587
  comments: ({
549
588
  _id: string;
550
589
  created_at: number & {
@@ -583,12 +622,25 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
583
622
  curr_status: string;
584
623
  prev_status: string;
585
624
  })[];
625
+ acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
626
+ analysis: {
627
+ grade: "error" | "pass" | "fail" | "skip";
628
+ reason: string;
629
+ error_message?: string | undefined;
630
+ };
586
631
  justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
587
632
  pto_message: string;
633
+ trip_id: string;
588
634
  _id?: string | undefined;
589
635
  }, {
590
636
  acceptance_status: "accepted" | "justification_required" | "under_review" | "rejected";
637
+ analysis: {
638
+ grade: "error" | "pass" | "fail" | "skip";
639
+ reason: string;
640
+ error_message?: string | undefined;
641
+ };
591
642
  justification_cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER";
643
+ trip_id: string;
592
644
  _id?: string | undefined;
593
645
  created_by?: string | undefined;
594
646
  updated_by?: string | undefined;
@@ -624,7 +676,6 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
624
676
  _id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
625
677
  created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
626
678
  updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
627
- acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
628
679
  comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
629
680
  _id: z.ZodString;
630
681
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
@@ -840,13 +891,27 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
840
891
  created_by?: string | undefined;
841
892
  updated_by?: string | undefined;
842
893
  }>, "many">>>;
894
+ acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
895
+ analysis: z.ZodOptional<z.ZodObject<{
896
+ error_message: z.ZodOptional<z.ZodString>;
897
+ grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
898
+ reason: z.ZodString;
899
+ }, "strict", z.ZodTypeAny, {
900
+ grade: "error" | "pass" | "fail" | "skip";
901
+ reason: string;
902
+ error_message?: string | undefined;
903
+ }, {
904
+ grade: "error" | "pass" | "fail" | "skip";
905
+ reason: string;
906
+ error_message?: string | undefined;
907
+ }>>;
843
908
  justification_cause: z.ZodOptional<z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>>;
844
909
  pto_message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
910
+ trip_id: z.ZodOptional<z.ZodString>;
845
911
  }, "strict", z.ZodTypeAny, {
846
912
  _id?: string | undefined;
847
913
  created_by?: string | undefined;
848
914
  updated_by?: string | undefined;
849
- acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
850
915
  comments?: ({
851
916
  _id: string;
852
917
  created_at: number & {
@@ -885,13 +950,19 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
885
950
  curr_status: string;
886
951
  prev_status: string;
887
952
  })[] | undefined;
953
+ acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
954
+ analysis?: {
955
+ grade: "error" | "pass" | "fail" | "skip";
956
+ reason: string;
957
+ error_message?: string | undefined;
958
+ } | undefined;
888
959
  justification_cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER" | undefined;
889
960
  pto_message?: string | undefined;
961
+ trip_id?: string | undefined;
890
962
  }, {
891
963
  _id?: string | undefined;
892
964
  created_by?: string | undefined;
893
965
  updated_by?: string | undefined;
894
- acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
895
966
  comments?: ({
896
967
  _id: string;
897
968
  created_at: number;
@@ -918,8 +989,15 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
918
989
  created_by?: string | undefined;
919
990
  updated_by?: string | undefined;
920
991
  })[] | undefined;
992
+ acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
993
+ analysis?: {
994
+ grade: "error" | "pass" | "fail" | "skip";
995
+ reason: string;
996
+ error_message?: string | undefined;
997
+ } | undefined;
921
998
  justification_cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER" | undefined;
922
999
  pto_message?: string | undefined;
1000
+ trip_id?: string | undefined;
923
1001
  }>;
924
1002
  export type RideJustification = z.infer<typeof RideJustificationSchema>;
925
1003
  export type CreateRideJustificationDto = z.infer<typeof CreateRideJustificationSchema>;
@@ -1,6 +1,7 @@
1
1
  /* * */
2
2
  import { CommentSchema, CommentTypeSchema } from '../_common/comment.js';
3
3
  import { DocumentSchema } from '../_common/document.js';
4
+ import { RideAnalysisSchema } from './ride-analysis.js';
4
5
  import { z } from 'zod';
5
6
  /* * */
6
7
  export const RIDE_ACCEPTANCE_STATUS_OPTIONS = ['justification_required', 'under_review', 'accepted', 'rejected'];
@@ -30,9 +31,11 @@ const CommentSchemaWithRideJustificationStatus = CommentSchema.superRefine((data
30
31
  /* * */
31
32
  export const RideJustificationSchema = DocumentSchema.extend({
32
33
  acceptance_status: RideAcceptanceStatusSchema,
34
+ analysis: RideAnalysisSchema,
33
35
  comments: z.array(CommentSchemaWithRideJustificationStatus).default([]),
34
36
  justification_cause: RideJustificationCauseSchema,
35
37
  pto_message: z.string().min(2).max(5000).default(''),
38
+ trip_id: z.string(),
36
39
  }).strict();
37
40
  export const CreateRideJustificationSchema = RideJustificationSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
38
41
  export const UpdateRideJustificationSchema = CreateRideJustificationSchema.partial();
@@ -585,6 +585,7 @@ export declare const RideSchema: z.ZodObject<{
585
585
  error_message?: string | undefined;
586
586
  };
587
587
  } | null;
588
+ trip_id: string;
588
589
  apex_locations_qty: number | null;
589
590
  apex_on_board_refunds_amount: number | null;
590
591
  apex_on_board_refunds_qty: number | null;
@@ -629,7 +630,6 @@ export declare const RideSchema: z.ZodObject<{
629
630
  __brand: "UnixTimestamp";
630
631
  } & z.BRAND<"UnixTimestamp">;
631
632
  system_status: "waiting" | "processing" | "complete" | "error";
632
- trip_id: string;
633
633
  vehicle_ids: number[];
634
634
  }, {
635
635
  _id: string;
@@ -729,6 +729,7 @@ export declare const RideSchema: z.ZodObject<{
729
729
  error_message?: string | undefined;
730
730
  };
731
731
  } | null;
732
+ trip_id: string;
732
733
  apex_locations_qty: number | null;
733
734
  apex_on_board_refunds_amount: number | null;
734
735
  apex_on_board_refunds_qty: number | null;
@@ -758,7 +759,6 @@ export declare const RideSchema: z.ZodObject<{
758
759
  seen_last_at: number | null;
759
760
  start_time_observed: number | null;
760
761
  start_time_scheduled: number;
761
- trip_id: string;
762
762
  vehicle_ids: number[];
763
763
  created_by?: string | undefined;
764
764
  updated_by?: string | undefined;
@@ -1211,6 +1211,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1211
1211
  error_message?: string | undefined;
1212
1212
  };
1213
1213
  }>>;
1214
+ trip_id: z.ZodString;
1214
1215
  apex_locations_qty: z.ZodNullable<z.ZodNumber>;
1215
1216
  apex_on_board_refunds_amount: z.ZodNullable<z.ZodNumber>;
1216
1217
  apex_on_board_refunds_qty: z.ZodNullable<z.ZodNumber>;
@@ -1241,7 +1242,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1241
1242
  start_time_observed: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
1242
1243
  start_time_scheduled: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
1243
1244
  system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
1244
- trip_id: z.ZodString;
1245
1245
  vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
1246
1246
  }, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
1247
1247
  created_by: string;
@@ -1340,6 +1340,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1340
1340
  error_message?: string | undefined;
1341
1341
  };
1342
1342
  } | null;
1343
+ trip_id: string;
1343
1344
  apex_locations_qty: number | null;
1344
1345
  apex_on_board_refunds_amount: number | null;
1345
1346
  apex_on_board_refunds_qty: number | null;
@@ -1384,7 +1385,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1384
1385
  __brand: "UnixTimestamp";
1385
1386
  } & z.BRAND<"UnixTimestamp">;
1386
1387
  system_status: "waiting" | "processing" | "complete" | "error";
1387
- trip_id: string;
1388
1388
  vehicle_ids: number[];
1389
1389
  _id?: string | undefined;
1390
1390
  }, {
@@ -1482,6 +1482,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1482
1482
  error_message?: string | undefined;
1483
1483
  };
1484
1484
  } | null;
1485
+ trip_id: string;
1485
1486
  apex_locations_qty: number | null;
1486
1487
  apex_on_board_refunds_amount: number | null;
1487
1488
  apex_on_board_refunds_qty: number | null;
@@ -1511,7 +1512,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1511
1512
  seen_last_at: number | null;
1512
1513
  start_time_observed: number | null;
1513
1514
  start_time_scheduled: number;
1514
- trip_id: string;
1515
1515
  vehicle_ids: number[];
1516
1516
  _id?: string | undefined;
1517
1517
  created_by?: string | undefined;
@@ -1963,6 +1963,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1963
1963
  error_message?: string | undefined;
1964
1964
  };
1965
1965
  }>>>;
1966
+ trip_id: z.ZodOptional<z.ZodString>;
1966
1967
  apex_locations_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1967
1968
  apex_on_board_refunds_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1968
1969
  apex_on_board_refunds_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1993,7 +1994,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
1993
1994
  start_time_observed: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
1994
1995
  start_time_scheduled: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
1995
1996
  system_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>>;
1996
- trip_id: z.ZodOptional<z.ZodString>;
1997
1997
  vehicle_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1998
1998
  }, "strip", z.ZodTypeAny, {
1999
1999
  _id?: string | undefined;
@@ -2093,6 +2093,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
2093
2093
  error_message?: string | undefined;
2094
2094
  };
2095
2095
  } | null | undefined;
2096
+ trip_id?: string | undefined;
2096
2097
  apex_locations_qty?: number | null | undefined;
2097
2098
  apex_on_board_refunds_amount?: number | null | undefined;
2098
2099
  apex_on_board_refunds_qty?: number | null | undefined;
@@ -2137,7 +2138,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
2137
2138
  __brand: "UnixTimestamp";
2138
2139
  } & z.BRAND<"UnixTimestamp">) | undefined;
2139
2140
  system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
2140
- trip_id?: string | undefined;
2141
2141
  vehicle_ids?: number[] | undefined;
2142
2142
  }, {
2143
2143
  _id?: string | undefined;
@@ -2237,6 +2237,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
2237
2237
  error_message?: string | undefined;
2238
2238
  };
2239
2239
  } | null | undefined;
2240
+ trip_id?: string | undefined;
2240
2241
  apex_locations_qty?: number | null | undefined;
2241
2242
  apex_on_board_refunds_amount?: number | null | undefined;
2242
2243
  apex_on_board_refunds_qty?: number | null | undefined;
@@ -2267,7 +2268,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
2267
2268
  start_time_observed?: number | null | undefined;
2268
2269
  start_time_scheduled?: number | undefined;
2269
2270
  system_status?: "waiting" | "processing" | "complete" | "error" | undefined;
2270
- trip_id?: string | undefined;
2271
2271
  vehicle_ids?: number[] | undefined;
2272
2272
  }>;
2273
2273
  export interface Ride extends Omit<z.infer<typeof RideSchema>, 'created_at' | 'end_time_observed' | 'end_time_scheduled' | 'operational_date' | 'seen_first_at' | 'seen_last_at' | 'start_time_observed' | 'start_time_scheduled' | 'updated_at'> {
@@ -30,8 +30,8 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
30
30
  updated_by: string;
31
31
  agency_id: string;
32
32
  line_id: string;
33
- pattern_id: string;
34
33
  trip_id: string;
34
+ pattern_id: string;
35
35
  apex_version: string;
36
36
  device_id: string;
37
37
  vehicle_id: number;
@@ -47,8 +47,8 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
47
47
  updated_at: number;
48
48
  agency_id: string;
49
49
  line_id: string;
50
- pattern_id: string;
51
50
  trip_id: string;
51
+ pattern_id: string;
52
52
  apex_version: string;
53
53
  device_id: string;
54
54
  vehicle_id: number;
@@ -84,8 +84,8 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
84
84
  updated_by?: string | undefined;
85
85
  agency_id?: string | undefined;
86
86
  line_id?: string | undefined;
87
- pattern_id?: string | undefined;
88
87
  trip_id?: string | undefined;
88
+ pattern_id?: string | undefined;
89
89
  apex_version?: string | undefined;
90
90
  device_id?: string | undefined;
91
91
  vehicle_id?: number | undefined;
@@ -103,8 +103,8 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
103
103
  updated_by?: string | undefined;
104
104
  agency_id?: string | undefined;
105
105
  line_id?: string | undefined;
106
- pattern_id?: string | undefined;
107
106
  trip_id?: string | undefined;
107
+ pattern_id?: string | undefined;
108
108
  apex_version?: string | undefined;
109
109
  device_id?: string | undefined;
110
110
  vehicle_id?: number | undefined;
@@ -41,8 +41,8 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
41
41
  agency_id: string;
42
42
  line_id: string | null;
43
43
  validation_id: string | null;
44
- pattern_id: string | null;
45
44
  trip_id: string | null;
45
+ pattern_id: string | null;
46
46
  apex_version: string;
47
47
  device_id: string;
48
48
  vehicle_id: number | null;
@@ -68,8 +68,8 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
68
68
  agency_id: string;
69
69
  line_id: string | null;
70
70
  validation_id: string | null;
71
- pattern_id: string | null;
72
71
  trip_id: string | null;
72
+ pattern_id: string | null;
73
73
  apex_version: string;
74
74
  device_id: string;
75
75
  vehicle_id: number | null;
@@ -125,8 +125,8 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
125
125
  agency_id?: string | undefined;
126
126
  line_id?: string | null | undefined;
127
127
  validation_id?: string | null | undefined;
128
- pattern_id?: string | null | undefined;
129
128
  trip_id?: string | null | undefined;
129
+ pattern_id?: string | null | undefined;
130
130
  apex_version?: string | undefined;
131
131
  device_id?: string | undefined;
132
132
  vehicle_id?: number | null | undefined;
@@ -154,8 +154,8 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
154
154
  agency_id?: string | undefined;
155
155
  line_id?: string | null | undefined;
156
156
  validation_id?: string | null | undefined;
157
- pattern_id?: string | null | undefined;
158
157
  trip_id?: string | null | undefined;
158
+ pattern_id?: string | null | undefined;
159
159
  apex_version?: string | undefined;
160
160
  device_id?: string | undefined;
161
161
  vehicle_id?: number | null | undefined;
@@ -42,8 +42,8 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
42
42
  agency_id: string;
43
43
  line_id: string | null;
44
44
  validation_id: string | null;
45
- pattern_id: string | null;
46
45
  trip_id: string | null;
46
+ pattern_id: string | null;
47
47
  apex_version: string;
48
48
  device_id: string;
49
49
  vehicle_id: number | null;
@@ -70,8 +70,8 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
70
70
  agency_id: string;
71
71
  line_id: string | null;
72
72
  validation_id: string | null;
73
- pattern_id: string | null;
74
73
  trip_id: string | null;
74
+ pattern_id: string | null;
75
75
  apex_version: string;
76
76
  device_id: string;
77
77
  vehicle_id: number | null;
@@ -129,8 +129,8 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
129
129
  agency_id?: string | undefined;
130
130
  line_id?: string | null | undefined;
131
131
  validation_id?: string | null | undefined;
132
- pattern_id?: string | null | undefined;
133
132
  trip_id?: string | null | undefined;
133
+ pattern_id?: string | null | undefined;
134
134
  apex_version?: string | undefined;
135
135
  device_id?: string | undefined;
136
136
  vehicle_id?: number | null | undefined;
@@ -159,8 +159,8 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
159
159
  agency_id?: string | undefined;
160
160
  line_id?: string | null | undefined;
161
161
  validation_id?: string | null | undefined;
162
- pattern_id?: string | null | undefined;
163
162
  trip_id?: string | null | undefined;
163
+ pattern_id?: string | null | undefined;
164
164
  apex_version?: string | undefined;
165
165
  device_id?: string | undefined;
166
166
  vehicle_id?: number | null | undefined;
@@ -254,8 +254,8 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
254
254
  updated_by: string;
255
255
  agency_id: string;
256
256
  line_id: string;
257
- pattern_id: string;
258
257
  trip_id: string;
258
+ pattern_id: string;
259
259
  apex_version: string;
260
260
  device_id: string;
261
261
  vehicle_id: number;
@@ -280,8 +280,8 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
280
280
  updated_at: number;
281
281
  agency_id: string;
282
282
  line_id: string;
283
- pattern_id: string;
284
283
  trip_id: string;
284
+ pattern_id: string;
285
285
  apex_version: string;
286
286
  device_id: string;
287
287
  vehicle_id: number;
@@ -406,8 +406,8 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
406
406
  updated_by?: string | undefined;
407
407
  agency_id?: string | undefined;
408
408
  line_id?: string | undefined;
409
- pattern_id?: string | undefined;
410
409
  trip_id?: string | undefined;
410
+ pattern_id?: string | undefined;
411
411
  apex_version?: string | undefined;
412
412
  device_id?: string | undefined;
413
413
  vehicle_id?: number | undefined;
@@ -434,8 +434,8 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
434
434
  updated_by?: string | undefined;
435
435
  agency_id?: string | undefined;
436
436
  line_id?: string | undefined;
437
- pattern_id?: string | undefined;
438
437
  trip_id?: string | undefined;
438
+ pattern_id?: string | undefined;
439
439
  apex_version?: string | undefined;
440
440
  device_id?: string | undefined;
441
441
  vehicle_id?: number | undefined;
@@ -32,8 +32,8 @@ export declare const VehicleEventSchema: z.ZodObject<{
32
32
  };
33
33
  updated_by: string;
34
34
  agency_id: string;
35
- pattern_id: string;
36
35
  trip_id: string;
36
+ pattern_id: string;
37
37
  vehicle_id: string;
38
38
  received_at: number & {
39
39
  __brand: "UnixTimestamp";
@@ -52,8 +52,8 @@ export declare const VehicleEventSchema: z.ZodObject<{
52
52
  created_at: number;
53
53
  updated_at: number;
54
54
  agency_id: string;
55
- pattern_id: string;
56
55
  trip_id: string;
56
+ pattern_id: string;
57
57
  vehicle_id: string;
58
58
  received_at: number;
59
59
  stop_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20250910.1541.13",
3
+ "version": "20250911.1034.51",
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",