@tmlmobilidade/types 20251028.1739.53 → 20251028.1802.11
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.
|
@@ -17,6 +17,7 @@ export declare const RideJustificationSchema: z.ZodObject<Omit<{
|
|
|
17
17
|
} & {
|
|
18
18
|
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_INCIDENT", "SYSTEM_FAILURE", "TRAFFIC_JAM", "VEHICLE_ISSUE"]>;
|
|
19
19
|
justification_source: z.ZodEnum<["MANUAL", "ALERT"]>;
|
|
20
|
+
manual_trip_id: z.ZodOptional<z.ZodString>;
|
|
20
21
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
21
22
|
}, "_id">, "strict", z.ZodTypeAny, {
|
|
22
23
|
created_at: number & {
|
|
@@ -30,6 +31,7 @@ export declare const RideJustificationSchema: z.ZodObject<Omit<{
|
|
|
30
31
|
justification_source: "MANUAL" | "ALERT";
|
|
31
32
|
created_by?: string | undefined;
|
|
32
33
|
updated_by?: string | undefined;
|
|
34
|
+
manual_trip_id?: string | undefined;
|
|
33
35
|
}, {
|
|
34
36
|
created_at: number;
|
|
35
37
|
updated_at: number;
|
|
@@ -38,6 +40,7 @@ export declare const RideJustificationSchema: z.ZodObject<Omit<{
|
|
|
38
40
|
created_by?: string | undefined;
|
|
39
41
|
updated_by?: string | undefined;
|
|
40
42
|
pto_message?: string | undefined;
|
|
43
|
+
manual_trip_id?: string | undefined;
|
|
41
44
|
}>;
|
|
42
45
|
export type RideJustification = z.infer<typeof RideJustificationSchema>;
|
|
43
46
|
export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
@@ -228,6 +231,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
228
231
|
} & {
|
|
229
232
|
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_INCIDENT", "SYSTEM_FAILURE", "TRAFFIC_JAM", "VEHICLE_ISSUE"]>;
|
|
230
233
|
justification_source: z.ZodEnum<["MANUAL", "ALERT"]>;
|
|
234
|
+
manual_trip_id: z.ZodOptional<z.ZodString>;
|
|
231
235
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
232
236
|
}, "_id">, "strict", z.ZodTypeAny, {
|
|
233
237
|
created_at: number & {
|
|
@@ -241,6 +245,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
241
245
|
justification_source: "MANUAL" | "ALERT";
|
|
242
246
|
created_by?: string | undefined;
|
|
243
247
|
updated_by?: string | undefined;
|
|
248
|
+
manual_trip_id?: string | undefined;
|
|
244
249
|
}, {
|
|
245
250
|
created_at: number;
|
|
246
251
|
updated_at: number;
|
|
@@ -249,6 +254,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
249
254
|
created_by?: string | undefined;
|
|
250
255
|
updated_by?: string | undefined;
|
|
251
256
|
pto_message?: string | undefined;
|
|
257
|
+
manual_trip_id?: string | undefined;
|
|
252
258
|
}>>;
|
|
253
259
|
ride_id: z.ZodString;
|
|
254
260
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -317,6 +323,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
317
323
|
justification_source: "MANUAL" | "ALERT";
|
|
318
324
|
created_by?: string | undefined;
|
|
319
325
|
updated_by?: string | undefined;
|
|
326
|
+
manual_trip_id?: string | undefined;
|
|
320
327
|
} | null;
|
|
321
328
|
ride_id: string;
|
|
322
329
|
created_by?: string | undefined;
|
|
@@ -338,6 +345,7 @@ export declare const RideAcceptanceSchema: z.ZodObject<{
|
|
|
338
345
|
created_by?: string | undefined;
|
|
339
346
|
updated_by?: string | undefined;
|
|
340
347
|
pto_message?: string | undefined;
|
|
348
|
+
manual_trip_id?: string | undefined;
|
|
341
349
|
} | null;
|
|
342
350
|
ride_id: string;
|
|
343
351
|
created_by?: string | undefined;
|
|
@@ -559,6 +567,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
559
567
|
} & {
|
|
560
568
|
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_INCIDENT", "SYSTEM_FAILURE", "TRAFFIC_JAM", "VEHICLE_ISSUE"]>;
|
|
561
569
|
justification_source: z.ZodEnum<["MANUAL", "ALERT"]>;
|
|
570
|
+
manual_trip_id: z.ZodOptional<z.ZodString>;
|
|
562
571
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
563
572
|
}, "_id">, "strict", z.ZodTypeAny, {
|
|
564
573
|
created_at: number & {
|
|
@@ -572,6 +581,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
572
581
|
justification_source: "MANUAL" | "ALERT";
|
|
573
582
|
created_by?: string | undefined;
|
|
574
583
|
updated_by?: string | undefined;
|
|
584
|
+
manual_trip_id?: string | undefined;
|
|
575
585
|
}, {
|
|
576
586
|
created_at: number;
|
|
577
587
|
updated_at: number;
|
|
@@ -580,6 +590,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
580
590
|
created_by?: string | undefined;
|
|
581
591
|
updated_by?: string | undefined;
|
|
582
592
|
pto_message?: string | undefined;
|
|
593
|
+
manual_trip_id?: string | undefined;
|
|
583
594
|
}>>;
|
|
584
595
|
ride_id: z.ZodString;
|
|
585
596
|
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
@@ -641,6 +652,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
641
652
|
justification_source: "MANUAL" | "ALERT";
|
|
642
653
|
created_by?: string | undefined;
|
|
643
654
|
updated_by?: string | undefined;
|
|
655
|
+
manual_trip_id?: string | undefined;
|
|
644
656
|
} | null;
|
|
645
657
|
ride_id: string;
|
|
646
658
|
_id?: string | undefined;
|
|
@@ -660,6 +672,7 @@ export declare const CreateRideAcceptanceSchema: z.ZodObject<Omit<{
|
|
|
660
672
|
created_by?: string | undefined;
|
|
661
673
|
updated_by?: string | undefined;
|
|
662
674
|
pto_message?: string | undefined;
|
|
675
|
+
manual_trip_id?: string | undefined;
|
|
663
676
|
} | null;
|
|
664
677
|
ride_id: string;
|
|
665
678
|
_id?: string | undefined;
|
|
@@ -880,6 +893,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
880
893
|
} & {
|
|
881
894
|
justification_cause: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_PROBLEM", "UNKNOWN_CAUSE", "WEATHER", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "ROAD_INCIDENT", "SYSTEM_FAILURE", "TRAFFIC_JAM", "VEHICLE_ISSUE"]>;
|
|
882
895
|
justification_source: z.ZodEnum<["MANUAL", "ALERT"]>;
|
|
896
|
+
manual_trip_id: z.ZodOptional<z.ZodString>;
|
|
883
897
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
884
898
|
}, "_id">, "strict", z.ZodTypeAny, {
|
|
885
899
|
created_at: number & {
|
|
@@ -893,6 +907,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
893
907
|
justification_source: "MANUAL" | "ALERT";
|
|
894
908
|
created_by?: string | undefined;
|
|
895
909
|
updated_by?: string | undefined;
|
|
910
|
+
manual_trip_id?: string | undefined;
|
|
896
911
|
}, {
|
|
897
912
|
created_at: number;
|
|
898
913
|
updated_at: number;
|
|
@@ -901,6 +916,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
901
916
|
created_by?: string | undefined;
|
|
902
917
|
updated_by?: string | undefined;
|
|
903
918
|
pto_message?: string | undefined;
|
|
919
|
+
manual_trip_id?: string | undefined;
|
|
904
920
|
}>>>;
|
|
905
921
|
ride_id: z.ZodOptional<z.ZodString>;
|
|
906
922
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -965,6 +981,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
965
981
|
justification_source: "MANUAL" | "ALERT";
|
|
966
982
|
created_by?: string | undefined;
|
|
967
983
|
updated_by?: string | undefined;
|
|
984
|
+
manual_trip_id?: string | undefined;
|
|
968
985
|
} | null | undefined;
|
|
969
986
|
ride_id?: string | undefined;
|
|
970
987
|
}, {
|
|
@@ -1013,6 +1030,7 @@ export declare const UpdateRideAcceptanceSchema: z.ZodObject<{
|
|
|
1013
1030
|
created_by?: string | undefined;
|
|
1014
1031
|
updated_by?: string | undefined;
|
|
1015
1032
|
pto_message?: string | undefined;
|
|
1033
|
+
manual_trip_id?: string | undefined;
|
|
1016
1034
|
} | null | undefined;
|
|
1017
1035
|
ride_id?: string | undefined;
|
|
1018
1036
|
}>;
|
|
@@ -15,6 +15,7 @@ export const RideJustificationStatusTypeSchema = z.enum(RIDE_JUSTIFICATION_STATU
|
|
|
15
15
|
export const RideJustificationSchema = DocumentSchema.extend({
|
|
16
16
|
justification_cause: gtfsCauseSchema,
|
|
17
17
|
justification_source: RideJustificationSourceSchema,
|
|
18
|
+
manual_trip_id: z.string().optional(),
|
|
18
19
|
pto_message: z.string().min(2).max(5000).default(''),
|
|
19
20
|
}).omit({ _id: true }).strict();
|
|
20
21
|
/* * */
|
package/package.json
CHANGED