import * as z from 'zod';
import { CommunicationChannelSchema } from '../../enums/CommunicationChannel.schema';
import { CommunicationDirectionSchema } from '../../enums/CommunicationDirection.schema';
import { CommunicationStatusSchema } from '../../enums/CommunicationStatus.schema';
// prettier-ignore
export const CommunicationInputSchema = z.object({
    id: z.number().int(),
    patientId: z.number().int(),
    userId: z.number().int().optional().nullable(),
    channel: CommunicationChannelSchema,
    direction: CommunicationDirectionSchema,
    status: CommunicationStatusSchema,
    body: z.string().optional().nullable(),
    callDuration: z.number().int().optional().nullable(),
    twilioSid: z.string().optional().nullable(),
    createdAt: z.date(),
    patient: z.unknown(),
    user: z.unknown().optional().nullable()
}).strict();

export type CommunicationInputType = z.infer<typeof CommunicationInputSchema>;
