@tmlmobilidade/types 20250915.948.54 → 20250915.959.39
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.
|
@@ -900,21 +900,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
900
900
|
updated_by?: string | undefined;
|
|
901
901
|
}>, "many">>>;
|
|
902
902
|
acceptance_status: z.ZodOptional<z.ZodEnum<["justification_required", "under_review", "accepted", "rejected"]>>;
|
|
903
|
-
analysis: z.ZodOptional<z.ZodObject<{
|
|
904
|
-
error_message: z.ZodOptional<z.ZodString>;
|
|
905
|
-
grade: z.ZodEnum<["pass", "fail", "skip", "error"]>;
|
|
906
|
-
reason: z.ZodString;
|
|
907
|
-
}, "strict", z.ZodTypeAny, {
|
|
908
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
909
|
-
reason: string;
|
|
910
|
-
error_message?: string | undefined;
|
|
911
|
-
}, {
|
|
912
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
913
|
-
reason: string;
|
|
914
|
-
error_message?: string | undefined;
|
|
915
|
-
}>>;
|
|
916
903
|
justification_cause: z.ZodOptional<z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>>;
|
|
917
|
-
justification_source: z.ZodOptional<z.ZodEnum<["MANUAL", "REALTIME_ALERT"]>>;
|
|
918
904
|
pto_message: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
919
905
|
trip_id: z.ZodOptional<z.ZodString>;
|
|
920
906
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -959,13 +945,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
959
945
|
updated_by?: string | undefined;
|
|
960
946
|
})[] | undefined;
|
|
961
947
|
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
962
|
-
analysis?: {
|
|
963
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
964
|
-
reason: string;
|
|
965
|
-
error_message?: string | undefined;
|
|
966
|
-
} | undefined;
|
|
967
948
|
justification_cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER" | undefined;
|
|
968
|
-
justification_source?: "MANUAL" | "REALTIME_ALERT" | undefined;
|
|
969
949
|
pto_message?: string | undefined;
|
|
970
950
|
trip_id?: string | undefined;
|
|
971
951
|
}, {
|
|
@@ -998,13 +978,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
998
978
|
updated_by?: string | undefined;
|
|
999
979
|
})[] | undefined;
|
|
1000
980
|
acceptance_status?: "accepted" | "justification_required" | "under_review" | "rejected" | undefined;
|
|
1001
|
-
analysis?: {
|
|
1002
|
-
grade: "error" | "pass" | "fail" | "skip";
|
|
1003
|
-
reason: string;
|
|
1004
|
-
error_message?: string | undefined;
|
|
1005
|
-
} | undefined;
|
|
1006
981
|
justification_cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "TECHNICAL_PROBLEM" | "WEATHER" | undefined;
|
|
1007
|
-
justification_source?: "MANUAL" | "REALTIME_ALERT" | undefined;
|
|
1008
982
|
pto_message?: string | undefined;
|
|
1009
983
|
trip_id?: string | undefined;
|
|
1010
984
|
}>;
|
|
@@ -41,4 +41,4 @@ export const RideJustificationSchema = DocumentSchema.extend({
|
|
|
41
41
|
trip_id: z.string(),
|
|
42
42
|
}).strict();
|
|
43
43
|
export const CreateRideJustificationSchema = RideJustificationSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
|
|
44
|
-
export const UpdateRideJustificationSchema = CreateRideJustificationSchema.omit({ created_by: true }).partial();
|
|
44
|
+
export const UpdateRideJustificationSchema = CreateRideJustificationSchema.omit({ analysis: true, created_by: true, justification_source: true }).partial();
|
package/package.json
CHANGED