Files
DentalManagement09/packages/db/shared/schemas/objects/CommunicationUncheckedCreateWithoutPatientInput.schema.ts
T
GiteadandClaude Sonnet 5 79ac6aaa31 feat: migrate SMS/voice to Telnyx (TeXML), keep browser dial pad on Twilio
Twilio now handles only the in-browser dial pad (Access Token + browser-Device
outbound TwiML); Telnyx takes over SMS, inbound voicemail, the AI voice
conversation loop, and staff-triggered outbound calls via TeXML. Adds
TelnyxSettings model, Communication.provider discriminator, new comms/routes
modules, and a real Telnyx Settings page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 15:39:43 -04:00

22 lines
1.2 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { CommunicationChannelSchema } from '../enums/CommunicationChannel.schema';
import { CommunicationDirectionSchema } from '../enums/CommunicationDirection.schema';
import { CommunicationStatusSchema } from '../enums/CommunicationStatus.schema';
import { CommunicationProviderSchema } from '../enums/CommunicationProvider.schema'
const makeSchema = () => z.object({
id: z.number().int().optional(),
userId: z.number().int().optional().nullable(),
channel: CommunicationChannelSchema,
direction: CommunicationDirectionSchema,
status: CommunicationStatusSchema,
provider: CommunicationProviderSchema.optional(),
body: z.string().optional().nullable(),
callDuration: z.number().int().optional().nullable(),
twilioSid: z.string().optional().nullable(),
createdAt: z.coerce.date().optional()
}).strict();
export const CommunicationUncheckedCreateWithoutPatientInputObjectSchema: z.ZodType<Prisma.CommunicationUncheckedCreateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CommunicationUncheckedCreateWithoutPatientInput>;
export const CommunicationUncheckedCreateWithoutPatientInputObjectZodSchema = makeSchema();