import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
import { PdfTitleKeySchema } from '../enums/PdfTitleKey.schema';
import { EnumPdfTitleKeyFieldUpdateOperationsInputObjectSchema as EnumPdfTitleKeyFieldUpdateOperationsInputObjectSchema } from './EnumPdfTitleKeyFieldUpdateOperationsInput.schema';
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
import { PatientUpdateOneRequiredWithoutGroupsNestedInputObjectSchema as PatientUpdateOneRequiredWithoutGroupsNestedInputObjectSchema } from './PatientUpdateOneRequiredWithoutGroupsNestedInput.schema';
import { PdfFileUpdateManyWithoutGroupNestedInputObjectSchema as PdfFileUpdateManyWithoutGroupNestedInputObjectSchema } from './PdfFileUpdateManyWithoutGroupNestedInput.schema'

const makeSchema = () => z.object({
  title: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
  titleKey: z.union([PdfTitleKeySchema, z.lazy(() => EnumPdfTitleKeyFieldUpdateOperationsInputObjectSchema)]).optional(),
  createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
  patient: z.lazy(() => PatientUpdateOneRequiredWithoutGroupsNestedInputObjectSchema).optional(),
  pdfs: z.lazy(() => PdfFileUpdateManyWithoutGroupNestedInputObjectSchema).optional()
}).strict();
export const PdfGroupUpdateInputObjectSchema: z.ZodType<Prisma.PdfGroupUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.PdfGroupUpdateInput>;
export const PdfGroupUpdateInputObjectZodSchema = makeSchema();
