feat: add per-patient Local folder in Documents page backed by Cloud Storage
- Documents page shows a "Local Folder" card for each selected patient
with an "Open in Cloud Storage" button that deep-links to their folder
- Cloud Storage page reads ?folderId URL param on mount and auto-opens
the folder panel for seamless navigation from Documents
- Backend: GET /api/cloud-storage/patient-folder/:patientId endpoint
that idempotently gets or creates a top-level CloudFolder per patient
- CloudFolder schema gains optional patientId field linked to Patient
- Disk directories for cloud storage folders now use the folder's name
(e.g. "Xiaohui Wang/") instead of the opaque "folder-{id}/" path
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import express, { Request, Response } from "express";
|
||||
import storage from "../storage";
|
||||
import { serializeFile } from "../utils/prismaFileUtils";
|
||||
import { CloudFolder } from "@repo/db/types";
|
||||
import { prisma as db } from "@repo/db/client";
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -133,6 +134,35 @@ router.get(
|
||||
}
|
||||
);
|
||||
|
||||
// ---------- Patient-dedicated folder (get or create) ----------
|
||||
// GET /patient-folder/:patientId?userId=XXX
|
||||
router.get(
|
||||
"/patient-folder/:patientId",
|
||||
async (req: Request, res: Response): Promise<any> => {
|
||||
const patientId = Number.parseInt(req.params.patientId ?? "", 10);
|
||||
const userId = Number.parseInt(String(req.query.userId ?? ""), 10);
|
||||
|
||||
if (!Number.isInteger(patientId) || patientId <= 0)
|
||||
return sendError(res, 400, "Invalid patientId");
|
||||
if (!Number.isInteger(userId) || userId <= 0)
|
||||
return sendError(res, 400, "Missing or invalid userId");
|
||||
|
||||
try {
|
||||
const patient = await db.patient.findUnique({
|
||||
where: { id: patientId },
|
||||
select: { firstName: true, lastName: true },
|
||||
});
|
||||
if (!patient) return sendError(res, 404, "Patient not found");
|
||||
|
||||
const patientName = `${patient.firstName} ${patient.lastName}`.trim();
|
||||
const folder = await storage.getOrCreatePatientFolder(userId, patientId, patientName);
|
||||
return res.json({ error: false, data: folder });
|
||||
} catch (err) {
|
||||
return sendError(res, 500, "Failed to get or create patient folder", err);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// ---------- Folder CRUD ----------
|
||||
router.get(
|
||||
"/folders/:id",
|
||||
|
||||
@@ -7,8 +7,20 @@ import path from "path";
|
||||
const CLOUD_ROOT = path.join(process.cwd(), "uploads", "cloud-storage");
|
||||
const CLOUD_TMP = path.join(CLOUD_ROOT, "tmp");
|
||||
|
||||
function cloudFolderDir(folderId: number | null): string {
|
||||
const dir = path.join(CLOUD_ROOT, folderId != null ? `folder-${folderId}` : "root");
|
||||
function sanitizeDirName(name: string): string {
|
||||
return name.replace(/[/\\?%*:|"<>]/g, "-").trim() || "unnamed";
|
||||
}
|
||||
|
||||
function cloudFolderDir(folderId: number | null, folderName?: string): string {
|
||||
let dirName: string;
|
||||
if (folderId == null) {
|
||||
dirName = "root";
|
||||
} else if (folderName) {
|
||||
dirName = sanitizeDirName(folderName);
|
||||
} else {
|
||||
dirName = `folder-${folderId}`;
|
||||
}
|
||||
const dir = path.join(CLOUD_ROOT, dirName);
|
||||
fs.mkdirSync(dir, { recursive: true });
|
||||
return dir;
|
||||
}
|
||||
@@ -124,6 +136,13 @@ export interface IStorage {
|
||||
|
||||
// Streaming
|
||||
streamFileTo(resStream: NodeJS.WritableStream, fileId: number): Promise<void>;
|
||||
|
||||
// Patient folder
|
||||
getOrCreatePatientFolder(
|
||||
userId: number,
|
||||
patientId: number,
|
||||
patientName: string
|
||||
): Promise<CloudFolder>;
|
||||
}
|
||||
|
||||
/* ------------------------------- Implementation ------------------------------- */
|
||||
@@ -295,6 +314,16 @@ export const cloudStorageStorage: IStorage = {
|
||||
});
|
||||
if (!file) throw new Error("File record not found");
|
||||
|
||||
// Look up folder name so the disk directory uses the human-readable name
|
||||
let folderName: string | undefined;
|
||||
if (file.folderId != null) {
|
||||
const folder = await db.cloudFolder.findUnique({
|
||||
where: { id: file.folderId },
|
||||
select: { name: true },
|
||||
});
|
||||
folderName = folder?.name;
|
||||
}
|
||||
|
||||
const tmpDir = path.join(CLOUD_TMP, String(fileId));
|
||||
const chunkFiles = fs.existsSync(tmpDir)
|
||||
? fs.readdirSync(tmpDir).filter((f) => f.startsWith("chunk-")).sort()
|
||||
@@ -302,7 +331,7 @@ export const cloudStorageStorage: IStorage = {
|
||||
if (!chunkFiles.length) throw new Error("No chunks uploaded");
|
||||
|
||||
// Assemble chunks into final file
|
||||
const destDir = cloudFolderDir(file.folderId);
|
||||
const destDir = cloudFolderDir(file.folderId, folderName);
|
||||
const safeName = file.name.replace(/[/\\?%*:|"<>]/g, "-");
|
||||
const destPath = path.join(destDir, `${Date.now()}_${safeName}`);
|
||||
const out = fs.openSync(destPath, "w");
|
||||
@@ -500,6 +529,23 @@ export const cloudStorageStorage: IStorage = {
|
||||
return { data: files.map(serializeFile) as unknown as CloudFile[], total };
|
||||
},
|
||||
|
||||
// --- PATIENT FOLDER ---
|
||||
async getOrCreatePatientFolder(
|
||||
userId: number,
|
||||
patientId: number,
|
||||
patientName: string
|
||||
) {
|
||||
const existing = await db.cloudFolder.findFirst({
|
||||
where: { patientId },
|
||||
});
|
||||
if (existing) return existing as unknown as CloudFolder;
|
||||
|
||||
const created = await db.cloudFolder.create({
|
||||
data: { userId, name: patientName, parentId: null, patientId },
|
||||
});
|
||||
return created as unknown as CloudFolder;
|
||||
},
|
||||
|
||||
// --- STREAM ---
|
||||
async streamFileTo(resStream: NodeJS.WritableStream, fileId: number) {
|
||||
const file = await db.cloudFile.findUnique({
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useSearch } from "wouter";
|
||||
import { useQueryClient } from "@tanstack/react-query";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Folder as FolderIcon, Search as SearchIcon } from "lucide-react";
|
||||
@@ -20,6 +21,7 @@ export default function CloudStoragePage() {
|
||||
const { toast } = useToast();
|
||||
const { user } = useAuth();
|
||||
const qc = useQueryClient();
|
||||
const search = useSearch();
|
||||
|
||||
// panel open + initial folder id to show when opening
|
||||
const [panelOpen, setPanelOpen] = useState(false);
|
||||
@@ -27,6 +29,16 @@ export default function CloudStoragePage() {
|
||||
number | null
|
||||
>(null);
|
||||
|
||||
// Deep-link: if navigated here with ?folderId=XXX, open that folder automatically
|
||||
useEffect(() => {
|
||||
const params = new URLSearchParams(search);
|
||||
const id = Number(params.get("folderId"));
|
||||
if (id > 0) {
|
||||
setPanelInitialFolderId(id);
|
||||
setPanelOpen(true);
|
||||
}
|
||||
}, [search]);
|
||||
|
||||
// key to remount recent card to clear its internal selection when needed
|
||||
const [recentKey, setRecentKey] = useState(0);
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import { useQuery, useMutation } from "@tanstack/react-query";
|
||||
import { useLocation } from "wouter";
|
||||
import {
|
||||
Card,
|
||||
CardHeader,
|
||||
@@ -10,7 +11,8 @@ import {
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { toast } from "@/hooks/use-toast";
|
||||
import { apiRequest, queryClient } from "@/lib/queryClient";
|
||||
import { Eye, Trash, Download, FolderOpen, FileText } from "lucide-react";
|
||||
import { Eye, Trash, Download, FolderOpen, FileText, HardDrive } from "lucide-react";
|
||||
import { useAuth } from "@/hooks/use-auth";
|
||||
import { DeleteConfirmationDialog } from "@/components/ui/deleteDialog";
|
||||
import { PatientTable } from "@/components/patients/patient-table";
|
||||
import { Patient, PdfFile } from "@repo/db/types";
|
||||
@@ -32,6 +34,8 @@ import {
|
||||
} from "@/lib/api/documents";
|
||||
|
||||
export default function DocumentsPage() {
|
||||
const { user } = useAuth();
|
||||
const [, setLocation] = useLocation();
|
||||
const [selectedPatient, setSelectedPatient] = useState<Patient | null>(null);
|
||||
const [expandedGroupId, setExpandedGroupId] = useState<number | null>(null);
|
||||
|
||||
@@ -200,6 +204,22 @@ export default function DocumentsPage() {
|
||||
return { map, orderedKeys };
|
||||
}, [groups]);
|
||||
|
||||
// FETCH patient's dedicated local (cloud storage) folder
|
||||
const { data: patientCloudFolder, isLoading: isLoadingCloudFolder } = useQuery({
|
||||
queryKey: ["patientCloudFolder", selectedPatient?.id, user?.id],
|
||||
enabled: !!selectedPatient?.id && !!user?.id,
|
||||
staleTime: 5 * 60 * 1000,
|
||||
queryFn: async () => {
|
||||
const res = await apiRequest(
|
||||
"GET",
|
||||
`/api/cloud-storage/patient-folder/${selectedPatient!.id}?userId=${user!.id}`
|
||||
);
|
||||
const json = await res.json();
|
||||
if (json.error) throw new Error(json.message);
|
||||
return json.data as { id: number; name: string };
|
||||
},
|
||||
});
|
||||
|
||||
// FETCH PDFs for selected group with pagination (limit & offset)
|
||||
const {
|
||||
data: groupPdfsResponse,
|
||||
@@ -324,6 +344,32 @@ export default function DocumentsPage() {
|
||||
|
||||
<CardContent className="space-y-4">
|
||||
|
||||
{/* Local Folder (Cloud Storage) */}
|
||||
<div className="border rounded p-3">
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="flex items-center gap-3">
|
||||
<HardDrive className="w-5 h-5 text-blue-500" />
|
||||
<div>
|
||||
<div className="font-semibold">
|
||||
{isLoadingCloudFolder
|
||||
? "Loading…"
|
||||
: patientCloudFolder?.name ?? "Local Folder"}
|
||||
</div>
|
||||
<div className="text-xs text-muted-foreground">Local disk storage</div>
|
||||
</div>
|
||||
</div>
|
||||
<Button
|
||||
size="sm"
|
||||
variant="outline"
|
||||
disabled={!patientCloudFolder}
|
||||
onClick={() =>
|
||||
setLocation(`/cloud-storage?folderId=${patientCloudFolder!.id}`)
|
||||
}
|
||||
>
|
||||
Open in Cloud Storage
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Existing Groups Section */}
|
||||
<div>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -370,6 +370,7 @@ exports.Prisma.CloudFolderScalarFieldEnum = {
|
||||
userId: 'userId',
|
||||
name: 'name',
|
||||
parentId: 'parentId',
|
||||
patientId: 'patientId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
};
|
||||
|
||||
458
packages/db/generated/prisma/index.d.ts
vendored
458
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-dffa61cfa33500c5a3d8eb3911d8102dda0abe78c0c02287d94a83d7e3de2af7",
|
||||
"name": "prisma-client-5274dcc359e2ac7cb6d4e95a13b684de504baf5945107a0270a97148d1ad0620",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"browser": "default.js",
|
||||
|
||||
@@ -78,6 +78,7 @@ model Patient {
|
||||
communications Communication[]
|
||||
documents PatientDocument[]
|
||||
conversation PatientConversation?
|
||||
cloudFolders CloudFolder[] @relation("PatientCloudFolder")
|
||||
|
||||
@@index([insuranceId])
|
||||
@@index([createdAt])
|
||||
@@ -479,15 +480,18 @@ model CloudFolder {
|
||||
userId Int
|
||||
name String
|
||||
parentId Int?
|
||||
patientId Int?
|
||||
parent CloudFolder? @relation("FolderChildren", fields: [parentId], references: [id], onDelete: Cascade)
|
||||
children CloudFolder[] @relation("FolderChildren")
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
patient Patient? @relation("PatientCloudFolder", fields: [patientId], references: [id], onDelete: SetNull)
|
||||
files CloudFile[]
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@unique([userId, parentId, name]) // prevents sibling folder name duplicates
|
||||
@@index([parentId])
|
||||
@@index([patientId])
|
||||
}
|
||||
|
||||
model CloudFile {
|
||||
@@ -602,11 +606,11 @@ model AiSettings {
|
||||
apiKey String
|
||||
aiEnabled Boolean @default(true)
|
||||
openAiKey String @default("")
|
||||
openAiEnabled Boolean @default(true)
|
||||
openAiEnabled Boolean @default(false)
|
||||
claudeAiKey String @default("")
|
||||
claudeAiEnabled Boolean @default(true)
|
||||
claudeAiEnabled Boolean @default(false)
|
||||
dentalMgmtKey String @default("")
|
||||
dentalMgmtEnabled Boolean @default(true)
|
||||
dentalMgmtEnabled Boolean @default(false)
|
||||
afterHoursEnabled Boolean @default(true)
|
||||
openPhoneReply Boolean @default(false)
|
||||
|
||||
|
||||
@@ -78,6 +78,7 @@ model Patient {
|
||||
communications Communication[]
|
||||
documents PatientDocument[]
|
||||
conversation PatientConversation?
|
||||
cloudFolders CloudFolder[] @relation("PatientCloudFolder")
|
||||
|
||||
@@index([insuranceId])
|
||||
@@index([createdAt])
|
||||
@@ -480,15 +481,18 @@ model CloudFolder {
|
||||
userId Int
|
||||
name String
|
||||
parentId Int?
|
||||
patientId Int?
|
||||
parent CloudFolder? @relation("FolderChildren", fields: [parentId], references: [id], onDelete: Cascade)
|
||||
children CloudFolder[] @relation("FolderChildren")
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
patient Patient? @relation("PatientCloudFolder", fields: [patientId], references: [id], onDelete: SetNull)
|
||||
files CloudFile[]
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@unique([userId, parentId, name]) // prevents sibling folder name duplicates
|
||||
@@index([parentId])
|
||||
@@index([patientId])
|
||||
}
|
||||
|
||||
model CloudFile {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"generatorVersion": "1.0.0",
|
||||
"generatedAt": "2026-06-05T20:31:36.056Z",
|
||||
"generatedAt": "2026-06-06T02:32:44.464Z",
|
||||
"outputPath": "/home/ff/Desktop/DentalManagementMH06/packages/db/shared",
|
||||
"files": [
|
||||
"schemas/enums/TransactionIsolationLevel.schema.ts",
|
||||
@@ -680,6 +680,7 @@
|
||||
"schemas/objects/CronJobLogMinOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/CronJobLogSumOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/CloudFolderNullableScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/PatientNullableScalarRelationFilter.schema.ts",
|
||||
"schemas/objects/CloudFolderUserIdParentIdNameCompoundUniqueInput.schema.ts",
|
||||
"schemas/objects/CloudFolderCountOrderByAggregateInput.schema.ts",
|
||||
"schemas/objects/CloudFolderAvgOrderByAggregateInput.schema.ts",
|
||||
@@ -864,6 +865,7 @@
|
||||
"schemas/objects/CommunicationCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateNestedOneWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/ClaimUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
@@ -872,6 +874,7 @@
|
||||
"schemas/objects/CommunicationUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUncheckedCreateNestedManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/NullableDateTimeFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/NullableStringFieldUpdateOperationsInput.schema.ts",
|
||||
"schemas/objects/EnumPatientStatusFieldUpdateOperationsInput.schema.ts",
|
||||
@@ -885,6 +888,7 @@
|
||||
"schemas/objects/CommunicationUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateOneWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/ClaimUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
@@ -893,6 +897,7 @@
|
||||
"schemas/objects/CommunicationUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedUpdateOneWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUncheckedUpdateManyWithoutPatientNestedInput.schema.ts",
|
||||
"schemas/objects/PatientCreateNestedOneWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/StaffCreateNestedOneWithoutAppointmentsInput.schema.ts",
|
||||
@@ -1036,12 +1041,14 @@
|
||||
"schemas/objects/CloudFolderCreateNestedOneWithoutChildrenInput.schema.ts",
|
||||
"schemas/objects/CloudFolderCreateNestedManyWithoutParentInput.schema.ts",
|
||||
"schemas/objects/UserCreateNestedOneWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/PatientCreateNestedOneWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/CloudFileCreateNestedManyWithoutFolderInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUncheckedCreateNestedManyWithoutParentInput.schema.ts",
|
||||
"schemas/objects/CloudFileUncheckedCreateNestedManyWithoutFolderInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUpdateOneWithoutChildrenNestedInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUpdateManyWithoutParentNestedInput.schema.ts",
|
||||
"schemas/objects/UserUpdateOneRequiredWithoutCloudFoldersNestedInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateOneWithoutCloudFoldersNestedInput.schema.ts",
|
||||
"schemas/objects/CloudFileUpdateManyWithoutFolderNestedInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUncheckedUpdateManyWithoutParentNestedInput.schema.ts",
|
||||
"schemas/objects/CloudFileUncheckedUpdateManyWithoutFolderNestedInput.schema.ts",
|
||||
@@ -1338,6 +1345,10 @@
|
||||
"schemas/objects/PatientConversationCreateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedCreateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationCreateOrConnectWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderCreateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUncheckedCreateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderCreateOrConnectWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderCreateManyPatientInputEnvelope.schema.ts",
|
||||
"schemas/objects/UserUpsertWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateToOneWithWhereWithoutPatientsInput.schema.ts",
|
||||
"schemas/objects/UserUpdateWithoutPatientsInput.schema.ts",
|
||||
@@ -1370,6 +1381,9 @@
|
||||
"schemas/objects/PatientConversationUpdateToOneWithWhereWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientConversationUncheckedUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUpsertWithWhereUniqueWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUpdateWithWhereUniqueWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUpdateManyWithWhereWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientCreateWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedCreateWithoutAppointmentsInput.schema.ts",
|
||||
"schemas/objects/PatientCreateOrConnectWithoutAppointmentsInput.schema.ts",
|
||||
@@ -1716,6 +1730,9 @@
|
||||
"schemas/objects/UserCreateWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedCreateWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/UserCreateOrConnectWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/PatientCreateWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedCreateWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/PatientCreateOrConnectWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/CloudFileCreateWithoutFolderInput.schema.ts",
|
||||
"schemas/objects/CloudFileUncheckedCreateWithoutFolderInput.schema.ts",
|
||||
"schemas/objects/CloudFileCreateOrConnectWithoutFolderInput.schema.ts",
|
||||
@@ -1731,6 +1748,10 @@
|
||||
"schemas/objects/UserUpdateToOneWithWhereWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/UserUpdateWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/UserUncheckedUpdateWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/PatientUpsertWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateToOneWithWhereWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/PatientUpdateWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/PatientUncheckedUpdateWithoutCloudFoldersInput.schema.ts",
|
||||
"schemas/objects/CloudFileUpsertWithWhereUniqueWithoutFolderInput.schema.ts",
|
||||
"schemas/objects/CloudFileUpdateWithWhereUniqueWithoutFolderInput.schema.ts",
|
||||
"schemas/objects/CloudFileUpdateManyWithWhereWithoutFolderInput.schema.ts",
|
||||
@@ -1939,6 +1960,7 @@
|
||||
"schemas/objects/PaymentCreateManyPatientInput.schema.ts",
|
||||
"schemas/objects/CommunicationCreateManyPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentCreateManyPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderCreateManyPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentUncheckedUpdateManyWithoutPatientInput.schema.ts",
|
||||
@@ -1960,6 +1982,9 @@
|
||||
"schemas/objects/PatientDocumentUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUncheckedUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/PatientDocumentUncheckedUpdateManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUncheckedUpdateWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/CloudFolderUncheckedUpdateManyWithoutPatientInput.schema.ts",
|
||||
"schemas/objects/AppointmentProcedureCreateManyAppointmentInput.schema.ts",
|
||||
"schemas/objects/ClaimCreateManyAppointmentInput.schema.ts",
|
||||
"schemas/objects/AppointmentFileCreateManyAppointmentInput.schema.ts",
|
||||
@@ -2247,6 +2272,7 @@
|
||||
"schemas/objects/PatientCountOutputTypeCountPaymentArgs.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeCountCommunicationsArgs.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeCountDocumentsArgs.schema.ts",
|
||||
"schemas/objects/PatientCountOutputTypeCountCloudFoldersArgs.schema.ts",
|
||||
"schemas/objects/AppointmentCountOutputTypeArgs.schema.ts",
|
||||
"schemas/objects/AppointmentCountOutputTypeCountProceduresArgs.schema.ts",
|
||||
"schemas/objects/AppointmentCountOutputTypeCountClaimsArgs.schema.ts",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const CloudFolderScalarFieldEnumSchema = z.enum(['id', 'userId', 'name', 'parentId', 'createdAt', 'updatedAt'])
|
||||
export const CloudFolderScalarFieldEnumSchema = z.enum(['id', 'userId', 'name', 'parentId', 'patientId', 'createdAt', 'updatedAt'])
|
||||
|
||||
export type CloudFolderScalarFieldEnum = z.infer<typeof CloudFolderScalarFieldEnumSchema>;
|
||||
@@ -14,9 +14,11 @@ export const CloudFolderFindFirstSelectSchema: z.ZodType<Prisma.CloudFolderSelec
|
||||
userId: z.boolean().optional(),
|
||||
name: z.boolean().optional(),
|
||||
parentId: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
parent: z.boolean().optional(),
|
||||
children: z.boolean().optional(),
|
||||
user: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
files: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
@@ -28,9 +30,11 @@ export const CloudFolderFindFirstSelectZodSchema = z.object({
|
||||
userId: z.boolean().optional(),
|
||||
name: z.boolean().optional(),
|
||||
parentId: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
parent: z.boolean().optional(),
|
||||
children: z.boolean().optional(),
|
||||
user: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
files: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
|
||||
@@ -14,9 +14,11 @@ export const CloudFolderFindFirstOrThrowSelectSchema: z.ZodType<Prisma.CloudFold
|
||||
userId: z.boolean().optional(),
|
||||
name: z.boolean().optional(),
|
||||
parentId: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
parent: z.boolean().optional(),
|
||||
children: z.boolean().optional(),
|
||||
user: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
files: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
@@ -28,9 +30,11 @@ export const CloudFolderFindFirstOrThrowSelectZodSchema = z.object({
|
||||
userId: z.boolean().optional(),
|
||||
name: z.boolean().optional(),
|
||||
parentId: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
parent: z.boolean().optional(),
|
||||
children: z.boolean().optional(),
|
||||
user: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
files: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
|
||||
@@ -40,6 +40,7 @@ export const PatientFindFirstOrThrowSelectSchema: z.ZodType<Prisma.PatientSelect
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientSelect>;
|
||||
|
||||
@@ -74,6 +75,7 @@ export const PatientFindFirstOrThrowSelectZodSchema = z.object({
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ export const PatientFindFirstSelectSchema: z.ZodType<Prisma.PatientSelect> = z.o
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientSelect>;
|
||||
|
||||
@@ -74,6 +75,7 @@ export const PatientFindFirstSelectZodSchema = z.object({
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -14,9 +14,11 @@ export const CloudFolderFindManySelectSchema: z.ZodType<Prisma.CloudFolderSelect
|
||||
userId: z.boolean().optional(),
|
||||
name: z.boolean().optional(),
|
||||
parentId: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
parent: z.boolean().optional(),
|
||||
children: z.boolean().optional(),
|
||||
user: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
files: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
@@ -28,9 +30,11 @@ export const CloudFolderFindManySelectZodSchema = z.object({
|
||||
userId: z.boolean().optional(),
|
||||
name: z.boolean().optional(),
|
||||
parentId: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
parent: z.boolean().optional(),
|
||||
children: z.boolean().optional(),
|
||||
user: z.boolean().optional(),
|
||||
patient: z.boolean().optional(),
|
||||
files: z.boolean().optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
|
||||
@@ -40,6 +40,7 @@ export const PatientFindManySelectSchema: z.ZodType<Prisma.PatientSelect> = z.ob
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict() as unknown as z.ZodType<Prisma.PatientSelect>;
|
||||
|
||||
@@ -74,6 +75,7 @@ export const PatientFindManySelectZodSchema = z.object({
|
||||
communications: z.boolean().optional(),
|
||||
documents: z.boolean().optional(),
|
||||
conversation: z.boolean().optional(),
|
||||
cloudFolders: z.boolean().optional(),
|
||||
_count: z.boolean().optional()
|
||||
}).strict();
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
parentId: z.literal(true).optional()
|
||||
parentId: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const CloudFolderAvgAggregateInputObjectSchema: z.ZodType<Prisma.CloudFolderAvgAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderAvgAggregateInputType>;
|
||||
export const CloudFolderAvgAggregateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -5,7 +5,8 @@ import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
parentId: SortOrderSchema.optional()
|
||||
parentId: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const CloudFolderAvgOrderByAggregateInputObjectSchema: z.ZodType<Prisma.CloudFolderAvgOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderAvgOrderByAggregateInput>;
|
||||
export const CloudFolderAvgOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.literal(true).optional(),
|
||||
name: z.literal(true).optional(),
|
||||
parentId: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
createdAt: z.literal(true).optional(),
|
||||
updatedAt: z.literal(true).optional(),
|
||||
_all: z.literal(true).optional()
|
||||
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
userId: SortOrderSchema.optional(),
|
||||
name: SortOrderSchema.optional(),
|
||||
parentId: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
createdAt: SortOrderSchema.optional(),
|
||||
updatedAt: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema as CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema } from './CloudFolderCreateNestedOneWithoutChildrenInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutParentInputObjectSchema as CloudFolderCreateNestedManyWithoutParentInputObjectSchema } from './CloudFolderCreateNestedManyWithoutParentInput.schema';
|
||||
import { UserCreateNestedOneWithoutCloudFoldersInputObjectSchema as UserCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './UserCreateNestedOneWithoutCloudFoldersInput.schema';
|
||||
import { PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema as PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './PatientCreateNestedOneWithoutCloudFoldersInput.schema';
|
||||
import { CloudFileCreateNestedManyWithoutFolderInputObjectSchema as CloudFileCreateNestedManyWithoutFolderInputObjectSchema } from './CloudFileCreateNestedManyWithoutFolderInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -11,6 +12,7 @@ const makeSchema = () => z.object({
|
||||
parent: z.lazy(() => CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema).optional(),
|
||||
children: z.lazy(() => CloudFolderCreateNestedManyWithoutParentInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutCloudFoldersInputObjectSchema),
|
||||
patient: z.lazy(() => PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileCreateNestedManyWithoutFolderInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderCreateInputObjectSchema: z.ZodType<Prisma.CloudFolderCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateInput>;
|
||||
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
parentId: z.number().int().optional().nullable(),
|
||||
patientId: z.number().int().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
|
||||
@@ -6,6 +6,7 @@ const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
patientId: z.number().int().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
parentId: z.number().int().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
export const CloudFolderCreateManyPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderCreateManyPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateManyPatientInput>;
|
||||
export const CloudFolderCreateManyPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateManyPatientInputObjectSchema as CloudFolderCreateManyPatientInputObjectSchema } from './CloudFolderCreateManyPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
data: z.union([z.lazy(() => CloudFolderCreateManyPatientInputObjectSchema), z.lazy(() => CloudFolderCreateManyPatientInputObjectSchema).array()]),
|
||||
skipDuplicates: z.boolean().optional()
|
||||
}).strict();
|
||||
export const CloudFolderCreateManyPatientInputEnvelopeObjectSchema: z.ZodType<Prisma.CloudFolderCreateManyPatientInputEnvelope> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateManyPatientInputEnvelope>;
|
||||
export const CloudFolderCreateManyPatientInputEnvelopeObjectZodSchema = makeSchema();
|
||||
@@ -6,6 +6,7 @@ const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
name: z.string(),
|
||||
parentId: z.number().int().optional().nullable(),
|
||||
patientId: z.number().int().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional()
|
||||
}).strict();
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateWithoutPatientInputObjectSchema as CloudFolderCreateWithoutPatientInputObjectSchema } from './CloudFolderCreateWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedCreateWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateOrConnectWithoutPatientInputObjectSchema as CloudFolderCreateOrConnectWithoutPatientInputObjectSchema } from './CloudFolderCreateOrConnectWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateManyPatientInputEnvelopeObjectSchema as CloudFolderCreateManyPatientInputEnvelopeObjectSchema } from './CloudFolderCreateManyPatientInputEnvelope.schema';
|
||||
import { CloudFolderWhereUniqueInputObjectSchema as CloudFolderWhereUniqueInputObjectSchema } from './CloudFolderWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => CloudFolderCreateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderCreateWithoutPatientInputObjectSchema).array(), z.lazy(() => CloudFolderUncheckedCreateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUncheckedCreateWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => CloudFolderCreateOrConnectWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderCreateOrConnectWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => CloudFolderCreateManyPatientInputEnvelopeObjectSchema).optional(),
|
||||
connect: z.union([z.lazy(() => CloudFolderWhereUniqueInputObjectSchema), z.lazy(() => CloudFolderWhereUniqueInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const CloudFolderCreateNestedManyWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderCreateNestedManyWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateNestedManyWithoutPatientInput>;
|
||||
export const CloudFolderCreateNestedManyWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderWhereUniqueInputObjectSchema as CloudFolderWhereUniqueInputObjectSchema } from './CloudFolderWhereUniqueInput.schema';
|
||||
import { CloudFolderCreateWithoutPatientInputObjectSchema as CloudFolderCreateWithoutPatientInputObjectSchema } from './CloudFolderCreateWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedCreateWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => CloudFolderWhereUniqueInputObjectSchema),
|
||||
create: z.union([z.lazy(() => CloudFolderCreateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUncheckedCreateWithoutPatientInputObjectSchema)])
|
||||
}).strict();
|
||||
export const CloudFolderCreateOrConnectWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderCreateOrConnectWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateOrConnectWithoutPatientInput>;
|
||||
export const CloudFolderCreateOrConnectWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -2,6 +2,7 @@ import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema as CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema } from './CloudFolderCreateNestedOneWithoutChildrenInput.schema';
|
||||
import { UserCreateNestedOneWithoutCloudFoldersInputObjectSchema as UserCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './UserCreateNestedOneWithoutCloudFoldersInput.schema';
|
||||
import { PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema as PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './PatientCreateNestedOneWithoutCloudFoldersInput.schema';
|
||||
import { CloudFileCreateNestedManyWithoutFolderInputObjectSchema as CloudFileCreateNestedManyWithoutFolderInputObjectSchema } from './CloudFileCreateNestedManyWithoutFolderInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -10,6 +11,7 @@ const makeSchema = () => z.object({
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
parent: z.lazy(() => CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutCloudFoldersInputObjectSchema),
|
||||
patient: z.lazy(() => PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileCreateNestedManyWithoutFolderInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderCreateWithoutChildrenInputObjectSchema: z.ZodType<Prisma.CloudFolderCreateWithoutChildrenInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateWithoutChildrenInput>;
|
||||
|
||||
@@ -2,7 +2,8 @@ import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema as CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema } from './CloudFolderCreateNestedOneWithoutChildrenInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutParentInputObjectSchema as CloudFolderCreateNestedManyWithoutParentInputObjectSchema } from './CloudFolderCreateNestedManyWithoutParentInput.schema';
|
||||
import { UserCreateNestedOneWithoutCloudFoldersInputObjectSchema as UserCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './UserCreateNestedOneWithoutCloudFoldersInput.schema'
|
||||
import { UserCreateNestedOneWithoutCloudFoldersInputObjectSchema as UserCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './UserCreateNestedOneWithoutCloudFoldersInput.schema';
|
||||
import { PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema as PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './PatientCreateNestedOneWithoutCloudFoldersInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
name: z.string(),
|
||||
@@ -10,7 +11,8 @@ const makeSchema = () => z.object({
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
parent: z.lazy(() => CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema).optional(),
|
||||
children: z.lazy(() => CloudFolderCreateNestedManyWithoutParentInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutCloudFoldersInputObjectSchema)
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutCloudFoldersInputObjectSchema),
|
||||
patient: z.lazy(() => PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderCreateWithoutFilesInputObjectSchema: z.ZodType<Prisma.CloudFolderCreateWithoutFilesInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateWithoutFilesInput>;
|
||||
export const CloudFolderCreateWithoutFilesInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -2,6 +2,7 @@ import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateNestedManyWithoutParentInputObjectSchema as CloudFolderCreateNestedManyWithoutParentInputObjectSchema } from './CloudFolderCreateNestedManyWithoutParentInput.schema';
|
||||
import { UserCreateNestedOneWithoutCloudFoldersInputObjectSchema as UserCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './UserCreateNestedOneWithoutCloudFoldersInput.schema';
|
||||
import { PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema as PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './PatientCreateNestedOneWithoutCloudFoldersInput.schema';
|
||||
import { CloudFileCreateNestedManyWithoutFolderInputObjectSchema as CloudFileCreateNestedManyWithoutFolderInputObjectSchema } from './CloudFileCreateNestedManyWithoutFolderInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -10,6 +11,7 @@ const makeSchema = () => z.object({
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
children: z.lazy(() => CloudFolderCreateNestedManyWithoutParentInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutCloudFoldersInputObjectSchema),
|
||||
patient: z.lazy(() => PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileCreateNestedManyWithoutFolderInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderCreateWithoutParentInputObjectSchema: z.ZodType<Prisma.CloudFolderCreateWithoutParentInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateWithoutParentInput>;
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema as CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema } from './CloudFolderCreateNestedOneWithoutChildrenInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutParentInputObjectSchema as CloudFolderCreateNestedManyWithoutParentInputObjectSchema } from './CloudFolderCreateNestedManyWithoutParentInput.schema';
|
||||
import { UserCreateNestedOneWithoutCloudFoldersInputObjectSchema as UserCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './UserCreateNestedOneWithoutCloudFoldersInput.schema';
|
||||
import { CloudFileCreateNestedManyWithoutFolderInputObjectSchema as CloudFileCreateNestedManyWithoutFolderInputObjectSchema } from './CloudFileCreateNestedManyWithoutFolderInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
name: z.string(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
parent: z.lazy(() => CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema).optional(),
|
||||
children: z.lazy(() => CloudFolderCreateNestedManyWithoutParentInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutCloudFoldersInputObjectSchema),
|
||||
files: z.lazy(() => CloudFileCreateNestedManyWithoutFolderInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderCreateWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderCreateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateWithoutPatientInput>;
|
||||
export const CloudFolderCreateWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -2,6 +2,7 @@ import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema as CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema } from './CloudFolderCreateNestedOneWithoutChildrenInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutParentInputObjectSchema as CloudFolderCreateNestedManyWithoutParentInputObjectSchema } from './CloudFolderCreateNestedManyWithoutParentInput.schema';
|
||||
import { PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema as PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema } from './PatientCreateNestedOneWithoutCloudFoldersInput.schema';
|
||||
import { CloudFileCreateNestedManyWithoutFolderInputObjectSchema as CloudFileCreateNestedManyWithoutFolderInputObjectSchema } from './CloudFileCreateNestedManyWithoutFolderInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -10,6 +11,7 @@ const makeSchema = () => z.object({
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
parent: z.lazy(() => CloudFolderCreateNestedOneWithoutChildrenInputObjectSchema).optional(),
|
||||
children: z.lazy(() => CloudFolderCreateNestedManyWithoutParentInputObjectSchema).optional(),
|
||||
patient: z.lazy(() => PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileCreateNestedManyWithoutFolderInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.CloudFolderCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderCreateWithoutUserInput>;
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderArgsObjectSchema as CloudFolderArgsObjectSchema } from './CloudFolderArgs.schema';
|
||||
import { CloudFolderFindManySchema as CloudFolderFindManySchema } from '../findManyCloudFolder.schema';
|
||||
import { UserArgsObjectSchema as UserArgsObjectSchema } from './UserArgs.schema';
|
||||
import { PatientArgsObjectSchema as PatientArgsObjectSchema } from './PatientArgs.schema';
|
||||
import { CloudFileFindManySchema as CloudFileFindManySchema } from '../findManyCloudFile.schema';
|
||||
import { CloudFolderCountOutputTypeArgsObjectSchema as CloudFolderCountOutputTypeArgsObjectSchema } from './CloudFolderCountOutputTypeArgs.schema'
|
||||
|
||||
@@ -10,6 +11,7 @@ const makeSchema = () => z.object({
|
||||
parent: z.union([z.boolean(), z.lazy(() => CloudFolderArgsObjectSchema)]).optional(),
|
||||
children: z.union([z.boolean(), z.lazy(() => CloudFolderFindManySchema)]).optional(),
|
||||
user: z.union([z.boolean(), z.lazy(() => UserArgsObjectSchema)]).optional(),
|
||||
patient: z.union([z.boolean(), z.lazy(() => PatientArgsObjectSchema)]).optional(),
|
||||
files: z.union([z.boolean(), z.lazy(() => CloudFileFindManySchema)]).optional(),
|
||||
_count: z.union([z.boolean(), z.lazy(() => CloudFolderCountOutputTypeArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.literal(true).optional(),
|
||||
name: z.literal(true).optional(),
|
||||
parentId: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
createdAt: z.literal(true).optional(),
|
||||
updatedAt: z.literal(true).optional()
|
||||
}).strict();
|
||||
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
userId: SortOrderSchema.optional(),
|
||||
name: SortOrderSchema.optional(),
|
||||
parentId: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
createdAt: SortOrderSchema.optional(),
|
||||
updatedAt: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.literal(true).optional(),
|
||||
name: z.literal(true).optional(),
|
||||
parentId: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
createdAt: z.literal(true).optional(),
|
||||
updatedAt: z.literal(true).optional()
|
||||
}).strict();
|
||||
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
userId: SortOrderSchema.optional(),
|
||||
name: SortOrderSchema.optional(),
|
||||
parentId: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional(),
|
||||
createdAt: SortOrderSchema.optional(),
|
||||
updatedAt: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
|
||||
@@ -13,6 +13,7 @@ const makeSchema = () => z.object({
|
||||
userId: SortOrderSchema.optional(),
|
||||
name: SortOrderSchema.optional(),
|
||||
parentId: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
patientId: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
createdAt: SortOrderSchema.optional(),
|
||||
updatedAt: SortOrderSchema.optional(),
|
||||
_count: z.lazy(() => CloudFolderCountOrderByAggregateInputObjectSchema).optional(),
|
||||
|
||||
@@ -4,6 +4,7 @@ import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
import { SortOrderInputObjectSchema as SortOrderInputObjectSchema } from './SortOrderInput.schema';
|
||||
import { CloudFolderOrderByRelationAggregateInputObjectSchema as CloudFolderOrderByRelationAggregateInputObjectSchema } from './CloudFolderOrderByRelationAggregateInput.schema';
|
||||
import { UserOrderByWithRelationInputObjectSchema as UserOrderByWithRelationInputObjectSchema } from './UserOrderByWithRelationInput.schema';
|
||||
import { PatientOrderByWithRelationInputObjectSchema as PatientOrderByWithRelationInputObjectSchema } from './PatientOrderByWithRelationInput.schema';
|
||||
import { CloudFileOrderByRelationAggregateInputObjectSchema as CloudFileOrderByRelationAggregateInputObjectSchema } from './CloudFileOrderByRelationAggregateInput.schema'
|
||||
|
||||
const cloudfolderorderbywithrelationinputSchema = z.object({
|
||||
@@ -11,11 +12,13 @@ const cloudfolderorderbywithrelationinputSchema = z.object({
|
||||
userId: SortOrderSchema.optional(),
|
||||
name: SortOrderSchema.optional(),
|
||||
parentId: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
patientId: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(),
|
||||
createdAt: SortOrderSchema.optional(),
|
||||
updatedAt: SortOrderSchema.optional(),
|
||||
parent: z.lazy(() => CloudFolderOrderByWithRelationInputObjectSchema).optional(),
|
||||
children: z.lazy(() => CloudFolderOrderByRelationAggregateInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserOrderByWithRelationInputObjectSchema).optional(),
|
||||
patient: z.lazy(() => PatientOrderByWithRelationInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileOrderByRelationAggregateInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderOrderByWithRelationInputObjectSchema: z.ZodType<Prisma.CloudFolderOrderByWithRelationInput> = cloudfolderorderbywithrelationinputSchema as unknown as z.ZodType<Prisma.CloudFolderOrderByWithRelationInput>;
|
||||
|
||||
@@ -13,6 +13,7 @@ const cloudfolderscalarwhereinputSchema = z.object({
|
||||
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
name: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
||||
parentId: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
|
||||
patientId: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
|
||||
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
|
||||
updatedAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional()
|
||||
}).strict();
|
||||
|
||||
@@ -13,6 +13,7 @@ const cloudfolderscalarwherewithaggregatesinputSchema = z.object({
|
||||
userId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
|
||||
name: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
|
||||
parentId: z.union([z.lazy(() => IntNullableWithAggregatesFilterObjectSchema), z.number().int()]).optional().nullable(),
|
||||
patientId: z.union([z.lazy(() => IntNullableWithAggregatesFilterObjectSchema), z.number().int()]).optional().nullable(),
|
||||
createdAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional(),
|
||||
updatedAt: z.union([z.lazy(() => DateTimeWithAggregatesFilterObjectSchema), z.coerce.date()]).optional()
|
||||
}).strict();
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderArgsObjectSchema as CloudFolderArgsObjectSchema } from './CloudFolderArgs.schema';
|
||||
import { CloudFolderFindManySchema as CloudFolderFindManySchema } from '../findManyCloudFolder.schema';
|
||||
import { UserArgsObjectSchema as UserArgsObjectSchema } from './UserArgs.schema';
|
||||
import { PatientArgsObjectSchema as PatientArgsObjectSchema } from './PatientArgs.schema';
|
||||
import { CloudFileFindManySchema as CloudFileFindManySchema } from '../findManyCloudFile.schema';
|
||||
import { CloudFolderCountOutputTypeArgsObjectSchema as CloudFolderCountOutputTypeArgsObjectSchema } from './CloudFolderCountOutputTypeArgs.schema'
|
||||
|
||||
@@ -11,9 +12,11 @@ const makeSchema = () => z.object({
|
||||
userId: z.boolean().optional(),
|
||||
name: z.boolean().optional(),
|
||||
parentId: z.boolean().optional(),
|
||||
patientId: z.boolean().optional(),
|
||||
parent: z.union([z.boolean(), z.lazy(() => CloudFolderArgsObjectSchema)]).optional(),
|
||||
children: z.union([z.boolean(), z.lazy(() => CloudFolderFindManySchema)]).optional(),
|
||||
user: z.union([z.boolean(), z.lazy(() => UserArgsObjectSchema)]).optional(),
|
||||
patient: z.union([z.boolean(), z.lazy(() => PatientArgsObjectSchema)]).optional(),
|
||||
files: z.union([z.boolean(), z.lazy(() => CloudFileFindManySchema)]).optional(),
|
||||
createdAt: z.boolean().optional(),
|
||||
updatedAt: z.boolean().optional(),
|
||||
|
||||
@@ -5,7 +5,8 @@ import type { Prisma } from '../../../generated/prisma';
|
||||
const makeSchema = () => z.object({
|
||||
id: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
parentId: z.literal(true).optional()
|
||||
parentId: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional()
|
||||
}).strict();
|
||||
export const CloudFolderSumAggregateInputObjectSchema: z.ZodType<Prisma.CloudFolderSumAggregateInputType> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderSumAggregateInputType>;
|
||||
export const CloudFolderSumAggregateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -5,7 +5,8 @@ import { SortOrderSchema } from '../enums/SortOrder.schema'
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
userId: SortOrderSchema.optional(),
|
||||
parentId: SortOrderSchema.optional()
|
||||
parentId: SortOrderSchema.optional(),
|
||||
patientId: SortOrderSchema.optional()
|
||||
}).strict();
|
||||
export const CloudFolderSumOrderByAggregateInputObjectSchema: z.ZodType<Prisma.CloudFolderSumOrderByAggregateInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderSumOrderByAggregateInput>;
|
||||
export const CloudFolderSumOrderByAggregateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -8,6 +8,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
parentId: z.number().int().optional().nullable(),
|
||||
patientId: z.number().int().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
children: z.lazy(() => CloudFolderUncheckedCreateNestedManyWithoutParentInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileUncheckedCreateNestedManyWithoutFolderInputObjectSchema).optional()
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateWithoutPatientInputObjectSchema as CloudFolderCreateWithoutPatientInputObjectSchema } from './CloudFolderCreateWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedCreateWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateOrConnectWithoutPatientInputObjectSchema as CloudFolderCreateOrConnectWithoutPatientInputObjectSchema } from './CloudFolderCreateOrConnectWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateManyPatientInputEnvelopeObjectSchema as CloudFolderCreateManyPatientInputEnvelopeObjectSchema } from './CloudFolderCreateManyPatientInputEnvelope.schema';
|
||||
import { CloudFolderWhereUniqueInputObjectSchema as CloudFolderWhereUniqueInputObjectSchema } from './CloudFolderWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => CloudFolderCreateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderCreateWithoutPatientInputObjectSchema).array(), z.lazy(() => CloudFolderUncheckedCreateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUncheckedCreateWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => CloudFolderCreateOrConnectWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderCreateOrConnectWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => CloudFolderCreateManyPatientInputEnvelopeObjectSchema).optional(),
|
||||
connect: z.union([z.lazy(() => CloudFolderWhereUniqueInputObjectSchema), z.lazy(() => CloudFolderWhereUniqueInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderUncheckedCreateNestedManyWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUncheckedCreateNestedManyWithoutPatientInput>;
|
||||
export const CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
parentId: z.number().int().optional().nullable(),
|
||||
patientId: z.number().int().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
files: z.lazy(() => CloudFileUncheckedCreateNestedManyWithoutFolderInputObjectSchema).optional()
|
||||
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
parentId: z.number().int().optional().nullable(),
|
||||
patientId: z.number().int().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
children: z.lazy(() => CloudFolderUncheckedCreateNestedManyWithoutParentInputObjectSchema).optional()
|
||||
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
patientId: z.number().int().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
children: z.lazy(() => CloudFolderUncheckedCreateNestedManyWithoutParentInputObjectSchema).optional(),
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderUncheckedCreateNestedManyWithoutParentInputObjectSchema as CloudFolderUncheckedCreateNestedManyWithoutParentInputObjectSchema } from './CloudFolderUncheckedCreateNestedManyWithoutParentInput.schema';
|
||||
import { CloudFileUncheckedCreateNestedManyWithoutFolderInputObjectSchema as CloudFileUncheckedCreateNestedManyWithoutFolderInputObjectSchema } from './CloudFileUncheckedCreateNestedManyWithoutFolderInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
userId: z.number().int(),
|
||||
name: z.string(),
|
||||
parentId: z.number().int().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
children: z.lazy(() => CloudFolderUncheckedCreateNestedManyWithoutParentInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileUncheckedCreateNestedManyWithoutFolderInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUncheckedCreateWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderUncheckedCreateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUncheckedCreateWithoutPatientInput>;
|
||||
export const CloudFolderUncheckedCreateWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -7,6 +7,7 @@ const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
name: z.string(),
|
||||
parentId: z.number().int().optional().nullable(),
|
||||
patientId: z.number().int().optional().nullable(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
children: z.lazy(() => CloudFolderUncheckedCreateNestedManyWithoutParentInputObjectSchema).optional(),
|
||||
|
||||
@@ -12,6 +12,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parentId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
patientId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
children: z.lazy(() => CloudFolderUncheckedUpdateManyWithoutParentNestedInputObjectSchema).optional(),
|
||||
|
||||
@@ -10,6 +10,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parentId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
patientId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
|
||||
@@ -2,12 +2,14 @@ import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableIntFieldUpdateOperationsInputObjectSchema as NullableIntFieldUpdateOperationsInputObjectSchema } from './NullableIntFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.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(),
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
patientId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableIntFieldUpdateOperationsInputObjectSchema as NullableIntFieldUpdateOperationsInputObjectSchema } from './NullableIntFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.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(),
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parentId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUncheckedUpdateManyWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderUncheckedUpdateManyWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUncheckedUpdateManyWithoutPatientInput>;
|
||||
export const CloudFolderUncheckedUpdateManyWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,27 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateWithoutPatientInputObjectSchema as CloudFolderCreateWithoutPatientInputObjectSchema } from './CloudFolderCreateWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedCreateWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateOrConnectWithoutPatientInputObjectSchema as CloudFolderCreateOrConnectWithoutPatientInputObjectSchema } from './CloudFolderCreateOrConnectWithoutPatientInput.schema';
|
||||
import { CloudFolderUpsertWithWhereUniqueWithoutPatientInputObjectSchema as CloudFolderUpsertWithWhereUniqueWithoutPatientInputObjectSchema } from './CloudFolderUpsertWithWhereUniqueWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateManyPatientInputEnvelopeObjectSchema as CloudFolderCreateManyPatientInputEnvelopeObjectSchema } from './CloudFolderCreateManyPatientInputEnvelope.schema';
|
||||
import { CloudFolderWhereUniqueInputObjectSchema as CloudFolderWhereUniqueInputObjectSchema } from './CloudFolderWhereUniqueInput.schema';
|
||||
import { CloudFolderUpdateWithWhereUniqueWithoutPatientInputObjectSchema as CloudFolderUpdateWithWhereUniqueWithoutPatientInputObjectSchema } from './CloudFolderUpdateWithWhereUniqueWithoutPatientInput.schema';
|
||||
import { CloudFolderUpdateManyWithWhereWithoutPatientInputObjectSchema as CloudFolderUpdateManyWithWhereWithoutPatientInputObjectSchema } from './CloudFolderUpdateManyWithWhereWithoutPatientInput.schema';
|
||||
import { CloudFolderScalarWhereInputObjectSchema as CloudFolderScalarWhereInputObjectSchema } from './CloudFolderScalarWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => CloudFolderCreateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderCreateWithoutPatientInputObjectSchema).array(), z.lazy(() => CloudFolderUncheckedCreateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUncheckedCreateWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => CloudFolderCreateOrConnectWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderCreateOrConnectWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
upsert: z.union([z.lazy(() => CloudFolderUpsertWithWhereUniqueWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUpsertWithWhereUniqueWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => CloudFolderCreateManyPatientInputEnvelopeObjectSchema).optional(),
|
||||
set: z.union([z.lazy(() => CloudFolderWhereUniqueInputObjectSchema), z.lazy(() => CloudFolderWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
disconnect: z.union([z.lazy(() => CloudFolderWhereUniqueInputObjectSchema), z.lazy(() => CloudFolderWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
delete: z.union([z.lazy(() => CloudFolderWhereUniqueInputObjectSchema), z.lazy(() => CloudFolderWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
connect: z.union([z.lazy(() => CloudFolderWhereUniqueInputObjectSchema), z.lazy(() => CloudFolderWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
update: z.union([z.lazy(() => CloudFolderUpdateWithWhereUniqueWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUpdateWithWhereUniqueWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
updateMany: z.union([z.lazy(() => CloudFolderUpdateManyWithWhereWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUpdateManyWithWhereWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
deleteMany: z.union([z.lazy(() => CloudFolderScalarWhereInputObjectSchema), z.lazy(() => CloudFolderScalarWhereInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUncheckedUpdateManyWithoutPatientNestedInputObjectSchema: z.ZodType<Prisma.CloudFolderUncheckedUpdateManyWithoutPatientNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUncheckedUpdateManyWithoutPatientNestedInput>;
|
||||
export const CloudFolderUncheckedUpdateManyWithoutPatientNestedInputObjectZodSchema = makeSchema();
|
||||
@@ -9,6 +9,7 @@ const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parentId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
patientId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional()
|
||||
}).strict();
|
||||
|
||||
@@ -11,6 +11,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parentId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
patientId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
files: z.lazy(() => CloudFileUncheckedUpdateManyWithoutFolderNestedInputObjectSchema).optional()
|
||||
|
||||
@@ -11,6 +11,7 @@ const makeSchema = () => z.object({
|
||||
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parentId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
patientId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
children: z.lazy(() => CloudFolderUncheckedUpdateManyWithoutParentNestedInputObjectSchema).optional()
|
||||
|
||||
@@ -2,6 +2,7 @@ import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableIntFieldUpdateOperationsInputObjectSchema as NullableIntFieldUpdateOperationsInputObjectSchema } from './NullableIntFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { CloudFolderUncheckedUpdateManyWithoutParentNestedInputObjectSchema as CloudFolderUncheckedUpdateManyWithoutParentNestedInputObjectSchema } from './CloudFolderUncheckedUpdateManyWithoutParentNestedInput.schema';
|
||||
import { CloudFileUncheckedUpdateManyWithoutFolderNestedInputObjectSchema as CloudFileUncheckedUpdateManyWithoutFolderNestedInputObjectSchema } from './CloudFileUncheckedUpdateManyWithoutFolderNestedInput.schema'
|
||||
@@ -10,6 +11,7 @@ const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
patientId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
children: z.lazy(() => CloudFolderUncheckedUpdateManyWithoutParentNestedInputObjectSchema).optional(),
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { NullableIntFieldUpdateOperationsInputObjectSchema as NullableIntFieldUpdateOperationsInputObjectSchema } from './NullableIntFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { CloudFolderUncheckedUpdateManyWithoutParentNestedInputObjectSchema as CloudFolderUncheckedUpdateManyWithoutParentNestedInputObjectSchema } from './CloudFolderUncheckedUpdateManyWithoutParentNestedInput.schema';
|
||||
import { CloudFileUncheckedUpdateManyWithoutFolderNestedInputObjectSchema as CloudFileUncheckedUpdateManyWithoutFolderNestedInputObjectSchema } from './CloudFileUncheckedUpdateManyWithoutFolderNestedInput.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(),
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parentId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
children: z.lazy(() => CloudFolderUncheckedUpdateManyWithoutParentNestedInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileUncheckedUpdateManyWithoutFolderNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUncheckedUpdateWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderUncheckedUpdateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUncheckedUpdateWithoutPatientInput>;
|
||||
export const CloudFolderUncheckedUpdateWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -11,6 +11,7 @@ const makeSchema = () => z.object({
|
||||
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parentId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
patientId: z.union([z.number().int(), z.lazy(() => NullableIntFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
children: z.lazy(() => CloudFolderUncheckedUpdateManyWithoutParentNestedInputObjectSchema).optional(),
|
||||
|
||||
@@ -5,6 +5,7 @@ import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOp
|
||||
import { CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema as CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema } from './CloudFolderUpdateOneWithoutChildrenNestedInput.schema';
|
||||
import { CloudFolderUpdateManyWithoutParentNestedInputObjectSchema as CloudFolderUpdateManyWithoutParentNestedInputObjectSchema } from './CloudFolderUpdateManyWithoutParentNestedInput.schema';
|
||||
import { UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema as UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutCloudFoldersNestedInput.schema';
|
||||
import { PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema as PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema } from './PatientUpdateOneWithoutCloudFoldersNestedInput.schema';
|
||||
import { CloudFileUpdateManyWithoutFolderNestedInputObjectSchema as CloudFileUpdateManyWithoutFolderNestedInputObjectSchema } from './CloudFileUpdateManyWithoutFolderNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -14,6 +15,7 @@ const makeSchema = () => z.object({
|
||||
parent: z.lazy(() => CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema).optional(),
|
||||
children: z.lazy(() => CloudFolderUpdateManyWithoutParentNestedInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema).optional(),
|
||||
patient: z.lazy(() => PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileUpdateManyWithoutFolderNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUpdateInputObjectSchema: z.ZodType<Prisma.CloudFolderUpdateInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUpdateInput>;
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderScalarWhereInputObjectSchema as CloudFolderScalarWhereInputObjectSchema } from './CloudFolderScalarWhereInput.schema';
|
||||
import { CloudFolderUpdateManyMutationInputObjectSchema as CloudFolderUpdateManyMutationInputObjectSchema } from './CloudFolderUpdateManyMutationInput.schema';
|
||||
import { CloudFolderUncheckedUpdateManyWithoutPatientInputObjectSchema as CloudFolderUncheckedUpdateManyWithoutPatientInputObjectSchema } from './CloudFolderUncheckedUpdateManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => CloudFolderScalarWhereInputObjectSchema),
|
||||
data: z.union([z.lazy(() => CloudFolderUpdateManyMutationInputObjectSchema), z.lazy(() => CloudFolderUncheckedUpdateManyWithoutPatientInputObjectSchema)])
|
||||
}).strict();
|
||||
export const CloudFolderUpdateManyWithWhereWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderUpdateManyWithWhereWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUpdateManyWithWhereWithoutPatientInput>;
|
||||
export const CloudFolderUpdateManyWithWhereWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,27 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderCreateWithoutPatientInputObjectSchema as CloudFolderCreateWithoutPatientInputObjectSchema } from './CloudFolderCreateWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedCreateWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateOrConnectWithoutPatientInputObjectSchema as CloudFolderCreateOrConnectWithoutPatientInputObjectSchema } from './CloudFolderCreateOrConnectWithoutPatientInput.schema';
|
||||
import { CloudFolderUpsertWithWhereUniqueWithoutPatientInputObjectSchema as CloudFolderUpsertWithWhereUniqueWithoutPatientInputObjectSchema } from './CloudFolderUpsertWithWhereUniqueWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateManyPatientInputEnvelopeObjectSchema as CloudFolderCreateManyPatientInputEnvelopeObjectSchema } from './CloudFolderCreateManyPatientInputEnvelope.schema';
|
||||
import { CloudFolderWhereUniqueInputObjectSchema as CloudFolderWhereUniqueInputObjectSchema } from './CloudFolderWhereUniqueInput.schema';
|
||||
import { CloudFolderUpdateWithWhereUniqueWithoutPatientInputObjectSchema as CloudFolderUpdateWithWhereUniqueWithoutPatientInputObjectSchema } from './CloudFolderUpdateWithWhereUniqueWithoutPatientInput.schema';
|
||||
import { CloudFolderUpdateManyWithWhereWithoutPatientInputObjectSchema as CloudFolderUpdateManyWithWhereWithoutPatientInputObjectSchema } from './CloudFolderUpdateManyWithWhereWithoutPatientInput.schema';
|
||||
import { CloudFolderScalarWhereInputObjectSchema as CloudFolderScalarWhereInputObjectSchema } from './CloudFolderScalarWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => CloudFolderCreateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderCreateWithoutPatientInputObjectSchema).array(), z.lazy(() => CloudFolderUncheckedCreateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUncheckedCreateWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
connectOrCreate: z.union([z.lazy(() => CloudFolderCreateOrConnectWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderCreateOrConnectWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
upsert: z.union([z.lazy(() => CloudFolderUpsertWithWhereUniqueWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUpsertWithWhereUniqueWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
createMany: z.lazy(() => CloudFolderCreateManyPatientInputEnvelopeObjectSchema).optional(),
|
||||
set: z.union([z.lazy(() => CloudFolderWhereUniqueInputObjectSchema), z.lazy(() => CloudFolderWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
disconnect: z.union([z.lazy(() => CloudFolderWhereUniqueInputObjectSchema), z.lazy(() => CloudFolderWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
delete: z.union([z.lazy(() => CloudFolderWhereUniqueInputObjectSchema), z.lazy(() => CloudFolderWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
connect: z.union([z.lazy(() => CloudFolderWhereUniqueInputObjectSchema), z.lazy(() => CloudFolderWhereUniqueInputObjectSchema).array()]).optional(),
|
||||
update: z.union([z.lazy(() => CloudFolderUpdateWithWhereUniqueWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUpdateWithWhereUniqueWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
updateMany: z.union([z.lazy(() => CloudFolderUpdateManyWithWhereWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUpdateManyWithWhereWithoutPatientInputObjectSchema).array()]).optional(),
|
||||
deleteMany: z.union([z.lazy(() => CloudFolderScalarWhereInputObjectSchema), z.lazy(() => CloudFolderScalarWhereInputObjectSchema).array()]).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUpdateManyWithoutPatientNestedInputObjectSchema: z.ZodType<Prisma.CloudFolderUpdateManyWithoutPatientNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUpdateManyWithoutPatientNestedInput>;
|
||||
export const CloudFolderUpdateManyWithoutPatientNestedInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderWhereUniqueInputObjectSchema as CloudFolderWhereUniqueInputObjectSchema } from './CloudFolderWhereUniqueInput.schema';
|
||||
import { CloudFolderUpdateWithoutPatientInputObjectSchema as CloudFolderUpdateWithoutPatientInputObjectSchema } from './CloudFolderUpdateWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedUpdateWithoutPatientInputObjectSchema as CloudFolderUncheckedUpdateWithoutPatientInputObjectSchema } from './CloudFolderUncheckedUpdateWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => CloudFolderWhereUniqueInputObjectSchema),
|
||||
data: z.union([z.lazy(() => CloudFolderUpdateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUncheckedUpdateWithoutPatientInputObjectSchema)])
|
||||
}).strict();
|
||||
export const CloudFolderUpdateWithWhereUniqueWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderUpdateWithWhereUniqueWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUpdateWithWhereUniqueWithoutPatientInput>;
|
||||
export const CloudFolderUpdateWithWhereUniqueWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -4,6 +4,7 @@ import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperat
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema as CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema } from './CloudFolderUpdateOneWithoutChildrenNestedInput.schema';
|
||||
import { UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema as UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutCloudFoldersNestedInput.schema';
|
||||
import { PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema as PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema } from './PatientUpdateOneWithoutCloudFoldersNestedInput.schema';
|
||||
import { CloudFileUpdateManyWithoutFolderNestedInputObjectSchema as CloudFileUpdateManyWithoutFolderNestedInputObjectSchema } from './CloudFileUpdateManyWithoutFolderNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -12,6 +13,7 @@ const makeSchema = () => z.object({
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parent: z.lazy(() => CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema).optional(),
|
||||
patient: z.lazy(() => PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileUpdateManyWithoutFolderNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUpdateWithoutChildrenInputObjectSchema: z.ZodType<Prisma.CloudFolderUpdateWithoutChildrenInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUpdateWithoutChildrenInput>;
|
||||
|
||||
@@ -4,7 +4,8 @@ import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperat
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema as CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema } from './CloudFolderUpdateOneWithoutChildrenNestedInput.schema';
|
||||
import { CloudFolderUpdateManyWithoutParentNestedInputObjectSchema as CloudFolderUpdateManyWithoutParentNestedInputObjectSchema } from './CloudFolderUpdateManyWithoutParentNestedInput.schema';
|
||||
import { UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema as UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutCloudFoldersNestedInput.schema'
|
||||
import { UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema as UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutCloudFoldersNestedInput.schema';
|
||||
import { PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema as PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema } from './PatientUpdateOneWithoutCloudFoldersNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
@@ -12,7 +13,8 @@ const makeSchema = () => z.object({
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parent: z.lazy(() => CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema).optional(),
|
||||
children: z.lazy(() => CloudFolderUpdateManyWithoutParentNestedInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema).optional()
|
||||
user: z.lazy(() => UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema).optional(),
|
||||
patient: z.lazy(() => PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUpdateWithoutFilesInputObjectSchema: z.ZodType<Prisma.CloudFolderUpdateWithoutFilesInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUpdateWithoutFilesInput>;
|
||||
export const CloudFolderUpdateWithoutFilesInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -4,6 +4,7 @@ import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperat
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { CloudFolderUpdateManyWithoutParentNestedInputObjectSchema as CloudFolderUpdateManyWithoutParentNestedInputObjectSchema } from './CloudFolderUpdateManyWithoutParentNestedInput.schema';
|
||||
import { UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema as UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutCloudFoldersNestedInput.schema';
|
||||
import { PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema as PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema } from './PatientUpdateOneWithoutCloudFoldersNestedInput.schema';
|
||||
import { CloudFileUpdateManyWithoutFolderNestedInputObjectSchema as CloudFileUpdateManyWithoutFolderNestedInputObjectSchema } from './CloudFileUpdateManyWithoutFolderNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -12,6 +13,7 @@ const makeSchema = () => z.object({
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
children: z.lazy(() => CloudFolderUpdateManyWithoutParentNestedInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema).optional(),
|
||||
patient: z.lazy(() => PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileUpdateManyWithoutFolderNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUpdateWithoutParentInputObjectSchema: z.ZodType<Prisma.CloudFolderUpdateWithoutParentInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUpdateWithoutParentInput>;
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema as CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema } from './CloudFolderUpdateOneWithoutChildrenNestedInput.schema';
|
||||
import { CloudFolderUpdateManyWithoutParentNestedInputObjectSchema as CloudFolderUpdateManyWithoutParentNestedInputObjectSchema } from './CloudFolderUpdateManyWithoutParentNestedInput.schema';
|
||||
import { UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema as UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutCloudFoldersNestedInput.schema';
|
||||
import { CloudFileUpdateManyWithoutFolderNestedInputObjectSchema as CloudFileUpdateManyWithoutFolderNestedInputObjectSchema } from './CloudFileUpdateManyWithoutFolderNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
name: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parent: z.lazy(() => CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema).optional(),
|
||||
children: z.lazy(() => CloudFolderUpdateManyWithoutParentNestedInputObjectSchema).optional(),
|
||||
user: z.lazy(() => UserUpdateOneRequiredWithoutCloudFoldersNestedInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileUpdateManyWithoutFolderNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUpdateWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderUpdateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUpdateWithoutPatientInput>;
|
||||
export const CloudFolderUpdateWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -4,6 +4,7 @@ import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperat
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema as CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema } from './CloudFolderUpdateOneWithoutChildrenNestedInput.schema';
|
||||
import { CloudFolderUpdateManyWithoutParentNestedInputObjectSchema as CloudFolderUpdateManyWithoutParentNestedInputObjectSchema } from './CloudFolderUpdateManyWithoutParentNestedInput.schema';
|
||||
import { PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema as PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema } from './PatientUpdateOneWithoutCloudFoldersNestedInput.schema';
|
||||
import { CloudFileUpdateManyWithoutFolderNestedInputObjectSchema as CloudFileUpdateManyWithoutFolderNestedInputObjectSchema } from './CloudFileUpdateManyWithoutFolderNestedInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -12,6 +13,7 @@ const makeSchema = () => z.object({
|
||||
updatedAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
|
||||
parent: z.lazy(() => CloudFolderUpdateOneWithoutChildrenNestedInputObjectSchema).optional(),
|
||||
children: z.lazy(() => CloudFolderUpdateManyWithoutParentNestedInputObjectSchema).optional(),
|
||||
patient: z.lazy(() => PatientUpdateOneWithoutCloudFoldersNestedInputObjectSchema).optional(),
|
||||
files: z.lazy(() => CloudFileUpdateManyWithoutFolderNestedInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderUpdateWithoutUserInputObjectSchema: z.ZodType<Prisma.CloudFolderUpdateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUpdateWithoutUserInput>;
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderWhereUniqueInputObjectSchema as CloudFolderWhereUniqueInputObjectSchema } from './CloudFolderWhereUniqueInput.schema';
|
||||
import { CloudFolderUpdateWithoutPatientInputObjectSchema as CloudFolderUpdateWithoutPatientInputObjectSchema } from './CloudFolderUpdateWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedUpdateWithoutPatientInputObjectSchema as CloudFolderUncheckedUpdateWithoutPatientInputObjectSchema } from './CloudFolderUncheckedUpdateWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateWithoutPatientInputObjectSchema as CloudFolderCreateWithoutPatientInputObjectSchema } from './CloudFolderCreateWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedCreateWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => CloudFolderWhereUniqueInputObjectSchema),
|
||||
update: z.union([z.lazy(() => CloudFolderUpdateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUncheckedUpdateWithoutPatientInputObjectSchema)]),
|
||||
create: z.union([z.lazy(() => CloudFolderCreateWithoutPatientInputObjectSchema), z.lazy(() => CloudFolderUncheckedCreateWithoutPatientInputObjectSchema)])
|
||||
}).strict();
|
||||
export const CloudFolderUpsertWithWhereUniqueWithoutPatientInputObjectSchema: z.ZodType<Prisma.CloudFolderUpsertWithWhereUniqueWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.CloudFolderUpsertWithWhereUniqueWithoutPatientInput>;
|
||||
export const CloudFolderUpsertWithWhereUniqueWithoutPatientInputObjectZodSchema = makeSchema();
|
||||
@@ -8,6 +8,8 @@ import { CloudFolderNullableScalarRelationFilterObjectSchema as CloudFolderNulla
|
||||
import { CloudFolderListRelationFilterObjectSchema as CloudFolderListRelationFilterObjectSchema } from './CloudFolderListRelationFilter.schema';
|
||||
import { UserScalarRelationFilterObjectSchema as UserScalarRelationFilterObjectSchema } from './UserScalarRelationFilter.schema';
|
||||
import { UserWhereInputObjectSchema as UserWhereInputObjectSchema } from './UserWhereInput.schema';
|
||||
import { PatientNullableScalarRelationFilterObjectSchema as PatientNullableScalarRelationFilterObjectSchema } from './PatientNullableScalarRelationFilter.schema';
|
||||
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema';
|
||||
import { CloudFileListRelationFilterObjectSchema as CloudFileListRelationFilterObjectSchema } from './CloudFileListRelationFilter.schema'
|
||||
|
||||
const cloudfolderwhereinputSchema = z.object({
|
||||
@@ -18,11 +20,13 @@ const cloudfolderwhereinputSchema = z.object({
|
||||
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
|
||||
name: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
|
||||
parentId: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
|
||||
patientId: z.union([z.lazy(() => IntNullableFilterObjectSchema), z.number().int()]).optional().nullable(),
|
||||
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
|
||||
updatedAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
|
||||
parent: z.union([z.lazy(() => CloudFolderNullableScalarRelationFilterObjectSchema), z.lazy(() => CloudFolderWhereInputObjectSchema)]).optional(),
|
||||
children: z.lazy(() => CloudFolderListRelationFilterObjectSchema).optional(),
|
||||
user: z.union([z.lazy(() => UserScalarRelationFilterObjectSchema), z.lazy(() => UserWhereInputObjectSchema)]).optional(),
|
||||
patient: z.union([z.lazy(() => PatientNullableScalarRelationFilterObjectSchema), z.lazy(() => PatientWhereInputObjectSchema)]).optional(),
|
||||
files: z.lazy(() => CloudFileListRelationFilterObjectSchema).optional()
|
||||
}).strict();
|
||||
export const CloudFolderWhereInputObjectSchema: z.ZodType<Prisma.CloudFolderWhereInput> = cloudfolderwhereinputSchema as unknown as z.ZodType<Prisma.CloudFolderWhereInput>;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { CloudFolderWhereInputObjectSchema as CloudFolderWhereInputObjectSchema } from './CloudFolderWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => CloudFolderWhereInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCountOutputTypeCountCloudFoldersArgsObjectSchema = makeSchema();
|
||||
export const PatientCountOutputTypeCountCloudFoldersArgsObjectZodSchema = makeSchema();
|
||||
@@ -6,7 +6,8 @@ import { PatientCountOutputTypeCountClaimsArgsObjectSchema as PatientCountOutput
|
||||
import { PatientCountOutputTypeCountGroupsArgsObjectSchema as PatientCountOutputTypeCountGroupsArgsObjectSchema } from './PatientCountOutputTypeCountGroupsArgs.schema';
|
||||
import { PatientCountOutputTypeCountPaymentArgsObjectSchema as PatientCountOutputTypeCountPaymentArgsObjectSchema } from './PatientCountOutputTypeCountPaymentArgs.schema';
|
||||
import { PatientCountOutputTypeCountCommunicationsArgsObjectSchema as PatientCountOutputTypeCountCommunicationsArgsObjectSchema } from './PatientCountOutputTypeCountCommunicationsArgs.schema';
|
||||
import { PatientCountOutputTypeCountDocumentsArgsObjectSchema as PatientCountOutputTypeCountDocumentsArgsObjectSchema } from './PatientCountOutputTypeCountDocumentsArgs.schema'
|
||||
import { PatientCountOutputTypeCountDocumentsArgsObjectSchema as PatientCountOutputTypeCountDocumentsArgsObjectSchema } from './PatientCountOutputTypeCountDocumentsArgs.schema';
|
||||
import { PatientCountOutputTypeCountCloudFoldersArgsObjectSchema as PatientCountOutputTypeCountCloudFoldersArgsObjectSchema } from './PatientCountOutputTypeCountCloudFoldersArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
appointments: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountAppointmentsArgsObjectSchema)]).optional(),
|
||||
@@ -15,7 +16,8 @@ const makeSchema = () => z.object({
|
||||
groups: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountGroupsArgsObjectSchema)]).optional(),
|
||||
payment: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountPaymentArgsObjectSchema)]).optional(),
|
||||
communications: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountCommunicationsArgsObjectSchema)]).optional(),
|
||||
documents: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountDocumentsArgsObjectSchema)]).optional()
|
||||
documents: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountDocumentsArgsObjectSchema)]).optional(),
|
||||
cloudFolders: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeCountCloudFoldersArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientCountOutputTypeSelectObjectSchema: z.ZodType<Prisma.PatientCountOutputTypeSelect> = makeSchema() as unknown as z.ZodType<Prisma.PatientCountOutputTypeSelect>;
|
||||
export const PatientCountOutputTypeSelectObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -9,7 +9,8 @@ import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCrea
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -38,7 +39,8 @@ const makeSchema = () => z.object({
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateInputObjectSchema: z.ZodType<Prisma.PatientCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateInput>;
|
||||
export const PatientCreateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientCreateWithoutCloudFoldersInputObjectSchema as PatientCreateWithoutCloudFoldersInputObjectSchema } from './PatientCreateWithoutCloudFoldersInput.schema';
|
||||
import { PatientUncheckedCreateWithoutCloudFoldersInputObjectSchema as PatientUncheckedCreateWithoutCloudFoldersInputObjectSchema } from './PatientUncheckedCreateWithoutCloudFoldersInput.schema';
|
||||
import { PatientCreateOrConnectWithoutCloudFoldersInputObjectSchema as PatientCreateOrConnectWithoutCloudFoldersInputObjectSchema } from './PatientCreateOrConnectWithoutCloudFoldersInput.schema';
|
||||
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
create: z.union([z.lazy(() => PatientCreateWithoutCloudFoldersInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutCloudFoldersInputObjectSchema)]).optional(),
|
||||
connectOrCreate: z.lazy(() => PatientCreateOrConnectWithoutCloudFoldersInputObjectSchema).optional(),
|
||||
connect: z.lazy(() => PatientWhereUniqueInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateNestedOneWithoutCloudFoldersInputObjectSchema: z.ZodType<Prisma.PatientCreateNestedOneWithoutCloudFoldersInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateNestedOneWithoutCloudFoldersInput>;
|
||||
export const PatientCreateNestedOneWithoutCloudFoldersInputObjectZodSchema = makeSchema();
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema';
|
||||
import { PatientCreateWithoutCloudFoldersInputObjectSchema as PatientCreateWithoutCloudFoldersInputObjectSchema } from './PatientCreateWithoutCloudFoldersInput.schema';
|
||||
import { PatientUncheckedCreateWithoutCloudFoldersInputObjectSchema as PatientUncheckedCreateWithoutCloudFoldersInputObjectSchema } from './PatientUncheckedCreateWithoutCloudFoldersInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
where: z.lazy(() => PatientWhereUniqueInputObjectSchema),
|
||||
create: z.union([z.lazy(() => PatientCreateWithoutCloudFoldersInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutCloudFoldersInputObjectSchema)])
|
||||
}).strict();
|
||||
export const PatientCreateOrConnectWithoutCloudFoldersInputObjectSchema: z.ZodType<Prisma.PatientCreateOrConnectWithoutCloudFoldersInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateOrConnectWithoutCloudFoldersInput>;
|
||||
export const PatientCreateOrConnectWithoutCloudFoldersInputObjectZodSchema = makeSchema();
|
||||
@@ -8,7 +8,8 @@ import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCrea
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutAppointmentsInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutAppointmentsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutAppointmentsInput>;
|
||||
export const PatientCreateWithoutAppointmentsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -8,7 +8,8 @@ import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCrea
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutClaimsInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutClaimsInput>;
|
||||
export const PatientCreateWithoutClaimsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientStatusSchema } from '../enums/PatientStatus.schema';
|
||||
import { UserCreateNestedOneWithoutPatientsInputObjectSchema as UserCreateNestedOneWithoutPatientsInputObjectSchema } from './UserCreateNestedOneWithoutPatientsInput.schema';
|
||||
import { AppointmentCreateNestedManyWithoutPatientInputObjectSchema as AppointmentCreateNestedManyWithoutPatientInputObjectSchema } from './AppointmentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { AppointmentProcedureCreateNestedManyWithoutPatientInputObjectSchema as AppointmentProcedureCreateNestedManyWithoutPatientInputObjectSchema } from './AppointmentProcedureCreateNestedManyWithoutPatientInput.schema';
|
||||
import { ClaimCreateNestedManyWithoutPatientInputObjectSchema as ClaimCreateNestedManyWithoutPatientInputObjectSchema } from './ClaimCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCreateNestedManyWithoutPatientInputObjectSchema } from './PdfGroupCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
lastName: z.string(),
|
||||
dateOfBirth: z.coerce.date().optional().nullable(),
|
||||
gender: z.string(),
|
||||
phone: z.string(),
|
||||
email: z.string().optional().nullable(),
|
||||
address: z.string().optional().nullable(),
|
||||
city: z.string().optional().nullable(),
|
||||
zipCode: z.string().optional().nullable(),
|
||||
insuranceProvider: z.string().optional().nullable(),
|
||||
insuranceId: z.string().optional().nullable(),
|
||||
groupNumber: z.string().optional().nullable(),
|
||||
policyHolder: z.string().optional().nullable(),
|
||||
allergies: z.string().optional().nullable(),
|
||||
medicalConditions: z.string().optional().nullable(),
|
||||
preferredLanguage: z.string().optional().nullable(),
|
||||
status: PatientStatusSchema.optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutPatientsInputObjectSchema),
|
||||
appointments: z.lazy(() => AppointmentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
procedures: z.lazy(() => AppointmentProcedureCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
claims: z.lazy(() => ClaimCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
groups: z.lazy(() => PdfGroupCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutCloudFoldersInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutCloudFoldersInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutCloudFoldersInput>;
|
||||
export const PatientCreateWithoutCloudFoldersInputObjectZodSchema = makeSchema();
|
||||
@@ -8,7 +8,8 @@ import { ClaimCreateNestedManyWithoutPatientInputObjectSchema as ClaimCreateNest
|
||||
import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCreateNestedManyWithoutPatientInputObjectSchema } from './PdfGroupCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
groups: z.lazy(() => PdfGroupCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutCommunicationsInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutCommunicationsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutCommunicationsInput>;
|
||||
export const PatientCreateWithoutCommunicationsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -8,7 +8,8 @@ import { ClaimCreateNestedManyWithoutPatientInputObjectSchema as ClaimCreateNest
|
||||
import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCreateNestedManyWithoutPatientInputObjectSchema } from './PdfGroupCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema'
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
groups: z.lazy(() => PdfGroupCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutConversationInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutConversationInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutConversationInput>;
|
||||
export const PatientCreateWithoutConversationInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -8,7 +8,8 @@ import { ClaimCreateNestedManyWithoutPatientInputObjectSchema as ClaimCreateNest
|
||||
import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCreateNestedManyWithoutPatientInputObjectSchema } from './PdfGroupCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
groups: z.lazy(() => PdfGroupCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutDocumentsInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutDocumentsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutDocumentsInput>;
|
||||
export const PatientCreateWithoutDocumentsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -8,7 +8,8 @@ import { ClaimCreateNestedManyWithoutPatientInputObjectSchema as ClaimCreateNest
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutGroupsInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutGroupsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutGroupsInput>;
|
||||
export const PatientCreateWithoutGroupsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -8,7 +8,8 @@ import { ClaimCreateNestedManyWithoutPatientInputObjectSchema as ClaimCreateNest
|
||||
import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCreateNestedManyWithoutPatientInputObjectSchema } from './PdfGroupCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
groups: z.lazy(() => PdfGroupCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutPaymentInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutPaymentInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutPaymentInput>;
|
||||
export const PatientCreateWithoutPaymentInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -8,7 +8,8 @@ import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCrea
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutProceduresInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutProceduresInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutProceduresInput>;
|
||||
export const PatientCreateWithoutProceduresInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -8,7 +8,8 @@ import { PdfGroupCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupCrea
|
||||
import { PaymentCreateNestedManyWithoutPatientInputObjectSchema as PaymentCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationCreateNestedManyWithoutPatientInputObjectSchema as CommunicationCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
firstName: z.string(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
payment: z.lazy(() => PaymentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientCreateWithoutUserInputObjectSchema: z.ZodType<Prisma.PatientCreateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientCreateWithoutUserInput>;
|
||||
export const PatientCreateWithoutUserInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -9,6 +9,7 @@ import { PaymentFindManySchema as PaymentFindManySchema } from '../findManyPayme
|
||||
import { CommunicationFindManySchema as CommunicationFindManySchema } from '../findManyCommunication.schema';
|
||||
import { PatientDocumentFindManySchema as PatientDocumentFindManySchema } from '../findManyPatientDocument.schema';
|
||||
import { PatientConversationArgsObjectSchema as PatientConversationArgsObjectSchema } from './PatientConversationArgs.schema';
|
||||
import { CloudFolderFindManySchema as CloudFolderFindManySchema } from '../findManyCloudFolder.schema';
|
||||
import { PatientCountOutputTypeArgsObjectSchema as PatientCountOutputTypeArgsObjectSchema } from './PatientCountOutputTypeArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -21,6 +22,7 @@ const makeSchema = () => z.object({
|
||||
communications: z.union([z.boolean(), z.lazy(() => CommunicationFindManySchema)]).optional(),
|
||||
documents: z.union([z.boolean(), z.lazy(() => PatientDocumentFindManySchema)]).optional(),
|
||||
conversation: z.union([z.boolean(), z.lazy(() => PatientConversationArgsObjectSchema)]).optional(),
|
||||
cloudFolders: z.union([z.boolean(), z.lazy(() => CloudFolderFindManySchema)]).optional(),
|
||||
_count: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientIncludeObjectSchema: z.ZodType<Prisma.PatientInclude> = makeSchema() as unknown as z.ZodType<Prisma.PatientInclude>;
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
is: z.lazy(() => PatientWhereInputObjectSchema).optional().nullable(),
|
||||
isNot: z.lazy(() => PatientWhereInputObjectSchema).optional().nullable()
|
||||
}).strict();
|
||||
export const PatientNullableScalarRelationFilterObjectSchema: z.ZodType<Prisma.PatientNullableScalarRelationFilter> = makeSchema() as unknown as z.ZodType<Prisma.PatientNullableScalarRelationFilter>;
|
||||
export const PatientNullableScalarRelationFilterObjectZodSchema = makeSchema();
|
||||
@@ -10,7 +10,8 @@ import { PdfGroupOrderByRelationAggregateInputObjectSchema as PdfGroupOrderByRel
|
||||
import { PaymentOrderByRelationAggregateInputObjectSchema as PaymentOrderByRelationAggregateInputObjectSchema } from './PaymentOrderByRelationAggregateInput.schema';
|
||||
import { CommunicationOrderByRelationAggregateInputObjectSchema as CommunicationOrderByRelationAggregateInputObjectSchema } from './CommunicationOrderByRelationAggregateInput.schema';
|
||||
import { PatientDocumentOrderByRelationAggregateInputObjectSchema as PatientDocumentOrderByRelationAggregateInputObjectSchema } from './PatientDocumentOrderByRelationAggregateInput.schema';
|
||||
import { PatientConversationOrderByWithRelationInputObjectSchema as PatientConversationOrderByWithRelationInputObjectSchema } from './PatientConversationOrderByWithRelationInput.schema'
|
||||
import { PatientConversationOrderByWithRelationInputObjectSchema as PatientConversationOrderByWithRelationInputObjectSchema } from './PatientConversationOrderByWithRelationInput.schema';
|
||||
import { CloudFolderOrderByRelationAggregateInputObjectSchema as CloudFolderOrderByRelationAggregateInputObjectSchema } from './CloudFolderOrderByRelationAggregateInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: SortOrderSchema.optional(),
|
||||
@@ -42,7 +43,8 @@ const makeSchema = () => z.object({
|
||||
payment: z.lazy(() => PaymentOrderByRelationAggregateInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationOrderByRelationAggregateInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentOrderByRelationAggregateInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationOrderByWithRelationInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationOrderByWithRelationInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderOrderByRelationAggregateInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientOrderByWithRelationInputObjectSchema: z.ZodType<Prisma.PatientOrderByWithRelationInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientOrderByWithRelationInput>;
|
||||
export const PatientOrderByWithRelationInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -9,6 +9,7 @@ import { PaymentFindManySchema as PaymentFindManySchema } from '../findManyPayme
|
||||
import { CommunicationFindManySchema as CommunicationFindManySchema } from '../findManyCommunication.schema';
|
||||
import { PatientDocumentFindManySchema as PatientDocumentFindManySchema } from '../findManyPatientDocument.schema';
|
||||
import { PatientConversationArgsObjectSchema as PatientConversationArgsObjectSchema } from './PatientConversationArgs.schema';
|
||||
import { CloudFolderFindManySchema as CloudFolderFindManySchema } from '../findManyCloudFolder.schema';
|
||||
import { PatientCountOutputTypeArgsObjectSchema as PatientCountOutputTypeArgsObjectSchema } from './PatientCountOutputTypeArgs.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
@@ -42,6 +43,7 @@ const makeSchema = () => z.object({
|
||||
communications: z.union([z.boolean(), z.lazy(() => CommunicationFindManySchema)]).optional(),
|
||||
documents: z.union([z.boolean(), z.lazy(() => PatientDocumentFindManySchema)]).optional(),
|
||||
conversation: z.union([z.boolean(), z.lazy(() => PatientConversationArgsObjectSchema)]).optional(),
|
||||
cloudFolders: z.union([z.boolean(), z.lazy(() => CloudFolderFindManySchema)]).optional(),
|
||||
_count: z.union([z.boolean(), z.lazy(() => PatientCountOutputTypeArgsObjectSchema)]).optional()
|
||||
}).strict();
|
||||
export const PatientSelectObjectSchema: z.ZodType<Prisma.PatientSelect> = makeSchema() as unknown as z.ZodType<Prisma.PatientSelect>;
|
||||
|
||||
@@ -8,7 +8,8 @@ import { PdfGroupUncheckedCreateNestedManyWithoutPatientInputObjectSchema as Pdf
|
||||
import { PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema as CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
@@ -38,7 +39,8 @@ const makeSchema = () => z.object({
|
||||
payment: z.lazy(() => PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientUncheckedCreateInputObjectSchema: z.ZodType<Prisma.PatientUncheckedCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUncheckedCreateInput>;
|
||||
export const PatientUncheckedCreateInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -7,7 +7,8 @@ import { PdfGroupUncheckedCreateNestedManyWithoutPatientInputObjectSchema as Pdf
|
||||
import { PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema as CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
payment: z.lazy(() => PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientUncheckedCreateWithoutAppointmentsInputObjectSchema: z.ZodType<Prisma.PatientUncheckedCreateWithoutAppointmentsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUncheckedCreateWithoutAppointmentsInput>;
|
||||
export const PatientUncheckedCreateWithoutAppointmentsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -7,7 +7,8 @@ import { PdfGroupUncheckedCreateNestedManyWithoutPatientInputObjectSchema as Pdf
|
||||
import { PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema as CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema'
|
||||
import { PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema';
|
||||
import { CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema as CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './CloudFolderUncheckedCreateNestedManyWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
|
||||
payment: z.lazy(() => PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
conversation: z.lazy(() => PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema).optional(),
|
||||
cloudFolders: z.lazy(() => CloudFolderUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientUncheckedCreateWithoutClaimsInputObjectSchema: z.ZodType<Prisma.PatientUncheckedCreateWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUncheckedCreateWithoutClaimsInput>;
|
||||
export const PatientUncheckedCreateWithoutClaimsInputObjectZodSchema = makeSchema();
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
import { PatientStatusSchema } from '../enums/PatientStatus.schema';
|
||||
import { AppointmentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as AppointmentUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './AppointmentUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInputObjectSchema as AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { ClaimUncheckedCreateNestedManyWithoutPatientInputObjectSchema as ClaimUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './ClaimUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PdfGroupUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PdfGroupUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PdfGroupUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PaymentUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema as CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './CommunicationUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema as PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema } from './PatientDocumentUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
import { PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema as PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema } from './PatientConversationUncheckedCreateNestedOneWithoutPatientInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
firstName: z.string(),
|
||||
lastName: z.string(),
|
||||
dateOfBirth: z.coerce.date().optional().nullable(),
|
||||
gender: z.string(),
|
||||
phone: z.string(),
|
||||
email: z.string().optional().nullable(),
|
||||
address: z.string().optional().nullable(),
|
||||
city: z.string().optional().nullable(),
|
||||
zipCode: z.string().optional().nullable(),
|
||||
insuranceProvider: z.string().optional().nullable(),
|
||||
insuranceId: z.string().optional().nullable(),
|
||||
groupNumber: z.string().optional().nullable(),
|
||||
policyHolder: z.string().optional().nullable(),
|
||||
allergies: z.string().optional().nullable(),
|
||||
medicalConditions: z.string().optional().nullable(),
|
||||
preferredLanguage: z.string().optional().nullable(),
|
||||
status: PatientStatusSchema.optional(),
|
||||
userId: z.number().int(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
updatedAt: z.coerce.date().optional(),
|
||||
appointments: z.lazy(() => AppointmentUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
procedures: z.lazy(() => AppointmentProcedureUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
claims: z.lazy(() => ClaimUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
groups: z.lazy(() => PdfGroupUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
payment: z.lazy(() => PaymentUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
communications: z.lazy(() => CommunicationUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
documents: z.lazy(() => PatientDocumentUncheckedCreateNestedManyWithoutPatientInputObjectSchema).optional(),
|
||||
conversation: z.lazy(() => PatientConversationUncheckedCreateNestedOneWithoutPatientInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const PatientUncheckedCreateWithoutCloudFoldersInputObjectSchema: z.ZodType<Prisma.PatientUncheckedCreateWithoutCloudFoldersInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUncheckedCreateWithoutCloudFoldersInput>;
|
||||
export const PatientUncheckedCreateWithoutCloudFoldersInputObjectZodSchema = makeSchema();
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user