@tmlmobilidade/types 20250915.1032.54 → 20250915.1116.6
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.
|
@@ -244,6 +244,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
244
244
|
created_by?: string | undefined;
|
|
245
245
|
updated_by?: string | undefined;
|
|
246
246
|
}>, "many">>;
|
|
247
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
247
248
|
justification_cause: z.ZodEnum<["TECHNICAL_PROBLEM", "DEMONSTRATION", "ACCIDENT", "WEATHER", "CONSTRUCTION", "POLICE_ACTIVITY", "MEDICAL_EMERGENCY", "OTHER_CAUSE"]>;
|
|
248
249
|
justification_source: z.ZodEnum<["MANUAL", "REALTIME_ALERT"]>;
|
|
249
250
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
@@ -256,6 +257,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
256
257
|
updated_at: number & {
|
|
257
258
|
__brand: "UnixTimestamp";
|
|
258
259
|
};
|
|
260
|
+
is_locked: boolean;
|
|
259
261
|
comments: ({
|
|
260
262
|
_id: string;
|
|
261
263
|
created_at: number & {
|
|
@@ -321,6 +323,7 @@ export declare const RideJustificationSchema: z.ZodObject<{
|
|
|
321
323
|
trip_id: string;
|
|
322
324
|
created_by?: string | undefined;
|
|
323
325
|
updated_by?: string | undefined;
|
|
326
|
+
is_locked?: boolean | undefined;
|
|
324
327
|
comments?: ({
|
|
325
328
|
_id: string;
|
|
326
329
|
created_at: number;
|
|
@@ -355,6 +358,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
355
358
|
created_by: z.ZodOptional<z.ZodString>;
|
|
356
359
|
updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
357
360
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
361
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
358
362
|
comments: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
359
363
|
_id: z.ZodString;
|
|
360
364
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -589,6 +593,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
589
593
|
pto_message: z.ZodDefault<z.ZodString>;
|
|
590
594
|
trip_id: z.ZodString;
|
|
591
595
|
}, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
|
|
596
|
+
is_locked: boolean;
|
|
592
597
|
comments: ({
|
|
593
598
|
_id: string;
|
|
594
599
|
created_at: number & {
|
|
@@ -653,6 +658,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
653
658
|
_id?: string | undefined;
|
|
654
659
|
created_by?: string | undefined;
|
|
655
660
|
updated_by?: string | undefined;
|
|
661
|
+
is_locked?: boolean | undefined;
|
|
656
662
|
comments?: ({
|
|
657
663
|
_id: string;
|
|
658
664
|
created_at: number;
|
|
@@ -684,6 +690,7 @@ export declare const CreateRideJustificationSchema: z.ZodObject<Omit<{
|
|
|
684
690
|
export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
685
691
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
686
692
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
693
|
+
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
687
694
|
comments: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
688
695
|
_id: z.ZodString;
|
|
689
696
|
created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
|
|
@@ -906,6 +913,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
906
913
|
}, "strict", z.ZodTypeAny, {
|
|
907
914
|
_id?: string | undefined;
|
|
908
915
|
updated_by?: string | undefined;
|
|
916
|
+
is_locked?: boolean | undefined;
|
|
909
917
|
comments?: ({
|
|
910
918
|
_id: string;
|
|
911
919
|
created_at: number & {
|
|
@@ -951,6 +959,7 @@ export declare const UpdateRideJustificationSchema: z.ZodObject<{
|
|
|
951
959
|
}, {
|
|
952
960
|
_id?: string | undefined;
|
|
953
961
|
updated_by?: string | undefined;
|
|
962
|
+
is_locked?: boolean | undefined;
|
|
954
963
|
comments?: ({
|
|
955
964
|
_id: string;
|
|
956
965
|
created_at: number;
|
|
@@ -35,6 +35,7 @@ export const RideJustificationSchema = DocumentSchema.extend({
|
|
|
35
35
|
acceptance_status: RideAcceptanceStatusSchema,
|
|
36
36
|
analysis: RideAnalysisSchema,
|
|
37
37
|
comments: z.array(CommentSchemaWithRideJustificationStatus).default([]),
|
|
38
|
+
is_locked: z.boolean().default(false),
|
|
38
39
|
justification_cause: RideJustificationCauseSchema,
|
|
39
40
|
justification_source: RideJustificationSourceSchema,
|
|
40
41
|
pto_message: z.string().min(2).max(5000).default(''),
|
package/package.json
CHANGED