feat: add schedule column labels, office hours enforcement, and appointment move fix
- Schedule columns default to labels A–F (localStorage, per-browser, click to rename) - Settings → Advanced → Office Hours: configure Doctors (A-C) and Hygienists (D-F) AM/PM hours per weekday - Gray out schedule slots outside office hours; override dialog for manual exceptions - Override Office Hours toggle: select specific dates where all slots are open - Fix appointment move: send only real DB fields to avoid Zod strict-mode rejection of computed fields (hasProcedures, hasClaimWithNumber) - Fix backend PUT /appointments: safe error logging to prevent Prisma error crashing Node inspect - Add OfficeHours Prisma model and GET/PUT /api/office-hours route Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -381,34 +381,37 @@ router.put(
|
||||
const newYMD = new Date(date).toISOString().slice(0, 10);
|
||||
const isDateChanged = oldYMD !== newYMD;
|
||||
|
||||
const updatePayload = {
|
||||
...appointmentData,
|
||||
...(isDateChanged ? { eligibilityStatus: "UNKNOWN" as const } : {}),
|
||||
};
|
||||
// Only pass the fields that are safe to update; never overwrite patientId/userId via this route
|
||||
const updatePayload: Record<string, unknown> = {};
|
||||
if (appointmentData.staffId !== undefined) updatePayload.staffId = appointmentData.staffId;
|
||||
if (appointmentData.title !== undefined) updatePayload.title = appointmentData.title;
|
||||
if (appointmentData.date !== undefined) updatePayload.date = appointmentData.date;
|
||||
if (appointmentData.startTime !== undefined) updatePayload.startTime = appointmentData.startTime;
|
||||
if (appointmentData.endTime !== undefined) updatePayload.endTime = appointmentData.endTime;
|
||||
if (appointmentData.type !== undefined) updatePayload.type = appointmentData.type;
|
||||
if (appointmentData.status !== undefined) updatePayload.status = appointmentData.status;
|
||||
if (appointmentData.notes !== undefined) updatePayload.notes = appointmentData.notes;
|
||||
if (isDateChanged) updatePayload.eligibilityStatus = "UNKNOWN";
|
||||
|
||||
// Update appointment
|
||||
const updatedAppointment = await storage.updateAppointment(
|
||||
appointmentId,
|
||||
updatePayload
|
||||
updatePayload as any
|
||||
);
|
||||
return res.json(updatedAppointment);
|
||||
} catch (error) {
|
||||
console.error("Error updating appointment:", error);
|
||||
// Prisma error objects crash Node's util.inspect — always log as string
|
||||
const msg = error instanceof Error ? `${error.name}: ${error.message}` : String(error);
|
||||
console.error("Error updating appointment:", msg);
|
||||
|
||||
if (error instanceof z.ZodError) {
|
||||
console.log(
|
||||
"Validation error details:",
|
||||
JSON.stringify(error.format(), null, 2)
|
||||
);
|
||||
return res.status(400).json({
|
||||
message: "Validation error",
|
||||
errors: error.format(),
|
||||
});
|
||||
const fieldErrors = error.errors.map((e) => `${e.path.join(".")}: ${e.message}`).join(" | ");
|
||||
console.error("Zod validation in PUT /appointments:", fieldErrors);
|
||||
return res.status(400).json({ message: fieldErrors });
|
||||
}
|
||||
|
||||
res.status(500).json({
|
||||
message: "Failed to update appointment",
|
||||
error: error instanceof Error ? error.message : String(error),
|
||||
return res.status(500).json({
|
||||
message: msg,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ import exportPaymentsReportsRoutes from "./export-payments-reports";
|
||||
import jobMonitorRoutes from "./job-monitor";
|
||||
import twilioRoutes from "./twilio";
|
||||
import aiSettingsRoutes from "./ai-settings";
|
||||
import officeHoursRoutes from "./office-hours";
|
||||
|
||||
const router = Router();
|
||||
|
||||
@@ -56,5 +57,6 @@ router.use("/export-payments-reports", exportPaymentsReportsRoutes);
|
||||
router.use("/job-monitor", jobMonitorRoutes);
|
||||
router.use("/twilio", twilioRoutes);
|
||||
router.use("/ai", aiSettingsRoutes);
|
||||
router.use("/office-hours", officeHoursRoutes);
|
||||
|
||||
export default router;
|
||||
|
||||
37
apps/Backend/src/routes/office-hours.ts
Normal file
37
apps/Backend/src/routes/office-hours.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import express, { Request, Response } from "express";
|
||||
import { storage } from "../storage";
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
// GET /api/office-hours
|
||||
router.get("/", async (req: Request, res: Response): Promise<any> => {
|
||||
try {
|
||||
const userId = req.user?.id;
|
||||
if (!userId) return res.status(401).json({ message: "Unauthorized" });
|
||||
|
||||
const record = await storage.getOfficeHours(userId);
|
||||
return res.status(200).json(record ? record.data : null);
|
||||
} catch (err) {
|
||||
return res.status(500).json({ error: "Failed to fetch office hours", details: String(err) });
|
||||
}
|
||||
});
|
||||
|
||||
// PUT /api/office-hours
|
||||
router.put("/", async (req: Request, res: Response): Promise<any> => {
|
||||
try {
|
||||
const userId = req.user?.id;
|
||||
if (!userId) return res.status(401).json({ message: "Unauthorized" });
|
||||
|
||||
const data = req.body;
|
||||
if (!data || typeof data !== "object") {
|
||||
return res.status(400).json({ message: "Invalid office hours data" });
|
||||
}
|
||||
|
||||
const record = await storage.upsertOfficeHours(userId, data);
|
||||
return res.status(200).json(record.data);
|
||||
} catch (err) {
|
||||
return res.status(500).json({ error: "Failed to save office hours", details: String(err) });
|
||||
}
|
||||
});
|
||||
|
||||
export default router;
|
||||
@@ -114,14 +114,10 @@ export const appointmentsStorage: IStorage = {
|
||||
id: number,
|
||||
updateData: UpdateAppointment
|
||||
): Promise<Appointment> {
|
||||
try {
|
||||
return await db.appointment.update({
|
||||
where: { id },
|
||||
data: updateData,
|
||||
});
|
||||
} catch (err) {
|
||||
throw new Error(`Appointment with ID ${id} not found`);
|
||||
}
|
||||
return db.appointment.update({
|
||||
where: { id },
|
||||
data: updateData,
|
||||
});
|
||||
},
|
||||
|
||||
async deleteAppointment(id: number): Promise<void> {
|
||||
|
||||
@@ -19,6 +19,7 @@ import * as exportPaymentsReportsStorage from "./export-payments-reports-storage
|
||||
import { cronJobLogStorage } from "./cron-job-log-storage";
|
||||
import { twilioStorage } from "./twilio-storage";
|
||||
import { aiSettingsStorage } from "./ai-settings-storage";
|
||||
import { officeHoursStorage } from "./office-hours-storage";
|
||||
|
||||
|
||||
export const storage = {
|
||||
@@ -41,6 +42,7 @@ export const storage = {
|
||||
...cronJobLogStorage,
|
||||
...twilioStorage,
|
||||
...aiSettingsStorage,
|
||||
...officeHoursStorage,
|
||||
|
||||
};
|
||||
|
||||
|
||||
15
apps/Backend/src/storage/office-hours-storage.ts
Normal file
15
apps/Backend/src/storage/office-hours-storage.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { prisma as db } from "@repo/db/client";
|
||||
|
||||
export const officeHoursStorage = {
|
||||
async getOfficeHours(userId: number) {
|
||||
return db.officeHours.findUnique({ where: { userId } });
|
||||
},
|
||||
|
||||
async upsertOfficeHours(userId: number, data: object) {
|
||||
return db.officeHours.upsert({
|
||||
where: { userId },
|
||||
update: { data },
|
||||
create: { userId, data },
|
||||
});
|
||||
},
|
||||
};
|
||||
@@ -26,6 +26,7 @@ import {
|
||||
Stethoscope,
|
||||
Workflow,
|
||||
Bot,
|
||||
Clock,
|
||||
} from "lucide-react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { useMemo, useState, useEffect } from "react";
|
||||
@@ -221,6 +222,11 @@ export function Sidebar() {
|
||||
path: "/settings/ai",
|
||||
icon: <Bot className="h-4 w-4 text-gray-400" />,
|
||||
},
|
||||
{
|
||||
name: "Office Hours",
|
||||
path: "/settings/officehours",
|
||||
icon: <Clock className="h-4 w-4 text-gray-400" />,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
368
apps/Frontend/src/components/settings/office-hours-card.tsx
Normal file
368
apps/Frontend/src/components/settings/office-hours-card.tsx
Normal file
@@ -0,0 +1,368 @@
|
||||
import { useState, useEffect } from "react";
|
||||
import { useQuery, useMutation } from "@tanstack/react-query";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import { useToast } from "@/hooks/use-toast";
|
||||
import { apiRequest, queryClient } from "@/lib/queryClient";
|
||||
import { Calendar } from "@/components/ui/calendar";
|
||||
|
||||
const DAYS = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"] as const;
|
||||
const DAY_LABELS: Record<typeof DAYS[number], string> = {
|
||||
monday: "Monday",
|
||||
tuesday: "Tuesday",
|
||||
wednesday: "Wednesday",
|
||||
thursday: "Thursday",
|
||||
friday: "Friday",
|
||||
saturday: "Saturday",
|
||||
sunday: "Sunday",
|
||||
};
|
||||
|
||||
type Day = typeof DAYS[number];
|
||||
|
||||
type DayHours = {
|
||||
enabled: boolean;
|
||||
amStart: string;
|
||||
amEnd: string;
|
||||
pmStart: string;
|
||||
pmEnd: string;
|
||||
};
|
||||
|
||||
type WeekHours = Record<Day, DayHours>;
|
||||
|
||||
export type OfficeHoursData = {
|
||||
doctors: WeekHours;
|
||||
hygienists: WeekHours;
|
||||
overrideDates?: string[]; // YYYY-MM-DD dates where office hours are lifted entirely
|
||||
};
|
||||
|
||||
const DEFAULT_DAY_HOURS: DayHours = {
|
||||
enabled: true,
|
||||
amStart: "09:00",
|
||||
amEnd: "12:00",
|
||||
pmStart: "13:00",
|
||||
pmEnd: "17:00",
|
||||
};
|
||||
|
||||
const WEEKEND_DEFAULT: DayHours = {
|
||||
enabled: false,
|
||||
amStart: "09:00",
|
||||
amEnd: "12:00",
|
||||
pmStart: "13:00",
|
||||
pmEnd: "17:00",
|
||||
};
|
||||
|
||||
function buildDefaultWeek(): WeekHours {
|
||||
return {
|
||||
monday: { ...DEFAULT_DAY_HOURS },
|
||||
tuesday: { ...DEFAULT_DAY_HOURS },
|
||||
wednesday: { ...DEFAULT_DAY_HOURS },
|
||||
thursday: { ...DEFAULT_DAY_HOURS },
|
||||
friday: { ...DEFAULT_DAY_HOURS },
|
||||
saturday: { ...WEEKEND_DEFAULT },
|
||||
sunday: { ...WEEKEND_DEFAULT },
|
||||
};
|
||||
}
|
||||
|
||||
const DEFAULT_OFFICE_HOURS: OfficeHoursData = {
|
||||
doctors: buildDefaultWeek(),
|
||||
hygienists: buildDefaultWeek(),
|
||||
};
|
||||
|
||||
function TimeSelect({
|
||||
value,
|
||||
onChange,
|
||||
disabled,
|
||||
}: {
|
||||
value: string;
|
||||
onChange: (v: string) => void;
|
||||
disabled?: boolean;
|
||||
}) {
|
||||
const options: string[] = [];
|
||||
for (let h = 6; h <= 20; h++) {
|
||||
options.push(`${String(h).padStart(2, "0")}:00`);
|
||||
options.push(`${String(h).padStart(2, "0")}:30`);
|
||||
}
|
||||
|
||||
const toDisplay = (t: string) => {
|
||||
const parts = t.split(":").map(Number);
|
||||
const hh = parts[0] ?? 0;
|
||||
const mm = parts[1] ?? 0;
|
||||
const period = hh >= 12 ? "PM" : "AM";
|
||||
const h12 = hh > 12 ? hh - 12 : hh === 0 ? 12 : hh;
|
||||
return `${h12}:${String(mm).padStart(2, "0")} ${period}`;
|
||||
};
|
||||
|
||||
return (
|
||||
<select
|
||||
value={value}
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
disabled={disabled}
|
||||
className="border rounded px-1 py-0.5 text-sm disabled:opacity-50 disabled:cursor-not-allowed"
|
||||
>
|
||||
{options.map((o) => (
|
||||
<option key={o} value={o}>
|
||||
{toDisplay(o)}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
);
|
||||
}
|
||||
|
||||
function DayRow({
|
||||
day,
|
||||
hours,
|
||||
onChange,
|
||||
}: {
|
||||
day: Day;
|
||||
hours: DayHours;
|
||||
onChange: (updated: DayHours) => void;
|
||||
}) {
|
||||
const set = (field: keyof DayHours, value: string | boolean) =>
|
||||
onChange({ ...hours, [field]: value });
|
||||
|
||||
return (
|
||||
<div className={`grid grid-cols-[120px_1fr] gap-2 items-start py-2 border-b last:border-b-0 ${!hours.enabled ? "opacity-60" : ""}`}>
|
||||
<label className="flex items-center gap-2 cursor-pointer pt-1">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={hours.enabled}
|
||||
onChange={(e) => set("enabled", e.target.checked)}
|
||||
className="w-4 h-4 accent-teal-600"
|
||||
/>
|
||||
<span className="text-sm font-medium">{DAY_LABELS[day]}</span>
|
||||
</label>
|
||||
|
||||
<div className="flex flex-wrap gap-x-6 gap-y-1">
|
||||
<div className="flex items-center gap-1.5 text-sm">
|
||||
<span className="text-gray-500 w-6">AM</span>
|
||||
<TimeSelect value={hours.amStart} onChange={(v) => set("amStart", v)} disabled={!hours.enabled} />
|
||||
<span className="text-gray-400">–</span>
|
||||
<TimeSelect value={hours.amEnd} onChange={(v) => set("amEnd", v)} disabled={!hours.enabled} />
|
||||
</div>
|
||||
<div className="flex items-center gap-1.5 text-sm">
|
||||
<span className="text-gray-500 w-6">PM</span>
|
||||
<TimeSelect value={hours.pmStart} onChange={(v) => set("pmStart", v)} disabled={!hours.enabled} />
|
||||
<span className="text-gray-400">–</span>
|
||||
<TimeSelect value={hours.pmEnd} onChange={(v) => set("pmEnd", v)} disabled={!hours.enabled} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function SectionHours({
|
||||
title,
|
||||
subtitle,
|
||||
week,
|
||||
onChange,
|
||||
}: {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
week: WeekHours;
|
||||
onChange: (updated: WeekHours) => void;
|
||||
}) {
|
||||
return (
|
||||
<div className="border rounded-lg p-4">
|
||||
<div className="mb-3">
|
||||
<h4 className="font-semibold text-gray-800">{title}</h4>
|
||||
<p className="text-xs text-gray-500 mt-0.5">{subtitle}</p>
|
||||
</div>
|
||||
{DAYS.map((day) => (
|
||||
<DayRow
|
||||
key={day}
|
||||
day={day}
|
||||
hours={week[day]}
|
||||
onChange={(updated) => onChange({ ...week, [day]: updated })}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function toYMD(date: Date): string {
|
||||
return date.toLocaleDateString("en-CA"); // "YYYY-MM-DD" in local time
|
||||
}
|
||||
|
||||
function formatDisplayDate(ymd: string): string {
|
||||
// "2026-05-10" → "May 10, 2026"
|
||||
const [y, m, d] = ymd.split("-").map(Number);
|
||||
return new Date(y!, m! - 1, d!).toLocaleDateString("en-US", {
|
||||
month: "short", day: "numeric", year: "numeric",
|
||||
});
|
||||
}
|
||||
|
||||
export function OfficeHoursCard() {
|
||||
const { toast } = useToast();
|
||||
const [formData, setFormData] = useState<OfficeHoursData>(DEFAULT_OFFICE_HOURS);
|
||||
|
||||
// Override-dates UI state (not persisted until Save is clicked)
|
||||
const [overrideToggle, setOverrideToggle] = useState(false);
|
||||
const [pickedDate, setPickedDate] = useState<Date | undefined>(undefined);
|
||||
|
||||
const { data: savedHours, isLoading } = useQuery<OfficeHoursData | null>({
|
||||
queryKey: ["/api/office-hours"],
|
||||
queryFn: async () => {
|
||||
const res = await apiRequest("GET", "/api/office-hours");
|
||||
if (!res.ok) return null;
|
||||
return res.json();
|
||||
},
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (savedHours) {
|
||||
setFormData({
|
||||
doctors: { ...buildDefaultWeek(), ...savedHours.doctors },
|
||||
hygienists: { ...buildDefaultWeek(), ...savedHours.hygienists },
|
||||
overrideDates: savedHours.overrideDates ?? [],
|
||||
});
|
||||
}
|
||||
}, [savedHours]);
|
||||
|
||||
const overrideDates: string[] = formData.overrideDates ?? [];
|
||||
|
||||
const addOverrideDate = () => {
|
||||
if (!pickedDate) return;
|
||||
const ymd = toYMD(pickedDate);
|
||||
if (overrideDates.includes(ymd)) return; // already added
|
||||
setFormData((prev) => ({ ...prev, overrideDates: [...overrideDates, ymd].sort() }));
|
||||
setPickedDate(undefined);
|
||||
};
|
||||
|
||||
const removeOverrideDate = (ymd: string) => {
|
||||
setFormData((prev) => ({
|
||||
...prev,
|
||||
overrideDates: overrideDates.filter((d) => d !== ymd),
|
||||
}));
|
||||
};
|
||||
|
||||
const saveMutation = useMutation({
|
||||
mutationFn: async (data: OfficeHoursData) => {
|
||||
const res = await apiRequest("PUT", "/api/office-hours", data);
|
||||
if (!res.ok) {
|
||||
const err = await res.json().catch(() => null);
|
||||
throw new Error(err?.message || "Failed to save office hours");
|
||||
}
|
||||
return res.json();
|
||||
},
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ["/api/office-hours"] });
|
||||
toast({ title: "Office Hours Saved" });
|
||||
},
|
||||
onError: (err: any) => {
|
||||
toast({ title: "Error", description: err?.message, variant: "destructive" });
|
||||
},
|
||||
});
|
||||
|
||||
if (isLoading) return <p className="text-sm text-gray-400 py-4">Loading...</p>;
|
||||
|
||||
return (
|
||||
<Card>
|
||||
<CardContent className="py-6 space-y-6">
|
||||
<div>
|
||||
<h3 className="text-lg font-semibold">Office Hours</h3>
|
||||
<p className="text-sm text-gray-500 mt-1">
|
||||
Define which time slots are available for scheduling. Appointments outside these hours
|
||||
require a manual override by a dental assistant.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<SectionHours
|
||||
title="Doctors' Hours"
|
||||
subtitle="Applies to schedule columns A, B, C"
|
||||
week={formData.doctors}
|
||||
onChange={(updated) => setFormData((prev) => ({ ...prev, doctors: updated }))}
|
||||
/>
|
||||
|
||||
<SectionHours
|
||||
title="Hygienists' Hours"
|
||||
subtitle="Applies to schedule columns D, E, F"
|
||||
week={formData.hygienists}
|
||||
onChange={(updated) => setFormData((prev) => ({ ...prev, hygienists: updated }))}
|
||||
/>
|
||||
|
||||
{/* Override Office Hours section */}
|
||||
<div className="border rounded-lg p-4 space-y-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h4 className="font-semibold text-gray-800">Override Office Hours</h4>
|
||||
<p className="text-xs text-gray-500 mt-0.5">
|
||||
On selected dates, all time slots are open with no restrictions.
|
||||
</p>
|
||||
</div>
|
||||
{/* Toggle */}
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setOverrideToggle((v) => !v)}
|
||||
className={`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none ${
|
||||
overrideToggle ? "bg-teal-600" : "bg-gray-300"
|
||||
}`}
|
||||
aria-pressed={overrideToggle}
|
||||
>
|
||||
<span
|
||||
className={`inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform ${
|
||||
overrideToggle ? "translate-x-6" : "translate-x-1"
|
||||
}`}
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Calendar + add button — shown when toggle is on */}
|
||||
{overrideToggle && (
|
||||
<div className="space-y-3">
|
||||
<p className="text-sm text-gray-600">Select a date to add to the override list:</p>
|
||||
<div className="border rounded-md inline-block">
|
||||
<Calendar
|
||||
mode="single"
|
||||
selected={pickedDate}
|
||||
onSelect={(d) => setPickedDate(d ?? undefined)}
|
||||
className="p-2"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={addOverrideDate}
|
||||
disabled={!pickedDate}
|
||||
className="px-3 py-1.5 text-sm bg-teal-600 text-white rounded hover:bg-teal-700 disabled:opacity-40"
|
||||
>
|
||||
Add Date
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* List of saved override dates */}
|
||||
{overrideDates.length > 0 && (
|
||||
<div className="space-y-1">
|
||||
<p className="text-xs font-medium text-gray-500 uppercase tracking-wide">Override dates</p>
|
||||
<ul className="space-y-1">
|
||||
{overrideDates.map((ymd) => (
|
||||
<li key={ymd} className="flex items-center justify-between text-sm bg-teal-50 border border-teal-100 rounded px-3 py-1.5">
|
||||
<span className="font-medium text-teal-800">{formatDisplayDate(ymd)}</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => removeOverrideDate(ymd)}
|
||||
className="text-teal-400 hover:text-red-500 text-xs ml-4"
|
||||
title="Remove"
|
||||
>
|
||||
✕
|
||||
</button>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="pt-2">
|
||||
<button
|
||||
onClick={() => saveMutation.mutate(formData)}
|
||||
disabled={saveMutation.isPending}
|
||||
className="bg-teal-600 text-white px-4 py-2 rounded hover:bg-teal-700 text-sm disabled:opacity-50"
|
||||
>
|
||||
{saveMutation.isPending ? "Saving..." : "Save Office Hours"}
|
||||
</button>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
@@ -59,6 +59,7 @@ import {
|
||||
} from "@/redux/slices/seleniumTaskSlice";
|
||||
import { SeleniumTaskBanner } from "@/components/ui/selenium-task-banner";
|
||||
import { PatientStatusBadge } from "@/components/appointments/patient-status-badge";
|
||||
import type { OfficeHoursData } from "@/components/settings/office-hours-card";
|
||||
|
||||
// Define types for scheduling
|
||||
interface TimeSlot {
|
||||
@@ -157,6 +158,14 @@ export default function AppointmentsPage() {
|
||||
const [selectedReminderColumns, setSelectedReminderColumns] = useState<Set<number>>(new Set());
|
||||
const [selectedDownloadPdfColumns, setSelectedDownloadPdfColumns] = useState<Set<number>>(new Set());
|
||||
const [isDownloadingClaimPdfs, setIsDownloadingClaimPdfs] = useState(false);
|
||||
const [columnLabels, setColumnLabels] = useState<Record<string, string>>({});
|
||||
const [editingLabelStaffId, setEditingLabelStaffId] = useState<string | null>(null);
|
||||
const [pendingOverride, setPendingOverride] = useState<{
|
||||
type: "move" | "create";
|
||||
appointmentId?: number;
|
||||
timeSlot: TimeSlot;
|
||||
staffId: number;
|
||||
} | null>(null);
|
||||
|
||||
const toggleReminderColumn = (staffId: number) => {
|
||||
setSelectedReminderColumns((prev) => {
|
||||
@@ -233,6 +242,17 @@ export default function AppointmentsPage() {
|
||||
const appointments = dayPayload.appointments ?? [];
|
||||
const patientsFromDay = dayPayload.patients ?? [];
|
||||
|
||||
// Office hours (used to enforce scheduling rules)
|
||||
const { data: officeHours } = useQuery<OfficeHoursData | null>({
|
||||
queryKey: ["/api/office-hours"],
|
||||
queryFn: async () => {
|
||||
const res = await apiRequest("GET", "/api/office-hours");
|
||||
if (!res.ok) return null;
|
||||
return res.json();
|
||||
},
|
||||
enabled: !!user,
|
||||
});
|
||||
|
||||
// Staff memebers
|
||||
const { data: staffMembersRaw = [] as Staff[] } = useQuery<Staff[]>({
|
||||
queryKey: ["/api/staffs/"],
|
||||
@@ -259,6 +279,50 @@ export default function AppointmentsPage() {
|
||||
color: colors[index % colors.length] || "bg-gray-400",
|
||||
}));
|
||||
|
||||
// Initialize column labels from localStorage; default A, B, C… for new staff
|
||||
useEffect(() => {
|
||||
if (!staffMembersRaw.length) return;
|
||||
const stored = JSON.parse(
|
||||
localStorage.getItem("scheduleColumnLabels") || "{}"
|
||||
) as Record<string, string>;
|
||||
let changed = false;
|
||||
staffMembersRaw.forEach((staff, index) => {
|
||||
if (!(String(staff.id) in stored)) {
|
||||
stored[String(staff.id)] = String.fromCharCode(65 + index);
|
||||
changed = true;
|
||||
}
|
||||
});
|
||||
if (changed) localStorage.setItem("scheduleColumnLabels", JSON.stringify(stored));
|
||||
setColumnLabels(stored);
|
||||
}, [staffMembersRaw]);
|
||||
|
||||
const handleLabelSave = (staffId: string, value: string) => {
|
||||
const trimmed = value.trim() || String.fromCharCode(65 + staffMembersRaw.findIndex((s) => String(s.id) === staffId));
|
||||
setColumnLabels((prev) => {
|
||||
const updated = { ...prev, [staffId]: trimmed };
|
||||
localStorage.setItem("scheduleColumnLabels", JSON.stringify(updated));
|
||||
return updated;
|
||||
});
|
||||
setEditingLabelStaffId(null);
|
||||
};
|
||||
|
||||
// Returns true when a time slot is within the configured office hours for that staff group
|
||||
const isWithinOfficeHours = (timeStr: string, staffIndex: number): boolean => {
|
||||
if (!officeHours) return true; // no config = unrestricted
|
||||
// If today is an override date, all slots are open
|
||||
const todayYMD = selectedDate.toLocaleDateString("en-CA");
|
||||
if (officeHours.overrideDates?.includes(todayYMD)) return true;
|
||||
const dayNames = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"] as const;
|
||||
const dayName = dayNames[selectedDate.getDay()] as keyof typeof officeHours.doctors;
|
||||
const group = staffIndex <= 2 ? officeHours.doctors : officeHours.hygienists;
|
||||
const dayHours = group[dayName];
|
||||
if (!dayHours || !dayHours.enabled) return false;
|
||||
return (
|
||||
(timeStr >= dayHours.amStart && timeStr <= dayHours.amEnd) ||
|
||||
(timeStr >= dayHours.pmStart && timeStr <= dayHours.pmEnd)
|
||||
);
|
||||
};
|
||||
|
||||
// Generate time slots from 8:00 AM to 6:00 PM in 15-minute increments
|
||||
const timeSlots: TimeSlot[] = [];
|
||||
for (let hour = 8; hour <= 18; hour++) {
|
||||
@@ -641,14 +705,20 @@ export default function AppointmentsPage() {
|
||||
// Find staff member
|
||||
const staff = staffMembers.find((s) => Number(s.id) === newStaffId);
|
||||
|
||||
// Update appointment data
|
||||
const { id, createdAt, ...sanitizedAppointment } = appointment;
|
||||
// Send only the real DB fields — the appointment object may contain computed
|
||||
// fields (hasProcedures, hasClaimWithNumber, etc.) that the Zod schema rejects
|
||||
const apt = appointment as any;
|
||||
const updatedAppointment: UpdateAppointment = {
|
||||
...sanitizedAppointment,
|
||||
startTime: newTimeSlot.time, // Already in HH:MM format
|
||||
endTime: endTime, // Already in HH:MM format
|
||||
patientId: apt.patientId,
|
||||
userId: apt.userId,
|
||||
staffId: newStaffId,
|
||||
title: apt.title,
|
||||
date: apt.date,
|
||||
type: apt.type,
|
||||
status: apt.status ?? undefined,
|
||||
startTime: newTimeSlot.time,
|
||||
endTime: endTime,
|
||||
notes: `Appointment with ${staff?.name}`,
|
||||
staffId: newStaffId, // Update staffId
|
||||
};
|
||||
// Call update mutation
|
||||
updateAppointmentMutation.mutate({
|
||||
@@ -727,41 +797,64 @@ export default function AppointmentsPage() {
|
||||
function DroppableTimeSlot({
|
||||
timeSlot,
|
||||
staffId,
|
||||
staffIndex,
|
||||
appointment,
|
||||
staff,
|
||||
}: {
|
||||
timeSlot: TimeSlot;
|
||||
staffId: number;
|
||||
staffIndex: number;
|
||||
appointment: ScheduledAppointment | undefined;
|
||||
staff: Staff;
|
||||
}) {
|
||||
const blocked = !isWithinOfficeHours(timeSlot.time, staffIndex);
|
||||
|
||||
const [{ isOver, canDrop }, drop] = useDrop(() => ({
|
||||
accept: ItemTypes.APPOINTMENT,
|
||||
drop: (item: { id: number }) => {
|
||||
handleMoveAppointment(item.id, timeSlot, staffId);
|
||||
},
|
||||
canDrop: (item: { id: number }) => {
|
||||
// Prevent dropping if there's already an appointment here
|
||||
return !appointment;
|
||||
if (blocked) {
|
||||
// Store plain data — never store callbacks in state across re-renders
|
||||
setPendingOverride({ type: "move", appointmentId: item.id, timeSlot, staffId });
|
||||
} else {
|
||||
handleMoveAppointment(item.id, timeSlot, staffId);
|
||||
}
|
||||
},
|
||||
canDrop: () => !appointment,
|
||||
collect: (monitor) => ({
|
||||
isOver: !!monitor.isOver(),
|
||||
canDrop: !!monitor.canDrop(),
|
||||
}),
|
||||
}));
|
||||
|
||||
const handleClickEmpty = () => {
|
||||
if (blocked) {
|
||||
setPendingOverride({ type: "create", timeSlot, staffId });
|
||||
} else {
|
||||
handleCreateAppointmentAtSlot(timeSlot, staffId);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<td
|
||||
ref={drop as unknown as React.RefObject<HTMLTableCellElement>}
|
||||
key={`${timeSlot.time}-${staffId}`}
|
||||
className={`px-1 py-1 border relative h-14 ${isOver && canDrop ? "bg-green-100" : ""}`}
|
||||
className={`px-1 py-1 border relative h-14 ${
|
||||
isOver && canDrop ? "bg-green-100" : blocked ? "bg-gray-100" : ""
|
||||
}`}
|
||||
title={blocked ? "Outside office hours — click to override" : undefined}
|
||||
>
|
||||
{appointment ? (
|
||||
<DraggableAppointment appointment={appointment} staff={staff} />
|
||||
) : (
|
||||
<button
|
||||
className={`w-full h-full ${isOver && canDrop ? "bg-green-100" : "text-gray-400 hover:bg-gray-100"} rounded flex items-center justify-center`}
|
||||
onClick={() => handleCreateAppointmentAtSlot(timeSlot, staffId)}
|
||||
className={`w-full h-full rounded flex items-center justify-center ${
|
||||
isOver && canDrop
|
||||
? "bg-green-100"
|
||||
: blocked
|
||||
? "text-gray-300 hover:bg-gray-200"
|
||||
: "text-gray-400 hover:bg-gray-100"
|
||||
}`}
|
||||
onClick={handleClickEmpty}
|
||||
>
|
||||
<Plus className="h-4 w-4" />
|
||||
</button>
|
||||
@@ -1150,7 +1243,7 @@ export default function AppointmentsPage() {
|
||||
onChange={() => toggleStaffColumn(Number(staff.id))}
|
||||
/>
|
||||
<span className="text-sm font-medium">
|
||||
{String.fromCharCode(65 + index)}
|
||||
{columnLabels[String(staff.id)] ?? String.fromCharCode(65 + index)}
|
||||
</span>
|
||||
</label>
|
||||
))}
|
||||
@@ -1187,7 +1280,7 @@ export default function AppointmentsPage() {
|
||||
onChange={() => toggleClaimColumn(Number(staff.id))}
|
||||
/>
|
||||
<span className="text-sm font-medium">
|
||||
{String.fromCharCode(65 + index)}
|
||||
{columnLabels[String(staff.id)] ?? String.fromCharCode(65 + index)}
|
||||
</span>
|
||||
</label>
|
||||
))}
|
||||
@@ -1213,7 +1306,7 @@ export default function AppointmentsPage() {
|
||||
onChange={() => toggleReminderColumn(Number(staff.id))}
|
||||
/>
|
||||
<span className="text-sm font-medium">
|
||||
{String.fromCharCode(65 + index)}
|
||||
{columnLabels[String(staff.id)] ?? String.fromCharCode(65 + index)}
|
||||
</span>
|
||||
</label>
|
||||
))}
|
||||
@@ -1250,7 +1343,7 @@ export default function AppointmentsPage() {
|
||||
onChange={() => toggleDownloadPdfColumn(Number(staff.id))}
|
||||
/>
|
||||
<span className="text-sm font-medium">
|
||||
{String.fromCharCode(65 + index)}
|
||||
{columnLabels[String(staff.id)] ?? String.fromCharCode(65 + index)}
|
||||
</span>
|
||||
</label>
|
||||
))}
|
||||
@@ -1443,15 +1536,33 @@ export default function AppointmentsPage() {
|
||||
<thead>
|
||||
<tr>
|
||||
<th className="p-2 border bg-gray-50 w-[100px]">Time</th>
|
||||
{staffMembers.map((staff) => (
|
||||
{staffMembers.map((staff, index) => (
|
||||
<th
|
||||
key={staff.id}
|
||||
className={`p-2 border bg-gray-50 ${staff.role === "doctor" ? "font-bold" : ""}`}
|
||||
>
|
||||
{staff.name}
|
||||
<div className="text-xs text-gray-500">
|
||||
{staff.role}
|
||||
</div>
|
||||
{editingLabelStaffId === String(staff.id) ? (
|
||||
<input
|
||||
className="w-16 text-center border rounded text-sm font-bold px-1"
|
||||
defaultValue={columnLabels[String(staff.id)] ?? String.fromCharCode(65 + index)}
|
||||
onBlur={(e) => handleLabelSave(String(staff.id), e.target.value)}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter") handleLabelSave(String(staff.id), e.currentTarget.value);
|
||||
if (e.key === "Escape") setEditingLabelStaffId(null);
|
||||
}}
|
||||
autoFocus
|
||||
/>
|
||||
) : (
|
||||
<div
|
||||
className="font-bold text-sm cursor-pointer hover:bg-gray-200 rounded px-1 inline-block"
|
||||
title="Click to rename"
|
||||
onClick={() => setEditingLabelStaffId(String(staff.id))}
|
||||
>
|
||||
{columnLabels[String(staff.id)] ?? String.fromCharCode(65 + index)}
|
||||
</div>
|
||||
)}
|
||||
<div className="text-xs text-gray-500">{staff.name}</div>
|
||||
<div className="text-xs text-gray-400">{staff.role}</div>
|
||||
</th>
|
||||
))}
|
||||
</tr>
|
||||
@@ -1462,11 +1573,12 @@ export default function AppointmentsPage() {
|
||||
<td className="border px-2 py-1 text-xs text-gray-600 font-medium">
|
||||
{timeSlot.displayTime}
|
||||
</td>
|
||||
{staffMembers.map((staff) => (
|
||||
{staffMembers.map((staff, staffIndex) => (
|
||||
<DroppableTimeSlot
|
||||
key={`${timeSlot.time}-${staff.id}`}
|
||||
timeSlot={timeSlot}
|
||||
staffId={Number(staff.id)}
|
||||
staffIndex={staffIndex}
|
||||
appointment={getAppointmentAtSlot(
|
||||
timeSlot,
|
||||
Number(staff.id)
|
||||
@@ -1504,6 +1616,39 @@ export default function AppointmentsPage() {
|
||||
entityName={String(confirmDeleteState.appointmentId)}
|
||||
/>
|
||||
|
||||
{/* Outside-office-hours override dialog */}
|
||||
{pendingOverride && (
|
||||
<div className="fixed inset-0 bg-black/40 flex items-center justify-center z-50">
|
||||
<div className="bg-white rounded-lg shadow-lg p-6 max-w-sm w-full mx-4">
|
||||
<h3 className="text-base font-semibold mb-2">Outside Office Hours</h3>
|
||||
<p className="text-sm text-gray-600 mb-5">
|
||||
This time slot is outside the configured office hours. Do you want to schedule here anyway?
|
||||
</p>
|
||||
<div className="flex justify-end gap-3">
|
||||
<button
|
||||
className="px-4 py-2 text-sm border rounded hover:bg-gray-50"
|
||||
onClick={() => setPendingOverride(null)}
|
||||
>
|
||||
Cancel
|
||||
</button>
|
||||
<button
|
||||
className="px-4 py-2 text-sm bg-teal-600 text-white rounded hover:bg-teal-700"
|
||||
onClick={() => {
|
||||
if (pendingOverride.type === "move" && pendingOverride.appointmentId != null) {
|
||||
handleMoveAppointment(pendingOverride.appointmentId, pendingOverride.timeSlot, pendingOverride.staffId);
|
||||
} else {
|
||||
handleCreateAppointmentAtSlot(pendingOverride.timeSlot, pendingOverride.staffId);
|
||||
}
|
||||
setPendingOverride(null);
|
||||
}}
|
||||
>
|
||||
Schedule Anyway
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Select Procedures modal — stays on appointments page */}
|
||||
{isSelectProceduresOpen && selectProceduresPatientId !== null && (
|
||||
<ClaimForm
|
||||
|
||||
@@ -15,6 +15,7 @@ import { NpiProviderTable } from "@/components/settings/npiProviderTable";
|
||||
import { ProgramBridgeTable } from "@/components/settings/program-bridge-table";
|
||||
import { TwilioSettingsCard } from "@/components/settings/twilio-settings-card";
|
||||
import { AiSettingsCard } from "@/components/settings/ai-settings-card";
|
||||
import { OfficeHoursCard } from "@/components/settings/office-hours-card";
|
||||
|
||||
type SectionId =
|
||||
| "staff"
|
||||
@@ -24,7 +25,8 @@ type SectionId =
|
||||
| "npi"
|
||||
| "programs"
|
||||
| "twilio"
|
||||
| "ai";
|
||||
| "ai"
|
||||
| "officehours";
|
||||
|
||||
export default function SettingsPage() {
|
||||
const { toast } = useToast();
|
||||
@@ -251,6 +253,9 @@ export default function SettingsPage() {
|
||||
case "ai":
|
||||
return <AiSettingsCard />;
|
||||
|
||||
case "officehours":
|
||||
return <OfficeHoursCard />;
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
393
package-lock.json
generated
393
package-lock.json
generated
@@ -37,6 +37,9 @@
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@google/generative-ai": "^0.24.1",
|
||||
"@langchain/google-genai": "^2.1.30",
|
||||
"@langchain/langgraph": "^1.2.9",
|
||||
"archiver": "^7.0.1",
|
||||
"axios": "^1.9.0",
|
||||
"bcrypt": "^5.1.1",
|
||||
@@ -53,6 +56,7 @@
|
||||
"passport-local": "^1.0.0",
|
||||
"pdfkit": "^0.17.2",
|
||||
"socket.io": "^4.8.1",
|
||||
"twilio": "^6.0.0",
|
||||
"ws": "^8.18.0",
|
||||
"zod": "^3.24.2",
|
||||
"zod-validation-error": "^3.4.0"
|
||||
@@ -199,6 +203,7 @@
|
||||
},
|
||||
"apps/SeleniumServiceold": {
|
||||
"name": "seleniumserviceold",
|
||||
"extraneous": true,
|
||||
"hasInstallScript": true
|
||||
},
|
||||
"node_modules/@alloc/quick-lru": {
|
||||
@@ -525,6 +530,12 @@
|
||||
"node": ">=6.9.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@cfworker/json-schema": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@cfworker/json-schema/-/json-schema-4.1.1.tgz",
|
||||
"integrity": "sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@chevrotain/cst-dts-gen": {
|
||||
"version": "10.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-10.5.0.tgz",
|
||||
@@ -1253,6 +1264,15 @@
|
||||
"integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@google/generative-ai": {
|
||||
"version": "0.24.1",
|
||||
"resolved": "https://registry.npmjs.org/@google/generative-ai/-/generative-ai-0.24.1.tgz",
|
||||
"integrity": "sha512-MqO+MLfM6kjxcKoy0p1wRzG3b4ZZXtPI+z2IE26UogS2Cm/XHO+7gGRBh6gcJsOiIVoH93UwKvW4HdgiOZCy9Q==",
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@hono/node-server": {
|
||||
"version": "1.19.9",
|
||||
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.9.tgz",
|
||||
@@ -1394,6 +1414,206 @@
|
||||
"@jridgewell/sourcemap-codec": "^1.4.14"
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/core": {
|
||||
"version": "1.1.44",
|
||||
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-1.1.44.tgz",
|
||||
"integrity": "sha512-RePW1IjGCHr9ua2vcby3aE8mOOz3EnwDZxMEGbNDT91kf14eqkJqxDXvaZFviGdcN9DTrxM5RPQNAHmwSm4tbg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@cfworker/json-schema": "^4.0.2",
|
||||
"@standard-schema/spec": "^1.1.0",
|
||||
"ansi-styles": "^5.0.0",
|
||||
"camelcase": "6",
|
||||
"decamelize": "1.2.0",
|
||||
"js-tiktoken": "^1.0.12",
|
||||
"langsmith": ">=0.5.0 <1.0.0",
|
||||
"mustache": "^4.2.0",
|
||||
"p-queue": "^6.6.2",
|
||||
"zod": "^3.25.76 || ^4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/core/node_modules/ansi-styles": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
|
||||
"integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/google-genai": {
|
||||
"version": "2.1.30",
|
||||
"resolved": "https://registry.npmjs.org/@langchain/google-genai/-/google-genai-2.1.30.tgz",
|
||||
"integrity": "sha512-0wKgy1NvV89fw5MwYiOOhh18SnUEH20z6MZrPV6Tj2hMAA3jAHVSLlIcCQ2mDRJo2r1aHLV8MDXhzkvD1tEHoQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@google/generative-ai": "^0.24.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@langchain/core": "^1.1.43"
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/langgraph": {
|
||||
"version": "1.2.9",
|
||||
"resolved": "https://registry.npmjs.org/@langchain/langgraph/-/langgraph-1.2.9.tgz",
|
||||
"integrity": "sha512-3c7BtGycHC2v9p6w/Hv8L7kEl1YnZYOQTDJtmAp3knk6JOedO7d2bYP3y0SRyhv5orUEGf/KGvx8ZsB/ideP7g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@langchain/langgraph-checkpoint": "^1.0.1",
|
||||
"@langchain/langgraph-sdk": "~1.8.9",
|
||||
"@standard-schema/spec": "1.1.0",
|
||||
"uuid": "^10.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@langchain/core": "^1.1.40",
|
||||
"zod": "^3.25.32 || ^4.2.0",
|
||||
"zod-to-json-schema": "^3.x"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"zod-to-json-schema": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/langgraph-checkpoint": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-1.0.1.tgz",
|
||||
"integrity": "sha512-HM0cJLRpIsSlWBQ/xuDC67l52SqZ62Bh2Y61DX+Xorqwoh5e1KxYvfCD7GnSTbWWhjBOutvnR0vPhu4orFkZfw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"uuid": "^10.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@langchain/core": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/langgraph-checkpoint/node_modules/uuid": {
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
|
||||
"integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
|
||||
"deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
|
||||
"funding": [
|
||||
"https://github.com/sponsors/broofa",
|
||||
"https://github.com/sponsors/ctavan"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"uuid": "dist/bin/uuid"
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/langgraph-sdk": {
|
||||
"version": "1.8.10",
|
||||
"resolved": "https://registry.npmjs.org/@langchain/langgraph-sdk/-/langgraph-sdk-1.8.10.tgz",
|
||||
"integrity": "sha512-wrB3rkRw5KAmsqezwvKP3midT4qJrV6Hj9XJMYo+cbvXC4HYpSAmyY/VriSyeTFRbLG/OP/pY2Yz+9Z54nSaXQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/json-schema": "^7.0.15",
|
||||
"p-queue": "^9.0.1",
|
||||
"p-retry": "^7.1.1",
|
||||
"uuid": "^13.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@langchain/core": "^1.1.16",
|
||||
"react": "^18 || ^19",
|
||||
"react-dom": "^18 || ^19",
|
||||
"svelte": "^4.0.0 || ^5.0.0",
|
||||
"vue": "^3.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@langchain/core": {
|
||||
"optional": true
|
||||
},
|
||||
"react": {
|
||||
"optional": true
|
||||
},
|
||||
"react-dom": {
|
||||
"optional": true
|
||||
},
|
||||
"svelte": {
|
||||
"optional": true
|
||||
},
|
||||
"vue": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/langgraph-sdk/node_modules/eventemitter3": {
|
||||
"version": "5.0.4",
|
||||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz",
|
||||
"integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@langchain/langgraph-sdk/node_modules/p-queue": {
|
||||
"version": "9.2.0",
|
||||
"resolved": "https://registry.npmjs.org/p-queue/-/p-queue-9.2.0.tgz",
|
||||
"integrity": "sha512-dWgLE8AH0HjQ9fe74pUkKkvzzYT18Inp4zra3lKHnnwqGvcfcUBrvF2EAVX+envufDNBOzpPq/IBUONDbI7+3g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"eventemitter3": "^5.0.4",
|
||||
"p-timeout": "^7.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/langgraph-sdk/node_modules/p-timeout": {
|
||||
"version": "7.0.1",
|
||||
"resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-7.0.1.tgz",
|
||||
"integrity": "sha512-AxTM2wDGORHGEkPCt8yqxOTMgpfbEHqF51f/5fJCmwFC3C/zNcGT63SymH2ttOAaiIws2zVg4+izQCjrakcwHg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/langgraph-sdk/node_modules/uuid": {
|
||||
"version": "13.0.1",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.1.tgz",
|
||||
"integrity": "sha512-9ezox2roIft6ExBVTVqibSd5dc5/47Sw/uY6b4SjQUT2TzQ0tltNquWA46y4xPQmdZYqvnio22SgWd41M86+jw==",
|
||||
"funding": [
|
||||
"https://github.com/sponsors/broofa",
|
||||
"https://github.com/sponsors/ctavan"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"uuid": "dist-node/bin/uuid"
|
||||
}
|
||||
},
|
||||
"node_modules/@langchain/langgraph/node_modules/uuid": {
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
|
||||
"integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
|
||||
"deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
|
||||
"funding": [
|
||||
"https://github.com/sponsors/broofa",
|
||||
"https://github.com/sponsors/ctavan"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"uuid": "dist/bin/uuid"
|
||||
}
|
||||
},
|
||||
"node_modules/@mapbox/node-pre-gyp": {
|
||||
"version": "1.0.11",
|
||||
"resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz",
|
||||
@@ -4734,7 +4954,6 @@
|
||||
"version": "7.0.15",
|
||||
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
|
||||
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/jsonwebtoken": {
|
||||
@@ -6005,6 +6224,18 @@
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/camelcase": {
|
||||
"version": "6.3.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
|
||||
"integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/camelcase-css": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
|
||||
@@ -6631,6 +6862,12 @@
|
||||
"integrity": "sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/dayjs": {
|
||||
"version": "1.11.20",
|
||||
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.20.tgz",
|
||||
"integrity": "sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/debug": {
|
||||
"version": "4.4.3",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
||||
@@ -6648,6 +6885,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/decamelize": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
|
||||
"integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/decimal.js": {
|
||||
"version": "10.6.0",
|
||||
"resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",
|
||||
@@ -8679,6 +8925,18 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/is-network-error": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/is-network-error/-/is-network-error-1.3.1.tgz",
|
||||
"integrity": "sha512-6QCxa49rQbmUWLfk0nuGqzql9U8uaV2H6279bRErPBHe/109hCzsLUBUHfbEtvLIHBd6hyXbgedBSHevm43Edw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/is-number": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
||||
@@ -8752,6 +9010,15 @@
|
||||
"deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/js-tiktoken": {
|
||||
"version": "1.0.21",
|
||||
"resolved": "https://registry.npmjs.org/js-tiktoken/-/js-tiktoken-1.0.21.tgz",
|
||||
"integrity": "sha512-biOj/6M5qdgx5TKjDnFT1ymSpM5tbd3ylwDtrQvFQSu0Z7bBYko2dF+W/aUkXUPuk6IVpRxk/3Q2sHOzGlS36g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"base64-js": "^1.5.1"
|
||||
}
|
||||
},
|
||||
"node_modules/js-tokens": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||
@@ -8903,6 +9170,39 @@
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/langsmith": {
|
||||
"version": "0.6.0",
|
||||
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.6.0.tgz",
|
||||
"integrity": "sha512-GGaj5IMRfLv2HXXFzGk9diISMYLTpSTh6fzCZGKxWYW/NqEztIFtnXLq6G/RVhzFRmCykLap1fuC67LVKoQLcg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"p-queue": "6.6.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@opentelemetry/api": "*",
|
||||
"@opentelemetry/exporter-trace-otlp-proto": "*",
|
||||
"@opentelemetry/sdk-trace-base": "*",
|
||||
"openai": "*",
|
||||
"ws": ">=7"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@opentelemetry/api": {
|
||||
"optional": true
|
||||
},
|
||||
"@opentelemetry/exporter-trace-otlp-proto": {
|
||||
"optional": true
|
||||
},
|
||||
"@opentelemetry/sdk-trace-base": {
|
||||
"optional": true
|
||||
},
|
||||
"openai": {
|
||||
"optional": true
|
||||
},
|
||||
"ws": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/lazystream": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz",
|
||||
@@ -9708,6 +10008,15 @@
|
||||
"node": ">= 10.16.0"
|
||||
}
|
||||
},
|
||||
"node_modules/mustache": {
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz",
|
||||
"integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"mustache": "bin/mustache"
|
||||
}
|
||||
},
|
||||
"node_modules/mysql2": {
|
||||
"version": "3.15.3",
|
||||
"resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.15.3.tgz",
|
||||
@@ -10102,6 +10411,49 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/p-queue": {
|
||||
"version": "6.6.2",
|
||||
"resolved": "https://registry.npmjs.org/p-queue/-/p-queue-6.6.2.tgz",
|
||||
"integrity": "sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"eventemitter3": "^4.0.4",
|
||||
"p-timeout": "^3.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/p-retry": {
|
||||
"version": "7.1.1",
|
||||
"resolved": "https://registry.npmjs.org/p-retry/-/p-retry-7.1.1.tgz",
|
||||
"integrity": "sha512-J5ApzjyRkkf601HpEeykoiCvzHQjWxPAHhyjFcEUP2SWq0+35NKh8TLhpLw+Dkq5TZBFvUM6UigdE9hIVYTl5w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"is-network-error": "^1.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/p-timeout": {
|
||||
"version": "3.2.0",
|
||||
"resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz",
|
||||
"integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"p-finally": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/package-json-from-dist": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
|
||||
@@ -12086,14 +12438,17 @@
|
||||
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/scmp": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/scmp/-/scmp-2.1.0.tgz",
|
||||
"integrity": "sha512-o/mRQGk9Rcer/jEEw/yw4mwo3EU/NvYvp577/Btqrym9Qy5/MdWGBqipbALgd2lrdWTJ5/gqDusxfnQBxOxT2Q==",
|
||||
"deprecated": "Just use Node.js's crypto.timingSafeEqual()",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/seleniumservice": {
|
||||
"resolved": "apps/SeleniumService",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/seleniumserviceold": {
|
||||
"resolved": "apps/SeleniumServiceold",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/semver": {
|
||||
"version": "5.7.2",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
|
||||
@@ -13408,6 +13763,24 @@
|
||||
"url": "https://github.com/sponsors/Wombosvideo"
|
||||
}
|
||||
},
|
||||
"node_modules/twilio": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/twilio/-/twilio-6.0.0.tgz",
|
||||
"integrity": "sha512-MAie5DJ3KLpcKlDaYtNzsKMQXcCi+YHWKvZjuSpm27vJAO/l8PanJA0LkkJ03sbh+Kwe5NeL0Q2+y6IjNUYeUA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"axios": "^1.13.5",
|
||||
"dayjs": "^1.11.9",
|
||||
"https-proxy-agent": "^5.0.0",
|
||||
"jsonwebtoken": "^9.0.3",
|
||||
"qs": "^6.14.1",
|
||||
"scmp": "^2.1.0",
|
||||
"xmlbuilder": "^13.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/type-check": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
|
||||
@@ -14507,6 +14880,7 @@
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.19.0.tgz",
|
||||
"integrity": "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
@@ -14523,6 +14897,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/xmlbuilder": {
|
||||
"version": "13.0.2",
|
||||
"resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-13.0.2.tgz",
|
||||
"integrity": "sha512-Eux0i2QdDYKbdbA6AM6xE4m6ZTZr4G4xF9kahI2ukSEMCzwce2eX9WlTI5J3s+NU7hpasFsr8hWIONae7LluAQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/xmlhttprequest-ssl": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.1.2.tgz",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -401,6 +401,28 @@ exports.Prisma.PatientDocumentScalarFieldEnum = {
|
||||
updatedAt: 'updatedAt'
|
||||
};
|
||||
|
||||
exports.Prisma.TwilioSettingsScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
accountSid: 'accountSid',
|
||||
authToken: 'authToken',
|
||||
phoneNumber: 'phoneNumber',
|
||||
greetingMessage: 'greetingMessage',
|
||||
templates: 'templates'
|
||||
};
|
||||
|
||||
exports.Prisma.AiSettingsScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
apiKey: 'apiKey'
|
||||
};
|
||||
|
||||
exports.Prisma.OfficeHoursScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
data: 'data'
|
||||
};
|
||||
|
||||
exports.Prisma.SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -411,6 +433,10 @@ exports.Prisma.NullableJsonNullValueInput = {
|
||||
JsonNull: Prisma.JsonNull
|
||||
};
|
||||
|
||||
exports.Prisma.JsonNullValueInput = {
|
||||
JsonNull: Prisma.JsonNull
|
||||
};
|
||||
|
||||
exports.Prisma.QueryMode = {
|
||||
default: 'default',
|
||||
insensitive: 'insensitive'
|
||||
@@ -538,7 +564,10 @@ exports.Prisma.ModelName = {
|
||||
CloudFile: 'CloudFile',
|
||||
CloudFileChunk: 'CloudFileChunk',
|
||||
Communication: 'Communication',
|
||||
PatientDocument: 'PatientDocument'
|
||||
PatientDocument: 'PatientDocument',
|
||||
TwilioSettings: 'TwilioSettings',
|
||||
AiSettings: 'AiSettings',
|
||||
OfficeHours: 'OfficeHours'
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
4871
packages/db/generated/prisma/index.d.ts
vendored
4871
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-22655c07aa39745227b4db21e1a272ed33f573d246376a2497ebde7ea0c156fb",
|
||||
"name": "prisma-client-db87bf66545e77505291e1e9a0077b158237c6d88a3205c70a049bfe0bf44c4f",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"browser": "default.js",
|
||||
|
||||
@@ -37,6 +37,9 @@ model User {
|
||||
cloudFolders CloudFolder[]
|
||||
cloudFiles CloudFile[]
|
||||
communications Communication[]
|
||||
twilioSettings TwilioSettings?
|
||||
aiSettings AiSettings?
|
||||
officeHours OfficeHours?
|
||||
}
|
||||
|
||||
model Patient {
|
||||
@@ -543,3 +546,37 @@ model PatientDocument {
|
||||
@@index([patientId])
|
||||
@@index([uploadedAt])
|
||||
}
|
||||
|
||||
model TwilioSettings {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int @unique
|
||||
accountSid String
|
||||
authToken String
|
||||
phoneNumber String
|
||||
greetingMessage String?
|
||||
templates Json?
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@map("twilio_settings")
|
||||
}
|
||||
|
||||
model AiSettings {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int @unique
|
||||
apiKey String
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@map("ai_settings")
|
||||
}
|
||||
|
||||
model OfficeHours {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int @unique
|
||||
data Json
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@map("office_hours")
|
||||
}
|
||||
|
||||
@@ -38,6 +38,8 @@ model User {
|
||||
cloudFiles CloudFile[]
|
||||
communications Communication[]
|
||||
twilioSettings TwilioSettings?
|
||||
aiSettings AiSettings?
|
||||
officeHours OfficeHours?
|
||||
}
|
||||
|
||||
model Patient {
|
||||
@@ -559,3 +561,23 @@ model TwilioSettings {
|
||||
|
||||
@@map("twilio_settings")
|
||||
}
|
||||
|
||||
model AiSettings {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int @unique
|
||||
apiKey String
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@map("ai_settings")
|
||||
}
|
||||
|
||||
model OfficeHours {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int @unique
|
||||
data Json
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@map("office_hours")
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"generatorVersion": "1.0.0",
|
||||
"generatedAt": "2026-05-01T03:52:20.889Z",
|
||||
"outputPath": "/home/ee/Desktop/DentalManagementMH04/packages/db/shared",
|
||||
"generatedAt": "2026-05-05T02:21:32.341Z",
|
||||
"outputPath": "/home/ee/Desktop/DentalManagementMH05/packages/db/shared",
|
||||
"files": [
|
||||
"schemas/enums/TransactionIsolationLevel.schema.ts",
|
||||
"schemas/enums/UserScalarFieldEnum.schema.ts",
|
||||
@@ -29,8 +29,12 @@
|
||||
"schemas/enums/CloudFileChunkScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/CommunicationScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/PatientDocumentScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/TwilioSettingsScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/AiSettingsScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/OfficeHoursScalarFieldEnum.schema.ts",
|
||||
"schemas/enums/SortOrder.schema.ts",
|
||||
"schemas/enums/NullableJsonNullValueInput.schema.ts",
|
||||
"schemas/enums/JsonNullValueInput.schema.ts",
|
||||
"schemas/enums/QueryMode.schema.ts",
|
||||
"schemas/enums/NullsOrder.schema.ts",
|
||||
"schemas/enums/JsonNullValueFilter.schema.ts",
|
||||
@@ -166,6 +170,21 @@
|
||||
"schemas/objects/PatientDocumentWhereUniqueInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentOrderByWithAggregationInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentScalarWhereWithAggregatesInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsWhereInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsOrderByWithRelationInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsWhereUniqueInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsOrderByWithAggregationInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsScalarWhereWithAggregatesInput.schema.ts",
|
||||
"schemas/objects/AiSettingsWhereInput.schema.ts",
|
||||
"schemas/objects/AiSettingsOrderByWithRelationInput.schema.ts",
|
||||
"schemas/objects/AiSettingsWhereUniqueInput.schema.ts",
|
||||
"schemas/objects/AiSettingsOrderByWithAggregationInput.schema.ts",
|
||||
"schemas/objects/AiSettingsScalarWhereWithAggregatesInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursWhereInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursOrderByWithRelationInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursWhereUniqueInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursOrderByWithAggregationInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursScalarWhereWithAggregatesInput.schema.ts",
|
||||
"schemas/objects/UserCreateInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedCreateInput.schema.ts",
|
||||
"schemas/objects/UserUpdateInput.schema.ts",
|
||||
@@ -334,6 +353,27 @@
|
||||
"schemas/objects/PatientDocumentCreateManyInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUpdateManyMutationInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUncheckedUpdateManyInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsCreateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUncheckedCreateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUpdateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUncheckedUpdateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsCreateManyInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUpdateManyMutationInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUncheckedUpdateManyInput.schema.ts",
|
||||
"schemas/objects/AiSettingsCreateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUncheckedCreateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUpdateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUncheckedUpdateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsCreateManyInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUpdateManyMutationInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUncheckedUpdateManyInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursCreateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUncheckedCreateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUpdateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUncheckedUpdateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursCreateManyInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUpdateManyMutationInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUncheckedUpdateManyInput.schema.ts",
|
||||
"schemas/objects/IntFilter.schema.ts",
|
||||
"schemas/objects/StringFilter.schema.ts",
|
||||
"schemas/objects/BoolFilter.schema.ts",
|
||||
@@ -350,6 +390,9 @@
|
||||
"schemas/objects/CloudFolderListRelationFilter.schema.ts",
|
||||
"schemas/objects/CloudFileListRelationFilter.schema.ts",
|
||||
"schemas/objects/CommunicationListRelationFilter.schema.ts",
|
||||
"schemas/objects/TwilioSettingsNullableScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/AiSettingsNullableScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/OfficeHoursNullableScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/PatientOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/AppointmentOrderByRelationAggregateInput.schema.ts",
|
||||
"schemas/objects/StaffOrderByRelationAggregateInput.schema.ts",
|
||||
@@ -565,6 +608,23 @@
|
||||
"schemas/objects/PatientDocumentMaxOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentMinOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentSumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsCountOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsAvgOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsMaxOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsMinOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsSumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsCountOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsAvgOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsMaxOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsMinOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsSumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/JsonFilter.schema.ts",
|
||||
"schemas/objects/OfficeHoursCountOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursAvgOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursMaxOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursMinOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursSumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/JsonWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/PatientCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AppointmentCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/StaffCreateNestedManyWithoutUserInput.schema.ts",
|
||||
@@ -578,6 +638,9 @@
|
||||
"schemas/objects/CloudFolderCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/CloudFileCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/CommunicationCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsCreateNestedOneWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AiSettingsCreateNestedOneWithoutUserInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursCreateNestedOneWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/StaffUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
@@ -591,6 +654,9 @@
|
||||
"schemas/objects/CloudFolderUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/CloudFileUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/CommunicationUncheckedCreateNestedManyWithoutUserInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUncheckedCreateNestedOneWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUncheckedCreateNestedOneWithoutUserInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUncheckedCreateNestedOneWithoutUserInput.schema.ts",
|
||||
"schemas/objects/StringFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/BoolFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
@@ -606,6 +672,9 @@
|
||||
"schemas/objects/CloudFolderUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/CloudFileUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/CommunicationUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUpdateOneWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUpdateOneWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUpdateOneWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/IntFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
@@ -620,6 +689,9 @@
|
||||
"schemas/objects/CloudFolderUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/CloudFileUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/CommunicationUncheckedUpdateManyWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUncheckedUpdateOneWithoutUserNestedInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/AppointmentCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
@@ -810,6 +882,12 @@
|
||||
"schemas/objects/UserUpdateOneWithoutCommunicationsNestedInput.schema.ts",
|
||||
"schemas/objects/PatientCreateNestedOneWithoutDocumentsInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateOneRequiredWithoutDocumentsNestedInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutTwilioSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateOneRequiredWithoutTwilioSettingsNestedInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutAiSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateOneRequiredWithoutAiSettingsNestedInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutOfficeHoursInput.schema.ts",
|
||||
"schemas/objects/UserUpdateOneRequiredWithoutOfficeHoursNestedInput.schema.ts",
|
||||
"schemas/objects/NestedIntFilter.schema.ts",
|
||||
"schemas/objects/NestedStringFilter.schema.ts",
|
||||
"schemas/objects/NestedBoolFilter.schema.ts",
|
||||
@@ -859,6 +937,7 @@
|
||||
"schemas/objects/NestedEnumCommunicationChannelWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedEnumCommunicationDirectionWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedEnumCommunicationStatusWithAggregatesFilter.schema.ts",
|
||||
"schemas/objects/NestedJsonFilter.schema.ts",
|
||||
"schemas/objects/PatientCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientCreateOrConnectWithoutUserInput.schema.ts",
|
||||
@@ -911,6 +990,15 @@
|
||||
"schemas/objects/CommunicationUncheckedCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/CommunicationCreateOrConnectWithoutUserInput.schema.ts",
|
||||
"schemas/objects/CommunicationCreateManyUserInputEnvelope.schema.ts",
|
||||
"schemas/objects/TwilioSettingsCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUncheckedCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsCreateOrConnectWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AiSettingsCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUncheckedCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AiSettingsCreateOrConnectWithoutUserInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUncheckedCreateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursCreateOrConnectWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientUpsertWithWhereUniqueWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateWithWhereUniqueWithoutUserInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateManyWithWhereWithoutUserInput.schema.ts",
|
||||
@@ -963,6 +1051,18 @@
|
||||
"schemas/objects/CommunicationUpdateWithWhereUniqueWithoutUserInput.schema.ts",
|
||||
"schemas/objects/CommunicationUpdateManyWithWhereWithoutUserInput.schema.ts",
|
||||
"schemas/objects/CommunicationScalarWhereInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUpsertWithoutUserInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUpdateToOneWithWhereWithoutUserInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsUncheckedUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUpsertWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUpdateToOneWithWhereWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/AiSettingsUncheckedUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUpsertWithoutUserInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUpdateToOneWithWhereWithoutUserInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursUncheckedUpdateWithoutUserInput.schema.ts",
|
||||
"schemas/objects/UserCreateWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedCreateWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/UserCreateOrConnectWithoutPatientsInput.schema.ts",
|
||||
@@ -1399,6 +1499,27 @@
|
||||
"schemas/objects/PatientUpdateToOneWithWhereWithoutDocumentsInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateWithoutDocumentsInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedUpdateWithoutDocumentsInput.schema.ts",
|
||||
"schemas/objects/UserCreateWithoutTwilioSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedCreateWithoutTwilioSettingsInput.schema.ts",
|
||||
"schemas/objects/UserCreateOrConnectWithoutTwilioSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUpsertWithoutTwilioSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateToOneWithWhereWithoutTwilioSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateWithoutTwilioSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedUpdateWithoutTwilioSettingsInput.schema.ts",
|
||||
"schemas/objects/UserCreateWithoutAiSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedCreateWithoutAiSettingsInput.schema.ts",
|
||||
"schemas/objects/UserCreateOrConnectWithoutAiSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUpsertWithoutAiSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateToOneWithWhereWithoutAiSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateWithoutAiSettingsInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedUpdateWithoutAiSettingsInput.schema.ts",
|
||||
"schemas/objects/UserCreateWithoutOfficeHoursInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedCreateWithoutOfficeHoursInput.schema.ts",
|
||||
"schemas/objects/UserCreateOrConnectWithoutOfficeHoursInput.schema.ts",
|
||||
"schemas/objects/UserUpsertWithoutOfficeHoursInput.schema.ts",
|
||||
"schemas/objects/UserUpdateToOneWithWhereWithoutOfficeHoursInput.schema.ts",
|
||||
"schemas/objects/UserUpdateWithoutOfficeHoursInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedUpdateWithoutOfficeHoursInput.schema.ts",
|
||||
"schemas/objects/PatientCreateManyUserInput.schema.ts",
|
||||
"schemas/objects/AppointmentCreateManyUserInput.schema.ts",
|
||||
"schemas/objects/StaffCreateManyUserInput.schema.ts",
|
||||
@@ -1663,6 +1784,21 @@
|
||||
"schemas/objects/PatientDocumentSumAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentMinAggregateInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentMaxAggregateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsCountAggregateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsAvgAggregateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsSumAggregateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsMinAggregateInput.schema.ts",
|
||||
"schemas/objects/TwilioSettingsMaxAggregateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsCountAggregateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsAvgAggregateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsSumAggregateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsMinAggregateInput.schema.ts",
|
||||
"schemas/objects/AiSettingsMaxAggregateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursCountAggregateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursAvgAggregateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursSumAggregateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursMinAggregateInput.schema.ts",
|
||||
"schemas/objects/OfficeHoursMaxAggregateInput.schema.ts",
|
||||
"schemas/objects/UserCountOutputTypeSelect.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeSelect.schema.ts",
|
||||
"schemas/objects/AppointmentCountOutputTypeSelect.schema.ts",
|
||||
@@ -1745,6 +1881,9 @@
|
||||
"schemas/objects/CloudFileChunkSelect.schema.ts",
|
||||
"schemas/objects/CommunicationSelect.schema.ts",
|
||||
"schemas/objects/PatientDocumentSelect.schema.ts",
|
||||
"schemas/objects/TwilioSettingsSelect.schema.ts",
|
||||
"schemas/objects/AiSettingsSelect.schema.ts",
|
||||
"schemas/objects/OfficeHoursSelect.schema.ts",
|
||||
"schemas/objects/UserArgs.schema.ts",
|
||||
"schemas/objects/PatientArgs.schema.ts",
|
||||
"schemas/objects/AppointmentArgs.schema.ts",
|
||||
@@ -1769,6 +1908,9 @@
|
||||
"schemas/objects/CloudFileChunkArgs.schema.ts",
|
||||
"schemas/objects/CommunicationArgs.schema.ts",
|
||||
"schemas/objects/PatientDocumentArgs.schema.ts",
|
||||
"schemas/objects/TwilioSettingsArgs.schema.ts",
|
||||
"schemas/objects/AiSettingsArgs.schema.ts",
|
||||
"schemas/objects/OfficeHoursArgs.schema.ts",
|
||||
"schemas/objects/UserInclude.schema.ts",
|
||||
"schemas/objects/PatientInclude.schema.ts",
|
||||
"schemas/objects/AppointmentInclude.schema.ts",
|
||||
@@ -1792,6 +1934,9 @@
|
||||
"schemas/objects/CloudFileChunkInclude.schema.ts",
|
||||
"schemas/objects/CommunicationInclude.schema.ts",
|
||||
"schemas/objects/PatientDocumentInclude.schema.ts",
|
||||
"schemas/objects/TwilioSettingsInclude.schema.ts",
|
||||
"schemas/objects/AiSettingsInclude.schema.ts",
|
||||
"schemas/objects/OfficeHoursInclude.schema.ts",
|
||||
"schemas/findUniqueUser.schema.ts",
|
||||
"schemas/findUniqueOrThrowUser.schema.ts",
|
||||
"schemas/findFirstUser.schema.ts",
|
||||
@@ -2200,6 +2345,57 @@
|
||||
"schemas/upsertOnePatientDocument.schema.ts",
|
||||
"schemas/aggregatePatientDocument.schema.ts",
|
||||
"schemas/groupByPatientDocument.schema.ts",
|
||||
"schemas/findUniqueTwilioSettings.schema.ts",
|
||||
"schemas/findUniqueOrThrowTwilioSettings.schema.ts",
|
||||
"schemas/findFirstTwilioSettings.schema.ts",
|
||||
"schemas/findFirstOrThrowTwilioSettings.schema.ts",
|
||||
"schemas/findManyTwilioSettings.schema.ts",
|
||||
"schemas/countTwilioSettings.schema.ts",
|
||||
"schemas/createOneTwilioSettings.schema.ts",
|
||||
"schemas/createManyTwilioSettings.schema.ts",
|
||||
"schemas/createManyAndReturnTwilioSettings.schema.ts",
|
||||
"schemas/deleteOneTwilioSettings.schema.ts",
|
||||
"schemas/deleteManyTwilioSettings.schema.ts",
|
||||
"schemas/updateOneTwilioSettings.schema.ts",
|
||||
"schemas/updateManyTwilioSettings.schema.ts",
|
||||
"schemas/updateManyAndReturnTwilioSettings.schema.ts",
|
||||
"schemas/upsertOneTwilioSettings.schema.ts",
|
||||
"schemas/aggregateTwilioSettings.schema.ts",
|
||||
"schemas/groupByTwilioSettings.schema.ts",
|
||||
"schemas/findUniqueAiSettings.schema.ts",
|
||||
"schemas/findUniqueOrThrowAiSettings.schema.ts",
|
||||
"schemas/findFirstAiSettings.schema.ts",
|
||||
"schemas/findFirstOrThrowAiSettings.schema.ts",
|
||||
"schemas/findManyAiSettings.schema.ts",
|
||||
"schemas/countAiSettings.schema.ts",
|
||||
"schemas/createOneAiSettings.schema.ts",
|
||||
"schemas/createManyAiSettings.schema.ts",
|
||||
"schemas/createManyAndReturnAiSettings.schema.ts",
|
||||
"schemas/deleteOneAiSettings.schema.ts",
|
||||
"schemas/deleteManyAiSettings.schema.ts",
|
||||
"schemas/updateOneAiSettings.schema.ts",
|
||||
"schemas/updateManyAiSettings.schema.ts",
|
||||
"schemas/updateManyAndReturnAiSettings.schema.ts",
|
||||
"schemas/upsertOneAiSettings.schema.ts",
|
||||
"schemas/aggregateAiSettings.schema.ts",
|
||||
"schemas/groupByAiSettings.schema.ts",
|
||||
"schemas/findUniqueOfficeHours.schema.ts",
|
||||
"schemas/findUniqueOrThrowOfficeHours.schema.ts",
|
||||
"schemas/findFirstOfficeHours.schema.ts",
|
||||
"schemas/findFirstOrThrowOfficeHours.schema.ts",
|
||||
"schemas/findManyOfficeHours.schema.ts",
|
||||
"schemas/countOfficeHours.schema.ts",
|
||||
"schemas/createOneOfficeHours.schema.ts",
|
||||
"schemas/createManyOfficeHours.schema.ts",
|
||||
"schemas/createManyAndReturnOfficeHours.schema.ts",
|
||||
"schemas/deleteOneOfficeHours.schema.ts",
|
||||
"schemas/deleteManyOfficeHours.schema.ts",
|
||||
"schemas/updateOneOfficeHours.schema.ts",
|
||||
"schemas/updateManyOfficeHours.schema.ts",
|
||||
"schemas/updateManyAndReturnOfficeHours.schema.ts",
|
||||
"schemas/upsertOneOfficeHours.schema.ts",
|
||||
"schemas/aggregateOfficeHours.schema.ts",
|
||||
"schemas/groupByOfficeHours.schema.ts",
|
||||
"schemas/results/UserFindUniqueResult.schema.ts",
|
||||
"schemas/results/UserFindFirstResult.schema.ts",
|
||||
"schemas/results/UserFindManyResult.schema.ts",
|
||||
@@ -2512,6 +2708,45 @@
|
||||
"schemas/results/PatientDocumentAggregateResult.schema.ts",
|
||||
"schemas/results/PatientDocumentGroupByResult.schema.ts",
|
||||
"schemas/results/PatientDocumentCountResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsFindUniqueResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsFindFirstResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsFindManyResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsCreateResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsCreateManyResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsUpdateResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsUpdateManyResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsUpsertResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsDeleteResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsDeleteManyResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsAggregateResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsGroupByResult.schema.ts",
|
||||
"schemas/results/TwilioSettingsCountResult.schema.ts",
|
||||
"schemas/results/AiSettingsFindUniqueResult.schema.ts",
|
||||
"schemas/results/AiSettingsFindFirstResult.schema.ts",
|
||||
"schemas/results/AiSettingsFindManyResult.schema.ts",
|
||||
"schemas/results/AiSettingsCreateResult.schema.ts",
|
||||
"schemas/results/AiSettingsCreateManyResult.schema.ts",
|
||||
"schemas/results/AiSettingsUpdateResult.schema.ts",
|
||||
"schemas/results/AiSettingsUpdateManyResult.schema.ts",
|
||||
"schemas/results/AiSettingsUpsertResult.schema.ts",
|
||||
"schemas/results/AiSettingsDeleteResult.schema.ts",
|
||||
"schemas/results/AiSettingsDeleteManyResult.schema.ts",
|
||||
"schemas/results/AiSettingsAggregateResult.schema.ts",
|
||||
"schemas/results/AiSettingsGroupByResult.schema.ts",
|
||||
"schemas/results/AiSettingsCountResult.schema.ts",
|
||||
"schemas/results/OfficeHoursFindUniqueResult.schema.ts",
|
||||
"schemas/results/OfficeHoursFindFirstResult.schema.ts",
|
||||
"schemas/results/OfficeHoursFindManyResult.schema.ts",
|
||||
"schemas/results/OfficeHoursCreateResult.schema.ts",
|
||||
"schemas/results/OfficeHoursCreateManyResult.schema.ts",
|
||||
"schemas/results/OfficeHoursUpdateResult.schema.ts",
|
||||
"schemas/results/OfficeHoursUpdateManyResult.schema.ts",
|
||||
"schemas/results/OfficeHoursUpsertResult.schema.ts",
|
||||
"schemas/results/OfficeHoursDeleteResult.schema.ts",
|
||||
"schemas/results/OfficeHoursDeleteManyResult.schema.ts",
|
||||
"schemas/results/OfficeHoursAggregateResult.schema.ts",
|
||||
"schemas/results/OfficeHoursGroupByResult.schema.ts",
|
||||
"schemas/results/OfficeHoursCountResult.schema.ts",
|
||||
"schemas/results/index.ts",
|
||||
"schemas/index.ts",
|
||||
"schemas/variants/pure/User.pure.ts",
|
||||
@@ -2538,6 +2773,9 @@
|
||||
"schemas/variants/pure/CloudFileChunk.pure.ts",
|
||||
"schemas/variants/pure/Communication.pure.ts",
|
||||
"schemas/variants/pure/PatientDocument.pure.ts",
|
||||
"schemas/variants/pure/TwilioSettings.pure.ts",
|
||||
"schemas/variants/pure/AiSettings.pure.ts",
|
||||
"schemas/variants/pure/OfficeHours.pure.ts",
|
||||
"schemas/variants/pure/index.ts",
|
||||
"schemas/variants/input/User.input.ts",
|
||||
"schemas/variants/input/Patient.input.ts",
|
||||
@@ -2563,6 +2801,9 @@
|
||||
"schemas/variants/input/CloudFileChunk.input.ts",
|
||||
"schemas/variants/input/Communication.input.ts",
|
||||
"schemas/variants/input/PatientDocument.input.ts",
|
||||
"schemas/variants/input/TwilioSettings.input.ts",
|
||||
"schemas/variants/input/AiSettings.input.ts",
|
||||
"schemas/variants/input/OfficeHours.input.ts",
|
||||
"schemas/variants/input/index.ts",
|
||||
"schemas/variants/result/User.result.ts",
|
||||
"schemas/variants/result/Patient.result.ts",
|
||||
@@ -2588,6 +2829,9 @@
|
||||
"schemas/variants/result/CloudFileChunk.result.ts",
|
||||
"schemas/variants/result/Communication.result.ts",
|
||||
"schemas/variants/result/PatientDocument.result.ts",
|
||||
"schemas/variants/result/TwilioSettings.result.ts",
|
||||
"schemas/variants/result/AiSettings.result.ts",
|
||||
"schemas/variants/result/OfficeHours.result.ts",
|
||||
"schemas/variants/result/index.ts",
|
||||
"schemas/variants/index.ts"
|
||||
],
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
|
||||
import Decimal from "decimal.js";
|
||||
import { Prisma } from '../../generated/prisma';
|
||||
import Decimal from 'decimal.js';
|
||||
|
||||
// DECIMAL HELPERS
|
||||
//------------------------------------------------------
|
||||
@@ -24,7 +23,7 @@ export const isValidDecimalInput = (
|
||||
if (v === undefined || v === null) return false;
|
||||
return (
|
||||
// Explicit instance checks first
|
||||
v instanceof Decimal ||
|
||||
v instanceof Prisma.Decimal ||
|
||||
// If Decimal.js is present and imported by the generator, this symbol exists at runtime
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore - Decimal may be undefined when not installed; codegen controls the import
|
||||
|
||||
14
packages/db/shared/schemas/aggregateAiSettings.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateAiSettings.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './objects/AiSettingsOrderByWithRelationInput.schema';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
|
||||
import { AiSettingsCountAggregateInputObjectSchema as AiSettingsCountAggregateInputObjectSchema } from './objects/AiSettingsCountAggregateInput.schema';
|
||||
import { AiSettingsMinAggregateInputObjectSchema as AiSettingsMinAggregateInputObjectSchema } from './objects/AiSettingsMinAggregateInput.schema';
|
||||
import { AiSettingsMaxAggregateInputObjectSchema as AiSettingsMaxAggregateInputObjectSchema } from './objects/AiSettingsMaxAggregateInput.schema';
|
||||
import { AiSettingsAvgAggregateInputObjectSchema as AiSettingsAvgAggregateInputObjectSchema } from './objects/AiSettingsAvgAggregateInput.schema';
|
||||
import { AiSettingsSumAggregateInputObjectSchema as AiSettingsSumAggregateInputObjectSchema } from './objects/AiSettingsSumAggregateInput.schema';
|
||||
|
||||
export const AiSettingsAggregateSchema: z.ZodType<Prisma.AiSettingsAggregateArgs> = z.object({ orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional(), _min: AiSettingsMinAggregateInputObjectSchema.optional(), _max: AiSettingsMaxAggregateInputObjectSchema.optional(), _avg: AiSettingsAvgAggregateInputObjectSchema.optional(), _sum: AiSettingsSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsAggregateArgs>;
|
||||
|
||||
export const AiSettingsAggregateZodSchema = z.object({ orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional(), _min: AiSettingsMinAggregateInputObjectSchema.optional(), _max: AiSettingsMaxAggregateInputObjectSchema.optional(), _avg: AiSettingsAvgAggregateInputObjectSchema.optional(), _sum: AiSettingsSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateOfficeHours.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateOfficeHours.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './objects/OfficeHoursOrderByWithRelationInput.schema';
|
||||
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
|
||||
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
|
||||
import { OfficeHoursCountAggregateInputObjectSchema as OfficeHoursCountAggregateInputObjectSchema } from './objects/OfficeHoursCountAggregateInput.schema';
|
||||
import { OfficeHoursMinAggregateInputObjectSchema as OfficeHoursMinAggregateInputObjectSchema } from './objects/OfficeHoursMinAggregateInput.schema';
|
||||
import { OfficeHoursMaxAggregateInputObjectSchema as OfficeHoursMaxAggregateInputObjectSchema } from './objects/OfficeHoursMaxAggregateInput.schema';
|
||||
import { OfficeHoursAvgAggregateInputObjectSchema as OfficeHoursAvgAggregateInputObjectSchema } from './objects/OfficeHoursAvgAggregateInput.schema';
|
||||
import { OfficeHoursSumAggregateInputObjectSchema as OfficeHoursSumAggregateInputObjectSchema } from './objects/OfficeHoursSumAggregateInput.schema';
|
||||
|
||||
export const OfficeHoursAggregateSchema: z.ZodType<Prisma.OfficeHoursAggregateArgs> = z.object({ orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional(), _min: OfficeHoursMinAggregateInputObjectSchema.optional(), _max: OfficeHoursMaxAggregateInputObjectSchema.optional(), _avg: OfficeHoursAvgAggregateInputObjectSchema.optional(), _sum: OfficeHoursSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursAggregateArgs>;
|
||||
|
||||
export const OfficeHoursAggregateZodSchema = z.object({ orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional(), _min: OfficeHoursMinAggregateInputObjectSchema.optional(), _max: OfficeHoursMaxAggregateInputObjectSchema.optional(), _avg: OfficeHoursAvgAggregateInputObjectSchema.optional(), _sum: OfficeHoursSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateTwilioSettings.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateTwilioSettings.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './objects/TwilioSettingsOrderByWithRelationInput.schema';
|
||||
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
|
||||
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
|
||||
import { TwilioSettingsCountAggregateInputObjectSchema as TwilioSettingsCountAggregateInputObjectSchema } from './objects/TwilioSettingsCountAggregateInput.schema';
|
||||
import { TwilioSettingsMinAggregateInputObjectSchema as TwilioSettingsMinAggregateInputObjectSchema } from './objects/TwilioSettingsMinAggregateInput.schema';
|
||||
import { TwilioSettingsMaxAggregateInputObjectSchema as TwilioSettingsMaxAggregateInputObjectSchema } from './objects/TwilioSettingsMaxAggregateInput.schema';
|
||||
import { TwilioSettingsAvgAggregateInputObjectSchema as TwilioSettingsAvgAggregateInputObjectSchema } from './objects/TwilioSettingsAvgAggregateInput.schema';
|
||||
import { TwilioSettingsSumAggregateInputObjectSchema as TwilioSettingsSumAggregateInputObjectSchema } from './objects/TwilioSettingsSumAggregateInput.schema';
|
||||
|
||||
export const TwilioSettingsAggregateSchema: z.ZodType<Prisma.TwilioSettingsAggregateArgs> = z.object({ orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional(), _min: TwilioSettingsMinAggregateInputObjectSchema.optional(), _max: TwilioSettingsMaxAggregateInputObjectSchema.optional(), _avg: TwilioSettingsAvgAggregateInputObjectSchema.optional(), _sum: TwilioSettingsSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsAggregateArgs>;
|
||||
|
||||
export const TwilioSettingsAggregateZodSchema = z.object({ orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional(), _min: TwilioSettingsMinAggregateInputObjectSchema.optional(), _max: TwilioSettingsMaxAggregateInputObjectSchema.optional(), _avg: TwilioSettingsAvgAggregateInputObjectSchema.optional(), _sum: TwilioSettingsSumAggregateInputObjectSchema.optional() }).strict();
|
||||
10
packages/db/shared/schemas/countAiSettings.schema.ts
Normal file
10
packages/db/shared/schemas/countAiSettings.schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './objects/AiSettingsOrderByWithRelationInput.schema';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
|
||||
import { AiSettingsCountAggregateInputObjectSchema as AiSettingsCountAggregateInputObjectSchema } from './objects/AiSettingsCountAggregateInput.schema';
|
||||
|
||||
export const AiSettingsCountSchema: z.ZodType<Prisma.AiSettingsCountArgs> = z.object({ orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsCountArgs>;
|
||||
|
||||
export const AiSettingsCountZodSchema = z.object({ orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional() }).strict();
|
||||
10
packages/db/shared/schemas/countOfficeHours.schema.ts
Normal file
10
packages/db/shared/schemas/countOfficeHours.schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './objects/OfficeHoursOrderByWithRelationInput.schema';
|
||||
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
|
||||
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
|
||||
import { OfficeHoursCountAggregateInputObjectSchema as OfficeHoursCountAggregateInputObjectSchema } from './objects/OfficeHoursCountAggregateInput.schema';
|
||||
|
||||
export const OfficeHoursCountSchema: z.ZodType<Prisma.OfficeHoursCountArgs> = z.object({ orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursCountArgs>;
|
||||
|
||||
export const OfficeHoursCountZodSchema = z.object({ orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional() }).strict();
|
||||
10
packages/db/shared/schemas/countTwilioSettings.schema.ts
Normal file
10
packages/db/shared/schemas/countTwilioSettings.schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './objects/TwilioSettingsOrderByWithRelationInput.schema';
|
||||
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
|
||||
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
|
||||
import { TwilioSettingsCountAggregateInputObjectSchema as TwilioSettingsCountAggregateInputObjectSchema } from './objects/TwilioSettingsCountAggregateInput.schema';
|
||||
|
||||
export const TwilioSettingsCountSchema: z.ZodType<Prisma.TwilioSettingsCountArgs> = z.object({ orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsCountArgs>;
|
||||
|
||||
export const TwilioSettingsCountZodSchema = z.object({ orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), select: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional() }).strict();
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsCreateManyInputObjectSchema as AiSettingsCreateManyInputObjectSchema } from './objects/AiSettingsCreateManyInput.schema';
|
||||
|
||||
export const AiSettingsCreateManySchema: z.ZodType<Prisma.AiSettingsCreateManyArgs> = z.object({ data: z.union([ AiSettingsCreateManyInputObjectSchema, z.array(AiSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsCreateManyArgs>;
|
||||
|
||||
export const AiSettingsCreateManyZodSchema = z.object({ data: z.union([ AiSettingsCreateManyInputObjectSchema, z.array(AiSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './objects/AiSettingsSelect.schema';
|
||||
import { AiSettingsCreateManyInputObjectSchema as AiSettingsCreateManyInputObjectSchema } from './objects/AiSettingsCreateManyInput.schema';
|
||||
|
||||
export const AiSettingsCreateManyAndReturnSchema: z.ZodType<Prisma.AiSettingsCreateManyAndReturnArgs> = z.object({ select: AiSettingsSelectObjectSchema.optional(), data: z.union([ AiSettingsCreateManyInputObjectSchema, z.array(AiSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsCreateManyAndReturnArgs>;
|
||||
|
||||
export const AiSettingsCreateManyAndReturnZodSchema = z.object({ select: AiSettingsSelectObjectSchema.optional(), data: z.union([ AiSettingsCreateManyInputObjectSchema, z.array(AiSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursSelectObjectSchema as OfficeHoursSelectObjectSchema } from './objects/OfficeHoursSelect.schema';
|
||||
import { OfficeHoursCreateManyInputObjectSchema as OfficeHoursCreateManyInputObjectSchema } from './objects/OfficeHoursCreateManyInput.schema';
|
||||
|
||||
export const OfficeHoursCreateManyAndReturnSchema: z.ZodType<Prisma.OfficeHoursCreateManyAndReturnArgs> = z.object({ select: OfficeHoursSelectObjectSchema.optional(), data: z.union([ OfficeHoursCreateManyInputObjectSchema, z.array(OfficeHoursCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursCreateManyAndReturnArgs>;
|
||||
|
||||
export const OfficeHoursCreateManyAndReturnZodSchema = z.object({ select: OfficeHoursSelectObjectSchema.optional(), data: z.union([ OfficeHoursCreateManyInputObjectSchema, z.array(OfficeHoursCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsSelectObjectSchema as TwilioSettingsSelectObjectSchema } from './objects/TwilioSettingsSelect.schema';
|
||||
import { TwilioSettingsCreateManyInputObjectSchema as TwilioSettingsCreateManyInputObjectSchema } from './objects/TwilioSettingsCreateManyInput.schema';
|
||||
|
||||
export const TwilioSettingsCreateManyAndReturnSchema: z.ZodType<Prisma.TwilioSettingsCreateManyAndReturnArgs> = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), data: z.union([ TwilioSettingsCreateManyInputObjectSchema, z.array(TwilioSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsCreateManyAndReturnArgs>;
|
||||
|
||||
export const TwilioSettingsCreateManyAndReturnZodSchema = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), data: z.union([ TwilioSettingsCreateManyInputObjectSchema, z.array(TwilioSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursCreateManyInputObjectSchema as OfficeHoursCreateManyInputObjectSchema } from './objects/OfficeHoursCreateManyInput.schema';
|
||||
|
||||
export const OfficeHoursCreateManySchema: z.ZodType<Prisma.OfficeHoursCreateManyArgs> = z.object({ data: z.union([ OfficeHoursCreateManyInputObjectSchema, z.array(OfficeHoursCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursCreateManyArgs>;
|
||||
|
||||
export const OfficeHoursCreateManyZodSchema = z.object({ data: z.union([ OfficeHoursCreateManyInputObjectSchema, z.array(OfficeHoursCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsCreateManyInputObjectSchema as TwilioSettingsCreateManyInputObjectSchema } from './objects/TwilioSettingsCreateManyInput.schema';
|
||||
|
||||
export const TwilioSettingsCreateManySchema: z.ZodType<Prisma.TwilioSettingsCreateManyArgs> = z.object({ data: z.union([ TwilioSettingsCreateManyInputObjectSchema, z.array(TwilioSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsCreateManyArgs>;
|
||||
|
||||
export const TwilioSettingsCreateManyZodSchema = z.object({ data: z.union([ TwilioSettingsCreateManyInputObjectSchema, z.array(TwilioSettingsCreateManyInputObjectSchema) ]), skipDuplicates: z.boolean().optional() }).strict();
|
||||
10
packages/db/shared/schemas/createOneAiSettings.schema.ts
Normal file
10
packages/db/shared/schemas/createOneAiSettings.schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './objects/AiSettingsSelect.schema';
|
||||
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
|
||||
import { AiSettingsCreateInputObjectSchema as AiSettingsCreateInputObjectSchema } from './objects/AiSettingsCreateInput.schema';
|
||||
import { AiSettingsUncheckedCreateInputObjectSchema as AiSettingsUncheckedCreateInputObjectSchema } from './objects/AiSettingsUncheckedCreateInput.schema';
|
||||
|
||||
export const AiSettingsCreateOneSchema: z.ZodType<Prisma.AiSettingsCreateArgs> = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), data: z.union([AiSettingsCreateInputObjectSchema, AiSettingsUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.AiSettingsCreateArgs>;
|
||||
|
||||
export const AiSettingsCreateOneZodSchema = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), data: z.union([AiSettingsCreateInputObjectSchema, AiSettingsUncheckedCreateInputObjectSchema]) }).strict();
|
||||
10
packages/db/shared/schemas/createOneOfficeHours.schema.ts
Normal file
10
packages/db/shared/schemas/createOneOfficeHours.schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursSelectObjectSchema as OfficeHoursSelectObjectSchema } from './objects/OfficeHoursSelect.schema';
|
||||
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
|
||||
import { OfficeHoursCreateInputObjectSchema as OfficeHoursCreateInputObjectSchema } from './objects/OfficeHoursCreateInput.schema';
|
||||
import { OfficeHoursUncheckedCreateInputObjectSchema as OfficeHoursUncheckedCreateInputObjectSchema } from './objects/OfficeHoursUncheckedCreateInput.schema';
|
||||
|
||||
export const OfficeHoursCreateOneSchema: z.ZodType<Prisma.OfficeHoursCreateArgs> = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), data: z.union([OfficeHoursCreateInputObjectSchema, OfficeHoursUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.OfficeHoursCreateArgs>;
|
||||
|
||||
export const OfficeHoursCreateOneZodSchema = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), data: z.union([OfficeHoursCreateInputObjectSchema, OfficeHoursUncheckedCreateInputObjectSchema]) }).strict();
|
||||
10
packages/db/shared/schemas/createOneTwilioSettings.schema.ts
Normal file
10
packages/db/shared/schemas/createOneTwilioSettings.schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsSelectObjectSchema as TwilioSettingsSelectObjectSchema } from './objects/TwilioSettingsSelect.schema';
|
||||
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
|
||||
import { TwilioSettingsCreateInputObjectSchema as TwilioSettingsCreateInputObjectSchema } from './objects/TwilioSettingsCreateInput.schema';
|
||||
import { TwilioSettingsUncheckedCreateInputObjectSchema as TwilioSettingsUncheckedCreateInputObjectSchema } from './objects/TwilioSettingsUncheckedCreateInput.schema';
|
||||
|
||||
export const TwilioSettingsCreateOneSchema: z.ZodType<Prisma.TwilioSettingsCreateArgs> = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), data: z.union([TwilioSettingsCreateInputObjectSchema, TwilioSettingsUncheckedCreateInputObjectSchema]) }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsCreateArgs>;
|
||||
|
||||
export const TwilioSettingsCreateOneZodSchema = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), data: z.union([TwilioSettingsCreateInputObjectSchema, TwilioSettingsUncheckedCreateInputObjectSchema]) }).strict();
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
|
||||
|
||||
export const AiSettingsDeleteManySchema: z.ZodType<Prisma.AiSettingsDeleteManyArgs> = z.object({ where: AiSettingsWhereInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsDeleteManyArgs>;
|
||||
|
||||
export const AiSettingsDeleteManyZodSchema = z.object({ where: AiSettingsWhereInputObjectSchema.optional() }).strict();
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
|
||||
|
||||
export const OfficeHoursDeleteManySchema: z.ZodType<Prisma.OfficeHoursDeleteManyArgs> = z.object({ where: OfficeHoursWhereInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursDeleteManyArgs>;
|
||||
|
||||
export const OfficeHoursDeleteManyZodSchema = z.object({ where: OfficeHoursWhereInputObjectSchema.optional() }).strict();
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
|
||||
|
||||
export const TwilioSettingsDeleteManySchema: z.ZodType<Prisma.TwilioSettingsDeleteManyArgs> = z.object({ where: TwilioSettingsWhereInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsDeleteManyArgs>;
|
||||
|
||||
export const TwilioSettingsDeleteManyZodSchema = z.object({ where: TwilioSettingsWhereInputObjectSchema.optional() }).strict();
|
||||
9
packages/db/shared/schemas/deleteOneAiSettings.schema.ts
Normal file
9
packages/db/shared/schemas/deleteOneAiSettings.schema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './objects/AiSettingsSelect.schema';
|
||||
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
|
||||
|
||||
export const AiSettingsDeleteOneSchema: z.ZodType<Prisma.AiSettingsDeleteArgs> = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.AiSettingsDeleteArgs>;
|
||||
|
||||
export const AiSettingsDeleteOneZodSchema = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursSelectObjectSchema as OfficeHoursSelectObjectSchema } from './objects/OfficeHoursSelect.schema';
|
||||
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
|
||||
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
|
||||
|
||||
export const OfficeHoursDeleteOneSchema: z.ZodType<Prisma.OfficeHoursDeleteArgs> = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.OfficeHoursDeleteArgs>;
|
||||
|
||||
export const OfficeHoursDeleteOneZodSchema = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsSelectObjectSchema as TwilioSettingsSelectObjectSchema } from './objects/TwilioSettingsSelect.schema';
|
||||
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
|
||||
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
|
||||
|
||||
export const TwilioSettingsDeleteOneSchema: z.ZodType<Prisma.TwilioSettingsDeleteArgs> = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsDeleteArgs>;
|
||||
|
||||
export const TwilioSettingsDeleteOneZodSchema = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const AiSettingsScalarFieldEnumSchema = z.enum(['id', 'userId', 'apiKey'])
|
||||
|
||||
export type AiSettingsScalarFieldEnum = z.infer<typeof AiSettingsScalarFieldEnumSchema>;
|
||||
@@ -0,0 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const JsonNullValueInputSchema = z.enum(['JsonNull'])
|
||||
|
||||
export type JsonNullValueInput = z.infer<typeof JsonNullValueInputSchema>;
|
||||
@@ -0,0 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const OfficeHoursScalarFieldEnumSchema = z.enum(['id', 'userId', 'data'])
|
||||
|
||||
export type OfficeHoursScalarFieldEnum = z.infer<typeof OfficeHoursScalarFieldEnumSchema>;
|
||||
@@ -0,0 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const TwilioSettingsScalarFieldEnumSchema = z.enum(['id', 'userId', 'accountSid', 'authToken', 'phoneNumber', 'greetingMessage', 'templates'])
|
||||
|
||||
export type TwilioSettingsScalarFieldEnum = z.infer<typeof TwilioSettingsScalarFieldEnumSchema>;
|
||||
28
packages/db/shared/schemas/findFirstAiSettings.schema.ts
Normal file
28
packages/db/shared/schemas/findFirstAiSettings.schema.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
|
||||
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './objects/AiSettingsOrderByWithRelationInput.schema';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
|
||||
import { AiSettingsScalarFieldEnumSchema } from './enums/AiSettingsScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const AiSettingsFindFirstSelectSchema: z.ZodType<Prisma.AiSettingsSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
|
||||
|
||||
export const AiSettingsFindFirstSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const AiSettingsFindFirstSchema: z.ZodType<Prisma.AiSettingsFindFirstArgs> = z.object({ select: AiSettingsFindFirstSelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsFindFirstArgs>;
|
||||
|
||||
export const AiSettingsFindFirstZodSchema = z.object({ select: AiSettingsFindFirstSelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
28
packages/db/shared/schemas/findFirstOfficeHours.schema.ts
Normal file
28
packages/db/shared/schemas/findFirstOfficeHours.schema.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
|
||||
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './objects/OfficeHoursOrderByWithRelationInput.schema';
|
||||
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
|
||||
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
|
||||
import { OfficeHoursScalarFieldEnumSchema } from './enums/OfficeHoursScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const OfficeHoursFindFirstSelectSchema: z.ZodType<Prisma.OfficeHoursSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
data: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.OfficeHoursSelect>;
|
||||
|
||||
export const OfficeHoursFindFirstSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
data: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const OfficeHoursFindFirstSchema: z.ZodType<Prisma.OfficeHoursFindFirstArgs> = z.object({ select: OfficeHoursFindFirstSelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursFindFirstArgs>;
|
||||
|
||||
export const OfficeHoursFindFirstZodSchema = z.object({ select: OfficeHoursFindFirstSelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -0,0 +1,28 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
|
||||
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './objects/AiSettingsOrderByWithRelationInput.schema';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
|
||||
import { AiSettingsScalarFieldEnumSchema } from './enums/AiSettingsScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const AiSettingsFindFirstOrThrowSelectSchema: z.ZodType<Prisma.AiSettingsSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
|
||||
|
||||
export const AiSettingsFindFirstOrThrowSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const AiSettingsFindFirstOrThrowSchema: z.ZodType<Prisma.AiSettingsFindFirstOrThrowArgs> = z.object({ select: AiSettingsFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsFindFirstOrThrowArgs>;
|
||||
|
||||
export const AiSettingsFindFirstOrThrowZodSchema = z.object({ select: AiSettingsFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -0,0 +1,28 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
|
||||
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './objects/OfficeHoursOrderByWithRelationInput.schema';
|
||||
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
|
||||
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
|
||||
import { OfficeHoursScalarFieldEnumSchema } from './enums/OfficeHoursScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const OfficeHoursFindFirstOrThrowSelectSchema: z.ZodType<Prisma.OfficeHoursSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
data: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.OfficeHoursSelect>;
|
||||
|
||||
export const OfficeHoursFindFirstOrThrowSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
data: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const OfficeHoursFindFirstOrThrowSchema: z.ZodType<Prisma.OfficeHoursFindFirstOrThrowArgs> = z.object({ select: OfficeHoursFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursFindFirstOrThrowArgs>;
|
||||
|
||||
export const OfficeHoursFindFirstOrThrowZodSchema = z.object({ select: OfficeHoursFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -0,0 +1,36 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
|
||||
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './objects/TwilioSettingsOrderByWithRelationInput.schema';
|
||||
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
|
||||
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
|
||||
import { TwilioSettingsScalarFieldEnumSchema } from './enums/TwilioSettingsScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const TwilioSettingsFindFirstOrThrowSelectSchema: z.ZodType<Prisma.TwilioSettingsSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
accountSid: z.boolean().optional(),
|
||||
authToken: z.boolean().optional(),
|
||||
phoneNumber: z.boolean().optional(),
|
||||
greetingMessage: z.boolean().optional(),
|
||||
templates: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.TwilioSettingsSelect>;
|
||||
|
||||
export const TwilioSettingsFindFirstOrThrowSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
accountSid: z.boolean().optional(),
|
||||
authToken: z.boolean().optional(),
|
||||
phoneNumber: z.boolean().optional(),
|
||||
greetingMessage: z.boolean().optional(),
|
||||
templates: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const TwilioSettingsFindFirstOrThrowSchema: z.ZodType<Prisma.TwilioSettingsFindFirstOrThrowArgs> = z.object({ select: TwilioSettingsFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsFindFirstOrThrowArgs>;
|
||||
|
||||
export const TwilioSettingsFindFirstOrThrowZodSchema = z.object({ select: TwilioSettingsFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -28,6 +28,9 @@ export const UserFindFirstOrThrowSelectSchema: z.ZodType<Prisma.UserSelect> = z.
|
||||
cloudFolders: z.boolean().optional(),
|
||||
cloudFiles: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
twilioSettings: z.boolean().optional(),
|
||||
aiSettings: z.boolean().optional(),
|
||||
officeHours: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.UserSelect>;
|
||||
|
||||
@@ -50,6 +53,9 @@ export const UserFindFirstOrThrowSelectZodSchema = z.object({
|
||||
cloudFolders: z.boolean().optional(),
|
||||
cloudFiles: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
twilioSettings: z.boolean().optional(),
|
||||
aiSettings: z.boolean().optional(),
|
||||
officeHours: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
36
packages/db/shared/schemas/findFirstTwilioSettings.schema.ts
Normal file
36
packages/db/shared/schemas/findFirstTwilioSettings.schema.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
|
||||
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './objects/TwilioSettingsOrderByWithRelationInput.schema';
|
||||
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
|
||||
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
|
||||
import { TwilioSettingsScalarFieldEnumSchema } from './enums/TwilioSettingsScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const TwilioSettingsFindFirstSelectSchema: z.ZodType<Prisma.TwilioSettingsSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
accountSid: z.boolean().optional(),
|
||||
authToken: z.boolean().optional(),
|
||||
phoneNumber: z.boolean().optional(),
|
||||
greetingMessage: z.boolean().optional(),
|
||||
templates: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.TwilioSettingsSelect>;
|
||||
|
||||
export const TwilioSettingsFindFirstSelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
accountSid: z.boolean().optional(),
|
||||
authToken: z.boolean().optional(),
|
||||
phoneNumber: z.boolean().optional(),
|
||||
greetingMessage: z.boolean().optional(),
|
||||
templates: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const TwilioSettingsFindFirstSchema: z.ZodType<Prisma.TwilioSettingsFindFirstArgs> = z.object({ select: TwilioSettingsFindFirstSelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsFindFirstArgs>;
|
||||
|
||||
export const TwilioSettingsFindFirstZodSchema = z.object({ select: TwilioSettingsFindFirstSelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -28,6 +28,9 @@ export const UserFindFirstSelectSchema: z.ZodType<Prisma.UserSelect> = z.object(
|
||||
cloudFolders: z.boolean().optional(),
|
||||
cloudFiles: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
twilioSettings: z.boolean().optional(),
|
||||
aiSettings: z.boolean().optional(),
|
||||
officeHours: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.UserSelect>;
|
||||
|
||||
@@ -50,6 +53,9 @@ export const UserFindFirstSelectZodSchema = z.object({
|
||||
cloudFolders: z.boolean().optional(),
|
||||
cloudFiles: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
twilioSettings: z.boolean().optional(),
|
||||
aiSettings: z.boolean().optional(),
|
||||
officeHours: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
28
packages/db/shared/schemas/findManyAiSettings.schema.ts
Normal file
28
packages/db/shared/schemas/findManyAiSettings.schema.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
|
||||
import { AiSettingsOrderByWithRelationInputObjectSchema as AiSettingsOrderByWithRelationInputObjectSchema } from './objects/AiSettingsOrderByWithRelationInput.schema';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
|
||||
import { AiSettingsScalarFieldEnumSchema } from './enums/AiSettingsScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const AiSettingsFindManySelectSchema: z.ZodType<Prisma.AiSettingsSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.AiSettingsSelect>;
|
||||
|
||||
export const AiSettingsFindManySelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const AiSettingsFindManySchema: z.ZodType<Prisma.AiSettingsFindManyArgs> = z.object({ select: AiSettingsFindManySelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsFindManyArgs>;
|
||||
|
||||
export const AiSettingsFindManyZodSchema = z.object({ select: AiSettingsFindManySelectSchema.optional(), include: z.lazy(() => AiSettingsIncludeObjectSchema.optional()), orderBy: z.union([AiSettingsOrderByWithRelationInputObjectSchema, AiSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: AiSettingsWhereInputObjectSchema.optional(), cursor: AiSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([AiSettingsScalarFieldEnumSchema, AiSettingsScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
28
packages/db/shared/schemas/findManyOfficeHours.schema.ts
Normal file
28
packages/db/shared/schemas/findManyOfficeHours.schema.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
|
||||
import { OfficeHoursOrderByWithRelationInputObjectSchema as OfficeHoursOrderByWithRelationInputObjectSchema } from './objects/OfficeHoursOrderByWithRelationInput.schema';
|
||||
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
|
||||
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
|
||||
import { OfficeHoursScalarFieldEnumSchema } from './enums/OfficeHoursScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const OfficeHoursFindManySelectSchema: z.ZodType<Prisma.OfficeHoursSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
data: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.OfficeHoursSelect>;
|
||||
|
||||
export const OfficeHoursFindManySelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
data: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const OfficeHoursFindManySchema: z.ZodType<Prisma.OfficeHoursFindManyArgs> = z.object({ select: OfficeHoursFindManySelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursFindManyArgs>;
|
||||
|
||||
export const OfficeHoursFindManyZodSchema = z.object({ select: OfficeHoursFindManySelectSchema.optional(), include: z.lazy(() => OfficeHoursIncludeObjectSchema.optional()), orderBy: z.union([OfficeHoursOrderByWithRelationInputObjectSchema, OfficeHoursOrderByWithRelationInputObjectSchema.array()]).optional(), where: OfficeHoursWhereInputObjectSchema.optional(), cursor: OfficeHoursWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([OfficeHoursScalarFieldEnumSchema, OfficeHoursScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
36
packages/db/shared/schemas/findManyTwilioSettings.schema.ts
Normal file
36
packages/db/shared/schemas/findManyTwilioSettings.schema.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
|
||||
import { TwilioSettingsOrderByWithRelationInputObjectSchema as TwilioSettingsOrderByWithRelationInputObjectSchema } from './objects/TwilioSettingsOrderByWithRelationInput.schema';
|
||||
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
|
||||
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
|
||||
import { TwilioSettingsScalarFieldEnumSchema } from './enums/TwilioSettingsScalarFieldEnum.schema';
|
||||
|
||||
// Select schema needs to be in file to prevent circular imports
|
||||
//------------------------------------------------------
|
||||
|
||||
export const TwilioSettingsFindManySelectSchema: z.ZodType<Prisma.TwilioSettingsSelect> = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
accountSid: z.boolean().optional(),
|
||||
authToken: z.boolean().optional(),
|
||||
phoneNumber: z.boolean().optional(),
|
||||
greetingMessage: z.boolean().optional(),
|
||||
templates: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.TwilioSettingsSelect>;
|
||||
|
||||
export const TwilioSettingsFindManySelectZodSchema = z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
accountSid: z.boolean().optional(),
|
||||
authToken: z.boolean().optional(),
|
||||
phoneNumber: z.boolean().optional(),
|
||||
greetingMessage: z.boolean().optional(),
|
||||
templates: z.boolean().optional(),
|
||||
user: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
export const TwilioSettingsFindManySchema: z.ZodType<Prisma.TwilioSettingsFindManyArgs> = z.object({ select: TwilioSettingsFindManySelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsFindManyArgs>;
|
||||
|
||||
export const TwilioSettingsFindManyZodSchema = z.object({ select: TwilioSettingsFindManySelectSchema.optional(), include: z.lazy(() => TwilioSettingsIncludeObjectSchema.optional()), orderBy: z.union([TwilioSettingsOrderByWithRelationInputObjectSchema, TwilioSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TwilioSettingsWhereInputObjectSchema.optional(), cursor: TwilioSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([TwilioSettingsScalarFieldEnumSchema, TwilioSettingsScalarFieldEnumSchema.array()]).optional() }).strict();
|
||||
@@ -28,6 +28,9 @@ export const UserFindManySelectSchema: z.ZodType<Prisma.UserSelect> = z.object({
|
||||
cloudFolders: z.boolean().optional(),
|
||||
cloudFiles: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
twilioSettings: z.boolean().optional(),
|
||||
aiSettings: z.boolean().optional(),
|
||||
officeHours: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.UserSelect>;
|
||||
|
||||
@@ -50,6 +53,9 @@ export const UserFindManySelectZodSchema = z.object({
|
||||
cloudFolders: z.boolean().optional(),
|
||||
cloudFiles: z.boolean().optional(),
|
||||
communications: z.boolean().optional(),
|
||||
twilioSettings: z.boolean().optional(),
|
||||
aiSettings: z.boolean().optional(),
|
||||
officeHours: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './objects/AiSettingsSelect.schema';
|
||||
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
|
||||
|
||||
export const AiSettingsFindUniqueSchema: z.ZodType<Prisma.AiSettingsFindUniqueArgs> = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.AiSettingsFindUniqueArgs>;
|
||||
|
||||
export const AiSettingsFindUniqueZodSchema = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursSelectObjectSchema as OfficeHoursSelectObjectSchema } from './objects/OfficeHoursSelect.schema';
|
||||
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
|
||||
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
|
||||
|
||||
export const OfficeHoursFindUniqueSchema: z.ZodType<Prisma.OfficeHoursFindUniqueArgs> = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.OfficeHoursFindUniqueArgs>;
|
||||
|
||||
export const OfficeHoursFindUniqueZodSchema = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './objects/AiSettingsSelect.schema';
|
||||
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './objects/AiSettingsInclude.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './objects/AiSettingsWhereUniqueInput.schema';
|
||||
|
||||
export const AiSettingsFindUniqueOrThrowSchema: z.ZodType<Prisma.AiSettingsFindUniqueOrThrowArgs> = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.AiSettingsFindUniqueOrThrowArgs>;
|
||||
|
||||
export const AiSettingsFindUniqueOrThrowZodSchema = z.object({ select: AiSettingsSelectObjectSchema.optional(), include: AiSettingsIncludeObjectSchema.optional(), where: AiSettingsWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursSelectObjectSchema as OfficeHoursSelectObjectSchema } from './objects/OfficeHoursSelect.schema';
|
||||
import { OfficeHoursIncludeObjectSchema as OfficeHoursIncludeObjectSchema } from './objects/OfficeHoursInclude.schema';
|
||||
import { OfficeHoursWhereUniqueInputObjectSchema as OfficeHoursWhereUniqueInputObjectSchema } from './objects/OfficeHoursWhereUniqueInput.schema';
|
||||
|
||||
export const OfficeHoursFindUniqueOrThrowSchema: z.ZodType<Prisma.OfficeHoursFindUniqueOrThrowArgs> = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.OfficeHoursFindUniqueOrThrowArgs>;
|
||||
|
||||
export const OfficeHoursFindUniqueOrThrowZodSchema = z.object({ select: OfficeHoursSelectObjectSchema.optional(), include: OfficeHoursIncludeObjectSchema.optional(), where: OfficeHoursWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsSelectObjectSchema as TwilioSettingsSelectObjectSchema } from './objects/TwilioSettingsSelect.schema';
|
||||
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
|
||||
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
|
||||
|
||||
export const TwilioSettingsFindUniqueOrThrowSchema: z.ZodType<Prisma.TwilioSettingsFindUniqueOrThrowArgs> = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsFindUniqueOrThrowArgs>;
|
||||
|
||||
export const TwilioSettingsFindUniqueOrThrowZodSchema = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict();
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsSelectObjectSchema as TwilioSettingsSelectObjectSchema } from './objects/TwilioSettingsSelect.schema';
|
||||
import { TwilioSettingsIncludeObjectSchema as TwilioSettingsIncludeObjectSchema } from './objects/TwilioSettingsInclude.schema';
|
||||
import { TwilioSettingsWhereUniqueInputObjectSchema as TwilioSettingsWhereUniqueInputObjectSchema } from './objects/TwilioSettingsWhereUniqueInput.schema';
|
||||
|
||||
export const TwilioSettingsFindUniqueSchema: z.ZodType<Prisma.TwilioSettingsFindUniqueArgs> = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsFindUniqueArgs>;
|
||||
|
||||
export const TwilioSettingsFindUniqueZodSchema = z.object({ select: TwilioSettingsSelectObjectSchema.optional(), include: TwilioSettingsIncludeObjectSchema.optional(), where: TwilioSettingsWhereUniqueInputObjectSchema }).strict();
|
||||
15
packages/db/shared/schemas/groupByAiSettings.schema.ts
Normal file
15
packages/db/shared/schemas/groupByAiSettings.schema.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './objects/AiSettingsWhereInput.schema';
|
||||
import { AiSettingsOrderByWithAggregationInputObjectSchema as AiSettingsOrderByWithAggregationInputObjectSchema } from './objects/AiSettingsOrderByWithAggregationInput.schema';
|
||||
import { AiSettingsScalarWhereWithAggregatesInputObjectSchema as AiSettingsScalarWhereWithAggregatesInputObjectSchema } from './objects/AiSettingsScalarWhereWithAggregatesInput.schema';
|
||||
import { AiSettingsScalarFieldEnumSchema } from './enums/AiSettingsScalarFieldEnum.schema';
|
||||
import { AiSettingsCountAggregateInputObjectSchema as AiSettingsCountAggregateInputObjectSchema } from './objects/AiSettingsCountAggregateInput.schema';
|
||||
import { AiSettingsMinAggregateInputObjectSchema as AiSettingsMinAggregateInputObjectSchema } from './objects/AiSettingsMinAggregateInput.schema';
|
||||
import { AiSettingsMaxAggregateInputObjectSchema as AiSettingsMaxAggregateInputObjectSchema } from './objects/AiSettingsMaxAggregateInput.schema';
|
||||
import { AiSettingsAvgAggregateInputObjectSchema as AiSettingsAvgAggregateInputObjectSchema } from './objects/AiSettingsAvgAggregateInput.schema';
|
||||
import { AiSettingsSumAggregateInputObjectSchema as AiSettingsSumAggregateInputObjectSchema } from './objects/AiSettingsSumAggregateInput.schema';
|
||||
|
||||
export const AiSettingsGroupBySchema: z.ZodType<Prisma.AiSettingsGroupByArgs> = z.object({ where: AiSettingsWhereInputObjectSchema.optional(), orderBy: z.union([AiSettingsOrderByWithAggregationInputObjectSchema, AiSettingsOrderByWithAggregationInputObjectSchema.array()]).optional(), having: AiSettingsScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(AiSettingsScalarFieldEnumSchema), _count: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional(), _min: AiSettingsMinAggregateInputObjectSchema.optional(), _max: AiSettingsMaxAggregateInputObjectSchema.optional(), _avg: AiSettingsAvgAggregateInputObjectSchema.optional(), _sum: AiSettingsSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.AiSettingsGroupByArgs>;
|
||||
|
||||
export const AiSettingsGroupByZodSchema = z.object({ where: AiSettingsWhereInputObjectSchema.optional(), orderBy: z.union([AiSettingsOrderByWithAggregationInputObjectSchema, AiSettingsOrderByWithAggregationInputObjectSchema.array()]).optional(), having: AiSettingsScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(AiSettingsScalarFieldEnumSchema), _count: z.union([ z.literal(true), AiSettingsCountAggregateInputObjectSchema ]).optional(), _min: AiSettingsMinAggregateInputObjectSchema.optional(), _max: AiSettingsMaxAggregateInputObjectSchema.optional(), _avg: AiSettingsAvgAggregateInputObjectSchema.optional(), _sum: AiSettingsSumAggregateInputObjectSchema.optional() }).strict();
|
||||
15
packages/db/shared/schemas/groupByOfficeHours.schema.ts
Normal file
15
packages/db/shared/schemas/groupByOfficeHours.schema.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { OfficeHoursWhereInputObjectSchema as OfficeHoursWhereInputObjectSchema } from './objects/OfficeHoursWhereInput.schema';
|
||||
import { OfficeHoursOrderByWithAggregationInputObjectSchema as OfficeHoursOrderByWithAggregationInputObjectSchema } from './objects/OfficeHoursOrderByWithAggregationInput.schema';
|
||||
import { OfficeHoursScalarWhereWithAggregatesInputObjectSchema as OfficeHoursScalarWhereWithAggregatesInputObjectSchema } from './objects/OfficeHoursScalarWhereWithAggregatesInput.schema';
|
||||
import { OfficeHoursScalarFieldEnumSchema } from './enums/OfficeHoursScalarFieldEnum.schema';
|
||||
import { OfficeHoursCountAggregateInputObjectSchema as OfficeHoursCountAggregateInputObjectSchema } from './objects/OfficeHoursCountAggregateInput.schema';
|
||||
import { OfficeHoursMinAggregateInputObjectSchema as OfficeHoursMinAggregateInputObjectSchema } from './objects/OfficeHoursMinAggregateInput.schema';
|
||||
import { OfficeHoursMaxAggregateInputObjectSchema as OfficeHoursMaxAggregateInputObjectSchema } from './objects/OfficeHoursMaxAggregateInput.schema';
|
||||
import { OfficeHoursAvgAggregateInputObjectSchema as OfficeHoursAvgAggregateInputObjectSchema } from './objects/OfficeHoursAvgAggregateInput.schema';
|
||||
import { OfficeHoursSumAggregateInputObjectSchema as OfficeHoursSumAggregateInputObjectSchema } from './objects/OfficeHoursSumAggregateInput.schema';
|
||||
|
||||
export const OfficeHoursGroupBySchema: z.ZodType<Prisma.OfficeHoursGroupByArgs> = z.object({ where: OfficeHoursWhereInputObjectSchema.optional(), orderBy: z.union([OfficeHoursOrderByWithAggregationInputObjectSchema, OfficeHoursOrderByWithAggregationInputObjectSchema.array()]).optional(), having: OfficeHoursScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(OfficeHoursScalarFieldEnumSchema), _count: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional(), _min: OfficeHoursMinAggregateInputObjectSchema.optional(), _max: OfficeHoursMaxAggregateInputObjectSchema.optional(), _avg: OfficeHoursAvgAggregateInputObjectSchema.optional(), _sum: OfficeHoursSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.OfficeHoursGroupByArgs>;
|
||||
|
||||
export const OfficeHoursGroupByZodSchema = z.object({ where: OfficeHoursWhereInputObjectSchema.optional(), orderBy: z.union([OfficeHoursOrderByWithAggregationInputObjectSchema, OfficeHoursOrderByWithAggregationInputObjectSchema.array()]).optional(), having: OfficeHoursScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(OfficeHoursScalarFieldEnumSchema), _count: z.union([ z.literal(true), OfficeHoursCountAggregateInputObjectSchema ]).optional(), _min: OfficeHoursMinAggregateInputObjectSchema.optional(), _max: OfficeHoursMaxAggregateInputObjectSchema.optional(), _avg: OfficeHoursAvgAggregateInputObjectSchema.optional(), _sum: OfficeHoursSumAggregateInputObjectSchema.optional() }).strict();
|
||||
15
packages/db/shared/schemas/groupByTwilioSettings.schema.ts
Normal file
15
packages/db/shared/schemas/groupByTwilioSettings.schema.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { TwilioSettingsWhereInputObjectSchema as TwilioSettingsWhereInputObjectSchema } from './objects/TwilioSettingsWhereInput.schema';
|
||||
import { TwilioSettingsOrderByWithAggregationInputObjectSchema as TwilioSettingsOrderByWithAggregationInputObjectSchema } from './objects/TwilioSettingsOrderByWithAggregationInput.schema';
|
||||
import { TwilioSettingsScalarWhereWithAggregatesInputObjectSchema as TwilioSettingsScalarWhereWithAggregatesInputObjectSchema } from './objects/TwilioSettingsScalarWhereWithAggregatesInput.schema';
|
||||
import { TwilioSettingsScalarFieldEnumSchema } from './enums/TwilioSettingsScalarFieldEnum.schema';
|
||||
import { TwilioSettingsCountAggregateInputObjectSchema as TwilioSettingsCountAggregateInputObjectSchema } from './objects/TwilioSettingsCountAggregateInput.schema';
|
||||
import { TwilioSettingsMinAggregateInputObjectSchema as TwilioSettingsMinAggregateInputObjectSchema } from './objects/TwilioSettingsMinAggregateInput.schema';
|
||||
import { TwilioSettingsMaxAggregateInputObjectSchema as TwilioSettingsMaxAggregateInputObjectSchema } from './objects/TwilioSettingsMaxAggregateInput.schema';
|
||||
import { TwilioSettingsAvgAggregateInputObjectSchema as TwilioSettingsAvgAggregateInputObjectSchema } from './objects/TwilioSettingsAvgAggregateInput.schema';
|
||||
import { TwilioSettingsSumAggregateInputObjectSchema as TwilioSettingsSumAggregateInputObjectSchema } from './objects/TwilioSettingsSumAggregateInput.schema';
|
||||
|
||||
export const TwilioSettingsGroupBySchema: z.ZodType<Prisma.TwilioSettingsGroupByArgs> = z.object({ where: TwilioSettingsWhereInputObjectSchema.optional(), orderBy: z.union([TwilioSettingsOrderByWithAggregationInputObjectSchema, TwilioSettingsOrderByWithAggregationInputObjectSchema.array()]).optional(), having: TwilioSettingsScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(TwilioSettingsScalarFieldEnumSchema), _count: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional(), _min: TwilioSettingsMinAggregateInputObjectSchema.optional(), _max: TwilioSettingsMaxAggregateInputObjectSchema.optional(), _avg: TwilioSettingsAvgAggregateInputObjectSchema.optional(), _sum: TwilioSettingsSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.TwilioSettingsGroupByArgs>;
|
||||
|
||||
export const TwilioSettingsGroupByZodSchema = z.object({ where: TwilioSettingsWhereInputObjectSchema.optional(), orderBy: z.union([TwilioSettingsOrderByWithAggregationInputObjectSchema, TwilioSettingsOrderByWithAggregationInputObjectSchema.array()]).optional(), having: TwilioSettingsScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(TwilioSettingsScalarFieldEnumSchema), _count: z.union([ z.literal(true), TwilioSettingsCountAggregateInputObjectSchema ]).optional(), _min: TwilioSettingsMinAggregateInputObjectSchema.optional(), _max: TwilioSettingsMaxAggregateInputObjectSchema.optional(), _avg: TwilioSettingsAvgAggregateInputObjectSchema.optional(), _sum: TwilioSettingsSumAggregateInputObjectSchema.optional() }).strict();
|
||||
@@ -23,8 +23,12 @@ export * from './enums/CloudFileScalarFieldEnum.schema'
|
||||
export * from './enums/CloudFileChunkScalarFieldEnum.schema'
|
||||
export * from './enums/CommunicationScalarFieldEnum.schema'
|
||||
export * from './enums/PatientDocumentScalarFieldEnum.schema'
|
||||
export * from './enums/TwilioSettingsScalarFieldEnum.schema'
|
||||
export * from './enums/AiSettingsScalarFieldEnum.schema'
|
||||
export * from './enums/OfficeHoursScalarFieldEnum.schema'
|
||||
export * from './enums/SortOrder.schema'
|
||||
export * from './enums/NullableJsonNullValueInput.schema'
|
||||
export * from './enums/JsonNullValueInput.schema'
|
||||
export * from './enums/QueryMode.schema'
|
||||
export * from './enums/NullsOrder.schema'
|
||||
export * from './enums/JsonNullValueFilter.schema'
|
||||
@@ -448,6 +452,57 @@ export * from './updateManyAndReturnPatientDocument.schema'
|
||||
export * from './upsertOnePatientDocument.schema'
|
||||
export * from './aggregatePatientDocument.schema'
|
||||
export * from './groupByPatientDocument.schema'
|
||||
export * from './findUniqueTwilioSettings.schema'
|
||||
export * from './findUniqueOrThrowTwilioSettings.schema'
|
||||
export * from './findFirstTwilioSettings.schema'
|
||||
export * from './findFirstOrThrowTwilioSettings.schema'
|
||||
export * from './findManyTwilioSettings.schema'
|
||||
export * from './countTwilioSettings.schema'
|
||||
export * from './createOneTwilioSettings.schema'
|
||||
export * from './createManyTwilioSettings.schema'
|
||||
export * from './createManyAndReturnTwilioSettings.schema'
|
||||
export * from './deleteOneTwilioSettings.schema'
|
||||
export * from './deleteManyTwilioSettings.schema'
|
||||
export * from './updateOneTwilioSettings.schema'
|
||||
export * from './updateManyTwilioSettings.schema'
|
||||
export * from './updateManyAndReturnTwilioSettings.schema'
|
||||
export * from './upsertOneTwilioSettings.schema'
|
||||
export * from './aggregateTwilioSettings.schema'
|
||||
export * from './groupByTwilioSettings.schema'
|
||||
export * from './findUniqueAiSettings.schema'
|
||||
export * from './findUniqueOrThrowAiSettings.schema'
|
||||
export * from './findFirstAiSettings.schema'
|
||||
export * from './findFirstOrThrowAiSettings.schema'
|
||||
export * from './findManyAiSettings.schema'
|
||||
export * from './countAiSettings.schema'
|
||||
export * from './createOneAiSettings.schema'
|
||||
export * from './createManyAiSettings.schema'
|
||||
export * from './createManyAndReturnAiSettings.schema'
|
||||
export * from './deleteOneAiSettings.schema'
|
||||
export * from './deleteManyAiSettings.schema'
|
||||
export * from './updateOneAiSettings.schema'
|
||||
export * from './updateManyAiSettings.schema'
|
||||
export * from './updateManyAndReturnAiSettings.schema'
|
||||
export * from './upsertOneAiSettings.schema'
|
||||
export * from './aggregateAiSettings.schema'
|
||||
export * from './groupByAiSettings.schema'
|
||||
export * from './findUniqueOfficeHours.schema'
|
||||
export * from './findUniqueOrThrowOfficeHours.schema'
|
||||
export * from './findFirstOfficeHours.schema'
|
||||
export * from './findFirstOrThrowOfficeHours.schema'
|
||||
export * from './findManyOfficeHours.schema'
|
||||
export * from './countOfficeHours.schema'
|
||||
export * from './createOneOfficeHours.schema'
|
||||
export * from './createManyOfficeHours.schema'
|
||||
export * from './createManyAndReturnOfficeHours.schema'
|
||||
export * from './deleteOneOfficeHours.schema'
|
||||
export * from './deleteManyOfficeHours.schema'
|
||||
export * from './updateOneOfficeHours.schema'
|
||||
export * from './updateManyOfficeHours.schema'
|
||||
export * from './updateManyAndReturnOfficeHours.schema'
|
||||
export * from './upsertOneOfficeHours.schema'
|
||||
export * from './aggregateOfficeHours.schema'
|
||||
export * from './groupByOfficeHours.schema'
|
||||
export * from './results/UserFindUniqueResult.schema'
|
||||
export * from './results/UserFindFirstResult.schema'
|
||||
export * from './results/UserFindManyResult.schema'
|
||||
@@ -760,6 +815,45 @@ export * from './results/PatientDocumentDeleteManyResult.schema'
|
||||
export * from './results/PatientDocumentAggregateResult.schema'
|
||||
export * from './results/PatientDocumentGroupByResult.schema'
|
||||
export * from './results/PatientDocumentCountResult.schema'
|
||||
export * from './results/TwilioSettingsFindUniqueResult.schema'
|
||||
export * from './results/TwilioSettingsFindFirstResult.schema'
|
||||
export * from './results/TwilioSettingsFindManyResult.schema'
|
||||
export * from './results/TwilioSettingsCreateResult.schema'
|
||||
export * from './results/TwilioSettingsCreateManyResult.schema'
|
||||
export * from './results/TwilioSettingsUpdateResult.schema'
|
||||
export * from './results/TwilioSettingsUpdateManyResult.schema'
|
||||
export * from './results/TwilioSettingsUpsertResult.schema'
|
||||
export * from './results/TwilioSettingsDeleteResult.schema'
|
||||
export * from './results/TwilioSettingsDeleteManyResult.schema'
|
||||
export * from './results/TwilioSettingsAggregateResult.schema'
|
||||
export * from './results/TwilioSettingsGroupByResult.schema'
|
||||
export * from './results/TwilioSettingsCountResult.schema'
|
||||
export * from './results/AiSettingsFindUniqueResult.schema'
|
||||
export * from './results/AiSettingsFindFirstResult.schema'
|
||||
export * from './results/AiSettingsFindManyResult.schema'
|
||||
export * from './results/AiSettingsCreateResult.schema'
|
||||
export * from './results/AiSettingsCreateManyResult.schema'
|
||||
export * from './results/AiSettingsUpdateResult.schema'
|
||||
export * from './results/AiSettingsUpdateManyResult.schema'
|
||||
export * from './results/AiSettingsUpsertResult.schema'
|
||||
export * from './results/AiSettingsDeleteResult.schema'
|
||||
export * from './results/AiSettingsDeleteManyResult.schema'
|
||||
export * from './results/AiSettingsAggregateResult.schema'
|
||||
export * from './results/AiSettingsGroupByResult.schema'
|
||||
export * from './results/AiSettingsCountResult.schema'
|
||||
export * from './results/OfficeHoursFindUniqueResult.schema'
|
||||
export * from './results/OfficeHoursFindFirstResult.schema'
|
||||
export * from './results/OfficeHoursFindManyResult.schema'
|
||||
export * from './results/OfficeHoursCreateResult.schema'
|
||||
export * from './results/OfficeHoursCreateManyResult.schema'
|
||||
export * from './results/OfficeHoursUpdateResult.schema'
|
||||
export * from './results/OfficeHoursUpdateManyResult.schema'
|
||||
export * from './results/OfficeHoursUpsertResult.schema'
|
||||
export * from './results/OfficeHoursDeleteResult.schema'
|
||||
export * from './results/OfficeHoursDeleteManyResult.schema'
|
||||
export * from './results/OfficeHoursAggregateResult.schema'
|
||||
export * from './results/OfficeHoursGroupByResult.schema'
|
||||
export * from './results/OfficeHoursCountResult.schema'
|
||||
export * from './results/index'
|
||||
export * from './objects/index'
|
||||
export * from './variants/pure/User.pure'
|
||||
@@ -786,6 +880,9 @@ export * from './variants/pure/CloudFile.pure'
|
||||
export * from './variants/pure/CloudFileChunk.pure'
|
||||
export * from './variants/pure/Communication.pure'
|
||||
export * from './variants/pure/PatientDocument.pure'
|
||||
export * from './variants/pure/TwilioSettings.pure'
|
||||
export * from './variants/pure/AiSettings.pure'
|
||||
export * from './variants/pure/OfficeHours.pure'
|
||||
export * from './variants/pure/index'
|
||||
export * from './variants/input/User.input'
|
||||
export * from './variants/input/Patient.input'
|
||||
@@ -811,6 +908,9 @@ export * from './variants/input/CloudFile.input'
|
||||
export * from './variants/input/CloudFileChunk.input'
|
||||
export * from './variants/input/Communication.input'
|
||||
export * from './variants/input/PatientDocument.input'
|
||||
export * from './variants/input/TwilioSettings.input'
|
||||
export * from './variants/input/AiSettings.input'
|
||||
export * from './variants/input/OfficeHours.input'
|
||||
export * from './variants/input/index'
|
||||
export * from './variants/result/User.result'
|
||||
export * from './variants/result/Patient.result'
|
||||
@@ -836,5 +936,8 @@ export * from './variants/result/CloudFile.result'
|
||||
export * from './variants/result/CloudFileChunk.result'
|
||||
export * from './variants/result/Communication.result'
|
||||
export * from './variants/result/PatientDocument.result'
|
||||
export * from './variants/result/TwilioSettings.result'
|
||||
export * from './variants/result/AiSettings.result'
|
||||
export * from './variants/result/OfficeHours.result'
|
||||
export * from './variants/result/index'
|
||||
export * from './variants/index'
|
||||
11
packages/db/shared/schemas/objects/AiSettingsArgs.schema.ts
Normal file
11
packages/db/shared/schemas/objects/AiSettingsArgs.schema.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { AiSettingsSelectObjectSchema as AiSettingsSelectObjectSchema } from './AiSettingsSelect.schema';
|
||||
import { AiSettingsIncludeObjectSchema as AiSettingsIncludeObjectSchema } from './AiSettingsInclude.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
select: z.lazy(() => AiSettingsSelectObjectSchema).optional(),
|
||||
include: z.lazy(() => AiSettingsIncludeObjectSchema).optional()
|
||||
}).strict();
|
||||
export const AiSettingsArgsObjectSchema = makeSchema();
|
||||
export const AiSettingsArgsObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const AiSettingsAvgAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsAvgAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsAvgAggregateInputType>;
|
||||
export const AiSettingsAvgAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const AiSettingsAvgOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsAvgOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsAvgOrderByAggregateInput>;
|
||||
export const AiSettingsAvgOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
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(),
|
||||
_all: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const AiSettingsCountAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsCountAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCountAggregateInputType>;
|
||||
export const AiSettingsCountAggregateInputObjectZodSchema = 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(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
apiKey: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const AiSettingsCountOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsCountOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCountOrderByAggregateInput>;
|
||||
export const AiSettingsCountOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { UserCreateNestedOneWithoutAiSettingsInputObjectSchema as UserCreateNestedOneWithoutAiSettingsInputObjectSchema } from './UserCreateNestedOneWithoutAiSettingsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
apiKey: z.string(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutAiSettingsInputObjectSchema)
|
||||
}).strict();
|
||||
export const AiSettingsCreateInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateInput>;
|
||||
export const AiSettingsCreateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
userId: z.number().int(),
|
||||
apiKey: z.string()
|
||||
}).strict();
|
||||
export const AiSettingsCreateManyInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateManyInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateManyInput>;
|
||||
export const AiSettingsCreateManyInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
|
||||
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema';
|
||||
import { AiSettingsCreateOrConnectWithoutUserInputObjectSchema as AiSettingsCreateOrConnectWithoutUserInputObjectSchema } from './AiSettingsCreateOrConnectWithoutUserInput.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './AiSettingsWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)]).optional(),
|
||||
connectOrCreate: z.lazy(() => AiSettingsCreateOrConnectWithoutUserInputObjectSchema).optional(),
|
||||
connect: z.lazy(() => AiSettingsWhereUniqueInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const AiSettingsCreateNestedOneWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateNestedOneWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateNestedOneWithoutUserInput>;
|
||||
export const AiSettingsCreateNestedOneWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './AiSettingsWhereUniqueInput.schema';
|
||||
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
|
||||
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => AiSettingsWhereUniqueInputObjectSchema),
|
||||
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)])
|
||||
}).strict();
|
||||
export const AiSettingsCreateOrConnectWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateOrConnectWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateOrConnectWithoutUserInput>;
|
||||
export const AiSettingsCreateOrConnectWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,9 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
apiKey: z.string()
|
||||
}).strict();
|
||||
export const AiSettingsCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsCreateWithoutUserInput>;
|
||||
export const AiSettingsCreateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,9 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { UserArgsObjectSchema as UserArgsObjectSchema } from './UserArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
user: z.union([z.boolean(), z.lazy(() => UserArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsIncludeObjectSchema: z.ZodType<Prisma.AiSettingsInclude> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsInclude>;
|
||||
export const AiSettingsIncludeObjectZodSchema = 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(),
|
||||
userId: z.literal(true).optional(),
|
||||
apiKey: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const AiSettingsMaxAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMaxAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMaxAggregateInputType>;
|
||||
export const AiSettingsMaxAggregateInputObjectZodSchema = 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(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
apiKey: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const AiSettingsMaxOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMaxOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMaxOrderByAggregateInput>;
|
||||
export const AiSettingsMaxOrderByAggregateInputObjectZodSchema = 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(),
|
||||
userId: z.literal(true).optional(),
|
||||
apiKey: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const AiSettingsMinAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMinAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMinAggregateInputType>;
|
||||
export const AiSettingsMinAggregateInputObjectZodSchema = 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(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
apiKey: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const AiSettingsMinOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsMinOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsMinOrderByAggregateInput>;
|
||||
export const AiSettingsMinOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './AiSettingsWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
is: z.lazy(() => AiSettingsWhereInputObjectSchema).optional().nullable(),
|
||||
isNot: z.lazy(() => AiSettingsWhereInputObjectSchema).optional().nullable()
|
||||
}).strict();
|
||||
export const AiSettingsNullableScalarRelationFilterObjectSchema: z.ZodType<Prisma.AiSettingsNullableScalarRelationFilter> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsNullableScalarRelationFilter>;
|
||||
export const AiSettingsNullableScalarRelationFilterObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,21 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
import { AiSettingsCountOrderByAggregateInputObjectSchema as AiSettingsCountOrderByAggregateInputObjectSchema } from './AiSettingsCountOrderByAggregateInput.schema';
|
||||
import { AiSettingsAvgOrderByAggregateInputObjectSchema as AiSettingsAvgOrderByAggregateInputObjectSchema } from './AiSettingsAvgOrderByAggregateInput.schema';
|
||||
import { AiSettingsMaxOrderByAggregateInputObjectSchema as AiSettingsMaxOrderByAggregateInputObjectSchema } from './AiSettingsMaxOrderByAggregateInput.schema';
|
||||
import { AiSettingsMinOrderByAggregateInputObjectSchema as AiSettingsMinOrderByAggregateInputObjectSchema } from './AiSettingsMinOrderByAggregateInput.schema';
|
||||
import { AiSettingsSumOrderByAggregateInputObjectSchema as AiSettingsSumOrderByAggregateInputObjectSchema } from './AiSettingsSumOrderByAggregateInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
apiKey: SortOrderSchema.optional(),
|
||||
_count: z.lazy(() => AiSettingsCountOrderByAggregateInputObjectSchema).optional(),
|
||||
_avg: z.lazy(() => AiSettingsAvgOrderByAggregateInputObjectSchema).optional(),
|
||||
_max: z.lazy(() => AiSettingsMaxOrderByAggregateInputObjectSchema).optional(),
|
||||
_min: z.lazy(() => AiSettingsMinOrderByAggregateInputObjectSchema).optional(),
|
||||
_sum: z.lazy(() => AiSettingsSumOrderByAggregateInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const AiSettingsOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.AiSettingsOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsOrderByWithAggregationInput>;
|
||||
export const AiSettingsOrderByWithAggregationInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,13 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
import { UserOrderByWithRelationInputObjectSchema as UserOrderByWithRelationInputObjectSchema } from './UserOrderByWithRelationInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
apiKey: SortOrderSchema.optional(),
|
||||
user: z.lazy(() => UserOrderByWithRelationInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const AiSettingsOrderByWithRelationInputObjectSchema: z.ZodType<Prisma.AiSettingsOrderByWithRelationInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsOrderByWithRelationInput>;
|
||||
export const AiSettingsOrderByWithRelationInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,15 @@
|
||||
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'
|
||||
|
||||
const aisettingsscalarwherewithaggregatesinputSchema = z.object({
|
||||
AND: z.union([z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
|
||||
OR: z.lazy(() => AiSettingsScalarWhereWithAggregatesInputObjectSchema).array().optional(),
|
||||
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()
|
||||
}).strict();
|
||||
export const AiSettingsScalarWhereWithAggregatesInputObjectSchema: z.ZodType<Prisma.AiSettingsScalarWhereWithAggregatesInput> = aisettingsscalarwherewithaggregatesinputSchema as unknown as z.ZodType<Prisma.AiSettingsScalarWhereWithAggregatesInput>;
|
||||
export const AiSettingsScalarWhereWithAggregatesInputObjectZodSchema = aisettingsscalarwherewithaggregatesinputSchema;
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { UserArgsObjectSchema as UserArgsObjectSchema } from './UserArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.boolean().optional(),
|
||||
userId: z.boolean().optional(),
|
||||
apiKey: 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>;
|
||||
export const AiSettingsSelectObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const AiSettingsSumAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsSumAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsSumAggregateInputType>;
|
||||
export const AiSettingsSumAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const AiSettingsSumOrderByAggregateInputObjectSchema: z.ZodType<Prisma.AiSettingsSumOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsSumOrderByAggregateInput>;
|
||||
export const AiSettingsSumOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
userId: z.number().int(),
|
||||
apiKey: z.string()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedCreateInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedCreateInput>;
|
||||
export const AiSettingsUncheckedCreateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
|
||||
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema';
|
||||
import { AiSettingsCreateOrConnectWithoutUserInputObjectSchema as AiSettingsCreateOrConnectWithoutUserInputObjectSchema } from './AiSettingsCreateOrConnectWithoutUserInput.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './AiSettingsWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)]).optional(),
|
||||
connectOrCreate: z.lazy(() => AiSettingsCreateOrConnectWithoutUserInputObjectSchema).optional(),
|
||||
connect: z.lazy(() => AiSettingsWhereUniqueInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedCreateNestedOneWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedCreateNestedOneWithoutUserInput>;
|
||||
export const AiSettingsUncheckedCreateNestedOneWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
apiKey: z.string()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedCreateWithoutUserInput>;
|
||||
export const AiSettingsUncheckedCreateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
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'
|
||||
|
||||
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()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedUpdateInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateInput>;
|
||||
export const AiSettingsUncheckedUpdateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
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'
|
||||
|
||||
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()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedUpdateManyInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateManyInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateManyInput>;
|
||||
export const AiSettingsUncheckedUpdateManyInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,23 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
|
||||
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema';
|
||||
import { AiSettingsCreateOrConnectWithoutUserInputObjectSchema as AiSettingsCreateOrConnectWithoutUserInputObjectSchema } from './AiSettingsCreateOrConnectWithoutUserInput.schema';
|
||||
import { AiSettingsUpsertWithoutUserInputObjectSchema as AiSettingsUpsertWithoutUserInputObjectSchema } from './AiSettingsUpsertWithoutUserInput.schema';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './AiSettingsWhereInput.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './AiSettingsWhereUniqueInput.schema';
|
||||
import { AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema as AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema } from './AiSettingsUpdateToOneWithWhereWithoutUserInput.schema';
|
||||
import { AiSettingsUpdateWithoutUserInputObjectSchema as AiSettingsUpdateWithoutUserInputObjectSchema } from './AiSettingsUpdateWithoutUserInput.schema';
|
||||
import { AiSettingsUncheckedUpdateWithoutUserInputObjectSchema as AiSettingsUncheckedUpdateWithoutUserInputObjectSchema } from './AiSettingsUncheckedUpdateWithoutUserInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)]).optional(),
|
||||
connectOrCreate: z.lazy(() => AiSettingsCreateOrConnectWithoutUserInputObjectSchema).optional(),
|
||||
upsert: z.lazy(() => AiSettingsUpsertWithoutUserInputObjectSchema).optional(),
|
||||
disconnect: z.union([z.boolean(), z.lazy(() => AiSettingsWhereInputObjectSchema)]).optional(),
|
||||
delete: z.union([z.boolean(), z.lazy(() => AiSettingsWhereInputObjectSchema)]).optional(),
|
||||
connect: z.lazy(() => AiSettingsWhereUniqueInputObjectSchema).optional(),
|
||||
update: z.union([z.lazy(() => AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUpdateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedUpdateWithoutUserInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateOneWithoutUserNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateOneWithoutUserNestedInput>;
|
||||
export const AiSettingsUncheckedUpdateOneWithoutUserNestedInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
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'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUncheckedUpdateWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUncheckedUpdateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUncheckedUpdateWithoutUserInput>;
|
||||
export const AiSettingsUncheckedUpdateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,11 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema as UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutAiSettingsNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
user: z.lazy(() => UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUpdateInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateInput>;
|
||||
export const AiSettingsUpdateInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,9 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUpdateManyMutationInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateManyMutationInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateManyMutationInput>;
|
||||
export const AiSettingsUpdateManyMutationInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,23 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { AiSettingsCreateWithoutUserInputObjectSchema as AiSettingsCreateWithoutUserInputObjectSchema } from './AiSettingsCreateWithoutUserInput.schema';
|
||||
import { AiSettingsUncheckedCreateWithoutUserInputObjectSchema as AiSettingsUncheckedCreateWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateWithoutUserInput.schema';
|
||||
import { AiSettingsCreateOrConnectWithoutUserInputObjectSchema as AiSettingsCreateOrConnectWithoutUserInputObjectSchema } from './AiSettingsCreateOrConnectWithoutUserInput.schema';
|
||||
import { AiSettingsUpsertWithoutUserInputObjectSchema as AiSettingsUpsertWithoutUserInputObjectSchema } from './AiSettingsUpsertWithoutUserInput.schema';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './AiSettingsWhereInput.schema';
|
||||
import { AiSettingsWhereUniqueInputObjectSchema as AiSettingsWhereUniqueInputObjectSchema } from './AiSettingsWhereUniqueInput.schema';
|
||||
import { AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema as AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema } from './AiSettingsUpdateToOneWithWhereWithoutUserInput.schema';
|
||||
import { AiSettingsUpdateWithoutUserInputObjectSchema as AiSettingsUpdateWithoutUserInputObjectSchema } from './AiSettingsUpdateWithoutUserInput.schema';
|
||||
import { AiSettingsUncheckedUpdateWithoutUserInputObjectSchema as AiSettingsUncheckedUpdateWithoutUserInputObjectSchema } from './AiSettingsUncheckedUpdateWithoutUserInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => AiSettingsCreateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedCreateWithoutUserInputObjectSchema)]).optional(),
|
||||
connectOrCreate: z.lazy(() => AiSettingsCreateOrConnectWithoutUserInputObjectSchema).optional(),
|
||||
upsert: z.lazy(() => AiSettingsUpsertWithoutUserInputObjectSchema).optional(),
|
||||
disconnect: z.union([z.boolean(), z.lazy(() => AiSettingsWhereInputObjectSchema)]).optional(),
|
||||
delete: z.union([z.boolean(), z.lazy(() => AiSettingsWhereInputObjectSchema)]).optional(),
|
||||
connect: z.lazy(() => AiSettingsWhereUniqueInputObjectSchema).optional(),
|
||||
update: z.union([z.lazy(() => AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUpdateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedUpdateWithoutUserInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const AiSettingsUpdateOneWithoutUserNestedInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateOneWithoutUserNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateOneWithoutUserNestedInput>;
|
||||
export const AiSettingsUpdateOneWithoutUserNestedInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { AiSettingsWhereInputObjectSchema as AiSettingsWhereInputObjectSchema } from './AiSettingsWhereInput.schema';
|
||||
import { AiSettingsUpdateWithoutUserInputObjectSchema as AiSettingsUpdateWithoutUserInputObjectSchema } from './AiSettingsUpdateWithoutUserInput.schema';
|
||||
import { AiSettingsUncheckedUpdateWithoutUserInputObjectSchema as AiSettingsUncheckedUpdateWithoutUserInputObjectSchema } from './AiSettingsUncheckedUpdateWithoutUserInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => AiSettingsWhereInputObjectSchema).optional(),
|
||||
data: z.union([z.lazy(() => AiSettingsUpdateWithoutUserInputObjectSchema), z.lazy(() => AiSettingsUncheckedUpdateWithoutUserInputObjectSchema)])
|
||||
}).strict();
|
||||
export const AiSettingsUpdateToOneWithWhereWithoutUserInputObjectSchema: z.ZodType<Prisma.AiSettingsUpdateToOneWithWhereWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.AiSettingsUpdateToOneWithWhereWithoutUserInput>;
|
||||
export const AiSettingsUpdateToOneWithWhereWithoutUserInputObjectZodSchema = makeSchema();
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user