import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
import { NullableIntFieldUpdateOperationsInputObjectSchema as NullableIntFieldUpdateOperationsInputObjectSchema } from './NullableIntFieldUpdateOperationsInput.schema';
import { CommunicationChannelSchema } from '../enums/CommunicationChannel.schema';
import { EnumCommunicationChannelFieldUpdateOperationsInputObjectSchema as EnumCommunicationChannelFieldUpdateOperationsInputObjectSchema } from './EnumCommunicationChannelFieldUpdateOperationsInput.schema';
import { CommunicationDirectionSchema } from '../enums/CommunicationDirection.schema';
import { EnumCommunicationDirectionFieldUpdateOperationsInputObjectSchema as EnumCommunicationDirectionFieldUpdateOperationsInputObjectSchema } from './EnumCommunicationDirectionFieldUpdateOperationsInput.schema';
import { CommunicationStatusSchema } from '../enums/CommunicationStatus.schema';
import { EnumCommunicationStatusFieldUpdateOperationsInputObjectSchema as EnumCommunicationStatusFieldUpdateOperationsInputObjectSchema } from './EnumCommunicationStatusFieldUpdateOperationsInput.schema';
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema'

const makeSchema = () => z.object({
  id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
  patientId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
  userId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
  channel: z.union([CommunicationChannelSchema, z.lazy(() => EnumCommunicationChannelFieldUpdateOperationsInputObjectSchema)]).optional(),
  direction: z.union([CommunicationDirectionSchema, z.lazy(() => EnumCommunicationDirectionFieldUpdateOperationsInputObjectSchema)]).optional(),
  status: z.union([CommunicationStatusSchema, z.lazy(() => EnumCommunicationStatusFieldUpdateOperationsInputObjectSchema)]).optional(),
  body: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
  callDuration: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
  twilioSid: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
  createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();
export const CommunicationUncheckedUpdateInputObjectSchema: z.ZodType<Prisma.CommunicationUncheckedUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.CommunicationUncheckedUpdateInput>;
export const CommunicationUncheckedUpdateInputObjectZodSchema = makeSchema();
