feat: persist AI conversation state in DB and fix LangGraph flow bugs
- Replace in-memory Maps in aiHandoffStore with DB-backed async functions using new patient_conversation table (stage + aiHandoff per patient) - Add afterHoursEnabled to ai_settings table (persists across restarts) - Fix runtime crash in reschedule-graph: mon/tue/wed variables were out of scope in the next-week fallback branch (ReferenceError) - Wire rescheduleGreeting and generalFallback chat templates through to LangGraph nodes so user-configured messages take effect - Add otherNode to reminder-graph to handle unclassified patient replies (e.g. "I want another appointment") and route to booking flow - Fetch chatTemplates once per webhook request instead of per stage Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,93 +1,90 @@
|
||||
// In-memory store for per-patient AI handoff toggle, conversation stage,
|
||||
// and per-user after-hours handoff toggle.
|
||||
// Conversation key: `${userId}:${patientId}`
|
||||
import { prisma as db } from "@repo/db/client";
|
||||
|
||||
export type ConversationStage =
|
||||
| "initial" // default — no active conversation
|
||||
| "reminder_initial" // office sent a reminder, waiting for first patient reply
|
||||
| "greeted" // reminder intro sent, waiting for yes/no
|
||||
| "done" // conversation complete
|
||||
| "new_patient_greeted" // new-patient greeting sent, waiting for patient intent
|
||||
| "asked_new_or_existing" // AI asked "new or existing patient?"
|
||||
| "asked_new_patient_insurance" // AI asked new patient about insurance
|
||||
| "asked_existing_insurance" // AI asked existing patient about same insurance
|
||||
| "asked_appointment_time" // AI asked when they'd like to come
|
||||
| "awaiting_masshealth_info" // AI asked for Member ID + DOB, waiting for reply
|
||||
| "asked_appointment_preference" // Selenium: ACTIVE — AI asked check-up vs problem
|
||||
| "asked_self_pay" // Selenium: INACTIVE — AI asked if self-pay exam
|
||||
| "asked_reschedule_confirm" // AI asked "Would you like to reschedule?"
|
||||
| "asked_reschedule_preference" // AI asked ASAP vs next week
|
||||
| "asked_reschedule_asap" // AI asked "Can you come tomorrow?"
|
||||
| "asked_reschedule_next_week" // AI offered Mon/Tue/Wed next week
|
||||
| "asked_reschedule_time"; // Day confirmed — AI asked morning or afternoon
|
||||
| "initial"
|
||||
| "reminder_initial"
|
||||
| "greeted"
|
||||
| "done"
|
||||
| "new_patient_greeted"
|
||||
| "asked_new_or_existing"
|
||||
| "asked_new_patient_insurance"
|
||||
| "asked_existing_insurance"
|
||||
| "asked_appointment_time"
|
||||
| "awaiting_masshealth_info"
|
||||
| "asked_appointment_preference"
|
||||
| "asked_self_pay"
|
||||
| "asked_reschedule_confirm"
|
||||
| "asked_reschedule_preference"
|
||||
| "asked_reschedule_asap"
|
||||
| "asked_reschedule_next_week"
|
||||
| "asked_reschedule_time";
|
||||
|
||||
const handoffStore = new Map<string, boolean>();
|
||||
const stageStore = new Map<string, ConversationStage>();
|
||||
const afterHoursStore = new Map<number, boolean>(); // keyed by userId
|
||||
// ── Conversation stage + AI handoff per patient (DB-persisted) ────────────────
|
||||
|
||||
export async function getStage(userId: number, patientId: number): Promise<ConversationStage> {
|
||||
const row = await db.patientConversation.findUnique({ where: { patientId } });
|
||||
return (row?.stage as ConversationStage) ?? "initial";
|
||||
}
|
||||
|
||||
export async function setStage(userId: number, patientId: number, stage: ConversationStage): Promise<void> {
|
||||
await db.patientConversation.upsert({
|
||||
where: { patientId },
|
||||
update: { stage },
|
||||
create: { patientId, userId, stage, aiHandoff: true },
|
||||
});
|
||||
}
|
||||
|
||||
export async function getHandoff(userId: number, patientId: number): Promise<boolean> {
|
||||
const row = await db.patientConversation.findUnique({ where: { patientId } });
|
||||
return row?.aiHandoff ?? true;
|
||||
}
|
||||
|
||||
export async function setHandoff(userId: number, patientId: number, enabled: boolean): Promise<void> {
|
||||
await db.patientConversation.upsert({
|
||||
where: { patientId },
|
||||
update: { aiHandoff: enabled },
|
||||
create: { patientId, userId, aiHandoff: enabled, stage: "initial" },
|
||||
});
|
||||
}
|
||||
|
||||
// ── After-hours handoff per user (persisted in ai_settings) ──────────────────
|
||||
|
||||
export async function getAfterHoursHandoff(userId: number): Promise<boolean> {
|
||||
const row = await db.aiSettings.findUnique({ where: { userId } });
|
||||
return row?.afterHoursEnabled ?? true;
|
||||
}
|
||||
|
||||
export async function setAfterHoursHandoff(userId: number, enabled: boolean): Promise<void> {
|
||||
await db.aiSettings.update({ where: { userId }, data: { afterHoursEnabled: enabled } });
|
||||
}
|
||||
|
||||
// ── Conversation starters ─────────────────────────────────────────────────────
|
||||
|
||||
export async function resetConversation(userId: number, patientId: number): Promise<void> {
|
||||
await setStage(userId, patientId, "reminder_initial");
|
||||
}
|
||||
|
||||
export async function startNewPatientConversation(userId: number, patientId: number): Promise<void> {
|
||||
await setStage(userId, patientId, "new_patient_greeted");
|
||||
}
|
||||
|
||||
export async function startRescheduleConversation(userId: number, patientId: number): Promise<void> {
|
||||
await setStage(userId, patientId, "asked_reschedule_confirm");
|
||||
}
|
||||
|
||||
// ── Pending reschedule (in-memory — seconds-lived within a single exchange) ───
|
||||
|
||||
interface PendingReschedule {
|
||||
newDate: Date;
|
||||
dayLabel: string;
|
||||
}
|
||||
|
||||
const pendingRescheduleStore = new Map<string, PendingReschedule>();
|
||||
|
||||
function convKey(userId: number, patientId: number): string {
|
||||
return `${userId}:${patientId}`;
|
||||
}
|
||||
|
||||
// ── Per-patient handoff toggle (default ON) ───────────────────────────────────
|
||||
|
||||
export function getHandoff(userId: number, patientId: number): boolean {
|
||||
const k = convKey(userId, patientId);
|
||||
return handoffStore.has(k) ? handoffStore.get(k)! : true;
|
||||
}
|
||||
|
||||
export function setHandoff(userId: number, patientId: number, enabled: boolean): void {
|
||||
handoffStore.set(convKey(userId, patientId), enabled);
|
||||
}
|
||||
|
||||
// ── Per-user after-hours handoff toggle (default ON) ─────────────────────────
|
||||
|
||||
export function getAfterHoursHandoff(userId: number): boolean {
|
||||
return afterHoursStore.has(userId) ? afterHoursStore.get(userId)! : true;
|
||||
}
|
||||
|
||||
export function setAfterHoursHandoff(userId: number, enabled: boolean): void {
|
||||
afterHoursStore.set(userId, enabled);
|
||||
}
|
||||
|
||||
// ── Conversation stage ────────────────────────────────────────────────────────
|
||||
|
||||
export function getStage(userId: number, patientId: number): ConversationStage {
|
||||
return stageStore.get(convKey(userId, patientId)) ?? "initial";
|
||||
}
|
||||
|
||||
export function setStage(userId: number, patientId: number, stage: ConversationStage): void {
|
||||
stageStore.set(convKey(userId, patientId), stage);
|
||||
}
|
||||
|
||||
// Called when office sends an outbound reminder — marks next patient reply
|
||||
// as the start of a reminder conversation.
|
||||
export function resetConversation(userId: number, patientId: number): void {
|
||||
stageStore.set(convKey(userId, patientId), "reminder_initial");
|
||||
}
|
||||
|
||||
// Called when office sends the new-patient greeting — marks next patient reply
|
||||
// as the start of the new-patient conversation flow.
|
||||
export function startNewPatientConversation(userId: number, patientId: number): void {
|
||||
stageStore.set(convKey(userId, patientId), "new_patient_greeted");
|
||||
}
|
||||
|
||||
// Called when office sends a reschedule greeting — patient's next reply enters
|
||||
// the reschedule flow.
|
||||
export function startRescheduleConversation(userId: number, patientId: number): void {
|
||||
stageStore.set(convKey(userId, patientId), "asked_reschedule_confirm");
|
||||
}
|
||||
|
||||
// ── Pending reschedule data ───────────────────────────────────────────────────
|
||||
// Holds the confirmed new date while AI waits for a time-slot answer.
|
||||
|
||||
interface PendingReschedule {
|
||||
newDate: Date; // JS Date for the new appointment day (midnight UTC)
|
||||
dayLabel: string; // human-readable, e.g. "Tuesday, May 19"
|
||||
}
|
||||
|
||||
const pendingRescheduleStore = new Map<string, PendingReschedule>();
|
||||
|
||||
export function setPendingReschedule(userId: number, patientId: number, data: PendingReschedule): void {
|
||||
pendingRescheduleStore.set(convKey(userId, patientId), data);
|
||||
}
|
||||
|
||||
@@ -5,12 +5,13 @@ import type { ConversationStage } from "./aiHandoffStore";
|
||||
// ── Graph state ───────────────────────────────────────────────────────────────
|
||||
|
||||
const GraphState = Annotation.Root({
|
||||
message: Annotation<string>(),
|
||||
stage: Annotation<string>(),
|
||||
intent: Annotation<string>(),
|
||||
reply: Annotation<string>(),
|
||||
language: Annotation<string>(),
|
||||
nextStage: Annotation<string>(),
|
||||
message: Annotation<string>(),
|
||||
stage: Annotation<string>(),
|
||||
intent: Annotation<string>(),
|
||||
reply: Annotation<string>(),
|
||||
language: Annotation<string>(),
|
||||
nextStage: Annotation<string>(),
|
||||
generalFallback: Annotation<string>(),
|
||||
});
|
||||
|
||||
type GraphStateType = typeof GraphState.State;
|
||||
@@ -377,7 +378,7 @@ async function handleSelfPayNode(state: GraphStateType, config: any) {
|
||||
|
||||
function transferNode(state: GraphStateType) {
|
||||
const lang = state.language || "English";
|
||||
return { reply: transferMsg(lang), nextStage: "done" };
|
||||
return { reply: state.generalFallback || transferMsg(lang), nextStage: "done" };
|
||||
}
|
||||
|
||||
// ── Graph assembly ────────────────────────────────────────────────────────────
|
||||
@@ -419,13 +420,14 @@ const graph = new StateGraph(GraphState)
|
||||
// ── Public API ────────────────────────────────────────────────────────────────
|
||||
|
||||
export async function runNewPatientStep(
|
||||
message: string,
|
||||
stage: ConversationStage,
|
||||
language: string,
|
||||
apiKey: string
|
||||
message: string,
|
||||
stage: ConversationStage,
|
||||
language: string,
|
||||
apiKey: string,
|
||||
generalFallback = ""
|
||||
): Promise<{ reply: string; nextStage: ConversationStage }> {
|
||||
const result = await graph.invoke(
|
||||
{ message, stage, intent: "", reply: "", language, nextStage: "" },
|
||||
{ message, stage, intent: "", reply: "", language, nextStage: "", generalFallback },
|
||||
{ configurable: { apiKey } }
|
||||
);
|
||||
return {
|
||||
|
||||
@@ -7,6 +7,8 @@ const GraphState = Annotation.Root({
|
||||
reply: Annotation<string>(),
|
||||
language: Annotation<string>(),
|
||||
appointmentDatetime: Annotation<string>(),
|
||||
rescheduleGreeting: Annotation<string>(),
|
||||
generalFallback: Annotation<string>(),
|
||||
});
|
||||
|
||||
type GraphStateType = typeof GraphState.State;
|
||||
@@ -27,7 +29,7 @@ function classifyNode(state: GraphStateType) {
|
||||
function routeByIntent(state: GraphStateType): string {
|
||||
if (state.intent === "yes") return "confirm";
|
||||
if (state.intent === "no") return "reschedule";
|
||||
return END;
|
||||
return "other";
|
||||
}
|
||||
|
||||
// ── Confirmation fallbacks (with appointment datetime) ────────────────────────
|
||||
@@ -58,6 +60,30 @@ const RESCHEDULE_FALLBACKS: Record<string, string> = {
|
||||
"Haitian Creole": "Nou konprann! Èske ou ta renmen repwograme randevou ou?",
|
||||
};
|
||||
|
||||
// ── New-appointment fallbacks (other intent, appointment keywords detected) ───
|
||||
|
||||
const NEW_APPT_FALLBACKS: Record<string, string> = {
|
||||
English: "Of course! Are you a new patient or an existing patient?",
|
||||
Spanish: "¡Por supuesto! ¿Es usted un paciente nuevo o ya ha visitado nuestra clínica?",
|
||||
Portuguese: "Claro! Você é um paciente novo ou já veio ao nosso consultório antes?",
|
||||
Mandarin: "当然!您是新患者还是我们的现有患者?",
|
||||
Cantonese: "當然!您係新病人定係我們的舊病人?",
|
||||
Arabic: "بالطبع! هل أنت مريض جديد أم مريض حالي؟",
|
||||
"Haitian Creole": "Byensèten! Èske ou se yon nouvo pasyan oswa yon pasyan egzistan?",
|
||||
};
|
||||
|
||||
// ── General-other fallbacks ───────────────────────────────────────────────────
|
||||
|
||||
const GENERAL_FALLBACKS: Record<string, string> = {
|
||||
English: "Thank you for your message! Our office staff will be happy to assist you shortly.",
|
||||
Spanish: "¡Gracias por su mensaje! El personal de nuestra oficina estará encantado de ayudarle en breve.",
|
||||
Portuguese: "Obrigado pela sua mensagem! Nossa equipe terá prazer em ajudá-lo em breve.",
|
||||
Mandarin: "感谢您的留言!我们的办公室工作人员将很快为您提供帮助。",
|
||||
Cantonese: "感謝您的留言!我們的辦公室工作人員將很快為您提供幫助。",
|
||||
Arabic: "شكراً على رسالتك! سيسعد فريق مكتبنا بمساعدتك قريباً.",
|
||||
"Haitian Creole": "Mèsi pou mesaj ou! Ekip biwo nou an pral kontan ede ou byento.",
|
||||
};
|
||||
|
||||
// ── LangGraph nodes ───────────────────────────────────────────────────────────
|
||||
|
||||
async function confirmNode(state: GraphStateType, config: any) {
|
||||
@@ -88,7 +114,7 @@ async function confirmNode(state: GraphStateType, config: any) {
|
||||
async function rescheduleNode(state: GraphStateType, config: any) {
|
||||
const apiKey: string | undefined = config?.configurable?.apiKey;
|
||||
const lang = state.language || "English";
|
||||
const fallback = RESCHEDULE_FALLBACKS[lang] ?? RESCHEDULE_FALLBACKS["English"]!;
|
||||
const fallback = state.rescheduleGreeting || (RESCHEDULE_FALLBACKS[lang] ?? RESCHEDULE_FALLBACKS["English"]!);
|
||||
|
||||
if (!apiKey) return { reply: fallback };
|
||||
|
||||
@@ -108,30 +134,76 @@ async function rescheduleNode(state: GraphStateType, config: any) {
|
||||
}
|
||||
}
|
||||
|
||||
async function otherNode(state: GraphStateType, config: any) {
|
||||
const apiKey: string | undefined = config?.configurable?.apiKey;
|
||||
const lang = state.language || "English";
|
||||
const text = state.message.toLowerCase();
|
||||
|
||||
const isAppointmentRequest = /appointment|schedule|book|come in|visit|check.?up|cleaning|tooth|teeth|pain|dental|another|new appt/i.test(text);
|
||||
|
||||
if (isAppointmentRequest) {
|
||||
const fallback = NEW_APPT_FALLBACKS[lang] ?? NEW_APPT_FALLBACKS["English"]!;
|
||||
if (!apiKey) return { reply: fallback, intent: "wants_appointment" };
|
||||
try {
|
||||
const llm = new ChatGoogleGenerativeAI({ model: "gemini-1.5-flash", apiKey });
|
||||
const response = await llm.invoke([
|
||||
{
|
||||
role: "system",
|
||||
content: `You are a friendly dental office AI assistant named Lisa. The patient wants to schedule an appointment. Ask them in ${lang} whether they are a new patient or an existing patient. One sentence, no formatting.`,
|
||||
},
|
||||
{ role: "user", content: `Patient said: "${state.message}"` },
|
||||
]);
|
||||
return { reply: String(response.content) || fallback, intent: "wants_appointment" };
|
||||
} catch {
|
||||
return { reply: fallback, intent: "wants_appointment" };
|
||||
}
|
||||
}
|
||||
|
||||
const fallback = state.generalFallback || (GENERAL_FALLBACKS[lang] ?? GENERAL_FALLBACKS["English"]!);
|
||||
if (!apiKey) return { reply: fallback };
|
||||
try {
|
||||
const llm = new ChatGoogleGenerativeAI({ model: "gemini-1.5-flash", apiKey });
|
||||
const response = await llm.invoke([
|
||||
{
|
||||
role: "system",
|
||||
content: `You are a friendly dental office AI assistant named Lisa. Respond helpfully to the patient's message in ${lang}. Keep it to 1-2 sentences, no formatting. For non-dental questions, let them know our office staff can assist.`,
|
||||
},
|
||||
{ role: "user", content: `Patient said: "${state.message}"` },
|
||||
]);
|
||||
return { reply: String(response.content) || fallback };
|
||||
} catch {
|
||||
return { reply: fallback };
|
||||
}
|
||||
}
|
||||
|
||||
// ── Graph ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
const graph = new StateGraph(GraphState)
|
||||
.addNode("classify", classifyNode)
|
||||
.addNode("confirm", confirmNode)
|
||||
.addNode("reschedule", rescheduleNode)
|
||||
.addNode("other", otherNode)
|
||||
.addEdge(START, "classify")
|
||||
.addConditionalEdges("classify", routeByIntent, {
|
||||
confirm: "confirm",
|
||||
reschedule: "reschedule",
|
||||
[END]: END,
|
||||
other: "other",
|
||||
})
|
||||
.addEdge("confirm", END)
|
||||
.addEdge("reschedule", END)
|
||||
.addEdge("other", END)
|
||||
.compile();
|
||||
|
||||
export async function runReminderGraph(
|
||||
patientMessage: string,
|
||||
apiKey: string,
|
||||
language = "English",
|
||||
appointmentDatetime = ""
|
||||
appointmentDatetime = "",
|
||||
rescheduleGreeting = "",
|
||||
generalFallback = ""
|
||||
): Promise<{ reply: string | null; intent: string | null }> {
|
||||
const result = await graph.invoke(
|
||||
{ message: patientMessage, intent: "", reply: "", language, appointmentDatetime },
|
||||
{ message: patientMessage, intent: "", reply: "", language, appointmentDatetime, rescheduleGreeting, generalFallback },
|
||||
{ configurable: { apiKey } }
|
||||
);
|
||||
return {
|
||||
|
||||
@@ -387,6 +387,7 @@ export async function runRescheduleStep(
|
||||
}
|
||||
|
||||
// Day not clearly detected — ask again with the specific options
|
||||
const { mon, tue, wed } = getNextWeekDays();
|
||||
const fallbacks: Record<string, string> = {
|
||||
English: `Which day works best — ${mon}, ${tue}, or ${wed}?`,
|
||||
Spanish: `¿Qué día le viene mejor — el ${mon}, ${tue} o el ${wed}?`,
|
||||
|
||||
@@ -208,7 +208,7 @@ async function runMassHealthCheckAndNotify(
|
||||
|
||||
// Persist and advance stage
|
||||
await saveOutbound(patient.id, resultText);
|
||||
setStage(patient.userId, patient.id, nextStage);
|
||||
await setStage(patient.userId, patient.id, nextStage);
|
||||
|
||||
} catch {
|
||||
// Silent — don't crash the main request
|
||||
@@ -241,7 +241,7 @@ router.post("/webhook/sms", async (req: Request, res: Response): Promise<any> =>
|
||||
});
|
||||
|
||||
// Per-patient handoff toggle must be ON
|
||||
if (!getHandoff(patient.userId, patient.id)) {
|
||||
if (!await getHandoff(patient.userId, patient.id)) {
|
||||
res.set("Content-Type", "text/xml");
|
||||
return res.send(empty());
|
||||
}
|
||||
@@ -252,23 +252,22 @@ router.post("/webhook/sms", async (req: Request, res: Response): Promise<any> =>
|
||||
return res.send(empty());
|
||||
}
|
||||
|
||||
const language = patient.preferredLanguage || "English";
|
||||
const stage = getStage(patient.userId, patient.id);
|
||||
const language = patient.preferredLanguage || "English";
|
||||
const stage = await getStage(patient.userId, patient.id);
|
||||
const chatTemplates = await storage.getAiChatTemplates(patient.userId);
|
||||
const officeContact = await storage.getOfficeContact(patient.userId);
|
||||
const officeName = (officeContact as any)?.officeName?.trim() || "";
|
||||
|
||||
// ── Helper: send reply + set stage ─────────────────────────────────────
|
||||
const reply = async (text: string, nextStage: ConversationStage) => {
|
||||
await saveOutbound(patient.id, text);
|
||||
setStage(patient.userId, patient.id, nextStage);
|
||||
await setStage(patient.userId, patient.id, nextStage);
|
||||
res.set("Content-Type", "text/xml");
|
||||
return res.send(twimlReply(text));
|
||||
};
|
||||
|
||||
// ── Stage: reminder_initial → send reminder greeting ─────────────────
|
||||
if (stage === "reminder_initial") {
|
||||
const chatTemplates = await storage.getAiChatTemplates(patient.userId);
|
||||
const officeContact = await storage.getOfficeContact(patient.userId);
|
||||
const officeName = (officeContact as any)?.officeName?.trim() || "";
|
||||
|
||||
const rawGreeting = chatTemplates.reminderGreeting ||
|
||||
`Hi! My name is Lisa, the dedicated AI assistant at {officeName}. I can confirm or reschedule your appointment and answer general questions 24/7. I will reply your message at any time you need.`;
|
||||
|
||||
@@ -278,10 +277,15 @@ router.post("/webhook/sms", async (req: Request, res: Response): Promise<any> =>
|
||||
// ── Stage: greeted → classify yes/no for appointment reminder ────────
|
||||
if (stage === "greeted") {
|
||||
const apptDatetime = await getAppointmentDatetime(patient.id);
|
||||
const { reply: aiReply, intent } = await runReminderGraph(Body, aiSettings.apiKey, language, apptDatetime);
|
||||
const { reply: aiReply, intent } = await runReminderGraph(
|
||||
Body, aiSettings.apiKey, language, apptDatetime,
|
||||
chatTemplates.rescheduleGreeting, chatTemplates.generalFallback
|
||||
);
|
||||
if (aiReply) {
|
||||
// YES → done; NO → start rescheduling flow
|
||||
const nextStage: ConversationStage = intent === "no" ? "asked_reschedule_confirm" : "done";
|
||||
let nextStage: ConversationStage;
|
||||
if (intent === "no") nextStage = "asked_reschedule_confirm";
|
||||
else if (intent === "wants_appointment") nextStage = "asked_new_or_existing";
|
||||
else nextStage = "done";
|
||||
return reply(aiReply, nextStage);
|
||||
}
|
||||
}
|
||||
@@ -332,7 +336,7 @@ router.post("/webhook/sms", async (req: Request, res: Response): Promise<any> =>
|
||||
|
||||
// Reply now — Selenium runs in the background
|
||||
await saveOutbound(patient.id, checkingMsg);
|
||||
setStage(patient.userId, patient.id, "done");
|
||||
await setStage(patient.userId, patient.id, "done");
|
||||
res.set("Content-Type", "text/xml");
|
||||
res.send(twimlReply(checkingMsg));
|
||||
|
||||
@@ -380,7 +384,7 @@ router.post("/webhook/sms", async (req: Request, res: Response): Promise<any> =>
|
||||
const checkingMsg = checkingMessages[language] ?? checkingMessages["English"]!;
|
||||
|
||||
await saveOutbound(patient.id, checkingMsg);
|
||||
setStage(patient.userId, patient.id, "done");
|
||||
await setStage(patient.userId, patient.id, "done");
|
||||
res.set("Content-Type", "text/xml");
|
||||
res.send(twimlReply(checkingMsg));
|
||||
|
||||
@@ -403,7 +407,7 @@ router.post("/webhook/sms", async (req: Request, res: Response): Promise<any> =>
|
||||
];
|
||||
if (newPatientStages.includes(stage)) {
|
||||
const { reply: aiReply, nextStage } = await runNewPatientStep(
|
||||
Body, stage, language, aiSettings.apiKey
|
||||
Body, stage, language, aiSettings.apiKey, chatTemplates.generalFallback
|
||||
);
|
||||
return reply(aiReply, nextStage);
|
||||
}
|
||||
@@ -411,14 +415,10 @@ router.post("/webhook/sms", async (req: Request, res: Response): Promise<any> =>
|
||||
// ── Stage: initial (no active conversation) ───────────────────────────
|
||||
// Check after-hours: if enabled and currently outside office hours → start new-patient flow
|
||||
if (stage === "initial" || stage === "done") {
|
||||
const afterHoursEnabled = getAfterHoursHandoff(patient.userId);
|
||||
const afterHoursEnabled = await getAfterHoursHandoff(patient.userId);
|
||||
const outsideHours = await isAfterHours(patient.userId);
|
||||
|
||||
if (afterHoursEnabled && outsideHours) {
|
||||
const chatTemplates = await storage.getAiChatTemplates(patient.userId);
|
||||
const officeContact = await storage.getOfficeContact(patient.userId);
|
||||
const officeName = (officeContact as any)?.officeName?.trim() || "";
|
||||
|
||||
const rawGreeting = chatTemplates.newPatientGreeting ||
|
||||
`Hi! My name is Lisa, the dedicated AI assistant at {officeName}. I can help you schedule an appointment, check your insurance, and answer general questions 24/7. How can I help you today?`;
|
||||
|
||||
|
||||
@@ -94,11 +94,11 @@ router.post("/send-sms", async (req: Request, res: Response): Promise<any> => {
|
||||
});
|
||||
// Set conversation stage based on which flow was started
|
||||
if (startFlow === "new_patient") {
|
||||
startNewPatientConversation(userId, pid);
|
||||
await startNewPatientConversation(userId, pid);
|
||||
} else if (startFlow === "reschedule") {
|
||||
startRescheduleConversation(userId, pid);
|
||||
await startRescheduleConversation(userId, pid);
|
||||
} else {
|
||||
resetConversation(userId, pid);
|
||||
await resetConversation(userId, pid);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ router.get("/after-hours-handoff", async (req: Request, res: Response): Promise<
|
||||
try {
|
||||
const userId = req.user?.id;
|
||||
if (!userId) return res.status(401).json({ message: "Unauthorized" });
|
||||
return res.status(200).json({ enabled: getAfterHoursHandoff(userId) });
|
||||
return res.status(200).json({ enabled: await getAfterHoursHandoff(userId) });
|
||||
} catch (err) {
|
||||
return res.status(500).json({ error: "Failed to get after-hours handoff state" });
|
||||
}
|
||||
@@ -153,7 +153,7 @@ router.put("/after-hours-handoff", async (req: Request, res: Response): Promise<
|
||||
if (!userId) return res.status(401).json({ message: "Unauthorized" });
|
||||
const { enabled } = req.body;
|
||||
if (typeof enabled !== "boolean") return res.status(400).json({ message: "enabled must be a boolean" });
|
||||
setAfterHoursHandoff(userId, enabled);
|
||||
await setAfterHoursHandoff(userId, enabled);
|
||||
return res.status(200).json({ enabled });
|
||||
} catch (err) {
|
||||
return res.status(500).json({ error: "Failed to set after-hours handoff state" });
|
||||
@@ -167,7 +167,7 @@ router.get("/ai-handoff/:patientId", async (req: Request, res: Response): Promis
|
||||
if (!userId) return res.status(401).json({ message: "Unauthorized" });
|
||||
const patientId = parseInt(req.params.patientId);
|
||||
if (isNaN(patientId)) return res.status(400).json({ message: "Invalid patientId" });
|
||||
return res.status(200).json({ enabled: getHandoff(userId, patientId) });
|
||||
return res.status(200).json({ enabled: await getHandoff(userId, patientId) });
|
||||
} catch (err) {
|
||||
return res.status(500).json({ error: "Failed to get AI handoff state" });
|
||||
}
|
||||
@@ -182,7 +182,7 @@ router.put("/ai-handoff/:patientId", async (req: Request, res: Response): Promis
|
||||
if (isNaN(patientId)) return res.status(400).json({ message: "Invalid patientId" });
|
||||
const { enabled } = req.body;
|
||||
if (typeof enabled !== "boolean") return res.status(400).json({ message: "enabled must be a boolean" });
|
||||
setHandoff(userId, patientId, enabled);
|
||||
await setHandoff(userId, patientId, enabled);
|
||||
return res.status(200).json({ enabled });
|
||||
} catch (err) {
|
||||
return res.status(500).json({ error: "Failed to set AI handoff state" });
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -421,7 +421,8 @@ exports.Prisma.TwilioSettingsScalarFieldEnum = {
|
||||
exports.Prisma.AiSettingsScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
apiKey: 'apiKey'
|
||||
apiKey: 'apiKey',
|
||||
afterHoursEnabled: 'afterHoursEnabled'
|
||||
};
|
||||
|
||||
exports.Prisma.OfficeHoursScalarFieldEnum = {
|
||||
@@ -455,6 +456,15 @@ exports.Prisma.ProcedureTimeslotScalarFieldEnum = {
|
||||
data: 'data'
|
||||
};
|
||||
|
||||
exports.Prisma.PatientConversationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
patientId: 'patientId',
|
||||
userId: 'userId',
|
||||
stage: 'stage',
|
||||
aiHandoff: 'aiHandoff',
|
||||
updatedAt: 'updatedAt'
|
||||
};
|
||||
|
||||
exports.Prisma.SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -602,7 +612,8 @@ exports.Prisma.ModelName = {
|
||||
OfficeHours: 'OfficeHours',
|
||||
OfficeContact: 'OfficeContact',
|
||||
InsuranceContact: 'InsuranceContact',
|
||||
ProcedureTimeslot: 'ProcedureTimeslot'
|
||||
ProcedureTimeslot: 'ProcedureTimeslot',
|
||||
PatientConversation: 'PatientConversation'
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
2116
packages/db/generated/prisma/index.d.ts
vendored
2116
packages/db/generated/prisma/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "prisma-client-15a1f883083e7bed207e0ace797742e2241c3e7ca8304117cb9604fe5f882a3f",
|
||||
"name": "prisma-client-841b8b7214f98d624249fcce8221ef527e6df11b7ccf3685b686d6606451965c",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"browser": "default.js",
|
||||
|
||||
@@ -43,6 +43,7 @@ model User {
|
||||
officeContact OfficeContact?
|
||||
procedureTimeslot ProcedureTimeslot?
|
||||
insuranceContacts InsuranceContact[]
|
||||
patientConversations PatientConversation[]
|
||||
}
|
||||
|
||||
model Patient {
|
||||
@@ -75,6 +76,7 @@ model Patient {
|
||||
payment Payment[]
|
||||
communications Communication[]
|
||||
documents PatientDocument[]
|
||||
conversation PatientConversation?
|
||||
|
||||
@@index([insuranceId])
|
||||
@@index([createdAt])
|
||||
@@ -572,9 +574,10 @@ model TwilioSettings {
|
||||
}
|
||||
|
||||
model AiSettings {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int @unique
|
||||
apiKey String
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int @unique
|
||||
apiKey String
|
||||
afterHoursEnabled Boolean @default(true)
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@ -627,3 +630,17 @@ model ProcedureTimeslot {
|
||||
|
||||
@@map("procedure_timeslot")
|
||||
}
|
||||
|
||||
model PatientConversation {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int @unique
|
||||
userId Int
|
||||
stage String @default("initial")
|
||||
aiHandoff Boolean @default(true)
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@map("patient_conversation")
|
||||
}
|
||||
|
||||
@@ -37,12 +37,13 @@ model User {
|
||||
cloudFolders CloudFolder[]
|
||||
cloudFiles CloudFile[]
|
||||
communications Communication[]
|
||||
twilioSettings TwilioSettings?
|
||||
aiSettings AiSettings?
|
||||
officeHours OfficeHours?
|
||||
officeContact OfficeContact?
|
||||
procedureTimeslot ProcedureTimeslot?
|
||||
insuranceContacts InsuranceContact[]
|
||||
twilioSettings TwilioSettings?
|
||||
aiSettings AiSettings?
|
||||
officeHours OfficeHours?
|
||||
officeContact OfficeContact?
|
||||
procedureTimeslot ProcedureTimeslot?
|
||||
insuranceContacts InsuranceContact[]
|
||||
patientConversations PatientConversation[]
|
||||
}
|
||||
|
||||
model Patient {
|
||||
@@ -75,6 +76,7 @@ model Patient {
|
||||
payment Payment[]
|
||||
communications Communication[]
|
||||
documents PatientDocument[]
|
||||
conversation PatientConversation?
|
||||
|
||||
@@index([insuranceId])
|
||||
@@index([createdAt])
|
||||
@@ -573,9 +575,10 @@ model TwilioSettings {
|
||||
}
|
||||
|
||||
model AiSettings {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int @unique
|
||||
apiKey String
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int @unique
|
||||
apiKey String
|
||||
afterHoursEnabled Boolean @default(true)
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@ -628,3 +631,17 @@ model ProcedureTimeslot {
|
||||
|
||||
@@map("procedure_timeslot")
|
||||
}
|
||||
|
||||
model PatientConversation {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int @unique
|
||||
userId Int
|
||||
stage String @default("initial")
|
||||
aiHandoff Boolean @default(true)
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@map("patient_conversation")
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"generatorVersion": "1.0.0",
|
||||
"generatedAt": "2026-05-07T20:30:52.275Z",
|
||||
"generatedAt": "2026-05-08T23:38:39.880Z",
|
||||
"outputPath": "/home/ee/Desktop/DentalManagementMH05/packages/db/shared",
|
||||
"files": [
|
||||
"schemas/enums/TransactionIsolationLevel.schema.ts",
|
||||
@@ -35,6 +35,7 @@
|
||||
"schemas/enums/OfficeContactScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/InsuranceContactScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/ProcedureTimeslotScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/PatientConversationScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/SortOrder.schema.ts",
|
||||
"schemas/enums/NullableJsonNullValueInput.schema.ts",
|
||||
"schemas/enums/JsonNullValueInput.schema.ts",
|
||||
@@ -203,6 +204,11 @@
|
||||
"schemas/objects/ProcedureTimeslotWhereUniqueInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotOrderByWithAggregationInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotScalarWhereWithAggregatesInput.schema.ts",
|
||||
"schemas/objects/PatientConversationWhereInput.schema.ts",
|
||||
"schemas/objects/PatientConversationOrderByWithRelationInput.schema.ts",
|
||||
"schemas/objects/PatientConversationWhereUniqueInput.schema.ts",
|
||||
"schemas/objects/PatientConversationOrderByWithAggregationInput.schema.ts",
|
||||
"schemas/objects/PatientConversationScalarWhereWithAggregatesInput.schema.ts",
|
||||
"schemas/objects/UserCreateInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedCreateInput.schema.ts",
|
||||
"schemas/objects/UserUpdateInput.schema.ts",
|
||||
@@ -413,6 +419,13 @@
|
||||
"schemas/objects/ProcedureTimeslotCreateManyInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotUpdateManyMutationInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotUncheckedUpdateManyInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedCreateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedUpdateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateManyInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateManyMutationInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedUpdateManyInput.schema.ts",
|
||||
"schemas/objects/IntFilter.schema.ts",
|
||||
"schemas/objects/StringFilter.schema.ts",
|
||||
"schemas/objects/BoolFilter.schema.ts",
|
||||
@@ -435,6 +448,7 @@
|
||||
"schemas/objects/OfficeContactNullableScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotNullableScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/InsuranceContactListRelationFilter.schema.ts",
|
||||
"schemas/objects/PatientConversationListRelationFilter.schema.ts",
|
||||
"schemas/objects/PatientOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/AppointmentOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/StaffOrderByRelationAggregateInput.schema.ts",
|
||||
@@ -449,6 +463,7 @@
|
||||
"schemas/objects/CloudFileOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/CommunicationOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/UserCountOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/UserAvgOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/UserMaxOrderByAggregateInput.schema.ts",
|
||||
@@ -465,6 +480,7 @@
|
||||
"schemas/objects/AppointmentProcedureListRelationFilter.schema.ts",
|
||||
"schemas/objects/PdfGroupListRelationFilter.schema.ts",
|
||||
"schemas/objects/PatientDocumentListRelationFilter.schema.ts",
|
||||
"schemas/objects/PatientConversationNullableScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/SortOrderInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/PdfGroupOrderByRelationAggregateInput.schema.ts",
|
||||
@@ -683,6 +699,11 @@
|
||||
"schemas/objects/ProcedureTimeslotMaxOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotMinOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotSumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCountOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationAvgOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationMaxOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationMinOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationSumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AppointmentCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/StaffCreateNestedManyWithoutUserInput.schema.ts",
|
||||
@@ -702,6 +723,7 @@
|
||||
"schemas/objects/OfficeContactCreateNestedOneWithoutUserInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotCreateNestedOneWithoutUserInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/StaffUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
@@ -721,6 +743,7 @@
|
||||
"schemas/objects/OfficeContactUncheckedCreateNestedOneWithoutUserInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/StringFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/BoolFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
@@ -742,6 +765,7 @@
|
||||
"schemas/objects/OfficeContactUpdateOneWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotUpdateOneWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/IntFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
@@ -762,6 +786,7 @@
|
||||
"schemas/objects/OfficeContactUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/AppointmentCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
@@ -770,6 +795,7 @@
|
||||
"schemas/objects/PaymentCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CommunicationCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateNestedOneWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/ClaimUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
@@ -777,6 +803,7 @@
|
||||
"schemas/objects/PaymentUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CommunicationUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/NullableDateTimeFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/NullableStringFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/EnumPatientStatusFieldUpdateOperationsInput.schema.ts",
|
||||
@@ -789,6 +816,7 @@
|
||||
"schemas/objects/PaymentUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/CommunicationUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateOneWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/ClaimUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
@@ -796,6 +824,7 @@
|
||||
"schemas/objects/PaymentUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/CommunicationUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedUpdateOneWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientCreateNestedOneWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/StaffCreateNestedOneWithoutAppointmentsInput.schema.ts",
|
||||
@@ -964,6 +993,10 @@
|
||||
"schemas/objects/UserUpdateOneRequiredWithoutInsuranceContactsNestedInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutProcedureTimeslotInput.schema.ts",
|
||||
"schemas/objects/UserUpdateOneRequiredWithoutProcedureTimeslotNestedInput.schema.ts",
|
||||
"schemas/objects/PatientCreateNestedOneWithoutConversationInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutPatientConversationsInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateOneRequiredWithoutConversationNestedInput.schema.ts",
|
||||
"schemas/objects/UserUpdateOneRequiredWithoutPatientConversationsNestedInput.schema.ts",
|
||||
"schemas/objects/NestedIntFilter.schema.ts",
|
||||
"schemas/objects/NestedStringFilter.schema.ts",
|
||||
"schemas/objects/NestedBoolFilter.schema.ts",
|
||||
@@ -1085,6 +1118,10 @@
|
||||
"schemas/objects/InsuranceContactUncheckedCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactCreateOrConnectWithoutUserInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactCreateManyUserInputEnvelope.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateOrConnectWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateManyUserInputEnvelope.schema.ts",
|
||||
"schemas/objects/PatientUpsertWithWhereUniqueWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateWithWhereUniqueWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateManyWithWhereWithoutUserInput.schema.ts",
|
||||
@@ -1161,6 +1198,10 @@
|
||||
"schemas/objects/InsuranceContactUpdateWithWhereUniqueWithoutUserInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactUpdateManyWithWhereWithoutUserInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactScalarWhereInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpsertWithWhereUniqueWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateWithWhereUniqueWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateManyWithWhereWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationScalarWhereInput.schema.ts",
|
||||
"schemas/objects/UserCreateWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedCreateWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/UserCreateOrConnectWithoutPatientsInput.schema.ts",
|
||||
@@ -1192,6 +1233,9 @@
|
||||
"schemas/objects/PatientDocumentUncheckedCreateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentCreateOrConnectWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentCreateManyPatientInputEnvelope.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedCreateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateOrConnectWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/UserUpsertWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateToOneWithWhereWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateWithoutPatientsInput.schema.ts",
|
||||
@@ -1220,6 +1264,10 @@
|
||||
"schemas/objects/PatientDocumentUpdateWithWhereUniqueWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUpdateManyWithWhereWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentScalarWhereInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpsertWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateToOneWithWhereWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientCreateWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedCreateWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/PatientCreateOrConnectWithoutAppointmentsInput.schema.ts",
|
||||
@@ -1639,6 +1687,20 @@
|
||||
"schemas/objects/UserUpdateToOneWithWhereWithoutProcedureTimeslotInput.schema.ts",
|
||||
"schemas/objects/UserUpdateWithoutProcedureTimeslotInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedUpdateWithoutProcedureTimeslotInput.schema.ts",
|
||||
"schemas/objects/PatientCreateWithoutConversationInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedCreateWithoutConversationInput.schema.ts",
|
||||
"schemas/objects/PatientCreateOrConnectWithoutConversationInput.schema.ts",
|
||||
"schemas/objects/UserCreateWithoutPatientConversationsInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedCreateWithoutPatientConversationsInput.schema.ts",
|
||||
"schemas/objects/UserCreateOrConnectWithoutPatientConversationsInput.schema.ts",
|
||||
"schemas/objects/PatientUpsertWithoutConversationInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateToOneWithWhereWithoutConversationInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateWithoutConversationInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedUpdateWithoutConversationInput.schema.ts",
|
||||
"schemas/objects/UserUpsertWithoutPatientConversationsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateToOneWithWhereWithoutPatientConversationsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateWithoutPatientConversationsInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedUpdateWithoutPatientConversationsInput.schema.ts",
|
||||
"schemas/objects/PatientCreateManyUserInput.schema.ts",
|
||||
"schemas/objects/AppointmentCreateManyUserInput.schema.ts",
|
||||
"schemas/objects/StaffCreateManyUserInput.schema.ts",
|
||||
@@ -1653,6 +1715,7 @@
|
||||
"schemas/objects/CloudFileCreateManyUserInput.schema.ts",
|
||||
"schemas/objects/CommunicationCreateManyUserInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactCreateManyUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateManyUserInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedUpdateManyWithoutUserInput.schema.ts",
|
||||
@@ -1695,6 +1758,9 @@
|
||||
"schemas/objects/InsuranceContactUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactUncheckedUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/InsuranceContactUncheckedUpdateManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedUpdateManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AppointmentCreateManyPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureCreateManyPatientInput.schema.ts",
|
||||
"schemas/objects/ClaimCreateManyPatientInput.schema.ts",
|
||||
@@ -1937,6 +2003,11 @@
|
||||
"schemas/objects/ProcedureTimeslotSumAggregateInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotMinAggregateInput.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotMaxAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCountAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationAvgAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationSumAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationMinAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientConversationMaxAggregateInput.schema.ts",
|
||||
"schemas/objects/UserCountOutputTypeSelect.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeSelect.schema.ts",
|
||||
"schemas/objects/AppointmentCountOutputTypeSelect.schema.ts",
|
||||
@@ -1963,6 +2034,7 @@
|
||||
"schemas/objects/UserCountOutputTypeCountCloudFilesArgs.schema.ts",
|
||||
"schemas/objects/UserCountOutputTypeCountCommunicationsArgs.schema.ts",
|
||||
"schemas/objects/UserCountOutputTypeCountInsuranceContactsArgs.schema.ts",
|
||||
"schemas/objects/UserCountOutputTypeCountPatientConversationsArgs.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeArgs.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeCountAppointmentsArgs.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeCountProceduresArgs.schema.ts",
|
||||
@@ -2026,6 +2098,7 @@
|
||||
"schemas/objects/OfficeContactSelect.schema.ts",
|
||||
"schemas/objects/InsuranceContactSelect.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotSelect.schema.ts",
|
||||
"schemas/objects/PatientConversationSelect.schema.ts",
|
||||
"schemas/objects/UserArgs.schema.ts",
|
||||
"schemas/objects/PatientArgs.schema.ts",
|
||||
"schemas/objects/AppointmentArgs.schema.ts",
|
||||
@@ -2056,6 +2129,7 @@
|
||||
"schemas/objects/OfficeContactArgs.schema.ts",
|
||||
"schemas/objects/InsuranceContactArgs.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotArgs.schema.ts",
|
||||
"schemas/objects/PatientConversationArgs.schema.ts",
|
||||
"schemas/objects/UserInclude.schema.ts",
|
||||
"schemas/objects/PatientInclude.schema.ts",
|
||||
"schemas/objects/AppointmentInclude.schema.ts",
|
||||
@@ -2085,6 +2159,7 @@
|
||||
"schemas/objects/OfficeContactInclude.schema.ts",
|
||||
"schemas/objects/InsuranceContactInclude.schema.ts",
|
||||
"schemas/objects/ProcedureTimeslotInclude.schema.ts",
|
||||
"schemas/objects/PatientConversationInclude.schema.ts",
|
||||
"schemas/findUniqueUser.schema.ts",
|
||||
"schemas/findUniqueOrThrowUser.schema.ts",
|
||||
"schemas/findFirstUser.schema.ts",
|
||||
@@ -2595,6 +2670,23 @@
|
||||
"schemas/upsertOneProcedureTimeslot.schema.ts",
|
||||
"schemas/aggregateProcedureTimeslot.schema.ts",
|
||||
"schemas/groupByProcedureTimeslot.schema.ts",
|
||||
"schemas/findUniquePatientConversation.schema.ts",
|
||||
"schemas/findUniqueOrThrowPatientConversation.schema.ts",
|
||||
"schemas/findFirstPatientConversation.schema.ts",
|
||||
"schemas/findFirstOrThrowPatientConversation.schema.ts",
|
||||
"schemas/findManyPatientConversation.schema.ts",
|
||||
"schemas/countPatientConversation.schema.ts",
|
||||
"schemas/createOnePatientConversation.schema.ts",
|
||||
"schemas/createManyPatientConversation.schema.ts",
|
||||
"schemas/createManyAndReturnPatientConversation.schema.ts",
|
||||
"schemas/deleteOnePatientConversation.schema.ts",
|
||||
"schemas/deleteManyPatientConversation.schema.ts",
|
||||
"schemas/updateOnePatientConversation.schema.ts",
|
||||
"schemas/updateManyPatientConversation.schema.ts",
|
||||
"schemas/updateManyAndReturnPatientConversation.schema.ts",
|
||||
"schemas/upsertOnePatientConversation.schema.ts",
|
||||
"schemas/aggregatePatientConversation.schema.ts",
|
||||
"schemas/groupByPatientConversation.schema.ts",
|
||||
"schemas/results/UserFindUniqueResult.schema.ts",
|
||||
"schemas/results/UserFindFirstResult.schema.ts",
|
||||
"schemas/results/UserFindManyResult.schema.ts",
|
||||
@@ -2985,6 +3077,19 @@
|
||||
"schemas/results/ProcedureTimeslotAggregateResult.schema.ts",
|
||||
"schemas/results/ProcedureTimeslotGroupByResult.schema.ts",
|
||||
"schemas/results/ProcedureTimeslotCountResult.schema.ts",
|
||||
"schemas/results/PatientConversationFindUniqueResult.schema.ts",
|
||||
"schemas/results/PatientConversationFindFirstResult.schema.ts",
|
||||
"schemas/results/PatientConversationFindManyResult.schema.ts",
|
||||
"schemas/results/PatientConversationCreateResult.schema.ts",
|
||||
"schemas/results/PatientConversationCreateManyResult.schema.ts",
|
||||
"schemas/results/PatientConversationUpdateResult.schema.ts",
|
||||
"schemas/results/PatientConversationUpdateManyResult.schema.ts",
|
||||
"schemas/results/PatientConversationUpsertResult.schema.ts",
|
||||
"schemas/results/PatientConversationDeleteResult.schema.ts",
|
||||
"schemas/results/PatientConversationDeleteManyResult.schema.ts",
|
||||
"schemas/results/PatientConversationAggregateResult.schema.ts",
|
||||
"schemas/results/PatientConversationGroupByResult.schema.ts",
|
||||
"schemas/results/PatientConversationCountResult.schema.ts",
|
||||
"schemas/results/index.ts",
|
||||
"schemas/index.ts",
|
||||
"schemas/variants/pure/User.pure.ts",
|
||||
@@ -3017,6 +3122,7 @@
|
||||
"schemas/variants/pure/OfficeContact.pure.ts",
|
||||
"schemas/variants/pure/InsuranceContact.pure.ts",
|
||||
"schemas/variants/pure/ProcedureTimeslot.pure.ts",
|
||||
"schemas/variants/pure/PatientConversation.pure.ts",
|
||||
"schemas/variants/pure/index.ts",
|
||||
"schemas/variants/input/User.input.ts",
|
||||
"schemas/variants/input/Patient.input.ts",
|
||||
@@ -3048,6 +3154,7 @@
|
||||
"schemas/variants/input/OfficeContact.input.ts",
|
||||
"schemas/variants/input/InsuranceContact.input.ts",
|
||||
"schemas/variants/input/ProcedureTimeslot.input.ts",
|
||||
"schemas/variants/input/PatientConversation.input.ts",
|
||||
"schemas/variants/input/index.ts",
|
||||
"schemas/variants/result/User.result.ts",
|
||||
"schemas/variants/result/Patient.result.ts",
|
||||
@@ -3079,6 +3186,7 @@
|
||||
"schemas/variants/result/OfficeContact.result.ts",
|
||||
"schemas/variants/result/InsuranceContact.result.ts",
|
||||
"schemas/variants/result/ProcedureTimeslot.result.ts",
|
||||
"schemas/variants/result/PatientConversation.result.ts",
|
||||
"schemas/variants/result/index.ts",
|
||||
"schemas/variants/index.ts"
|
||||
],
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationOrderByWithRelationInputObjectSchema as PatientConversationOrderByWithRelationInputObjectSchema } from './objects/PatientConversationOrderByWithRelationInput.schema';
|
||||
import { PatientConversationWhereInputObjectSchema as PatientConversationWhereInputObjectSchema } from './objects/PatientConversationWhereInput.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './objects/PatientConversationWhereUniqueInput.schema';
|
||||
import { PatientConversationCountAggregateInputObjectSchema as PatientConversationCountAggregateInputObjectSchema } from './objects/PatientConversationCountAggregateInput.schema';
|
||||
import { PatientConversationMinAggregateInputObjectSchema as PatientConversationMinAggregateInputObjectSchema } from './objects/PatientConversationMinAggregateInput.schema';
|
||||
import { PatientConversationMaxAggregateInputObjectSchema as PatientConversationMaxAggregateInputObjectSchema } from './objects/PatientConversationMaxAggregateInput.schema';
|
||||
import { PatientConversationAvgAggregateInputObjectSchema as PatientConversationAvgAggregateInputObjectSchema } from './objects/PatientConversationAvgAggregateInput.schema';
|
||||
import { PatientConversationSumAggregateInputObjectSchema as PatientConversationSumAggregateInputObjectSchema } from './objects/PatientConversationSumAggregateInput.schema';
|
||||
|
||||
export const PatientConversationAggregateSchema: z.ZodType<Prisma.PatientConversationAggregateArgs> = z.object({ orderBy: z.union([PatientConversationOrderByWithRelationInputObjectSchema, PatientConversationOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientConversationWhereInputObjectSchema.optional(), cursor: PatientConversationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), PatientConversationCountAggregateInputObjectSchema ]).optional(), _min: PatientConversationMinAggregateInputObjectSchema.optional(), _max: PatientConversationMaxAggregateInputObjectSchema.optional(), _avg: PatientConversationAvgAggregateInputObjectSchema.optional(), _sum: PatientConversationSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.PatientConversationAggregateArgs>;
|
||||
|
||||
export const PatientConversationAggregateZodSchema = z.object({ orderBy: z.union([PatientConversationOrderByWithRelationInputObjectSchema, PatientConversationOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientConversationWhereInputObjectSchema.optional(), cursor: PatientConversationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), PatientConversationCountAggregateInputObjectSchema ]).optional(), _min: PatientConversationMinAggregateInputObjectSchema.optional(), _max: PatientConversationMaxAggregateInputObjectSchema.optional(), _avg: PatientConversationAvgAggregateInputObjectSchema.optional(), _sum: PatientConversationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationOrderByWithRelationInputObjectSchema as PatientConversationOrderByWithRelationInputObjectSchema } from './objects/PatientConversationOrderByWithRelationInput.schema';
|
||||
import { PatientConversationWhereInputObjectSchema as PatientConversationWhereInputObjectSchema } from './objects/PatientConversationWhereInput.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './objects/PatientConversationWhereUniqueInput.schema';
|
||||
import { PatientConversationCountAggregateInputObjectSchema as PatientConversationCountAggregateInputObjectSchema } from './objects/PatientConversationCountAggregateInput.schema';
|
||||
|
||||
export const PatientConversationCountSchema: z.ZodType<Prisma.PatientConversationCountArgs> = z.object({ orderBy: z.union([PatientConversationOrderByWithRelationInputObjectSchema, PatientConversationOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientConversationWhereInputObjectSchema.optional(), cursor: PatientConversationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), PatientConversationCountAggregateInputObjectSchema ]).optional() }).strict() as unknown as z.ZodType<Prisma.PatientConversationCountArgs>;
|
||||
|
||||
export const PatientConversationCountZodSchema = z.object({ orderBy: z.union([PatientConversationOrderByWithRelationInputObjectSchema, PatientConversationOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientConversationWhereInputObjectSchema.optional(), cursor: PatientConversationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), PatientConversationCountAggregateInputObjectSchema ]).optional() }).strict();
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationSelectObjectSchema as PatientConversationSelectObjectSchema } from './objects/PatientConversationSelect.schema';
|
||||
import { PatientConversationCreateManyInputObjectSchema as PatientConversationCreateManyInputObjectSchema } from './objects/PatientConversationCreateManyInput.schema';
|
||||
|
||||
export const PatientConversationCreateManyAndReturnSchema: z.ZodType<Prisma.PatientConversationCreateManyAndReturnArgs> = z.object({ select: PatientConversationSelectObjectSchema.optional(), data: z.union([ PatientConversationCreateManyInputObjectSchema, z.array(PatientConversationCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.PatientConversationCreateManyAndReturnArgs>;
|
||||
|
||||
export const PatientConversationCreateManyAndReturnZodSchema = z.object({ select: PatientConversationSelectObjectSchema.optional(), data: z.union([ PatientConversationCreateManyInputObjectSchema, z.array(PatientConversationCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationCreateManyInputObjectSchema as PatientConversationCreateManyInputObjectSchema } from './objects/PatientConversationCreateManyInput.schema';
|
||||
|
||||
export const PatientConversationCreateManySchema: z.ZodType<Prisma.PatientConversationCreateManyArgs> = z.object({ data: z.union([ PatientConversationCreateManyInputObjectSchema, z.array(PatientConversationCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.PatientConversationCreateManyArgs>;
|
||||
|
||||
export const PatientConversationCreateManyZodSchema = z.object({ data: z.union([ PatientConversationCreateManyInputObjectSchema, z.array(PatientConversationCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();
|
||||
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationSelectObjectSchema as PatientConversationSelectObjectSchema } from './objects/PatientConversationSelect.schema';
|
||||
import { PatientConversationIncludeObjectSchema as PatientConversationIncludeObjectSchema } from './objects/PatientConversationInclude.schema';
|
||||
import { PatientConversationCreateInputObjectSchema as PatientConversationCreateInputObjectSchema } from './objects/PatientConversationCreateInput.schema';
|
||||
import { PatientConversationUncheckedCreateInputObjectSchema as PatientConversationUncheckedCreateInputObjectSchema } from './objects/PatientConversationUncheckedCreateInput.schema';
|
||||
|
||||
export const PatientConversationCreateOneSchema: z.ZodType<Prisma.PatientConversationCreateArgs> = z.object({ select: PatientConversationSelectObjectSchema.optional(), include: PatientConversationIncludeObjectSchema.optional(), data: z.union([PatientConversationCreateInputObjectSchema, PatientConversationUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.PatientConversationCreateArgs>;
|
||||
|
||||
export const PatientConversationCreateOneZodSchema = z.object({ select: PatientConversationSelectObjectSchema.optional(), include: PatientConversationIncludeObjectSchema.optional(), data: z.union([PatientConversationCreateInputObjectSchema, PatientConversationUncheckedCreateInputObjectSchema]) }).strict();
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationWhereInputObjectSchema as PatientConversationWhereInputObjectSchema } from './objects/PatientConversationWhereInput.schema';
|
||||
|
||||
export const PatientConversationDeleteManySchema: z.ZodType<Prisma.PatientConversationDeleteManyArgs> = z.object({ where: PatientConversationWhereInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.PatientConversationDeleteManyArgs>;
|
||||
|
||||
export const PatientConversationDeleteManyZodSchema = z.object({ where: PatientConversationWhereInputObjectSchema.optional() }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationSelectObjectSchema as PatientConversationSelectObjectSchema } from './objects/PatientConversationSelect.schema';
|
||||
import { PatientConversationIncludeObjectSchema as PatientConversationIncludeObjectSchema } from './objects/PatientConversationInclude.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './objects/PatientConversationWhereUniqueInput.schema';
|
||||
|
||||
export const PatientConversationDeleteOneSchema: z.ZodType<Prisma.PatientConversationDeleteArgs> = z.object({ select: PatientConversationSelectObjectSchema.optional(), include: PatientConversationIncludeObjectSchema.optional(), where: PatientConversationWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.PatientConversationDeleteArgs>;
|
||||
|
||||
export const PatientConversationDeleteOneZodSchema = z.object({ select: PatientConversationSelectObjectSchema.optional(), include: PatientConversationIncludeObjectSchema.optional(), where: PatientConversationWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const AiSettingsScalarFieldEnumSchema = z.enum(['id', 'userId', 'apiKey'])
|
||||
export const AiSettingsScalarFieldEnumSchema = z.enum(['id', 'userId', 'apiKey', 'afterHoursEnabled'])
|
||||
|
||||
export type AiSettingsScalarFieldEnum = z.infer<typeof AiSettingsScalarFieldEnumSchema>;
|
||||
@@ -0,0 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const PatientConversationScalarFieldEnumSchema = z.enum(['id', 'patientId', 'userId', 'stage', 'aiHandoff', 'updatedAt'])
|
||||
|
||||
export type PatientConversationScalarFieldEnum = z.infer<typeof PatientConversationScalarFieldEnumSchema>;
|
||||
@@ -13,6 +13,7 @@ export const AiSettingsFindFirstSelectSchema: z.ZodType<Prisma.AiSettingsSelect>
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
afterHoursEnabled: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
|
||||
|
||||
@@ -20,6 +21,7 @@ export const AiSettingsFindFirstSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
afterHoursEnabled: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ export const AiSettingsFindFirstOrThrowSelectSchema: z.ZodType<Prisma.AiSettings
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
afterHoursEnabled: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
|
||||
|
||||
@@ -20,6 +21,7 @@ export const AiSettingsFindFirstOrThrowSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
afterHoursEnabled: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ export const PatientFindFirstOrThrowSelectSchema: z.ZodType<Prisma.PatientSelect
|
||||
payment: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientSelect>;
|
||||
|
||||
@@ -72,6 +73,7 @@ export const PatientFindFirstOrThrowSelectZodSchema = z.object({
|
||||
payment: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationIncludeObjectSchema as PatientConversationIncludeObjectSchema } from './objects/PatientConversationInclude.schema';
|
||||
import { PatientConversationOrderByWithRelationInputObjectSchema as PatientConversationOrderByWithRelationInputObjectSchema } from './objects/PatientConversationOrderByWithRelationInput.schema';
|
||||
import { PatientConversationWhereInputObjectSchema as PatientConversationWhereInputObjectSchema } from './objects/PatientConversationWhereInput.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './objects/PatientConversationWhereUniqueInput.schema';
|
||||
import { PatientConversationScalarFieldEnumSchema } from './enums/PatientConversationScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const PatientConversationFindFirstOrThrowSelectSchema: z.ZodType<Prisma.PatientConversationSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
stage: z.boolean().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientConversationSelect>;
|
||||
|
||||
export const PatientConversationFindFirstOrThrowSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
stage: z.boolean().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const PatientConversationFindFirstOrThrowSchema: z.ZodType<Prisma.PatientConversationFindFirstOrThrowArgs> = z.object({ select: PatientConversationFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => PatientConversationIncludeObjectSchema.optional()), orderBy: z.union([PatientConversationOrderByWithRelationInputObjectSchema, PatientConversationOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientConversationWhereInputObjectSchema.optional(), cursor: PatientConversationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientConversationScalarFieldEnumSchema, PatientConversationScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.PatientConversationFindFirstOrThrowArgs>;
|
||||
|
||||
export const PatientConversationFindFirstOrThrowZodSchema = z.object({ select: PatientConversationFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => PatientConversationIncludeObjectSchema.optional()), orderBy: z.union([PatientConversationOrderByWithRelationInputObjectSchema, PatientConversationOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientConversationWhereInputObjectSchema.optional(), cursor: PatientConversationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientConversationScalarFieldEnumSchema, PatientConversationScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -34,6 +34,7 @@ export const UserFindFirstOrThrowSelectSchema: z.ZodType<Prisma.UserSelect> = z.
|
||||
officeContact: z.boolean().optional(),
|
||||
procedureTimeslot: z.boolean().optional(),
|
||||
insuranceContacts: z.boolean().optional(),
|
||||
patientConversations: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.UserSelect>;
|
||||
|
||||
@@ -62,6 +63,7 @@ export const UserFindFirstOrThrowSelectZodSchema = z.object({
|
||||
officeContact: z.boolean().optional(),
|
||||
procedureTimeslot: z.boolean().optional(),
|
||||
insuranceContacts: z.boolean().optional(),
|
||||
patientConversations: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ export const PatientFindFirstSelectSchema: z.ZodType<Prisma.PatientSelect> = z.o
|
||||
payment: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientSelect>;
|
||||
|
||||
@@ -72,6 +73,7 @@ export const PatientFindFirstSelectZodSchema = z.object({
|
||||
payment: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationIncludeObjectSchema as PatientConversationIncludeObjectSchema } from './objects/PatientConversationInclude.schema';
|
||||
import { PatientConversationOrderByWithRelationInputObjectSchema as PatientConversationOrderByWithRelationInputObjectSchema } from './objects/PatientConversationOrderByWithRelationInput.schema';
|
||||
import { PatientConversationWhereInputObjectSchema as PatientConversationWhereInputObjectSchema } from './objects/PatientConversationWhereInput.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './objects/PatientConversationWhereUniqueInput.schema';
|
||||
import { PatientConversationScalarFieldEnumSchema } from './enums/PatientConversationScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const PatientConversationFindFirstSelectSchema: z.ZodType<Prisma.PatientConversationSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
stage: z.boolean().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientConversationSelect>;
|
||||
|
||||
export const PatientConversationFindFirstSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
stage: z.boolean().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const PatientConversationFindFirstSchema: z.ZodType<Prisma.PatientConversationFindFirstArgs> = z.object({ select: PatientConversationFindFirstSelectSchema.optional(), include: z.lazy(() => PatientConversationIncludeObjectSchema.optional()), orderBy: z.union([PatientConversationOrderByWithRelationInputObjectSchema, PatientConversationOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientConversationWhereInputObjectSchema.optional(), cursor: PatientConversationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientConversationScalarFieldEnumSchema, PatientConversationScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.PatientConversationFindFirstArgs>;
|
||||
|
||||
export const PatientConversationFindFirstZodSchema = z.object({ select: PatientConversationFindFirstSelectSchema.optional(), include: z.lazy(() => PatientConversationIncludeObjectSchema.optional()), orderBy: z.union([PatientConversationOrderByWithRelationInputObjectSchema, PatientConversationOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientConversationWhereInputObjectSchema.optional(), cursor: PatientConversationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientConversationScalarFieldEnumSchema, PatientConversationScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -34,6 +34,7 @@ export const UserFindFirstSelectSchema: z.ZodType<Prisma.UserSelect> = z.object(
|
||||
officeContact: z.boolean().optional(),
|
||||
procedureTimeslot: z.boolean().optional(),
|
||||
insuranceContacts: z.boolean().optional(),
|
||||
patientConversations: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.UserSelect>;
|
||||
|
||||
@@ -62,6 +63,7 @@ export const UserFindFirstSelectZodSchema = z.object({
|
||||
officeContact: z.boolean().optional(),
|
||||
procedureTimeslot: z.boolean().optional(),
|
||||
insuranceContacts: z.boolean().optional(),
|
||||
patientConversations: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ export const AiSettingsFindManySelectSchema: z.ZodType<Prisma.AiSettingsSelect>
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
afterHoursEnabled: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
|
||||
|
||||
@@ -20,6 +21,7 @@ export const AiSettingsFindManySelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
afterHoursEnabled: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ export const PatientFindManySelectSchema: z.ZodType<Prisma.PatientSelect> = z.ob
|
||||
payment: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientSelect>;
|
||||
|
||||
@@ -72,6 +73,7 @@ export const PatientFindManySelectZodSchema = z.object({
|
||||
payment: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationIncludeObjectSchema as PatientConversationIncludeObjectSchema } from './objects/PatientConversationInclude.schema';
|
||||
import { PatientConversationOrderByWithRelationInputObjectSchema as PatientConversationOrderByWithRelationInputObjectSchema } from './objects/PatientConversationOrderByWithRelationInput.schema';
|
||||
import { PatientConversationWhereInputObjectSchema as PatientConversationWhereInputObjectSchema } from './objects/PatientConversationWhereInput.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './objects/PatientConversationWhereUniqueInput.schema';
|
||||
import { PatientConversationScalarFieldEnumSchema } from './enums/PatientConversationScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const PatientConversationFindManySelectSchema: z.ZodType<Prisma.PatientConversationSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
stage: z.boolean().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientConversationSelect>;
|
||||
|
||||
export const PatientConversationFindManySelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
stage: z.boolean().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const PatientConversationFindManySchema: z.ZodType<Prisma.PatientConversationFindManyArgs> = z.object({ select: PatientConversationFindManySelectSchema.optional(), include: z.lazy(() => PatientConversationIncludeObjectSchema.optional()), orderBy: z.union([PatientConversationOrderByWithRelationInputObjectSchema, PatientConversationOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientConversationWhereInputObjectSchema.optional(), cursor: PatientConversationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientConversationScalarFieldEnumSchema, PatientConversationScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.PatientConversationFindManyArgs>;
|
||||
|
||||
export const PatientConversationFindManyZodSchema = z.object({ select: PatientConversationFindManySelectSchema.optional(), include: z.lazy(() => PatientConversationIncludeObjectSchema.optional()), orderBy: z.union([PatientConversationOrderByWithRelationInputObjectSchema, PatientConversationOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientConversationWhereInputObjectSchema.optional(), cursor: PatientConversationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([PatientConversationScalarFieldEnumSchema, PatientConversationScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -34,6 +34,7 @@ export const UserFindManySelectSchema: z.ZodType<Prisma.UserSelect> = z.object({
|
||||
officeContact: z.boolean().optional(),
|
||||
procedureTimeslot: z.boolean().optional(),
|
||||
insuranceContacts: z.boolean().optional(),
|
||||
patientConversations: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.UserSelect>;
|
||||
|
||||
@@ -62,6 +63,7 @@ export const UserFindManySelectZodSchema = z.object({
|
||||
officeContact: z.boolean().optional(),
|
||||
procedureTimeslot: z.boolean().optional(),
|
||||
insuranceContacts: z.boolean().optional(),
|
||||
patientConversations: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationSelectObjectSchema as PatientConversationSelectObjectSchema } from './objects/PatientConversationSelect.schema';
|
||||
import { PatientConversationIncludeObjectSchema as PatientConversationIncludeObjectSchema } from './objects/PatientConversationInclude.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './objects/PatientConversationWhereUniqueInput.schema';
|
||||
|
||||
export const PatientConversationFindUniqueOrThrowSchema: z.ZodType<Prisma.PatientConversationFindUniqueOrThrowArgs> = z.object({ select: PatientConversationSelectObjectSchema.optional(), include: PatientConversationIncludeObjectSchema.optional(), where: PatientConversationWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.PatientConversationFindUniqueOrThrowArgs>;
|
||||
|
||||
export const PatientConversationFindUniqueOrThrowZodSchema = z.object({ select: PatientConversationSelectObjectSchema.optional(), include: PatientConversationIncludeObjectSchema.optional(), where: PatientConversationWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationSelectObjectSchema as PatientConversationSelectObjectSchema } from './objects/PatientConversationSelect.schema';
|
||||
import { PatientConversationIncludeObjectSchema as PatientConversationIncludeObjectSchema } from './objects/PatientConversationInclude.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './objects/PatientConversationWhereUniqueInput.schema';
|
||||
|
||||
export const PatientConversationFindUniqueSchema: z.ZodType<Prisma.PatientConversationFindUniqueArgs> = z.object({ select: PatientConversationSelectObjectSchema.optional(), include: PatientConversationIncludeObjectSchema.optional(), where: PatientConversationWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.PatientConversationFindUniqueArgs>;
|
||||
|
||||
export const PatientConversationFindUniqueZodSchema = z.object({ select: PatientConversationSelectObjectSchema.optional(), include: PatientConversationIncludeObjectSchema.optional(), where: PatientConversationWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,15 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { PatientConversationWhereInputObjectSchema as PatientConversationWhereInputObjectSchema } from './objects/PatientConversationWhereInput.schema';
|
||||
import { PatientConversationOrderByWithAggregationInputObjectSchema as PatientConversationOrderByWithAggregationInputObjectSchema } from './objects/PatientConversationOrderByWithAggregationInput.schema';
|
||||
import { PatientConversationScalarWhereWithAggregatesInputObjectSchema as PatientConversationScalarWhereWithAggregatesInputObjectSchema } from './objects/PatientConversationScalarWhereWithAggregatesInput.schema';
|
||||
import { PatientConversationScalarFieldEnumSchema } from './enums/PatientConversationScalarFieldEnum.schema';
|
||||
import { PatientConversationCountAggregateInputObjectSchema as PatientConversationCountAggregateInputObjectSchema } from './objects/PatientConversationCountAggregateInput.schema';
|
||||
import { PatientConversationMinAggregateInputObjectSchema as PatientConversationMinAggregateInputObjectSchema } from './objects/PatientConversationMinAggregateInput.schema';
|
||||
import { PatientConversationMaxAggregateInputObjectSchema as PatientConversationMaxAggregateInputObjectSchema } from './objects/PatientConversationMaxAggregateInput.schema';
|
||||
import { PatientConversationAvgAggregateInputObjectSchema as PatientConversationAvgAggregateInputObjectSchema } from './objects/PatientConversationAvgAggregateInput.schema';
|
||||
import { PatientConversationSumAggregateInputObjectSchema as PatientConversationSumAggregateInputObjectSchema } from './objects/PatientConversationSumAggregateInput.schema';
|
||||
|
||||
export const PatientConversationGroupBySchema: z.ZodType<Prisma.PatientConversationGroupByArgs> = z.object({ where: PatientConversationWhereInputObjectSchema.optional(), orderBy: z.union([PatientConversationOrderByWithAggregationInputObjectSchema, PatientConversationOrderByWithAggregationInputObjectSchema.array()]).optional(), having: PatientConversationScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(PatientConversationScalarFieldEnumSchema), _count: z.union([ z.literal(true), PatientConversationCountAggregateInputObjectSchema ]).optional(), _min: PatientConversationMinAggregateInputObjectSchema.optional(), _max: PatientConversationMaxAggregateInputObjectSchema.optional(), _avg: PatientConversationAvgAggregateInputObjectSchema.optional(), _sum: PatientConversationSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.PatientConversationGroupByArgs>;
|
||||
|
||||
export const PatientConversationGroupByZodSchema = z.object({ where: PatientConversationWhereInputObjectSchema.optional(), orderBy: z.union([PatientConversationOrderByWithAggregationInputObjectSchema, PatientConversationOrderByWithAggregationInputObjectSchema.array()]).optional(), having: PatientConversationScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(PatientConversationScalarFieldEnumSchema), _count: z.union([ z.literal(true), PatientConversationCountAggregateInputObjectSchema ]).optional(), _min: PatientConversationMinAggregateInputObjectSchema.optional(), _max: PatientConversationMaxAggregateInputObjectSchema.optional(), _avg: PatientConversationAvgAggregateInputObjectSchema.optional(), _sum: PatientConversationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
@@ -29,6 +29,7 @@ export * from './enums/OfficeHoursScalarFieldEnum.schema'
|
||||
export * from './enums/OfficeContactScalarFieldEnum.schema'
|
||||
export * from './enums/InsuranceContactScalarFieldEnum.schema'
|
||||
export * from './enums/ProcedureTimeslotScalarFieldEnum.schema'
|
||||
export * from './enums/PatientConversationScalarFieldEnum.schema'
|
||||
export * from './enums/SortOrder.schema'
|
||||
export * from './enums/NullableJsonNullValueInput.schema'
|
||||
export * from './enums/JsonNullValueInput.schema'
|
||||
@@ -557,6 +558,23 @@ export * from './updateManyAndReturnProcedureTimeslot.schema'
|
||||
export * from './upsertOneProcedureTimeslot.schema'
|
||||
export * from './aggregateProcedureTimeslot.schema'
|
||||
export * from './groupByProcedureTimeslot.schema'
|
||||
export * from './findUniquePatientConversation.schema'
|
||||
export * from './findUniqueOrThrowPatientConversation.schema'
|
||||
export * from './findFirstPatientConversation.schema'
|
||||
export * from './findFirstOrThrowPatientConversation.schema'
|
||||
export * from './findManyPatientConversation.schema'
|
||||
export * from './countPatientConversation.schema'
|
||||
export * from './createOnePatientConversation.schema'
|
||||
export * from './createManyPatientConversation.schema'
|
||||
export * from './createManyAndReturnPatientConversation.schema'
|
||||
export * from './deleteOnePatientConversation.schema'
|
||||
export * from './deleteManyPatientConversation.schema'
|
||||
export * from './updateOnePatientConversation.schema'
|
||||
export * from './updateManyPatientConversation.schema'
|
||||
export * from './updateManyAndReturnPatientConversation.schema'
|
||||
export * from './upsertOnePatientConversation.schema'
|
||||
export * from './aggregatePatientConversation.schema'
|
||||
export * from './groupByPatientConversation.schema'
|
||||
export * from './results/UserFindUniqueResult.schema'
|
||||
export * from './results/UserFindFirstResult.schema'
|
||||
export * from './results/UserFindManyResult.schema'
|
||||
@@ -947,6 +965,19 @@ export * from './results/ProcedureTimeslotDeleteManyResult.schema'
|
||||
export * from './results/ProcedureTimeslotAggregateResult.schema'
|
||||
export * from './results/ProcedureTimeslotGroupByResult.schema'
|
||||
export * from './results/ProcedureTimeslotCountResult.schema'
|
||||
export * from './results/PatientConversationFindUniqueResult.schema'
|
||||
export * from './results/PatientConversationFindFirstResult.schema'
|
||||
export * from './results/PatientConversationFindManyResult.schema'
|
||||
export * from './results/PatientConversationCreateResult.schema'
|
||||
export * from './results/PatientConversationCreateManyResult.schema'
|
||||
export * from './results/PatientConversationUpdateResult.schema'
|
||||
export * from './results/PatientConversationUpdateManyResult.schema'
|
||||
export * from './results/PatientConversationUpsertResult.schema'
|
||||
export * from './results/PatientConversationDeleteResult.schema'
|
||||
export * from './results/PatientConversationDeleteManyResult.schema'
|
||||
export * from './results/PatientConversationAggregateResult.schema'
|
||||
export * from './results/PatientConversationGroupByResult.schema'
|
||||
export * from './results/PatientConversationCountResult.schema'
|
||||
export * from './results/index'
|
||||
export * from './objects/index'
|
||||
export * from './variants/pure/User.pure'
|
||||
@@ -979,6 +1010,7 @@ export * from './variants/pure/OfficeHours.pure'
|
||||
export * from './variants/pure/OfficeContact.pure'
|
||||
export * from './variants/pure/InsuranceContact.pure'
|
||||
export * from './variants/pure/ProcedureTimeslot.pure'
|
||||
export * from './variants/pure/PatientConversation.pure'
|
||||
export * from './variants/pure/index'
|
||||
export * from './variants/input/User.input'
|
||||
export * from './variants/input/Patient.input'
|
||||
@@ -1010,6 +1042,7 @@ export * from './variants/input/OfficeHours.input'
|
||||
export * from './variants/input/OfficeContact.input'
|
||||
export * from './variants/input/InsuranceContact.input'
|
||||
export * from './variants/input/ProcedureTimeslot.input'
|
||||
export * from './variants/input/PatientConversation.input'
|
||||
export * from './variants/input/index'
|
||||
export * from './variants/result/User.result'
|
||||
export * from './variants/result/Patient.result'
|
||||
@@ -1041,5 +1074,6 @@ export * from './variants/result/OfficeHours.result'
|
||||
export * from './variants/result/OfficeContact.result'
|
||||
export * from './variants/result/InsuranceContact.result'
|
||||
export * from './variants/result/ProcedureTimeslot.result'
|
||||
export * from './variants/result/PatientConversation.result'
|
||||
export * from './variants/result/index'
|
||||
export * from './variants/index'
|
||||
@@ -6,6 +6,7 @@ const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
apiKey: z.literal(true).optional(),
|
||||
afterHoursEnabled: z.literal(true).optional(),
|
||||
_all: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const AiSettingsCountAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsCountAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCountAggregateInputType>;
|
||||
|
||||
@@ -5,7 +5,8 @@ import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
apiKey: SortOrderSchema.optional()
|
||||
apiKey: SortOrderSchema.optional(),
|
||||
afterHoursEnabled: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const AiSettingsCountOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsCountOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCountOrderByAggregateInput>;
|
||||
export const AiSettingsCountOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -4,6 +4,7 @@ import { UserCreateNestedOneWithoutAiSettingsInputObjectSchema as UserCreateNest
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
apiKey: z.string(),
|
||||
afterHoursEnabled: z.boolean().optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutAiSettingsInputObjectSchema)
|
||||
}).strict();
|
||||
export const AiSettingsCreateInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateInput>;
|
||||
|
||||
@@ -5,7 +5,8 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
userId: z.number().int(),
|
||||
apiKey: z.string()
|
||||
apiKey: z.string(),
|
||||
afterHoursEnabled: z.boolean().optional()
|
||||
}).strict();
|
||||
export const AiSettingsCreateManyInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateManyInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateManyInput>;
|
||||
export const AiSettingsCreateManyInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -3,7 +3,8 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
apiKey: z.string()
|
||||
apiKey: z.string(),
|
||||
afterHoursEnabled: z.boolean().optional()
|
||||
}).strict();
|
||||
export const AiSettingsCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateWithoutUserInput>;
|
||||
export const AiSettingsCreateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -5,7 +5,8 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
apiKey: z.literal(true).optional()
|
||||
apiKey: z.literal(true).optional(),
|
||||
afterHoursEnabled: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const AiSettingsMaxAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMaxAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMaxAggregateInputType>;
|
||||
export const AiSettingsMaxAggregateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -5,7 +5,8 @@ import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
apiKey: SortOrderSchema.optional()
|
||||
apiKey: SortOrderSchema.optional(),
|
||||
afterHoursEnabled: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const AiSettingsMaxOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMaxOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMaxOrderByAggregateInput>;
|
||||
export const AiSettingsMaxOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -5,7 +5,8 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
apiKey: z.literal(true).optional()
|
||||
apiKey: z.literal(true).optional(),
|
||||
afterHoursEnabled: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const AiSettingsMinAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMinAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMinAggregateInputType>;
|
||||
export const AiSettingsMinAggregateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -5,7 +5,8 @@ import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
apiKey: SortOrderSchema.optional()
|
||||
apiKey: SortOrderSchema.optional(),
|
||||
afterHoursEnabled: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const AiSettingsMinOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMinOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMinOrderByAggregateInput>;
|
||||
export const AiSettingsMinOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -11,6 +11,7 @@ const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
apiKey: SortOrderSchema.optional(),
|
||||
afterHoursEnabled: SortOrderSchema.optional(),
|
||||
_count: z.lazy(() => AiSettingsCountOrderByAggregateInputObjectSchema).optional(),
|
||||
_avg: z.lazy(() => AiSettingsAvgOrderByAggregateInputObjectSchema).optional(),
|
||||
_max: z.lazy(() => AiSettingsMaxOrderByAggregateInputObjectSchema).optional(),
|
||||
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
apiKey: SortOrderSchema.optional(),
|
||||
afterHoursEnabled: SortOrderSchema.optional(),
|
||||
user: z.lazy(() => UserOrderByWithRelationInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const AiSettingsOrderByWithRelationInputObjectSchema: z.ZodType<Prisma.AiSettingsOrderByWithRelationInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsOrderByWithRelationInput>;
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
|
||||
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema'
|
||||
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
|
||||
import { BoolWithAggregatesFilterObjectSchema as BoolWithAggregatesFilterObjectSchema } from './BoolWithAggregatesFilter.schema'
|
||||
|
||||
const aisettingsscalarwherewithaggregatesinputSchema = z.object({
|
||||
AND: z.union([z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
|
||||
@@ -9,7 +10,8 @@ const aisettingsscalarwherewithaggregatesinputSchema = z.object({
|
||||
NOT: z.union([z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
|
||||
id: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
|
||||
userId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
|
||||
apiKey: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional()
|
||||
apiKey: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
||||
afterHoursEnabled: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsScalarWhereWithAggregatesInputObjectSchema: z.ZodType<Prisma.AiSettingsScalarWhereWithAggregatesInput> = aisettingsscalarwherewithaggregatesinputSchema as unknown as z.ZodType<Prisma.AiSettingsScalarWhereWithAggregatesInput>;
|
||||
export const AiSettingsScalarWhereWithAggregatesInputObjectZodSchema = aisettingsscalarwherewithaggregatesinputSchema;
|
||||
|
||||
@@ -6,6 +6,7 @@ const makeSchema = () => z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
afterHoursEnabled: z.boolean().optional(),
|
||||
user: z.union([z.boolean(), z.lazy(() => UserArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsSelectObjectSchema: z.ZodType<Prisma.AiSettingsSelect> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
|
||||
|
||||
@@ -5,7 +5,8 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
userId: z.number().int(),
|
||||
apiKey: z.string()
|
||||
apiKey: z.string(),
|
||||
afterHoursEnabled: z.boolean().optional()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedCreateInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedCreateInput>;
|
||||
export const AiSettingsUncheckedCreateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -4,7 +4,8 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
apiKey: z.string()
|
||||
apiKey: z.string(),
|
||||
afterHoursEnabled: z.boolean().optional()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedCreateWithoutUserInput>;
|
||||
export const AiSettingsUncheckedCreateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperationsInputObjectSchema } from './BoolFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedUpdateInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateInput>;
|
||||
export const AiSettingsUncheckedUpdateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperationsInputObjectSchema } from './BoolFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedUpdateManyInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateManyInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateManyInput>;
|
||||
export const AiSettingsUncheckedUpdateManyInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperationsInputObjectSchema } from './BoolFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedUpdateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateWithoutUserInput>;
|
||||
export const AiSettingsUncheckedUpdateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperationsInputObjectSchema } from './BoolFieldUpdateOperationsInput.schema';
|
||||
import { UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema as UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutAiSettingsNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
user: z.lazy(() => UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUpdateInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateInput>;
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperationsInputObjectSchema } from './BoolFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUpdateManyMutationInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateManyMutationInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateManyMutationInput>;
|
||||
export const AiSettingsUpdateManyMutationInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperationsInputObjectSchema } from './BoolFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUpdateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateWithoutUserInput>;
|
||||
export const AiSettingsUpdateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -2,6 +2,7 @@ import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
|
||||
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
|
||||
import { BoolFilterObjectSchema as BoolFilterObjectSchema } from './BoolFilter.schema';
|
||||
import { UserScalarRelationFilterObjectSchema as UserScalarRelationFilterObjectSchema } from './UserScalarRelationFilter.schema';
|
||||
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema'
|
||||
|
||||
@@ -12,6 +13,7 @@ const aisettingswhereinputSchema = z.object({
|
||||
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
apiKey: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
||||
afterHoursEnabled: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(),
|
||||
user: z.union([z.lazy(() => UserScalarRelationFilterObjectSchema), z.lazy(() => UserWhereInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsWhereInputObjectSchema: z.ZodType<Prisma.AiSettingsWhereInput> = aisettingswhereinputSchema as unknown as z.ZodType<Prisma.AiSettingsWhereInput>;
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationSelectObjectSchema as PatientConversationSelectObjectSchema } from './PatientConversationSelect.schema';
|
||||
import { PatientConversationIncludeObjectSchema as PatientConversationIncludeObjectSchema } from './PatientConversationInclude.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
select: z.lazy(() => PatientConversationSelectObjectSchema).optional(),
|
||||
include: z.lazy(() => PatientConversationIncludeObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientConversationArgsObjectSchema = makeSchema();
|
||||
export const PatientConversationArgsObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const PatientConversationAvgAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationAvgAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationAvgAggregateInputType>;
|
||||
export const PatientConversationAvgAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientConversationAvgOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationAvgOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationAvgOrderByAggregateInput>;
|
||||
export const PatientConversationAvgOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,15 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
stage: z.literal(true).optional(),
|
||||
aiHandoff: z.literal(true).optional(),
|
||||
updatedAt: z.literal(true).optional(),
|
||||
_all: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const PatientConversationCountAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationCountAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCountAggregateInputType>;
|
||||
export const PatientConversationCountAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
stage: SortOrderSchema.optional(),
|
||||
aiHandoff: SortOrderSchema.optional(),
|
||||
updatedAt: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientConversationCountOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationCountOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCountOrderByAggregateInput>;
|
||||
export const PatientConversationCountOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientCreateNestedOneWithoutConversationInputObjectSchema as PatientCreateNestedOneWithoutConversationInputObjectSchema } from './PatientCreateNestedOneWithoutConversationInput.schema';
|
||||
import { UserCreateNestedOneWithoutPatientConversationsInputObjectSchema as UserCreateNestedOneWithoutPatientConversationsInputObjectSchema } from './UserCreateNestedOneWithoutPatientConversationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
stage: z.string().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
patient: z.lazy(() => PatientCreateNestedOneWithoutConversationInputObjectSchema),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutPatientConversationsInputObjectSchema)
|
||||
}).strict();
|
||||
export const PatientConversationCreateInputObjectSchema: z.ZodType<Prisma.PatientConversationCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCreateInput>;
|
||||
export const PatientConversationCreateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
patientId: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
stage: z.string().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
export const PatientConversationCreateManyInputObjectSchema: z.ZodType<Prisma.PatientConversationCreateManyInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCreateManyInput>;
|
||||
export const PatientConversationCreateManyInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
patientId: z.number().int(),
|
||||
stage: z.string().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
export const PatientConversationCreateManyUserInputObjectSchema: z.ZodType<Prisma.PatientConversationCreateManyUserInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCreateManyUserInput>;
|
||||
export const PatientConversationCreateManyUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationCreateManyUserInputObjectSchema as PatientConversationCreateManyUserInputObjectSchema } from './PatientConversationCreateManyUserInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
data: z.union([z.lazy(() => PatientConversationCreateManyUserInputObjectSchema), z.lazy(() => PatientConversationCreateManyUserInputObjectSchema).array()]),
|
||||
skipDuplicates: z.boolean().optional()
|
||||
}).strict();
|
||||
export const PatientConversationCreateManyUserInputEnvelopeObjectSchema: z.ZodType<Prisma.PatientConversationCreateManyUserInputEnvelope> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCreateManyUserInputEnvelope>;
|
||||
export const PatientConversationCreateManyUserInputEnvelopeObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationCreateWithoutUserInputObjectSchema as PatientConversationCreateWithoutUserInputObjectSchema } from './PatientConversationCreateWithoutUserInput.schema';
|
||||
import { PatientConversationUncheckedCreateWithoutUserInputObjectSchema as PatientConversationUncheckedCreateWithoutUserInputObjectSchema } from './PatientConversationUncheckedCreateWithoutUserInput.schema';
|
||||
import { PatientConversationCreateOrConnectWithoutUserInputObjectSchema as PatientConversationCreateOrConnectWithoutUserInputObjectSchema } from './PatientConversationCreateOrConnectWithoutUserInput.schema';
|
||||
import { PatientConversationCreateManyUserInputEnvelopeObjectSchema as PatientConversationCreateManyUserInputEnvelopeObjectSchema } from './PatientConversationCreateManyUserInputEnvelope.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './PatientConversationWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientConversationCreateWithoutUserInputObjectSchema), z.lazy(() => PatientConversationCreateWithoutUserInputObjectSchema).array(), z.lazy(() => PatientConversationUncheckedCreateWithoutUserInputObjectSchema), z.lazy(() => PatientConversationUncheckedCreateWithoutUserInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => PatientConversationCreateOrConnectWithoutUserInputObjectSchema), z.lazy(() => PatientConversationCreateOrConnectWithoutUserInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => PatientConversationCreateManyUserInputEnvelopeObjectSchema).optional(),
|
||||
connect: z.union([z.lazy(() => PatientConversationWhereUniqueInputObjectSchema), z.lazy(() => PatientConversationWhereUniqueInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const PatientConversationCreateNestedManyWithoutUserInputObjectSchema: z.ZodType<Prisma.PatientConversationCreateNestedManyWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCreateNestedManyWithoutUserInput>;
|
||||
export const PatientConversationCreateNestedManyWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationCreateWithoutPatientInputObjectSchema as PatientConversationCreateWithoutPatientInputObjectSchema } from './PatientConversationCreateWithoutPatientInput.schema';
|
||||
import { PatientConversationUncheckedCreateWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateOrConnectWithoutPatientInputObjectSchema as PatientConversationCreateOrConnectWithoutPatientInputObjectSchema } from './PatientConversationCreateOrConnectWithoutPatientInput.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './PatientConversationWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientConversationCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientConversationUncheckedCreateWithoutPatientInputObjectSchema)]).optional(),
|
||||
connectOrCreate: z.lazy(() => PatientConversationCreateOrConnectWithoutPatientInputObjectSchema).optional(),
|
||||
connect: z.lazy(() => PatientConversationWhereUniqueInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientConversationCreateNestedOneWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientConversationCreateNestedOneWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCreateNestedOneWithoutPatientInput>;
|
||||
export const PatientConversationCreateNestedOneWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './PatientConversationWhereUniqueInput.schema';
|
||||
import { PatientConversationCreateWithoutPatientInputObjectSchema as PatientConversationCreateWithoutPatientInputObjectSchema } from './PatientConversationCreateWithoutPatientInput.schema';
|
||||
import { PatientConversationUncheckedCreateWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => PatientConversationWhereUniqueInputObjectSchema),
|
||||
create: z.union([z.lazy(() => PatientConversationCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientConversationUncheckedCreateWithoutPatientInputObjectSchema)])
|
||||
}).strict();
|
||||
export const PatientConversationCreateOrConnectWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientConversationCreateOrConnectWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCreateOrConnectWithoutPatientInput>;
|
||||
export const PatientConversationCreateOrConnectWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './PatientConversationWhereUniqueInput.schema';
|
||||
import { PatientConversationCreateWithoutUserInputObjectSchema as PatientConversationCreateWithoutUserInputObjectSchema } from './PatientConversationCreateWithoutUserInput.schema';
|
||||
import { PatientConversationUncheckedCreateWithoutUserInputObjectSchema as PatientConversationUncheckedCreateWithoutUserInputObjectSchema } from './PatientConversationUncheckedCreateWithoutUserInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => PatientConversationWhereUniqueInputObjectSchema),
|
||||
create: z.union([z.lazy(() => PatientConversationCreateWithoutUserInputObjectSchema), z.lazy(() => PatientConversationUncheckedCreateWithoutUserInputObjectSchema)])
|
||||
}).strict();
|
||||
export const PatientConversationCreateOrConnectWithoutUserInputObjectSchema: z.ZodType<Prisma.PatientConversationCreateOrConnectWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCreateOrConnectWithoutUserInput>;
|
||||
export const PatientConversationCreateOrConnectWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { UserCreateNestedOneWithoutPatientConversationsInputObjectSchema as UserCreateNestedOneWithoutPatientConversationsInputObjectSchema } from './UserCreateNestedOneWithoutPatientConversationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
stage: z.string().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutPatientConversationsInputObjectSchema)
|
||||
}).strict();
|
||||
export const PatientConversationCreateWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientConversationCreateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCreateWithoutPatientInput>;
|
||||
export const PatientConversationCreateWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientCreateNestedOneWithoutConversationInputObjectSchema as PatientCreateNestedOneWithoutConversationInputObjectSchema } from './PatientCreateNestedOneWithoutConversationInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
stage: z.string().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
patient: z.lazy(() => PatientCreateNestedOneWithoutConversationInputObjectSchema)
|
||||
}).strict();
|
||||
export const PatientConversationCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.PatientConversationCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationCreateWithoutUserInput>;
|
||||
export const PatientConversationCreateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientArgsObjectSchema as PatientArgsObjectSchema } from './PatientArgs.schema';
|
||||
import { UserArgsObjectSchema as UserArgsObjectSchema } from './UserArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
patient: z.union([z.boolean(), z.lazy(() => PatientArgsObjectSchema)]).optional(),
|
||||
user: z.union([z.boolean(), z.lazy(() => UserArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientConversationIncludeObjectSchema: z.ZodType<Prisma.PatientConversationInclude> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationInclude>;
|
||||
export const PatientConversationIncludeObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationWhereInputObjectSchema as PatientConversationWhereInputObjectSchema } from './PatientConversationWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
every: z.lazy(() => PatientConversationWhereInputObjectSchema).optional(),
|
||||
some: z.lazy(() => PatientConversationWhereInputObjectSchema).optional(),
|
||||
none: z.lazy(() => PatientConversationWhereInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientConversationListRelationFilterObjectSchema: z.ZodType<Prisma.PatientConversationListRelationFilter> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationListRelationFilter>;
|
||||
export const PatientConversationListRelationFilterObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
stage: z.literal(true).optional(),
|
||||
aiHandoff: z.literal(true).optional(),
|
||||
updatedAt: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const PatientConversationMaxAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationMaxAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationMaxAggregateInputType>;
|
||||
export const PatientConversationMaxAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
stage: SortOrderSchema.optional(),
|
||||
aiHandoff: SortOrderSchema.optional(),
|
||||
updatedAt: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientConversationMaxOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationMaxOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationMaxOrderByAggregateInput>;
|
||||
export const PatientConversationMaxOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
stage: z.literal(true).optional(),
|
||||
aiHandoff: z.literal(true).optional(),
|
||||
updatedAt: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const PatientConversationMinAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationMinAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationMinAggregateInputType>;
|
||||
export const PatientConversationMinAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
stage: SortOrderSchema.optional(),
|
||||
aiHandoff: SortOrderSchema.optional(),
|
||||
updatedAt: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientConversationMinOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationMinOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationMinOrderByAggregateInput>;
|
||||
export const PatientConversationMinOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationWhereInputObjectSchema as PatientConversationWhereInputObjectSchema } from './PatientConversationWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
is: z.lazy(() => PatientConversationWhereInputObjectSchema).optional().nullable(),
|
||||
isNot: z.lazy(() => PatientConversationWhereInputObjectSchema).optional().nullable()
|
||||
}).strict();
|
||||
export const PatientConversationNullableScalarRelationFilterObjectSchema: z.ZodType<Prisma.PatientConversationNullableScalarRelationFilter> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationNullableScalarRelationFilter>;
|
||||
export const PatientConversationNullableScalarRelationFilterObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,9 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
_count: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientConversationOrderByRelationAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationOrderByRelationAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationOrderByRelationAggregateInput>;
|
||||
export const PatientConversationOrderByRelationAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,24 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
import { PatientConversationCountOrderByAggregateInputObjectSchema as PatientConversationCountOrderByAggregateInputObjectSchema } from './PatientConversationCountOrderByAggregateInput.schema';
|
||||
import { PatientConversationAvgOrderByAggregateInputObjectSchema as PatientConversationAvgOrderByAggregateInputObjectSchema } from './PatientConversationAvgOrderByAggregateInput.schema';
|
||||
import { PatientConversationMaxOrderByAggregateInputObjectSchema as PatientConversationMaxOrderByAggregateInputObjectSchema } from './PatientConversationMaxOrderByAggregateInput.schema';
|
||||
import { PatientConversationMinOrderByAggregateInputObjectSchema as PatientConversationMinOrderByAggregateInputObjectSchema } from './PatientConversationMinOrderByAggregateInput.schema';
|
||||
import { PatientConversationSumOrderByAggregateInputObjectSchema as PatientConversationSumOrderByAggregateInputObjectSchema } from './PatientConversationSumOrderByAggregateInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
stage: SortOrderSchema.optional(),
|
||||
aiHandoff: SortOrderSchema.optional(),
|
||||
updatedAt: SortOrderSchema.optional(),
|
||||
_count: z.lazy(() => PatientConversationCountOrderByAggregateInputObjectSchema).optional(),
|
||||
_avg: z.lazy(() => PatientConversationAvgOrderByAggregateInputObjectSchema).optional(),
|
||||
_max: z.lazy(() => PatientConversationMaxOrderByAggregateInputObjectSchema).optional(),
|
||||
_min: z.lazy(() => PatientConversationMinOrderByAggregateInputObjectSchema).optional(),
|
||||
_sum: z.lazy(() => PatientConversationSumOrderByAggregateInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientConversationOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.PatientConversationOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationOrderByWithAggregationInput>;
|
||||
export const PatientConversationOrderByWithAggregationInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,18 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
import { PatientOrderByWithRelationInputObjectSchema as PatientOrderByWithRelationInputObjectSchema } from './PatientOrderByWithRelationInput.schema';
|
||||
import { UserOrderByWithRelationInputObjectSchema as UserOrderByWithRelationInputObjectSchema } from './UserOrderByWithRelationInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
stage: SortOrderSchema.optional(),
|
||||
aiHandoff: SortOrderSchema.optional(),
|
||||
updatedAt: SortOrderSchema.optional(),
|
||||
patient: z.lazy(() => PatientOrderByWithRelationInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserOrderByWithRelationInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientConversationOrderByWithRelationInputObjectSchema: z.ZodType<Prisma.PatientConversationOrderByWithRelationInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationOrderByWithRelationInput>;
|
||||
export const PatientConversationOrderByWithRelationInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,20 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
|
||||
import { StringFilterObjectSchema as StringFilterObjectSchema } from './StringFilter.schema';
|
||||
import { BoolFilterObjectSchema as BoolFilterObjectSchema } from './BoolFilter.schema';
|
||||
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema'
|
||||
|
||||
const patientconversationscalarwhereinputSchema = z.object({
|
||||
AND: z.union([z.lazy(() => PatientConversationScalarWhereInputObjectSchema), z.lazy(() => PatientConversationScalarWhereInputObjectSchema).array()]).optional(),
|
||||
OR: z.lazy(() => PatientConversationScalarWhereInputObjectSchema).array().optional(),
|
||||
NOT: z.union([z.lazy(() => PatientConversationScalarWhereInputObjectSchema), z.lazy(() => PatientConversationScalarWhereInputObjectSchema).array()]).optional(),
|
||||
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
patientId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
stage: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
||||
aiHandoff: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(),
|
||||
updatedAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional()
|
||||
}).strict();
|
||||
export const PatientConversationScalarWhereInputObjectSchema: z.ZodType<Prisma.PatientConversationScalarWhereInput> = patientconversationscalarwhereinputSchema as unknown as z.ZodType<Prisma.PatientConversationScalarWhereInput>;
|
||||
export const PatientConversationScalarWhereInputObjectZodSchema = patientconversationscalarwhereinputSchema;
|
||||
@@ -0,0 +1,20 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
|
||||
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
|
||||
import { BoolWithAggregatesFilterObjectSchema as BoolWithAggregatesFilterObjectSchema } from './BoolWithAggregatesFilter.schema';
|
||||
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema'
|
||||
|
||||
const patientconversationscalarwherewithaggregatesinputSchema = z.object({
|
||||
AND: z.union([z.lazy(() => PatientConversationScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientConversationScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
|
||||
OR: z.lazy(() => PatientConversationScalarWhereWithAggregatesInputObjectSchema).array().optional(),
|
||||
NOT: z.union([z.lazy(() => PatientConversationScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => PatientConversationScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
|
||||
id: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
|
||||
patientId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
|
||||
userId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
|
||||
stage: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
||||
aiHandoff: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
|
||||
updatedAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional()
|
||||
}).strict();
|
||||
export const PatientConversationScalarWhereWithAggregatesInputObjectSchema: z.ZodType<Prisma.PatientConversationScalarWhereWithAggregatesInput> = patientconversationscalarwherewithaggregatesinputSchema as unknown as z.ZodType<Prisma.PatientConversationScalarWhereWithAggregatesInput>;
|
||||
export const PatientConversationScalarWhereWithAggregatesInputObjectZodSchema = patientconversationscalarwherewithaggregatesinputSchema;
|
||||
@@ -0,0 +1,17 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientArgsObjectSchema as PatientArgsObjectSchema } from './PatientArgs.schema';
|
||||
import { UserArgsObjectSchema as UserArgsObjectSchema } from './UserArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
stage: z.boolean().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
patient: z.union([z.boolean(), z.lazy(() => PatientArgsObjectSchema)]).optional(),
|
||||
user: z.union([z.boolean(), z.lazy(() => UserArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientConversationSelectObjectSchema: z.ZodType<Prisma.PatientConversationSelect> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationSelect>;
|
||||
export const PatientConversationSelectObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const PatientConversationSumAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationSumAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationSumAggregateInputType>;
|
||||
export const PatientConversationSumAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const PatientConversationSumOrderByAggregateInputObjectSchema: z.ZodType<Prisma.PatientConversationSumOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationSumOrderByAggregateInput>;
|
||||
export const PatientConversationSumOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
patientId: z.number().int(),
|
||||
userId: z.number().int(),
|
||||
stage: z.string().optional(),
|
||||
aiHandoff: z.boolean().optional()
|
||||
}).strict();
|
||||
export const PatientConversationUncheckedCreateInputObjectSchema: z.ZodType<Prisma.PatientConversationUncheckedCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationUncheckedCreateInput>;
|
||||
export const PatientConversationUncheckedCreateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationCreateWithoutUserInputObjectSchema as PatientConversationCreateWithoutUserInputObjectSchema } from './PatientConversationCreateWithoutUserInput.schema';
|
||||
import { PatientConversationUncheckedCreateWithoutUserInputObjectSchema as PatientConversationUncheckedCreateWithoutUserInputObjectSchema } from './PatientConversationUncheckedCreateWithoutUserInput.schema';
|
||||
import { PatientConversationCreateOrConnectWithoutUserInputObjectSchema as PatientConversationCreateOrConnectWithoutUserInputObjectSchema } from './PatientConversationCreateOrConnectWithoutUserInput.schema';
|
||||
import { PatientConversationCreateManyUserInputEnvelopeObjectSchema as PatientConversationCreateManyUserInputEnvelopeObjectSchema } from './PatientConversationCreateManyUserInputEnvelope.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './PatientConversationWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientConversationCreateWithoutUserInputObjectSchema), z.lazy(() => PatientConversationCreateWithoutUserInputObjectSchema).array(), z.lazy(() => PatientConversationUncheckedCreateWithoutUserInputObjectSchema), z.lazy(() => PatientConversationUncheckedCreateWithoutUserInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => PatientConversationCreateOrConnectWithoutUserInputObjectSchema), z.lazy(() => PatientConversationCreateOrConnectWithoutUserInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => PatientConversationCreateManyUserInputEnvelopeObjectSchema).optional(),
|
||||
connect: z.union([z.lazy(() => PatientConversationWhereUniqueInputObjectSchema), z.lazy(() => PatientConversationWhereUniqueInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const PatientConversationUncheckedCreateNestedManyWithoutUserInputObjectSchema: z.ZodType<Prisma.PatientConversationUncheckedCreateNestedManyWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationUncheckedCreateNestedManyWithoutUserInput>;
|
||||
export const PatientConversationUncheckedCreateNestedManyWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationCreateWithoutPatientInputObjectSchema as PatientConversationCreateWithoutPatientInputObjectSchema } from './PatientConversationCreateWithoutPatientInput.schema';
|
||||
import { PatientConversationUncheckedCreateWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateOrConnectWithoutPatientInputObjectSchema as PatientConversationCreateOrConnectWithoutPatientInputObjectSchema } from './PatientConversationCreateOrConnectWithoutPatientInput.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './PatientConversationWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientConversationCreateWithoutPatientInputObjectSchema), z.lazy(() => PatientConversationUncheckedCreateWithoutPatientInputObjectSchema)]).optional(),
|
||||
connectOrCreate: z.lazy(() => PatientConversationCreateOrConnectWithoutPatientInputObjectSchema).optional(),
|
||||
connect: z.lazy(() => PatientConversationWhereUniqueInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientConversationUncheckedCreateNestedOneWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationUncheckedCreateNestedOneWithoutPatientInput>;
|
||||
export const PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
userId: z.number().int(),
|
||||
stage: z.string().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
export const PatientConversationUncheckedCreateWithoutPatientInputObjectSchema: z.ZodType<Prisma.PatientConversationUncheckedCreateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationUncheckedCreateWithoutPatientInput>;
|
||||
export const PatientConversationUncheckedCreateWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
patientId: z.number().int(),
|
||||
stage: z.string().optional(),
|
||||
aiHandoff: z.boolean().optional(),
|
||||
updatedAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
export const PatientConversationUncheckedCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.PatientConversationUncheckedCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationUncheckedCreateWithoutUserInput>;
|
||||
export const PatientConversationUncheckedCreateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,17 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperationsInputObjectSchema } from './BoolFieldUpdateOperationsInput.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(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
stage: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
aiHandoff: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientConversationUncheckedUpdateInputObjectSchema: z.ZodType<Prisma.PatientConversationUncheckedUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationUncheckedUpdateInput>;
|
||||
export const PatientConversationUncheckedUpdateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,17 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperationsInputObjectSchema } from './BoolFieldUpdateOperationsInput.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(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
stage: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
aiHandoff: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientConversationUncheckedUpdateManyInputObjectSchema: z.ZodType<Prisma.PatientConversationUncheckedUpdateManyInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationUncheckedUpdateManyInput>;
|
||||
export const PatientConversationUncheckedUpdateManyInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperationsInputObjectSchema } from './BoolFieldUpdateOperationsInput.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(),
|
||||
stage: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
aiHandoff: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientConversationUncheckedUpdateManyWithoutUserInputObjectSchema: z.ZodType<Prisma.PatientConversationUncheckedUpdateManyWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationUncheckedUpdateManyWithoutUserInput>;
|
||||
export const PatientConversationUncheckedUpdateManyWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,27 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientConversationCreateWithoutUserInputObjectSchema as PatientConversationCreateWithoutUserInputObjectSchema } from './PatientConversationCreateWithoutUserInput.schema';
|
||||
import { PatientConversationUncheckedCreateWithoutUserInputObjectSchema as PatientConversationUncheckedCreateWithoutUserInputObjectSchema } from './PatientConversationUncheckedCreateWithoutUserInput.schema';
|
||||
import { PatientConversationCreateOrConnectWithoutUserInputObjectSchema as PatientConversationCreateOrConnectWithoutUserInputObjectSchema } from './PatientConversationCreateOrConnectWithoutUserInput.schema';
|
||||
import { PatientConversationUpsertWithWhereUniqueWithoutUserInputObjectSchema as PatientConversationUpsertWithWhereUniqueWithoutUserInputObjectSchema } from './PatientConversationUpsertWithWhereUniqueWithoutUserInput.schema';
|
||||
import { PatientConversationCreateManyUserInputEnvelopeObjectSchema as PatientConversationCreateManyUserInputEnvelopeObjectSchema } from './PatientConversationCreateManyUserInputEnvelope.schema';
|
||||
import { PatientConversationWhereUniqueInputObjectSchema as PatientConversationWhereUniqueInputObjectSchema } from './PatientConversationWhereUniqueInput.schema';
|
||||
import { PatientConversationUpdateWithWhereUniqueWithoutUserInputObjectSchema as PatientConversationUpdateWithWhereUniqueWithoutUserInputObjectSchema } from './PatientConversationUpdateWithWhereUniqueWithoutUserInput.schema';
|
||||
import { PatientConversationUpdateManyWithWhereWithoutUserInputObjectSchema as PatientConversationUpdateManyWithWhereWithoutUserInputObjectSchema } from './PatientConversationUpdateManyWithWhereWithoutUserInput.schema';
|
||||
import { PatientConversationScalarWhereInputObjectSchema as PatientConversationScalarWhereInputObjectSchema } from './PatientConversationScalarWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientConversationCreateWithoutUserInputObjectSchema), z.lazy(() => PatientConversationCreateWithoutUserInputObjectSchema).array(), z.lazy(() => PatientConversationUncheckedCreateWithoutUserInputObjectSchema), z.lazy(() => PatientConversationUncheckedCreateWithoutUserInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => PatientConversationCreateOrConnectWithoutUserInputObjectSchema), z.lazy(() => PatientConversationCreateOrConnectWithoutUserInputObjectSchema).array()]).optional(),
|
||||
upsert: z.union([z.lazy(() => PatientConversationUpsertWithWhereUniqueWithoutUserInputObjectSchema), z.lazy(() => PatientConversationUpsertWithWhereUniqueWithoutUserInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => PatientConversationCreateManyUserInputEnvelopeObjectSchema).optional(),
|
||||
set: z.union([z.lazy(() => PatientConversationWhereUniqueInputObjectSchema), z.lazy(() => PatientConversationWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
disconnect: z.union([z.lazy(() => PatientConversationWhereUniqueInputObjectSchema), z.lazy(() => PatientConversationWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
delete: z.union([z.lazy(() => PatientConversationWhereUniqueInputObjectSchema), z.lazy(() => PatientConversationWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
connect: z.union([z.lazy(() => PatientConversationWhereUniqueInputObjectSchema), z.lazy(() => PatientConversationWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
update: z.union([z.lazy(() => PatientConversationUpdateWithWhereUniqueWithoutUserInputObjectSchema), z.lazy(() => PatientConversationUpdateWithWhereUniqueWithoutUserInputObjectSchema).array()]).optional(),
|
||||
updateMany: z.union([z.lazy(() => PatientConversationUpdateManyWithWhereWithoutUserInputObjectSchema), z.lazy(() => PatientConversationUpdateManyWithWhereWithoutUserInputObjectSchema).array()]).optional(),
|
||||
deleteMany: z.union([z.lazy(() => PatientConversationScalarWhereInputObjectSchema), z.lazy(() => PatientConversationScalarWhereInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const PatientConversationUncheckedUpdateManyWithoutUserNestedInputObjectSchema: z.ZodType<Prisma.PatientConversationUncheckedUpdateManyWithoutUserNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientConversationUncheckedUpdateManyWithoutUserNestedInput>;
|
||||
export const PatientConversationUncheckedUpdateManyWithoutUserNestedInputObjectZodSchema = makeSchema();
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user