feat(procedure-combos) - v1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { AppointmentUncheckedCreateInputObjectSchema } from "@repo/db/usedSchemas";
|
||||
import { AppointmentUncheckedCreateInputObjectSchema, AppointmentProcedureUncheckedCreateInputObjectSchema } from "@repo/db/usedSchemas";
|
||||
import {z} from "zod";
|
||||
|
||||
export type Appointment = z.infer<typeof AppointmentUncheckedCreateInputObjectSchema>;
|
||||
@@ -19,4 +19,35 @@ export const updateAppointmentSchema = (
|
||||
createdAt: true,
|
||||
})
|
||||
.partial();
|
||||
export type UpdateAppointment = z.infer<typeof updateAppointmentSchema>;
|
||||
export type UpdateAppointment = z.infer<typeof updateAppointmentSchema>;
|
||||
|
||||
|
||||
// Appointment Procedure Types.
|
||||
|
||||
export type AppointmentProcedure = z.infer<
|
||||
typeof AppointmentProcedureUncheckedCreateInputObjectSchema
|
||||
>;
|
||||
|
||||
export const insertAppointmentProcedureSchema = (
|
||||
AppointmentProcedureUncheckedCreateInputObjectSchema as unknown as z.ZodObject<any>
|
||||
).omit({
|
||||
id: true,
|
||||
createdAt: true,
|
||||
});
|
||||
|
||||
export type InsertAppointmentProcedure = z.infer<
|
||||
typeof insertAppointmentProcedureSchema
|
||||
>;
|
||||
|
||||
export const updateAppointmentProcedureSchema = (
|
||||
AppointmentProcedureUncheckedCreateInputObjectSchema as unknown as z.ZodObject<any>
|
||||
)
|
||||
.omit({
|
||||
id: true,
|
||||
createdAt: true,
|
||||
})
|
||||
.partial();
|
||||
|
||||
export type UpdateAppointmentProcedure = z.infer<
|
||||
typeof updateAppointmentProcedureSchema
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user