13 lines
1.1 KiB
TypeScript
13 lines
1.1 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { StaffWhereInputObjectSchema as StaffWhereInputObjectSchema } from './StaffWhereInput.schema';
|
|
import { StaffUpdateWithoutAppointmentsInputObjectSchema as StaffUpdateWithoutAppointmentsInputObjectSchema } from './StaffUpdateWithoutAppointmentsInput.schema';
|
|
import { StaffUncheckedUpdateWithoutAppointmentsInputObjectSchema as StaffUncheckedUpdateWithoutAppointmentsInputObjectSchema } from './StaffUncheckedUpdateWithoutAppointmentsInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => StaffWhereInputObjectSchema).optional(),
|
|
data: z.union([z.lazy(() => StaffUpdateWithoutAppointmentsInputObjectSchema), z.lazy(() => StaffUncheckedUpdateWithoutAppointmentsInputObjectSchema)])
|
|
}).strict();
|
|
export const StaffUpdateToOneWithWhereWithoutAppointmentsInputObjectSchema: z.ZodType<Prisma.StaffUpdateToOneWithWhereWithoutAppointmentsInput> = makeSchema() as unknown as z.ZodType<Prisma.StaffUpdateToOneWithWhereWithoutAppointmentsInput>;
|
|
export const StaffUpdateToOneWithWhereWithoutAppointmentsInputObjectZodSchema = makeSchema();
|