@tmlmobilidade/types
Version:
225 lines (224 loc) • 7.7 kB
TypeScript
import { z } from 'zod';
export declare const RideAuditSchema: z.ZodObject<{
_id: z.ZodString;
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
} & {
comments: z.ZodArray<z.ZodObject<{
message: z.ZodString;
type: z.ZodLiteral<"note">;
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
message: string;
type: "note";
created_at: number & {
__brand: "UnixTimestamp";
};
created_by: string | null;
updated_at: number & {
__brand: "UnixTimestamp";
};
_id?: string | undefined;
updated_by?: string | undefined;
}, {
message: string;
type: "note";
created_at: number;
updated_at: number;
_id?: string | undefined;
created_by?: string | null | undefined;
updated_by?: string | undefined;
}>, "many">;
is_locked: z.ZodDefault<z.ZodBoolean>;
ride_id: z.ZodString;
}, "strip", z.ZodTypeAny, {
_id: string;
created_at: number & {
__brand: "UnixTimestamp";
};
created_by: string | null;
is_locked: boolean;
updated_at: number & {
__brand: "UnixTimestamp";
};
comments: {
message: string;
type: "note";
created_at: number & {
__brand: "UnixTimestamp";
};
created_by: string | null;
updated_at: number & {
__brand: "UnixTimestamp";
};
_id?: string | undefined;
updated_by?: string | undefined;
}[];
ride_id: string;
updated_by?: string | undefined;
}, {
_id: string;
created_at: number;
updated_at: number;
comments: {
message: string;
type: "note";
created_at: number;
updated_at: number;
_id?: string | undefined;
created_by?: string | null | undefined;
updated_by?: string | undefined;
}[];
ride_id: string;
created_by?: string | null | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
}>;
export declare const CreateRideAuditSchema: z.ZodObject<Omit<{
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
is_locked: z.ZodDefault<z.ZodBoolean>;
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
comments: z.ZodArray<z.ZodObject<{
message: z.ZodString;
type: z.ZodLiteral<"note">;
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
message: string;
type: "note";
created_at: number & {
__brand: "UnixTimestamp";
};
created_by: string | null;
updated_at: number & {
__brand: "UnixTimestamp";
};
_id?: string | undefined;
updated_by?: string | undefined;
}, {
message: string;
type: "note";
created_at: number;
updated_at: number;
_id?: string | undefined;
created_by?: string | null | undefined;
updated_by?: string | undefined;
}>, "many">;
ride_id: z.ZodString;
}, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
created_by: string | null;
is_locked: boolean;
comments: {
message: string;
type: "note";
created_at: number & {
__brand: "UnixTimestamp";
};
created_by: string | null;
updated_at: number & {
__brand: "UnixTimestamp";
};
_id?: string | undefined;
updated_by?: string | undefined;
}[];
ride_id: string;
_id?: string | undefined;
updated_by?: string | undefined;
}, {
comments: {
message: string;
type: "note";
created_at: number;
updated_at: number;
_id?: string | undefined;
created_by?: string | null | undefined;
updated_by?: string | undefined;
}[];
ride_id: string;
_id?: string | undefined;
created_by?: string | null | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
}>;
export declare const UpdateRideAuditSchema: z.ZodObject<{
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
message: z.ZodString;
type: z.ZodLiteral<"note">;
_id: z.ZodOptional<z.ZodString>;
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
updated_by: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
message: string;
type: "note";
created_at: number & {
__brand: "UnixTimestamp";
};
created_by: string | null;
updated_at: number & {
__brand: "UnixTimestamp";
};
_id?: string | undefined;
updated_by?: string | undefined;
}, {
message: string;
type: "note";
created_at: number;
updated_at: number;
_id?: string | undefined;
created_by?: string | null | undefined;
updated_by?: string | undefined;
}>, "many">>;
ride_id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
_id?: string | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
comments?: {
message: string;
type: "note";
created_at: number & {
__brand: "UnixTimestamp";
};
created_by: string | null;
updated_at: number & {
__brand: "UnixTimestamp";
};
_id?: string | undefined;
updated_by?: string | undefined;
}[] | undefined;
ride_id?: string | undefined;
}, {
_id?: string | undefined;
is_locked?: boolean | undefined;
updated_by?: string | undefined;
comments?: {
message: string;
type: "note";
created_at: number;
updated_at: number;
_id?: string | undefined;
created_by?: string | null | undefined;
updated_by?: string | undefined;
}[] | undefined;
ride_id?: string | undefined;
}>;
export type RideAudit = z.infer<typeof RideAuditSchema>;
export type CreateRideAuditDto = z.infer<typeof CreateRideAuditSchema>;
export type UpdateRideAuditDto = z.infer<typeof UpdateRideAuditSchema>;