Files
DentalManagement09/packages/db/shared/schemas/variants/input/Communication.input.d.ts
T
GiteadandClaude Opus 5.5 1abc2c705d fix: allow letters in insurance ID; add patient state (default MA)
- Backend insurance ID check now accepts letters + digits (BCBS IDs have
  a letter prefix), matching the frontend schema; create route validates
  the normalized body
- Patient.state column (default "MA") with State select on the patient
  form; ADA claim form uses the patient's state instead of the office's
- Rebuild stale packages/db compiled .js so the runtime schemas include
  new fields (state, office billing NPI fields, Telnyx settings)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 23:29:27 -04:00

46 lines
1.8 KiB
TypeScript

import * as z from 'zod';
export declare const CommunicationInputSchema: z.ZodObject<{
id: z.ZodNumber;
patientId: z.ZodNumber;
userId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
channel: z.ZodEnum<["sms", "voice"]>;
direction: z.ZodEnum<["outbound", "inbound"]>;
status: z.ZodEnum<["queued", "sent", "delivered", "failed", "completed", "busy", "no_answer"]>;
provider: z.ZodEnum<["twilio", "telnyx"]>;
body: z.ZodNullable<z.ZodOptional<z.ZodString>>;
callDuration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
twilioSid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
createdAt: z.ZodDate;
patient: z.ZodUnknown;
user: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
}, "strict", z.ZodTypeAny, {
status: "queued" | "sent" | "delivered" | "failed" | "completed" | "busy" | "no_answer";
id: number;
createdAt: Date;
patientId: number;
channel: "sms" | "voice";
direction: "outbound" | "inbound";
provider: "twilio" | "telnyx";
patient?: unknown;
userId?: number | null | undefined;
user?: unknown;
body?: string | null | undefined;
callDuration?: number | null | undefined;
twilioSid?: string | null | undefined;
}, {
status: "queued" | "sent" | "delivered" | "failed" | "completed" | "busy" | "no_answer";
id: number;
createdAt: Date;
patientId: number;
channel: "sms" | "voice";
direction: "outbound" | "inbound";
provider: "twilio" | "telnyx";
patient?: unknown;
userId?: number | null | undefined;
user?: unknown;
body?: string | null | undefined;
callDuration?: number | null | undefined;
twilioSid?: string | null | undefined;
}>;
export type CommunicationInputType = z.infer<typeof CommunicationInputSchema>;
//# sourceMappingURL=Communication.input.d.ts.map