From f1109ea12e050c60f696df8d47dd5eeb1da2c906 Mon Sep 17 00:00:00 2001
From: ledouxm
Date: Wed, 26 Jun 2024 07:14:10 +0200
Subject: [PATCH 01/29] fix: replace strike with underline
---
packages/frontend/package.json | 1 +
.../src/features/text-editor/TextEditor.tsx | 44 +------------------
.../text-editor/TextEditorContext.tsx | 2 +
.../text-editor/TextEditorToolbar.tsx | 4 +-
pnpm-lock.yaml | 11 +++++
5 files changed, 18 insertions(+), 44 deletions(-)
diff --git a/packages/frontend/package.json b/packages/frontend/package.json
index f01e60de..eb811af5 100644
--- a/packages/frontend/package.json
+++ b/packages/frontend/package.json
@@ -40,6 +40,7 @@
"@tiptap/extension-placeholder": "^2.3.0",
"@tiptap/extension-text-align": "^2.3.0",
"@tiptap/extension-text-style": "^2.3.0",
+ "@tiptap/extension-underline": "^2.4.0",
"@tiptap/react": "^2.3.0",
"@tiptap/starter-kit": "^2.3.0",
"@ungap/with-resolvers": "^0.1.0",
diff --git a/packages/frontend/src/features/text-editor/TextEditor.tsx b/packages/frontend/src/features/text-editor/TextEditor.tsx
index 20b3f1cc..4e43b66d 100644
--- a/packages/frontend/src/features/text-editor/TextEditor.tsx
+++ b/packages/frontend/src/features/text-editor/TextEditor.tsx
@@ -1,48 +1,8 @@
-import { Placeholder } from "@tiptap/extension-placeholder";
-import { Color } from "@tiptap/extension-color";
-import { TextStyle } from "@tiptap/extension-text-style";
-import { Editor, EditorContent, useEditor } from "@tiptap/react";
-import StarterKit from "@tiptap/starter-kit";
-import { useContext, useEffect } from "react";
import { css, cx } from "#styled-system/css";
-import { TextEditorToolbar } from "./TextEditorToolbar";
+import { EditorContent } from "@tiptap/react";
+import { useContext, useEffect } from "react";
import { TextEditorContext } from "./TextEditorContext";
-interface Props {
- defaultValue?: string;
- onChange?: (value: string) => void;
- autoFocus?: boolean;
- readOnly?: boolean;
- placeholder?: string;
-}
-
-export const useTextEditor = (props: Props) => {
- const { defaultValue, onChange, autoFocus, readOnly, placeholder } = props;
-
- return useEditor({
- autofocus: autoFocus ?? false,
- editable: !readOnly,
- extensions: [
- StarterKit.configure({
- codeBlock: false,
- code: {
- HTMLAttributes: {
- class: "inline",
- },
- },
- }),
- Color.configure({
- types: ["textStyle"],
- }),
- Placeholder.configure({
- placeholder,
- }),
- TextStyle.configure(),
- ],
- content: defaultValue,
- });
-};
-
export const TextEditor = (props: { hasSubmitted?: boolean }) => {
const { hasSubmitted } = props;
diff --git a/packages/frontend/src/features/text-editor/TextEditorContext.tsx b/packages/frontend/src/features/text-editor/TextEditorContext.tsx
index ebcc625f..4086c25b 100644
--- a/packages/frontend/src/features/text-editor/TextEditorContext.tsx
+++ b/packages/frontend/src/features/text-editor/TextEditorContext.tsx
@@ -4,6 +4,7 @@ import TextStyle from "@tiptap/extension-text-style";
import { Editor, useEditor } from "@tiptap/react";
import StarterKit from "@tiptap/starter-kit";
import { PropsWithChildren, createContext, useState } from "react";
+import { Underline } from "@tiptap/extension-underline";
export const TextEditorContext = createContext<{ editor: Editor | null }>({
editor: null,
@@ -22,6 +23,7 @@ export const TextEditorContextProvider = ({ children }: PropsWithChildren) => {
},
},
}),
+ Underline.configure({}),
Color.configure({
types: ["textStyle"],
}),
diff --git a/packages/frontend/src/features/text-editor/TextEditorToolbar.tsx b/packages/frontend/src/features/text-editor/TextEditorToolbar.tsx
index 24eb58ca..b4466e24 100644
--- a/packages/frontend/src/features/text-editor/TextEditorToolbar.tsx
+++ b/packages/frontend/src/features/text-editor/TextEditorToolbar.tsx
@@ -55,7 +55,7 @@ export const TextEditorToolbar = () => {
>
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b3bc8305..8e21fec6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -273,6 +273,9 @@ importers:
'@tiptap/extension-text-style':
specifier: ^2.3.0
version: 2.3.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-underline':
+ specifier: ^2.4.0
+ version: 2.4.0(@tiptap/core@2.4.0)
'@tiptap/react':
specifier: ^2.3.0
version: 2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)(react-dom@18.2.0)(react@18.2.0)
@@ -6506,6 +6509,14 @@ packages:
'@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
dev: false
+ /@tiptap/extension-underline@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-guWojb7JxUwLz4OKzwNExJwOkhZjgw/ttkXCMBT0PVe55k998MMYe1nvN0m2SeTW9IxurEPtScH4kYJ0XuSm8Q==}
+ peerDependencies:
+ '@tiptap/core': ^2.0.0
+ dependencies:
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
+ dev: false
+
/@tiptap/pm@2.4.0:
resolution: {integrity: sha512-B1HMEqGS4MzIVXnpgRZDLm30mxDWj51LkBT/if1XD+hj5gm8B9Q0c84bhvODX6KIs+c6z+zsY9VkVu8w9Yfgxg==}
dependencies:
From 70599fbd6b0412508f0e8859a7b0e8ec5f2ba981 Mon Sep 17 00:00:00 2001
From: ledouxm
Date: Wed, 26 Jun 2024 10:19:03 +0200
Subject: [PATCH 02/29] fix: carriage return on "precisions" and "description"
---
packages/frontend/src/routeTree.gen.ts | 11 ---
.../frontend/src/routes/export.$reportId.tsx | 72 -------------------
.../frontend/src/routes/pdf.$reportId.tsx | 2 +-
packages/pdf/src/report.tsx | 12 +++-
4 files changed, 11 insertions(+), 86 deletions(-)
delete mode 100644 packages/frontend/src/routes/export.$reportId.tsx
diff --git a/packages/frontend/src/routeTree.gen.ts b/packages/frontend/src/routeTree.gen.ts
index 46cc2968..24e35440 100644
--- a/packages/frontend/src/routeTree.gen.ts
+++ b/packages/frontend/src/routeTree.gen.ts
@@ -17,7 +17,6 @@ import { Route as LoginImport } from './routes/login'
import { Route as IndexImport } from './routes/index'
import { Route as ResetPasswordLinkImport } from './routes/reset-password.$link'
import { Route as PdfReportIdImport } from './routes/pdf.$reportId'
-import { Route as ExportReportIdImport } from './routes/export.$reportId'
import { Route as EditReportIdImport } from './routes/edit.$reportId'
// Create Virtual Routes
@@ -59,11 +58,6 @@ const PdfReportIdRoute = PdfReportIdImport.update({
getParentRoute: () => rootRoute,
} as any)
-const ExportReportIdRoute = ExportReportIdImport.update({
- path: '/export/$reportId',
- getParentRoute: () => rootRoute,
-} as any)
-
const EditReportIdRoute = EditReportIdImport.update({
path: '/edit/$reportId',
getParentRoute: () => rootRoute,
@@ -89,10 +83,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof EditReportIdImport
parentRoute: typeof rootRoute
}
- '/export/$reportId': {
- preLoaderRoute: typeof ExportReportIdImport
- parentRoute: typeof rootRoute
- }
'/pdf/$reportId': {
preLoaderRoute: typeof PdfReportIdImport
parentRoute: typeof rootRoute
@@ -115,7 +105,6 @@ export const routeTree = rootRoute.addChildren([
LoginRoute,
SignupLazyRoute,
EditReportIdRoute,
- ExportReportIdRoute,
PdfReportIdRoute,
ResetPasswordLinkRoute,
ResetPasswordIndexLazyRoute,
diff --git a/packages/frontend/src/routes/export.$reportId.tsx b/packages/frontend/src/routes/export.$reportId.tsx
deleted file mode 100644
index 902dabe8..00000000
--- a/packages/frontend/src/routes/export.$reportId.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-import { Flex } from "#styled-system/jsx";
-import type { Udap } from "@cr-vif/electric-client/frontend";
-import { Chip } from "@cr-vif/electric-client/frontend";
-import { PDFViewer } from "@react-pdf/renderer";
-import { createFileRoute } from "@tanstack/react-router";
-import { useLiveQuery } from "electric-sql/react";
-import { useState } from "react";
-import useDebounce from "react-use/lib/useDebounce";
-import { useUser } from "../contexts/AuthContext";
-import { db } from "../db";
-import type { ReportWithUser } from "../features/ReportList";
-import { useChipOptions } from "../features/chips/useChipOptions";
-import { TextEditor } from "../features/text-editor/TextEditor";
-import { ReportPDFDocument, getReportHtmlString } from "@cr-vif/pdf";
-import Button from "@codegouvfr/react-dsfr/Button";
-import { useMutation } from "@tanstack/react-query";
-import { api } from "../api";
-
-const ExportPdf = () => {
- const { reportId } = Route.useParams();
- const { results: report } = useLiveQuery(db.report.liveUnique({ where: { id: reportId }, include: { user: true } }));
- const chipOptions = useChipOptions();
-
- return (
-
- {report && chipOptions?.length ? : null}
-
- );
-};
-
-const WithReport = ({ report, chipOptions }: { report: ReportWithUser; chipOptions: Chip[] }) => {
- const { udap } = useUser()!;
- const [value, setValue] = useState(getReportHtmlString(report, chipOptions, udap as Udap));
- const [debouncedValue, setDebouncedValue] = useState(value);
-
- const generatePdfMutation = useMutation((htmlString: string) =>
- api.post("/api/pdf/report", { body: { reportId: report.id, htmlString } }),
- );
-
- useDebounce(() => setDebouncedValue(value), 1000, [value, chipOptions]);
-
- return (
-
- setValue(e)} />
-
-
-
-
-
-
-
- );
-};
-
-// const styles = StyleSheet.create({
-// page: {
-// flexDirection: "row",
-// backgroundColor: "white",
-// color: "black",
-// },
-// section: {
-// margin: 10,
-// padding: 10,
-// flexGrow: 1,
-// },
-// });
-
-export const Route = createFileRoute("/export/$reportId")({
- component: () => ,
-});
diff --git a/packages/frontend/src/routes/pdf.$reportId.tsx b/packages/frontend/src/routes/pdf.$reportId.tsx
index 11636c84..0c9bc681 100644
--- a/packages/frontend/src/routes/pdf.$reportId.tsx
+++ b/packages/frontend/src/routes/pdf.$reportId.tsx
@@ -112,7 +112,6 @@ export const PDF = () => {
);
}
-
return (
@@ -342,6 +341,7 @@ const PdfCanvasPage = ({ file, page }: { file: string; page: number }) => {
return (
Précisions :
- ${report.precisions}
+ ${report.precisions
+ ?.split("\n")
+ .map((s) => s.trim())
+ .join("
")}
`
: ""
}
Le projet pour rappel :
- ${report.projectDescription ?? ""}
+ ${
+ report.projectDescription
+ ?.split("\n")
+ .map((s) => s.trim())
+ .join("
") ?? ""
+ }
From 019be571a785fd998ca84f5e806e40c9daf8f897 Mon Sep 17 00:00:00 2001
From: ledouxm
Date: Wed, 26 Jun 2024 10:26:49 +0200
Subject: [PATCH 03/29] fix: text editor carriage return
---
packages/frontend/package.json | 1 +
packages/frontend/src/features/ReportList.tsx | 6 +++---
.../features/text-editor/TextEditorContext.tsx | 10 +++++++++-
pnpm-lock.yaml | 17 ++++++++++++++---
4 files changed, 27 insertions(+), 7 deletions(-)
diff --git a/packages/frontend/package.json b/packages/frontend/package.json
index eb811af5..d67a12f4 100644
--- a/packages/frontend/package.json
+++ b/packages/frontend/package.json
@@ -36,6 +36,7 @@
"@tanstack/react-router": "^1.22.2",
"@tanstack/router-devtools": "^1.22.2",
"@tiptap/extension-color": "^2.3.0",
+ "@tiptap/extension-hard-break": "^2.4.0",
"@tiptap/extension-link": "^2.3.0",
"@tiptap/extension-placeholder": "^2.3.0",
"@tiptap/extension-text-align": "^2.3.0",
diff --git a/packages/frontend/src/features/ReportList.tsx b/packages/frontend/src/features/ReportList.tsx
index 741e60ae..b696d12e 100644
--- a/packages/frontend/src/features/ReportList.tsx
+++ b/packages/frontend/src/features/ReportList.tsx
@@ -25,7 +25,7 @@ export const MyReports = () => {
const user = useUser()!;
const myReports = useLiveQuery(
db.report.liveMany({
- where: { AND: [{ disabled: false }, { OR: [{ createdBy: user.id }, { redactedById: user.id }] }] },
+ where: { disabled: false, OR: [{ createdBy: user.id }, { redactedById: user.id }] },
take: 20,
skip: page * 20,
orderBy: { createdAt: "desc" },
@@ -37,8 +37,8 @@ export const MyReports = () => {
const nbReports = useLiveQuery<[{ count: number }]>(
db.liveRawQuery({
- sql: `SELECT COUNT(*) AS count FROM report WHERE createdBy = ? AND disabled = FALSE`,
- args: [user.id],
+ sql: `SELECT COUNT(*) AS count FROM report WHERE createdBy = ? OR redactedById = ? AND disabled = FALSE`,
+ args: [user.id, user.id],
}),
);
diff --git a/packages/frontend/src/features/text-editor/TextEditorContext.tsx b/packages/frontend/src/features/text-editor/TextEditorContext.tsx
index 4086c25b..5b24efc0 100644
--- a/packages/frontend/src/features/text-editor/TextEditorContext.tsx
+++ b/packages/frontend/src/features/text-editor/TextEditorContext.tsx
@@ -1,10 +1,11 @@
import Color from "@tiptap/extension-color";
import Placeholder from "@tiptap/extension-placeholder";
import TextStyle from "@tiptap/extension-text-style";
-import { Editor, useEditor } from "@tiptap/react";
+import { Editor, Extension, useEditor } from "@tiptap/react";
import StarterKit from "@tiptap/starter-kit";
import { PropsWithChildren, createContext, useState } from "react";
import { Underline } from "@tiptap/extension-underline";
+import { HardBreak } from "@tiptap/extension-hard-break";
export const TextEditorContext = createContext<{ editor: Editor | null }>({
editor: null,
@@ -29,6 +30,13 @@ export const TextEditorContextProvider = ({ children }: PropsWithChildren) => {
}),
Placeholder.configure({}),
TextStyle.configure(),
+ HardBreak.extend({
+ addKeyboardShortcuts() {
+ return {
+ Enter: () => this.editor.commands.setHardBreak(),
+ };
+ },
+ }),
],
content: "",
});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8e21fec6..4e209b8a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -261,6 +261,9 @@ importers:
'@tiptap/extension-color':
specifier: ^2.3.0
version: 2.3.0(@tiptap/core@2.4.0)(@tiptap/extension-text-style@2.3.0)
+ '@tiptap/extension-hard-break':
+ specifier: ^2.4.0
+ version: 2.4.0(@tiptap/core@2.4.0)
'@tiptap/extension-link':
specifier: ^2.3.0
version: 2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
@@ -6388,14 +6391,22 @@ packages:
'@tiptap/pm': 2.4.0
dev: false
- /@tiptap/extension-hard-break@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-9pXi69SzLabbjY5KZ54UKzu7HAHTla9aYZKH56VatOAiJOPKJppFbU2/NfJwGzDrEtfOiDqr3dYbUDF3RuCFoQ==}
+ /@tiptap/extension-hard-break@2.4.0(@tiptap/core@2.3.0):
+ resolution: {integrity: sha512-3+Z6zxevtHza5IsDBZ4lZqvNR3Kvdqwxq/QKCKu9UhJN1DUjsg/l1Jn2NilSQ3NYkBYh2yJjT8CMo9pQIu776g==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
'@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
dev: false
+ /@tiptap/extension-hard-break@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-3+Z6zxevtHza5IsDBZ4lZqvNR3Kvdqwxq/QKCKu9UhJN1DUjsg/l1Jn2NilSQ3NYkBYh2yJjT8CMo9pQIu776g==}
+ peerDependencies:
+ '@tiptap/core': ^2.0.0
+ dependencies:
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
+ dev: false
+
/@tiptap/extension-heading@2.3.0(@tiptap/core@2.3.0):
resolution: {integrity: sha512-YcZoUYfqb0nohoPgem4f8mjn5OqDomFrbJiC9VRHUOCIuEu+aJEYwp8mmdkLnS3f+LRCZ6G76cJJ50lkzSAZRw==}
peerDependencies:
@@ -6568,7 +6579,7 @@ packages:
'@tiptap/extension-document': 2.3.0(@tiptap/core@2.3.0)
'@tiptap/extension-dropcursor': 2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0)
'@tiptap/extension-gapcursor': 2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0)
- '@tiptap/extension-hard-break': 2.3.0(@tiptap/core@2.3.0)
+ '@tiptap/extension-hard-break': 2.4.0(@tiptap/core@2.3.0)
'@tiptap/extension-heading': 2.3.0(@tiptap/core@2.3.0)
'@tiptap/extension-history': 2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0)
'@tiptap/extension-horizontal-rule': 2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0)
From dbb555ba66b8f733d89925499336a7ee1b44c5db Mon Sep 17 00:00:00 2001
From: ledouxm
Date: Wed, 26 Jun 2024 10:33:17 +0200
Subject: [PATCH 04/29] bump tiptap version
---
packages/frontend/package.json | 14 +-
.../text-editor/TextEditorContext.tsx | 8 +-
pnpm-lock.yaml | 228 ++++++++----------
3 files changed, 117 insertions(+), 133 deletions(-)
diff --git a/packages/frontend/package.json b/packages/frontend/package.json
index d67a12f4..314ce251 100644
--- a/packages/frontend/package.json
+++ b/packages/frontend/package.json
@@ -35,15 +35,15 @@
"@tanstack/react-query": "^4.18.0",
"@tanstack/react-router": "^1.22.2",
"@tanstack/router-devtools": "^1.22.2",
- "@tiptap/extension-color": "^2.3.0",
+ "@tiptap/extension-color": "^2.4.0",
"@tiptap/extension-hard-break": "^2.4.0",
- "@tiptap/extension-link": "^2.3.0",
- "@tiptap/extension-placeholder": "^2.3.0",
- "@tiptap/extension-text-align": "^2.3.0",
- "@tiptap/extension-text-style": "^2.3.0",
+ "@tiptap/extension-link": "^2.4.0",
+ "@tiptap/extension-placeholder": "^2.4.0",
+ "@tiptap/extension-text-align": "^2.4.0",
+ "@tiptap/extension-text-style": "^2.4.0",
"@tiptap/extension-underline": "^2.4.0",
- "@tiptap/react": "^2.3.0",
- "@tiptap/starter-kit": "^2.3.0",
+ "@tiptap/react": "^2.4.0",
+ "@tiptap/starter-kit": "^2.4.0",
"@ungap/with-resolvers": "^0.1.0",
"@xstate/store": "^0.0.5",
"date-fns": "^3.6.0",
diff --git a/packages/frontend/src/features/text-editor/TextEditorContext.tsx b/packages/frontend/src/features/text-editor/TextEditorContext.tsx
index 5b24efc0..96b9168e 100644
--- a/packages/frontend/src/features/text-editor/TextEditorContext.tsx
+++ b/packages/frontend/src/features/text-editor/TextEditorContext.tsx
@@ -1,11 +1,11 @@
import Color from "@tiptap/extension-color";
+import { HardBreak } from "@tiptap/extension-hard-break";
import Placeholder from "@tiptap/extension-placeholder";
import TextStyle from "@tiptap/extension-text-style";
-import { Editor, Extension, useEditor } from "@tiptap/react";
-import StarterKit from "@tiptap/starter-kit";
-import { PropsWithChildren, createContext, useState } from "react";
import { Underline } from "@tiptap/extension-underline";
-import { HardBreak } from "@tiptap/extension-hard-break";
+import { Editor, useEditor } from "@tiptap/react";
+import StarterKit from "@tiptap/starter-kit";
+import { PropsWithChildren, createContext } from "react";
export const TextEditorContext = createContext<{ editor: Editor | null }>({
editor: null,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4e209b8a..7298a4a0 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -259,32 +259,32 @@ importers:
specifier: ^1.22.2
version: 1.26.7(csstype@3.1.3)(react-dom@18.2.0)(react@18.2.0)
'@tiptap/extension-color':
- specifier: ^2.3.0
- version: 2.3.0(@tiptap/core@2.4.0)(@tiptap/extension-text-style@2.3.0)
+ specifier: ^2.4.0
+ version: 2.4.0(@tiptap/core@2.4.0)(@tiptap/extension-text-style@2.4.0)
'@tiptap/extension-hard-break':
specifier: ^2.4.0
version: 2.4.0(@tiptap/core@2.4.0)
'@tiptap/extension-link':
- specifier: ^2.3.0
- version: 2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
+ specifier: ^2.4.0
+ version: 2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
'@tiptap/extension-placeholder':
- specifier: ^2.3.0
- version: 2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
+ specifier: ^2.4.0
+ version: 2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
'@tiptap/extension-text-align':
- specifier: ^2.3.0
- version: 2.3.0(@tiptap/core@2.4.0)
+ specifier: ^2.4.0
+ version: 2.4.0(@tiptap/core@2.4.0)
'@tiptap/extension-text-style':
- specifier: ^2.3.0
- version: 2.3.0(@tiptap/core@2.4.0)
+ specifier: ^2.4.0
+ version: 2.4.0(@tiptap/core@2.4.0)
'@tiptap/extension-underline':
specifier: ^2.4.0
version: 2.4.0(@tiptap/core@2.4.0)
'@tiptap/react':
- specifier: ^2.3.0
- version: 2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)(react-dom@18.2.0)(react@18.2.0)
+ specifier: ^2.4.0
+ version: 2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)(react-dom@18.2.0)(react@18.2.0)
'@tiptap/starter-kit':
- specifier: ^2.3.0
- version: 2.3.0(@tiptap/pm@2.4.0)
+ specifier: ^2.4.0
+ version: 2.4.0(@tiptap/pm@2.4.0)
'@ungap/with-resolvers':
specifier: ^0.1.0
version: 0.1.0
@@ -6273,14 +6273,6 @@ packages:
resolution: {integrity: sha512-cxHYbrXfnCWsklydIHSw5GCMHUPqpJ/enxWSyVHNOgNe61sit/+aOXTTI+VOdWkvVaJsI2vsB9N4+YDNITawOQ==}
dev: true
- /@tiptap/core@2.3.0(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-Gk2JN3i5CMkYGmsbyFI7cBUftWa+F7QYmeCLTWfbuy+hCM2OBsnYVKxhggFPGXRL5KLBEgBWeCeWMHfIw3B2MA==}
- peerDependencies:
- '@tiptap/pm': ^2.0.0
- dependencies:
- '@tiptap/pm': 2.4.0
- dev: false
-
/@tiptap/core@2.4.0(@tiptap/pm@2.4.0):
resolution: {integrity: sha512-YJSahk8pkxpCs8SflCZfTnJpE7IPyUWIylfgXM2DefjRQa5DZ+c6sNY0s/zbxKYFQ6AuHVX40r9pCfcqHChGxQ==}
peerDependencies:
@@ -6289,24 +6281,24 @@ packages:
'@tiptap/pm': 2.4.0
dev: false
- /@tiptap/extension-blockquote@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-Cztt77t7f+f0fuPy+FWUL8rKTIpcdsVT0z0zYQFFafvGaom0ZALQSOdTR/q+Kle9I4DaCMO3/Q0mwax/D4k4+A==}
+ /@tiptap/extension-blockquote@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-nJJy4KsPgQqWTTDOWzFRdjCfG5+QExfZj44dulgDFNh+E66xhamnbM70PklllXJgEcge7xmT5oKM0gKls5XgFw==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-bold@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-SzkbJibHXFNU7TRaAebTtwbXUEhGZ8+MhlBn12aQ4QhdjNtFpQwKXQPyYeDyZGcyiOFgtFTb+WIfCGm8ZX0Fpw==}
+ /@tiptap/extension-bold@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-csnW6hMDEHoRfxcPRLSqeJn+j35Lgtt1YRiOwn7DlS66sAECGRuoGfCvQSPij0TCDp4VCR9if5Sf8EymhnQumQ==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-bubble-menu@2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-dqyfQ8idTlhapvt0fxCGvkyjw92pBEwPqmkJ01h3EE8wTh53j0ytOHyMSf1KBuzardxpd8Yya3zlrAcR0Z3DlQ==}
+ /@tiptap/extension-bubble-menu@2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
+ resolution: {integrity: sha512-s99HmttUtpW3rScWq8rqk4+CGCwergNZbHLTkF6Rp6TSboMwfp+rwL5Q/JkcAG9KGLso1vGyXKbt1xHOvm8zMw==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/pm': ^2.0.0
@@ -6316,62 +6308,62 @@ packages:
tippy.js: 6.3.7
dev: false
- /@tiptap/extension-bullet-list@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-4nU4vJ5FjRDLqHm085vYAkuo68UK84Wl6CDSjm7sPVcu0FvQX02Okqt65azoSYQeS1SSSd5qq9YZuGWcYdp4Cw==}
+ /@tiptap/extension-bullet-list@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-9S5DLIvFRBoExvmZ+/ErpTvs4Wf1yOEs8WXlKYUCcZssK7brTFj99XDwpHFA29HKDwma5q9UHhr2OB2o0JYAdw==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-code-block@2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-+Ne6PRBwQt70Pp8aW2PewaEy4bHrNYn4N+y8MObsFtqLutXBz4nXnsXWiNYFQZwzlUY+CHG4XS73mx8oMOFfDw==}
+ /@tiptap/extension-code-block@2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
+ resolution: {integrity: sha512-QWGdv1D56TBGbbJSj2cIiXGJEKguPiAl9ONzJ/Ql1ZksiQsYwx0YHriXX6TOC//T4VIf6NSClHEtwtxWBQ/Csg==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/pm': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
'@tiptap/pm': 2.4.0
dev: false
- /@tiptap/extension-code@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-O2FZmosiIRoVbW82fZy8xW4h4gb2xAzxWzHEcsHPlwCbE3vYvcBMmbkQ5p+33eRtuRQInzl3Q/cwupv9ctIepQ==}
+ /@tiptap/extension-code@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-wjhBukuiyJMq4cTcK3RBTzUPV24k5n1eEPlpmzku6ThwwkMdwynnMGMAmSF3fErh3AOyOUPoTTjgMYN2d10SJA==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-color@2.3.0(@tiptap/core@2.4.0)(@tiptap/extension-text-style@2.3.0):
- resolution: {integrity: sha512-rqtdTaGawPZSRszwC/BlkJTF1diosIBBRSO5/YCRHT7CfGJNJyomL3eFREynXLKnXZ69SMceDh6yU6B54uTHXQ==}
+ /@tiptap/extension-color@2.4.0(@tiptap/core@2.4.0)(@tiptap/extension-text-style@2.4.0):
+ resolution: {integrity: sha512-aVuqGtzTIZO93niADdu+Hx8g03X0pS7wjrJcCcYkkDEbC/siC03zlxKZIYBW1Jiabe99Z7/s2KdtLoK6DW2A2g==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/extension-text-style': ^2.0.0
dependencies:
'@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
- '@tiptap/extension-text-style': 2.3.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-text-style': 2.4.0(@tiptap/core@2.4.0)
dev: false
- /@tiptap/extension-document@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-WC55SMrtlsNOnHXpzbXDzJOp7eKmZV0rXooKmvCDqoiLO/DKpyQXyF+0UHfcRPmUAi2GWFPaer7+p1H9xzcjXg==}
+ /@tiptap/extension-document@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-3jRodQJZDGbXlRPERaloS+IERg/VwzpC1IO6YSJR9jVIsBO6xC29P3cKTQlg1XO7p6ZH/0ksK73VC5BzzTwoHg==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-dropcursor@2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-WWxxGQPWdbzxyYP6jtBYSq4wMRhINhI0wBC8pgkxTVwCIWftMuYj++FP4LLIpuWgj78PWApuoM0QQxk4Lj7FOw==}
+ /@tiptap/extension-dropcursor@2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
+ resolution: {integrity: sha512-c46HoG2PEEpSZv5rmS5UX/lJ6/kP1iVO0Ax+6JrNfLEIiDULUoi20NqdjolEa38La2VhWvs+o20OviiTOKEE9g==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/pm': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
'@tiptap/pm': 2.4.0
dev: false
- /@tiptap/extension-floating-menu@2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-bNY43/yU/+wGfmk2eDV7EPDAN/akbC+YnSKTA5VPJADzscvlrL2HlQrxbd/STIdlwKqdPU5MokcvCChhfZ4f6w==}
+ /@tiptap/extension-floating-menu@2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
+ resolution: {integrity: sha512-vLb9v+htbHhXyty0oaXjT3VC8St4xuGSHWUB9GuAJAQ+NajIO6rBPbLUmm9qM0Eh2zico5mpSD1Qtn5FM6xYzg==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/pm': ^2.0.0
@@ -6381,24 +6373,16 @@ packages:
tippy.js: 6.3.7
dev: false
- /@tiptap/extension-gapcursor@2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-OxcXcfD0uzNcXdXu2ZpXFAtXIsgK2MBHvFUs0t0gxtcL/t43pTOQBLy+29Ei30BxpwLghtX8jQ6IDzMiybq/sA==}
+ /@tiptap/extension-gapcursor@2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
+ resolution: {integrity: sha512-F4y/0J2lseohkFUw9P2OpKhrJ6dHz69ZScABUvcHxjznJLd6+0Zt7014Lw5PA8/m2d/w0fX8LZQ88pZr4quZPQ==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/pm': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
'@tiptap/pm': 2.4.0
dev: false
- /@tiptap/extension-hard-break@2.4.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-3+Z6zxevtHza5IsDBZ4lZqvNR3Kvdqwxq/QKCKu9UhJN1DUjsg/l1Jn2NilSQ3NYkBYh2yJjT8CMo9pQIu776g==}
- peerDependencies:
- '@tiptap/core': ^2.0.0
- dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
- dev: false
-
/@tiptap/extension-hard-break@2.4.0(@tiptap/core@2.4.0):
resolution: {integrity: sha512-3+Z6zxevtHza5IsDBZ4lZqvNR3Kvdqwxq/QKCKu9UhJN1DUjsg/l1Jn2NilSQ3NYkBYh2yJjT8CMo9pQIu776g==}
peerDependencies:
@@ -6407,44 +6391,44 @@ packages:
'@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-heading@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-YcZoUYfqb0nohoPgem4f8mjn5OqDomFrbJiC9VRHUOCIuEu+aJEYwp8mmdkLnS3f+LRCZ6G76cJJ50lkzSAZRw==}
+ /@tiptap/extension-heading@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-fYkyP/VMo7YHO76YVrUjd95Qeo0cubWn/Spavmwm1gLTHH/q7xMtbod2Z/F0wd6QHnc7+HGhO7XAjjKWDjldaw==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-history@2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-EF5Oq9fe/VBzU1Lsow2ubOlx1e1r4OQT1WUPGsRnL7pr94GH1Skpk7/hs9COJ9K6kP3Ebt42XjP0JEQodR58YA==}
+ /@tiptap/extension-history@2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
+ resolution: {integrity: sha512-gr5qsKAXEVGr1Lyk1598F7drTaEtAxqZiuuSwTCzZzkiwgEQsWMWTWc9F8FlneCEaqe1aIYg6WKWlmYPaFwr0w==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/pm': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
'@tiptap/pm': 2.4.0
dev: false
- /@tiptap/extension-horizontal-rule@2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-4DB8GU3uuDzzyqUmONIb3CHXcQ6Nuy4mHHkFSmUyEjg1i5eMQU5H7S6mNvZbltcJB2ImgCSwSMlj1kVN3MLIPg==}
+ /@tiptap/extension-horizontal-rule@2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
+ resolution: {integrity: sha512-yDgxy+YxagcEsBbdWvbQiXYxsv3noS1VTuGwc9G7ZK9xPmBHJ5y0agOkB7HskwsZvJHoaSqNRsh7oZTkf0VR3g==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/pm': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
'@tiptap/pm': 2.4.0
dev: false
- /@tiptap/extension-italic@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-jdFjLjdt5JtPlGMpoS6TEq5rznjbAYVlPwcw5VkYENVIYIGIR1ylIw2JwK1nUEsQ+OgYwVxHLejcUXWG1dCi2g==}
+ /@tiptap/extension-italic@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-aaW/L9q+KNHHK+X73MPloHeIsT191n3VLd3xm6uUcFDnUNvzYJ/q65/1ZicdtCaOLvTutxdrEvhbkrVREX6a8g==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-link@2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-CnJAlV0ZOdEhKmDfYKuHJVG8g79iCFQ85cX/CROTWyuMfXz9uhj2rLpZ6nfidVbonqxAhQp7NAIr2y+Fj5/53A==}
+ /@tiptap/extension-link@2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
+ resolution: {integrity: sha512-r3PjT0bjSKAorHAEBPA0icSMOlqALbxVlWU9vAc+Q3ndzt7ht0CTPNewzFF9kjzARABVt1cblXP/2+c0qGzcsg==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/pm': ^2.0.0
@@ -6454,32 +6438,32 @@ packages:
linkifyjs: 4.1.3
dev: false
- /@tiptap/extension-list-item@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-mHU+IuRa56OT6YCtxf5Z7OSUrbWdKhGCEX7RTrteDVs5oMB6W3oF9j88M5qQmZ1WDcxvQhAOoXctnMt6eX9zcA==}
+ /@tiptap/extension-list-item@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-reUVUx+2cI2NIAqMZhlJ9uK/+zvRzm1GTmlU2Wvzwc7AwLN4yemj6mBDsmBLEXAKPvitfLh6EkeHaruOGymQtg==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-ordered-list@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-gkf0tltXjlUj0cqyfDV2r7xy9YPKtcVSWwlCPun6OOi0KzKFiAMqQpA9hy2W6gJ+KCp8+KNRMClZOfH4TnnBfg==}
+ /@tiptap/extension-ordered-list@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-Zo0c9M0aowv+2+jExZiAvhCB83GZMjZsxywmuOrdUbq5EGYKb7q8hDyN3hkrktVHr9UPXdPAYTmLAHztTOHYRA==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-paragraph@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-peCpA7DFqkd0cHb+cHv4YHNoMsXG8tKFNJlCHpLmsZWl2hWmpKgKmUrXAUfzjcFSvkZxn0xYc5oWbqUgg+2LzA==}
+ /@tiptap/extension-paragraph@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-+yse0Ow67IRwcACd9K/CzBcxlpr9OFnmf0x9uqpaWt1eHck1sJnti6jrw5DVVkyEBHDh/cnkkV49gvctT/NyCw==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-placeholder@2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-1BOyxVLzyUYf6yOOeJ8CfpP6DSCS4L6HjBZqj6WP1z1NyBV8RAfhf3UuLNcimfSWAETXFR3g0ZbaxxWffI1cEg==}
+ /@tiptap/extension-placeholder@2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0):
+ resolution: {integrity: sha512-SmWOjgWpmhFt0BPOnL65abCUH0wS5yksUJgtANn5bQoHF4HFSsyl7ETRmgf0ykxdjc7tzOg31FfpWVH4wzKSYg==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/pm': ^2.0.0
@@ -6488,36 +6472,36 @@ packages:
'@tiptap/pm': 2.4.0
dev: false
- /@tiptap/extension-strike@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-gOW4ALeH8gkJiUGGXVy/AOd5lAPTX0bzoOW1+sCLcTA7t8dluBW7M2ngNYxTEtlKqyv7aLfrgsYSiqucmmfSLw==}
+ /@tiptap/extension-strike@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-pE1uN/fQPOMS3i+zxPYMmPmI3keubnR6ivwM+KdXWOMnBiHl9N4cNpJgq1n2eUUGKLurC2qrQHpnVyGAwBS6Vg==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-text-align@2.3.0(@tiptap/core@2.4.0):
- resolution: {integrity: sha512-Pj+Yuk8xpYLGxNKGRUwvjlrOQP66ZyzjpJN5xqjJ7anzb2OKrluWMBco3xhjd/h03viA+wYeJKfnEpk/SbzHTQ==}
+ /@tiptap/extension-text-align@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-wpRe2OiLXTK4kTy4RZEPnPjFbK16kYHPAx1552hLXrOdyxbS7Sdbo+w4x7aGLLZZqZdudCFfkdtnqrc7PDVZdA==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
'@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-text-style@2.3.0(@tiptap/core@2.4.0):
- resolution: {integrity: sha512-S+sQZqd+QtJjbZ0LOp0Krf0dlrdMx7BQL0sUNKPq8XXRMcfW0pEEFGIU/0VDFQCldLIuyd7lZ8zo5cjaAgskIA==}
+ /@tiptap/extension-text-style@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-H0uPWeZ4sXz3o836TDWnpd38qClqzEM2d6QJ9TK+cQ1vE5Gp8wQ5W4fwUV1KAHzpJKE/15+BXBjLyVYQdmXDaQ==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
'@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
- /@tiptap/extension-text@2.3.0(@tiptap/core@2.3.0):
- resolution: {integrity: sha512-zkudl0TyKRy/8vHtyo5dMzjBRD0HEUnsS8YOsjR4xwQq5EYUXleRgM1s6lb6Yms2sLUAZRWdDddoQ686iq4zQg==}
+ /@tiptap/extension-text@2.4.0(@tiptap/core@2.4.0):
+ resolution: {integrity: sha512-LV0bvE+VowE8IgLca7pM8ll7quNH+AgEHRbSrsI3SHKDCYB9gTHMjWaAkgkUVaO1u0IfCrjnCLym/PqFKa+vvg==}
peerDependencies:
'@tiptap/core': ^2.0.0
dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
dev: false
/@tiptap/extension-underline@2.4.0(@tiptap/core@2.4.0):
@@ -6551,8 +6535,8 @@ packages:
prosemirror-view: 1.33.6
dev: false
- /@tiptap/react@2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)(react-dom@18.2.0)(react@18.2.0):
- resolution: {integrity: sha512-ThgFJQTWYKRClTV2Zg0wBRqfy0EGz3U4NOey7jwncUjSjx5+o9nXbfQAYWDKQFfWyE+wnrBTYfddEP9pHNX5cQ==}
+ /@tiptap/react@2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)(react-dom@18.2.0)(react@18.2.0):
+ resolution: {integrity: sha512-baxnIr6Dy+5iGagOEIKFeHzdl1ZRa6Cg+SJ3GDL/BVLpO6KiCM3Mm5ymB726UKP1w7icrBiQD2fGY3Bx8KaiSA==}
peerDependencies:
'@tiptap/core': ^2.0.0
'@tiptap/pm': ^2.0.0
@@ -6560,35 +6544,35 @@ packages:
react-dom: ^17.0.0 || ^18.0.0
dependencies:
'@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
- '@tiptap/extension-bubble-menu': 2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
- '@tiptap/extension-floating-menu': 2.3.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
+ '@tiptap/extension-bubble-menu': 2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
+ '@tiptap/extension-floating-menu': 2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
'@tiptap/pm': 2.4.0
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
dev: false
- /@tiptap/starter-kit@2.3.0(@tiptap/pm@2.4.0):
- resolution: {integrity: sha512-TjvCd/hzEnuEYOdr5uQqcfHOMuj7JRoZBPdheupwl3SbuYiCxtcqYyAE5qoGXWwuVe9xVGerOLVPkDUgmyrH6A==}
- dependencies:
- '@tiptap/core': 2.3.0(@tiptap/pm@2.4.0)
- '@tiptap/extension-blockquote': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-bold': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-bullet-list': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-code': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-code-block': 2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0)
- '@tiptap/extension-document': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-dropcursor': 2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0)
- '@tiptap/extension-gapcursor': 2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0)
- '@tiptap/extension-hard-break': 2.4.0(@tiptap/core@2.3.0)
- '@tiptap/extension-heading': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-history': 2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0)
- '@tiptap/extension-horizontal-rule': 2.3.0(@tiptap/core@2.3.0)(@tiptap/pm@2.4.0)
- '@tiptap/extension-italic': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-list-item': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-ordered-list': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-paragraph': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-strike': 2.3.0(@tiptap/core@2.3.0)
- '@tiptap/extension-text': 2.3.0(@tiptap/core@2.3.0)
+ /@tiptap/starter-kit@2.4.0(@tiptap/pm@2.4.0):
+ resolution: {integrity: sha512-DYYzMZdTEnRn9oZhKOeRCcB+TjhNz5icLlvJKoHoOGL9kCbuUyEf8WRR2OSPckI0+KUIPJL3oHRqO4SqSdTjfg==}
+ dependencies:
+ '@tiptap/core': 2.4.0(@tiptap/pm@2.4.0)
+ '@tiptap/extension-blockquote': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-bold': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-bullet-list': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-code': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-code-block': 2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
+ '@tiptap/extension-document': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-dropcursor': 2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
+ '@tiptap/extension-gapcursor': 2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
+ '@tiptap/extension-hard-break': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-heading': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-history': 2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
+ '@tiptap/extension-horizontal-rule': 2.4.0(@tiptap/core@2.4.0)(@tiptap/pm@2.4.0)
+ '@tiptap/extension-italic': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-list-item': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-ordered-list': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-paragraph': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-strike': 2.4.0(@tiptap/core@2.4.0)
+ '@tiptap/extension-text': 2.4.0(@tiptap/core@2.4.0)
transitivePeerDependencies:
- '@tiptap/pm'
dev: false
From 2c7c34c7f72afedba2b964e10d545a4f99031407 Mon Sep 17 00:00:00 2001
From: ledouxm
Date: Wed, 26 Jun 2024 10:33:27 +0200
Subject: [PATCH 05/29] fix: display correct clauses in correct panel
---
packages/frontend/src/features/menu/ClauseMenu.tsx | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/packages/frontend/src/features/menu/ClauseMenu.tsx b/packages/frontend/src/features/menu/ClauseMenu.tsx
index ecf94240..7f2d8af0 100644
--- a/packages/frontend/src/features/menu/ClauseMenu.tsx
+++ b/packages/frontend/src/features/menu/ClauseMenu.tsx
@@ -12,7 +12,10 @@ export const ClauseMenu = ({ isNational }: { isNational: boolean }) => {
const clausesQuery = useLiveQuery(
db.clause.liveMany({
where: {
- udap_id: isNational ? "ALL" : user.udap_id,
+ key: {
+ in: isNational ? ["type-espace", "decision"] : ["contacts-utiles", "bonnes-pratiques"],
+ },
+ OR: [{ udap_id: "ALL" }, { udap_id: user.udap_id! }],
},
}),
);
@@ -29,7 +32,7 @@ export const ClauseMenu = ({ isNational }: { isNational: boolean }) => {
- {key}
+ {(clauseNameMap as any)[key] ?? key}
{clauses.map((clause) => (
@@ -53,3 +56,10 @@ export const ClauseMenu = ({ isNational }: { isNational: boolean }) => {
>
);
};
+
+const clauseNameMap = {
+ "type-espace": "Type d'espace",
+ decision: "Décision",
+ "contacts-utiles": "Contacts utiles",
+ "bonnes-pratiques": "Bonnes pratiques",
+};
From 5b008c4a9dc0af02e7390f776d702b3a9b3c07ce Mon Sep 17 00:00:00 2001
From: ledouxm
Date: Wed, 26 Jun 2024 11:31:08 +0200
Subject: [PATCH 06/29] fix: home page display
---
packages/frontend/src/features/ReportList.tsx | 59 +++++++++++--------
packages/frontend/src/routes/index.tsx | 12 +++-
2 files changed, 43 insertions(+), 28 deletions(-)
diff --git a/packages/frontend/src/features/ReportList.tsx b/packages/frontend/src/features/ReportList.tsx
index b696d12e..78885da1 100644
--- a/packages/frontend/src/features/ReportList.tsx
+++ b/packages/frontend/src/features/ReportList.tsx
@@ -16,6 +16,7 @@ import { ReportActions } from "./ReportActions";
import { Pagination } from "@codegouvfr/react-dsfr/Pagination";
import welcomeImage from "../assets/welcome.svg";
import { useIsDesktop } from "../hooks/useIsDesktop";
+import { chunk, makeArrayOf } from "pastable";
export type ReportWithUser = Report & { user?: { email: string; name: string } };
@@ -37,7 +38,7 @@ export const MyReports = () => {
const nbReports = useLiveQuery<[{ count: number }]>(
db.liveRawQuery({
- sql: `SELECT COUNT(*) AS count FROM report WHERE createdBy = ? OR redactedById = ? AND disabled = FALSE`,
+ sql: `SELECT COUNT(*) AS count FROM report WHERE (createdBy = ? OR redactedById = ?) AND disabled = FALSE`,
args: [user.id, user.id],
}),
);
@@ -113,6 +114,8 @@ const NoReport = () => {
);
};
+const nbPerColumn = 10;
+
export const ReportList = ({
reports,
page,
@@ -132,29 +135,32 @@ export const ReportList = ({
}) => {
const error = reports.length === 0 ? : null;
+ const columns = chunk(reports, nbPerColumn);
+
return (
-
- *:nth-child(-n+10)": {
- gridColumn: {
- base: "0",
- lg: "1",
- },
- },
- })}
- gap="8px 28px"
- gridTemplateRows={{ base: "repeat(20, 1fr)", lg: "repeat(10, 1fr)" }}
- gridAutoFlow="column"
- w="100%"
- >
- {error
- ? !hideEmpty && error
- : reports.map((report, index) => (
-
- ))}
-
-
+
+ {!hideEmpty && error ? (
+ error
+ ) : (
+
+ {columns.slice(0, 2).map((reports) => {
+ return (
+
+ {reports.map((report, index) => (
+
+ ))}
+
+ );
+ })}
+ {columns.length === 1 ? : null}
+
+ )}
+
{hidePagination || error ? null : (
+
{report.createdAt.toLocaleDateString()}
- Rédigé par {report.user?.name ?? ""}
+ {report.applicantName ? <>Pour {report.applicantName} > : null}
+
+ {report.applicantName ? "p" : "P"}ar {report.user?.name ?? ""}
+
diff --git a/packages/frontend/src/routes/index.tsx b/packages/frontend/src/routes/index.tsx
index 8cba0180..2b14e81b 100644
--- a/packages/frontend/src/routes/index.tsx
+++ b/packages/frontend/src/routes/index.tsx
@@ -16,7 +16,6 @@ import { db } from "../db";
import { AllReports, MyReports } from "../features/ReportList";
const Index = () => {
- // TODO: put this into an xstate/store
const [search, setSearch] = useState("");
const user = useUser()!;
@@ -26,7 +25,7 @@ const Index = () => {
label: user.name,
className: css({
position: "absolute",
- left: { base: "16px", lg: "calc((100vw - 828px) / 2 - 8px)" },
+ left: { base: "16px", lg: "calc((100vw - 400px * 2 - 126px) / 2)" },
}),
},
{
@@ -51,6 +50,7 @@ const Index = () => {
disabled: false,
udap_id: user.udap.id,
redactedBy: user.name,
+ redactedById: user.id,
},
}),
onSuccess: (data) => {
@@ -137,7 +137,13 @@ const Index = () => {
>
-
+
From d59d536f000c47cd05fb78e5292a09cf7542e097 Mon Sep 17 00:00:00 2001
From: ledouxm
Date: Wed, 26 Jun 2024 11:49:32 +0200
Subject: [PATCH 07/29] fix: spaces
---
.../frontend/src/components/InputGroup.tsx | 2 +-
packages/frontend/src/features/InfoForm.tsx | 19 ++++++++++---------
packages/frontend/src/features/NotesForm.tsx | 8 ++++----
packages/frontend/src/features/ReportList.tsx | 2 +-
4 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/packages/frontend/src/components/InputGroup.tsx b/packages/frontend/src/components/InputGroup.tsx
index f26f68b5..644e9d5b 100644
--- a/packages/frontend/src/components/InputGroup.tsx
+++ b/packages/frontend/src/components/InputGroup.tsx
@@ -41,7 +41,7 @@ const Slot = ({ children, className, ...props }: PropsWithChildren & BoxProps) =
};
const Title = ({ children, ...props }: PropsWithChildren & BoxProps) => (
-
+
{children}
);
diff --git a/packages/frontend/src/features/InfoForm.tsx b/packages/frontend/src/features/InfoForm.tsx
index 6972c413..7658d7c1 100644
--- a/packages/frontend/src/features/InfoForm.tsx
+++ b/packages/frontend/src/features/InfoForm.tsx
@@ -1,4 +1,4 @@
-import { Box, Divider, Flex, Stack } from "#styled-system/jsx";
+import { Box, Center, Divider, Flex, Stack, styled } from "#styled-system/jsx";
import { useTabsContext } from "@ark-ui/react/tabs";
import Button from "@codegouvfr/react-dsfr/Button";
import Input from "@codegouvfr/react-dsfr/Input";
@@ -84,7 +84,7 @@ export const InfoForm = () => {
{
{
{
/>
{
{
-
+
-
+
);
};
diff --git a/packages/frontend/src/features/NotesForm.tsx b/packages/frontend/src/features/NotesForm.tsx
index f356ffab..cfac2b00 100644
--- a/packages/frontend/src/features/NotesForm.tsx
+++ b/packages/frontend/src/features/NotesForm.tsx
@@ -1,4 +1,4 @@
-import { Divider, Flex, Stack, styled } from "#styled-system/jsx";
+import { Center, Divider, Flex, Stack, styled } from "#styled-system/jsx";
import { useFormContext } from "react-hook-form";
import { InputGroupWithTitle } from "#components/InputGroup";
import Input from "@codegouvfr/react-dsfr/Input";
@@ -20,7 +20,7 @@ export const NotesForm = () => {
{
/>
-
+
-
+
);
};
diff --git a/packages/frontend/src/features/ReportList.tsx b/packages/frontend/src/features/ReportList.tsx
index 78885da1..0d90f592 100644
--- a/packages/frontend/src/features/ReportList.tsx
+++ b/packages/frontend/src/features/ReportList.tsx
@@ -160,7 +160,7 @@ export const ReportList = ({
{columns.length === 1 ? : null}
)}
-
+
{hidePagination || error ? null : (
Date: Wed, 26 Jun 2024 11:49:43 +0200
Subject: [PATCH 08/29] fix: disable send button if isLoading
---
.../frontend/src/routes/pdf.$reportId.tsx | 36 ++++++++++---------
1 file changed, 19 insertions(+), 17 deletions(-)
diff --git a/packages/frontend/src/routes/pdf.$reportId.tsx b/packages/frontend/src/routes/pdf.$reportId.tsx
index 0c9bc681..e14083c4 100644
--- a/packages/frontend/src/routes/pdf.$reportId.tsx
+++ b/packages/frontend/src/routes/pdf.$reportId.tsx
@@ -36,6 +36,17 @@ export const PDF = () => {
const { mode } = Route.useSearch();
const navigate = useNavigate();
+ const generatePdfMutation = useMutation(
+ async ({ htmlString, recipients }: { htmlString: string; recipients: string }) => {
+ await api.post("/api/pdf/report", { body: { reportId, htmlString, recipients } });
+ // downloadFile(url);
+ },
+ {
+ onSuccess: () => {
+ navigate({ search: { mode: "sent" } });
+ },
+ },
+ );
const toggleMode = () => {
navigate({ search: { mode: mode === "edit" ? "view" : "edit" }, replace: true });
};
@@ -86,7 +97,7 @@ export const PDF = () => {
const SendButtons = () => {
return (
-
@@ -98,7 +109,7 @@ export const PDF = () => {
if (mode === "sent") {
return (
-
+
Votre compte-rendu a bien été envoyé !
@@ -115,7 +126,7 @@ export const PDF = () => {
return (
-
+
@@ -147,27 +158,18 @@ export const PDF = () => {
);
};
-const SendForm = ({ children, reportId }: PropsWithChildren<{ reportId: string }>) => {
+const SendForm = ({
+ children,
+ generatePdf,
+}: PropsWithChildren<{ generatePdf: (args: { htmlString: string; recipients: string }) => void }>) => {
const { editor } = useContext(TextEditorContext);
const form = useForm({ defaultValues: { recipients: "" } });
- const navigate = useNavigate();
- const generatePdfMutation = useMutation(
- async ({ htmlString, recipients }: { htmlString: string; recipients: string }) => {
- await api.post("/api/pdf/report", { body: { reportId, htmlString, recipients } });
- // downloadFile(url);
- },
- {
- onSuccess: () => {
- navigate({ search: { mode: "sent" } });
- },
- },
- );
const send = (values: { recipients: string }) => {
const recipients = values.recipients.split(/,|\s/).filter(Boolean).join(",");
- generatePdfMutation.mutate({ htmlString: editor?.getHTML() ?? "", recipients });
+ generatePdf({ htmlString: editor?.getHTML() ?? "", recipients });
};
return (
From 4af17fb55f048c10dad29e31bea6defc9e792d2f Mon Sep 17 00:00:00 2001
From: ledouxm
Date: Wed, 26 Jun 2024 11:52:26 +0200
Subject: [PATCH 09/29] fix: info form spaces
---
packages/frontend/src/features/InfoForm.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/frontend/src/features/InfoForm.tsx b/packages/frontend/src/features/InfoForm.tsx
index 7658d7c1..5718fd30 100644
--- a/packages/frontend/src/features/InfoForm.tsx
+++ b/packages/frontend/src/features/InfoForm.tsx
@@ -84,7 +84,7 @@ export const InfoForm = () => {
Date: Wed, 26 Jun 2024 12:03:42 +0200
Subject: [PATCH 10/29] feat: allow recipients list to be separated using ;
---
packages/frontend/src/routes/pdf.$reportId.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/packages/frontend/src/routes/pdf.$reportId.tsx b/packages/frontend/src/routes/pdf.$reportId.tsx
index e14083c4..64928e0a 100644
--- a/packages/frontend/src/routes/pdf.$reportId.tsx
+++ b/packages/frontend/src/routes/pdf.$reportId.tsx
@@ -167,7 +167,10 @@ const SendForm = ({
const form = useForm({ defaultValues: { recipients: "" } });
const send = (values: { recipients: string }) => {
- const recipients = values.recipients.split(/,|\s/).filter(Boolean).join(",");
+ const recipients = values.recipients
+ .split(/,|\s|;/)
+ .filter(Boolean)
+ .join(",");
generatePdf({ htmlString: editor?.getHTML() ?? "", recipients });
};
From ded244f9e44dfef22b09c3125fe2a4f3f23ae1b8 Mon Sep 17 00:00:00 2001
From: ledouxm
Date: Wed, 26 Jun 2024 13:46:47 +0200
Subject: [PATCH 11/29] feat: add applicant email and prefill recipients
---
db/migrations/901-add_applicant_mail.sql | 1 +
package.json | 4 +-
packages/electric-client/package.json | 2 +-
packages/electric-client/prisma/schema.prisma | 11 +
.../src/generated/client/index.ts | 45 +-
.../src/generated/client/migrations.ts | 19 +
.../src/generated/client/pg-migrations.ts | 25 +
.../src/generated/client/prismaClient.d.ts | 34 +-
.../src/generated/typebox/index.ts | 2 +
.../src/generated/typebox/report.ts | 2 +
.../src/generated/typebox/reportInput.ts | 2 +
.../generated/typebox/service_instructeurs.ts | 12 +
.../typebox/service_instructeursInput.ts | 14 +
.../src/generated/typebox/user.ts | 2 +
.../src/generated/typebox/userInput.ts | 2 +
packages/frontend/package.json | 2 +-
packages/frontend/src/features/InfoForm.tsx | 35 +-
.../frontend/src/routes/pdf.$reportId.tsx | 80 +-
pnpm-lock.yaml | 28 +-
src/generated/client/index.ts | 2802 -----------------
20 files changed, 252 insertions(+), 2872 deletions(-)
create mode 100644 db/migrations/901-add_applicant_mail.sql
create mode 100644 packages/electric-client/src/generated/typebox/service_instructeurs.ts
create mode 100644 packages/electric-client/src/generated/typebox/service_instructeursInput.ts
delete mode 100644 src/generated/client/index.ts
diff --git a/db/migrations/901-add_applicant_mail.sql b/db/migrations/901-add_applicant_mail.sql
new file mode 100644
index 00000000..609cd21b
--- /dev/null
+++ b/db/migrations/901-add_applicant_mail.sql
@@ -0,0 +1 @@
+ALTER TABLE "report" ADD COLUMN "applicantEmail" TEXT;
\ No newline at end of file
diff --git a/package.json b/package.json
index 6e88e47d..6b1f39e0 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
"db:migrate": "pnpm db:create",
"electric:up": "pnpm electric-sql with-config \"pnpm pg-migrations apply --database {{ELECTRIC_PROXY}} --ignore-error migration_file_edited --directory ./db/migrations\"",
"show-config": "pnpm electric-sql show-config",
- "electric:migrate": "pnpm electric:up && pnpm electric-client generate:front && pnpm electric-client generate:back && pnpm client:generate",
+ "electric:migrate": "pnpm electric:up && pnpm electric-client generate:front",
"client:json": "pnpm backend dev --create-only",
"client:ts": "typed-openapi ./packages/backend/openapi.json --output ./packages/frontend/src/api.gen.ts",
"client:generate": "pnpm client:json && pnpm client:ts",
@@ -27,7 +27,7 @@
"@pandabox/prettier-plugin": "^0.1.0",
"@playwright/test": "^1.43.0",
"@types/node": "^20.11.28",
- "electric-sql": "^0.12.0",
+ "electric-sql": "^0.12.1",
"prettier": "^3.2.5",
"prisma": "^4.8.1",
"typed-openapi": "^0.4.1"
diff --git a/packages/electric-client/package.json b/packages/electric-client/package.json
index 77da553d..c203d2fd 100644
--- a/packages/electric-client/package.json
+++ b/packages/electric-client/package.json
@@ -41,7 +41,7 @@
"peerDependencies": {
"@prisma/client": "^4.8.1",
"@sinclair/typebox": "^0.32.20",
- "electric-sql": "^0.12.0",
+ "electric-sql": "^0.12.1",
"zod": "^3.22.4"
},
"devDependencies": {
diff --git a/packages/electric-client/prisma/schema.prisma b/packages/electric-client/prisma/schema.prisma
index 6bfea15c..43b797d3 100644
--- a/packages/electric-client/prisma/schema.prisma
+++ b/packages/electric-client/prisma/schema.prisma
@@ -56,6 +56,8 @@ model report {
pdf String?
disabled Boolean?
udap_id String?
+ redactedById String?
+ applicantEmail String?
user user @relation(fields: [createdBy], references: [id], onDelete: SetNull, onUpdate: NoAction)
}
@@ -110,3 +112,12 @@ model internal_user {
userId String
user user @relation(fields: [userId], references: [id], onDelete: Cascade, onUpdate: NoAction)
}
+
+model service_instructeurs {
+ id Int @id
+ full_name String
+ short_name String
+ email String?
+ tel String?
+ udap_id String?
+}
diff --git a/packages/electric-client/src/generated/client/index.ts b/packages/electric-client/src/generated/client/index.ts
index 83dfa100..dbe2e856 100644
--- a/packages/electric-client/src/generated/client/index.ts
+++ b/packages/electric-client/src/generated/client/index.ts
@@ -19,7 +19,7 @@ export const DelegationScalarFieldEnumSchema = z.enum(['createdBy','delegatedTo'
export const QueryModeSchema = z.enum(['default','insensitive']);
-export const ReportScalarFieldEnumSchema = z.enum(['id','title','projectDescription','redactedBy','meetDate','applicantName','applicantAddress','projectCadastralRef','projectSpaceType','decision','precisions','contacts','furtherInformation','createdBy','createdAt','serviceInstructeur','pdf','disabled','udap_id','redactedById']);
+export const ReportScalarFieldEnumSchema = z.enum(['id','title','projectDescription','redactedBy','meetDate','applicantName','applicantAddress','projectCadastralRef','projectSpaceType','decision','precisions','contacts','furtherInformation','createdBy','createdAt','serviceInstructeur','pdf','disabled','udap_id','redactedById','applicantEmail']);
export const Service_instructeursScalarFieldEnumSchema = z.enum(['id','full_name','short_name','email','tel','udap_id']);
@@ -83,6 +83,7 @@ export const ReportSchema = z.object({
disabled: z.boolean().nullable(),
udap_id: z.string().nullable(),
redactedById: z.string().nullable(),
+ applicantEmail: z.string().nullable(),
})
export type Report = z.infer
@@ -203,6 +204,7 @@ export const ReportSelectSchema: z.ZodType = z.object({
disabled: z.boolean().optional(),
udap_id: z.boolean().optional(),
redactedById: z.boolean().optional(),
+ applicantEmail: z.boolean().optional(),
user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(),
}).strict()
@@ -401,6 +403,7 @@ export const ReportWhereInputSchema: z.ZodType = z.obje
disabled: z.union([ z.lazy(() => BoolNullableFilterSchema),z.boolean() ]).optional().nullable(),
udap_id: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
redactedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
+ applicantEmail: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(),
}).strict();
@@ -425,6 +428,7 @@ export const ReportOrderByWithRelationInputSchema: z.ZodType SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
redactedById: z.lazy(() => SortOrderSchema).optional(),
+ applicantEmail: z.lazy(() => SortOrderSchema).optional(),
user: z.lazy(() => UserOrderByWithRelationInputSchema).optional()
}).strict();
@@ -453,6 +457,7 @@ export const ReportOrderByWithAggregationInputSchema: z.ZodType SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
redactedById: z.lazy(() => SortOrderSchema).optional(),
+ applicantEmail: z.lazy(() => SortOrderSchema).optional(),
_count: z.lazy(() => ReportCountOrderByAggregateInputSchema).optional(),
_avg: z.lazy(() => ReportAvgOrderByAggregateInputSchema).optional(),
_max: z.lazy(() => ReportMaxOrderByAggregateInputSchema).optional(),
@@ -484,6 +489,7 @@ export const ReportScalarWhereWithAggregatesInputSchema: z.ZodType BoolNullableWithAggregatesFilterSchema),z.boolean() ]).optional().nullable(),
udap_id: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
redactedById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
+ applicantEmail: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
}).strict();
export const Service_instructeursWhereInputSchema: z.ZodType = z.object({
@@ -763,6 +769,7 @@ export const ReportCreateInputSchema: z.ZodType = z.ob
disabled: z.boolean().optional().nullable(),
udap_id: z.string().optional().nullable(),
redactedById: z.string().optional().nullable(),
+ applicantEmail: z.string().optional().nullable(),
user: z.lazy(() => UserCreateNestedOneWithoutReportInputSchema)
}).strict();
@@ -786,7 +793,8 @@ export const ReportUncheckedCreateInputSchema: z.ZodType = z.object({
@@ -809,6 +817,7 @@ export const ReportUpdateInputSchema: z.ZodType = z.ob
disabled: z.union([ z.boolean(),z.lazy(() => NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
redactedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
+ applicantEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
user: z.lazy(() => UserUpdateOneRequiredWithoutReportNestedInputSchema).optional()
}).strict();
@@ -833,6 +842,7 @@ export const ReportUncheckedUpdateInputSchema: z.ZodType NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
redactedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
+ applicantEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
}).strict();
export const ReportCreateManyInputSchema: z.ZodType = z.object({
@@ -855,7 +865,8 @@ export const ReportCreateManyInputSchema: z.ZodType = z.object({
@@ -878,6 +889,7 @@ export const ReportUpdateManyMutationInputSchema: z.ZodType NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
redactedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
+ applicantEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
}).strict();
export const ReportUncheckedUpdateManyInputSchema: z.ZodType = z.object({
@@ -901,6 +913,7 @@ export const ReportUncheckedUpdateManyInputSchema: z.ZodType NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
redactedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
+ applicantEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
}).strict();
export const Service_instructeursCreateInputSchema: z.ZodType = z.object({
@@ -1293,7 +1306,8 @@ export const ReportCountOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(),
disabled: z.lazy(() => SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
- redactedById: z.lazy(() => SortOrderSchema).optional()
+ redactedById: z.lazy(() => SortOrderSchema).optional(),
+ applicantEmail: z.lazy(() => SortOrderSchema).optional()
}).strict();
export const ReportAvgOrderByAggregateInputSchema: z.ZodType = z.object({
@@ -1320,7 +1334,8 @@ export const ReportMaxOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(),
disabled: z.lazy(() => SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
- redactedById: z.lazy(() => SortOrderSchema).optional()
+ redactedById: z.lazy(() => SortOrderSchema).optional(),
+ applicantEmail: z.lazy(() => SortOrderSchema).optional()
}).strict();
export const ReportMinOrderByAggregateInputSchema: z.ZodType = z.object({
@@ -1343,7 +1358,8 @@ export const ReportMinOrderByAggregateInputSchema: z.ZodType SortOrderSchema).optional(),
disabled: z.lazy(() => SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
- redactedById: z.lazy(() => SortOrderSchema).optional()
+ redactedById: z.lazy(() => SortOrderSchema).optional(),
+ applicantEmail: z.lazy(() => SortOrderSchema).optional()
}).strict();
export const ReportSumOrderByAggregateInputSchema: z.ZodType = z.object({
@@ -2276,7 +2292,8 @@ export const ReportCreateWithoutUserInputSchema: z.ZodType = z.object({
@@ -2298,7 +2315,8 @@ export const ReportUncheckedCreateWithoutUserInputSchema: z.ZodType = z.object({
@@ -2428,6 +2446,7 @@ export const ReportScalarWhereInputSchema: z.ZodType BoolNullableFilterSchema),z.boolean() ]).optional().nullable(),
udap_id: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
redactedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
+ applicantEmail: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
}).strict();
export const UdapUpsertWithoutUserInputSchema: z.ZodType = z.object({
@@ -2520,7 +2539,8 @@ export const ReportCreateManyUserInputSchema: z.ZodType = z.object({
@@ -2567,6 +2587,7 @@ export const ReportUpdateWithoutUserInputSchema: z.ZodType NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
redactedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
+ applicantEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
}).strict();
export const ReportUncheckedUpdateWithoutUserInputSchema: z.ZodType = z.object({
@@ -2589,6 +2610,7 @@ export const ReportUncheckedUpdateWithoutUserInputSchema: z.ZodType NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
redactedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
+ applicantEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
}).strict();
export const ReportUncheckedUpdateManyWithoutReportInputSchema: z.ZodType = z.object({
@@ -2611,6 +2633,7 @@ export const ReportUncheckedUpdateManyWithoutReportInputSchema: z.ZodType NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
redactedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
+ applicantEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
}).strict();
/////////////////////////////////////////
@@ -3413,6 +3436,10 @@ export const tableSchemas = {
[
"redactedById",
"TEXT"
+ ],
+ [
+ "applicantEmail",
+ "TEXT"
]
]),
relations: [
diff --git a/packages/electric-client/src/generated/client/migrations.ts b/packages/electric-client/src/generated/client/migrations.ts
index 977ed691..af88632f 100644
--- a/packages/electric-client/src/generated/client/migrations.ts
+++ b/packages/electric-client/src/generated/client/migrations.ts
@@ -113,5 +113,24 @@ export default [
"CREATE TRIGGER compensation_update_main_report_createdBy_into_oplog\n AFTER UPDATE ON \"main\".\"report\"\n WHEN 1 = (SELECT flag from _electric_trigger_settings WHERE namespace = 'main' AND tablename = 'report') AND\n 1 = (SELECT value from _electric_meta WHERE key = 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'user', 'COMPENSATION', json_patch('{}', json_object('id', \"id\")), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"user\" WHERE \"id\" = new.\"createdBy\";\nEND;"
],
"version": "9"
+ },
+ {
+ "statements": [
+ "ALTER TABLE \"report\" ADD COLUMN \"applicantEmail\" TEXT;\n",
+ "INSERT OR IGNORE INTO _electric_trigger_settings (namespace, tablename, flag) VALUES ('main', 'report', 1);",
+ "DROP TRIGGER IF EXISTS update_ensure_main_report_primarykey;",
+ "CREATE TRIGGER update_ensure_main_report_primarykey\n BEFORE UPDATE ON \"main\".\"report\"\nBEGIN\n SELECT\n CASE\n WHEN old.\"id\" != new.\"id\" THEN\n \t\tRAISE (ABORT, 'cannot change the value of column id as it belongs to the primary key')\n END;\nEND;",
+ "DROP TRIGGER IF EXISTS insert_main_report_into_oplog;",
+ "CREATE TRIGGER insert_main_report_into_oplog\n AFTER INSERT ON \"main\".\"report\"\n WHEN 1 = (SELECT flag from _electric_trigger_settings WHERE namespace = 'main' AND tablename = 'report')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'report', 'INSERT', json_patch('{}', json_object('id', new.\"id\")), json_object('applicantAddress', new.\"applicantAddress\", 'applicantEmail', new.\"applicantEmail\", 'applicantName', new.\"applicantName\", 'contacts', new.\"contacts\", 'createdAt', new.\"createdAt\", 'createdBy', new.\"createdBy\", 'decision', new.\"decision\", 'disabled', new.\"disabled\", 'furtherInformation', new.\"furtherInformation\", 'id', new.\"id\", 'meetDate', new.\"meetDate\", 'pdf', new.\"pdf\", 'precisions', new.\"precisions\", 'projectCadastralRef', new.\"projectCadastralRef\", 'projectDescription', new.\"projectDescription\", 'projectSpaceType', new.\"projectSpaceType\", 'redactedBy', new.\"redactedBy\", 'redactedById', new.\"redactedById\", 'serviceInstructeur', new.\"serviceInstructeur\", 'title', new.\"title\", 'udap_id', new.\"udap_id\"), NULL, NULL);\nEND;",
+ "DROP TRIGGER IF EXISTS update_main_report_into_oplog;",
+ "CREATE TRIGGER update_main_report_into_oplog\n AFTER UPDATE ON \"main\".\"report\"\n WHEN 1 = (SELECT flag from _electric_trigger_settings WHERE namespace = 'main' AND tablename = 'report')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'report', 'UPDATE', json_patch('{}', json_object('id', new.\"id\")), json_object('applicantAddress', new.\"applicantAddress\", 'applicantEmail', new.\"applicantEmail\", 'applicantName', new.\"applicantName\", 'contacts', new.\"contacts\", 'createdAt', new.\"createdAt\", 'createdBy', new.\"createdBy\", 'decision', new.\"decision\", 'disabled', new.\"disabled\", 'furtherInformation', new.\"furtherInformation\", 'id', new.\"id\", 'meetDate', new.\"meetDate\", 'pdf', new.\"pdf\", 'precisions', new.\"precisions\", 'projectCadastralRef', new.\"projectCadastralRef\", 'projectDescription', new.\"projectDescription\", 'projectSpaceType', new.\"projectSpaceType\", 'redactedBy', new.\"redactedBy\", 'redactedById', new.\"redactedById\", 'serviceInstructeur', new.\"serviceInstructeur\", 'title', new.\"title\", 'udap_id', new.\"udap_id\"), json_object('applicantAddress', old.\"applicantAddress\", 'applicantEmail', old.\"applicantEmail\", 'applicantName', old.\"applicantName\", 'contacts', old.\"contacts\", 'createdAt', old.\"createdAt\", 'createdBy', old.\"createdBy\", 'decision', old.\"decision\", 'disabled', old.\"disabled\", 'furtherInformation', old.\"furtherInformation\", 'id', old.\"id\", 'meetDate', old.\"meetDate\", 'pdf', old.\"pdf\", 'precisions', old.\"precisions\", 'projectCadastralRef', old.\"projectCadastralRef\", 'projectDescription', old.\"projectDescription\", 'projectSpaceType', old.\"projectSpaceType\", 'redactedBy', old.\"redactedBy\", 'redactedById', old.\"redactedById\", 'serviceInstructeur', old.\"serviceInstructeur\", 'title', old.\"title\", 'udap_id', old.\"udap_id\"), NULL);\nEND;",
+ "DROP TRIGGER IF EXISTS delete_main_report_into_oplog;",
+ "CREATE TRIGGER delete_main_report_into_oplog\n AFTER DELETE ON \"main\".\"report\"\n WHEN 1 = (SELECT flag from _electric_trigger_settings WHERE namespace = 'main' AND tablename = 'report')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n VALUES ('main', 'report', 'DELETE', json_patch('{}', json_object('id', old.\"id\")), NULL, json_object('applicantAddress', old.\"applicantAddress\", 'applicantEmail', old.\"applicantEmail\", 'applicantName', old.\"applicantName\", 'contacts', old.\"contacts\", 'createdAt', old.\"createdAt\", 'createdBy', old.\"createdBy\", 'decision', old.\"decision\", 'disabled', old.\"disabled\", 'furtherInformation', old.\"furtherInformation\", 'id', old.\"id\", 'meetDate', old.\"meetDate\", 'pdf', old.\"pdf\", 'precisions', old.\"precisions\", 'projectCadastralRef', old.\"projectCadastralRef\", 'projectDescription', old.\"projectDescription\", 'projectSpaceType', old.\"projectSpaceType\", 'redactedBy', old.\"redactedBy\", 'redactedById', old.\"redactedById\", 'serviceInstructeur', old.\"serviceInstructeur\", 'title', old.\"title\", 'udap_id', old.\"udap_id\"), NULL);\nEND;",
+ "DROP TRIGGER IF EXISTS compensation_insert_main_report_createdBy_into_oplog;",
+ "CREATE TRIGGER compensation_insert_main_report_createdBy_into_oplog\n AFTER INSERT ON \"main\".\"report\"\n WHEN 1 = (SELECT flag from _electric_trigger_settings WHERE namespace = 'main' AND tablename = 'report') AND\n 1 = (SELECT value from _electric_meta WHERE key = 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'user', 'COMPENSATION', json_patch('{}', json_object('id', \"id\")), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"user\" WHERE \"id\" = new.\"createdBy\";\nEND;",
+ "DROP TRIGGER IF EXISTS compensation_update_main_report_createdBy_into_oplog;",
+ "CREATE TRIGGER compensation_update_main_report_createdBy_into_oplog\n AFTER UPDATE ON \"main\".\"report\"\n WHEN 1 = (SELECT flag from _electric_trigger_settings WHERE namespace = 'main' AND tablename = 'report') AND\n 1 = (SELECT value from _electric_meta WHERE key = 'compensations')\nBEGIN\n INSERT INTO _electric_oplog (namespace, tablename, optype, primaryKey, newRow, oldRow, timestamp)\n SELECT 'main', 'user', 'COMPENSATION', json_patch('{}', json_object('id', \"id\")), json_object('id', \"id\"), NULL, NULL\n FROM \"main\".\"user\" WHERE \"id\" = new.\"createdBy\";\nEND;"
+ ],
+ "version": "901"
}
]
\ No newline at end of file
diff --git a/packages/electric-client/src/generated/client/pg-migrations.ts b/packages/electric-client/src/generated/client/pg-migrations.ts
index 5674f940..6160fd6a 100644
--- a/packages/electric-client/src/generated/client/pg-migrations.ts
+++ b/packages/electric-client/src/generated/client/pg-migrations.ts
@@ -151,5 +151,30 @@ export default [
"CREATE TRIGGER compensation_update_public_report_createdBy_into_oplog\n AFTER UPDATE ON \"public\".\"report\"\n FOR EACH ROW\n EXECUTE FUNCTION compensation_update_public_report_createdBy_into_oplog_function();"
],
"version": "9"
+ },
+ {
+ "statements": [
+ "ALTER TABLE \"report\" ADD COLUMN \"applicantEmail\" TEXT",
+ "INSERT INTO \"public\".\"_electric_trigger_settings\" (\"namespace\", \"tablename\", \"flag\")\n VALUES ('public', 'report', 1)\n ON CONFLICT DO NOTHING;",
+ "DROP TRIGGER IF EXISTS update_ensure_public_report_primarykey ON \"public\".\"report\";",
+ "CREATE OR REPLACE FUNCTION update_ensure_public_report_primarykey_function()\nRETURNS TRIGGER AS $$\nBEGIN\n IF OLD.\"id\" IS DISTINCT FROM NEW.\"id\" THEN\n RAISE EXCEPTION 'Cannot change the value of column id as it belongs to the primary key';\n END IF;\n RETURN NEW;\nEND;\n$$ LANGUAGE plpgsql;",
+ "CREATE TRIGGER update_ensure_public_report_primarykey\n BEFORE UPDATE ON \"public\".\"report\"\n FOR EACH ROW\n EXECUTE FUNCTION update_ensure_public_report_primarykey_function();",
+ "DROP TRIGGER IF EXISTS insert_public_report_into_oplog ON \"public\".\"report\";",
+ " CREATE OR REPLACE FUNCTION insert_public_report_into_oplog_function()\n RETURNS TRIGGER AS $$\n BEGIN\n DECLARE\n flag_value INTEGER;\n BEGIN\n -- Get the flag value from _electric_trigger_settings\n SELECT flag INTO flag_value FROM \"public\"._electric_trigger_settings WHERE namespace = 'public' AND tablename = 'report';\n\n IF flag_value = 1 THEN\n -- Insert into _electric_oplog\n INSERT INTO \"public\"._electric_oplog (namespace, tablename, optype, \"primaryKey\", \"newRow\", \"oldRow\", timestamp)\n VALUES (\n 'public',\n 'report',\n 'INSERT',\n json_strip_nulls(json_build_object('id', new.\"id\")),\n jsonb_build_object('applicantAddress', new.\"applicantAddress\", 'applicantEmail', new.\"applicantEmail\", 'applicantName', new.\"applicantName\", 'contacts', new.\"contacts\", 'createdAt', new.\"createdAt\", 'createdBy', new.\"createdBy\", 'decision', new.\"decision\", 'disabled', new.\"disabled\", 'furtherInformation', new.\"furtherInformation\", 'id', new.\"id\", 'meetDate', new.\"meetDate\", 'pdf', new.\"pdf\", 'precisions', new.\"precisions\", 'projectCadastralRef', new.\"projectCadastralRef\", 'projectDescription', new.\"projectDescription\", 'projectSpaceType', new.\"projectSpaceType\", 'redactedBy', new.\"redactedBy\", 'redactedById', new.\"redactedById\", 'serviceInstructeur', new.\"serviceInstructeur\", 'title', new.\"title\", 'udap_id', new.\"udap_id\"),\n NULL,\n NULL\n );\n END IF;\n\n RETURN NEW;\n END;\n END;\n $$ LANGUAGE plpgsql;",
+ "CREATE TRIGGER insert_public_report_into_oplog\n AFTER INSERT ON \"public\".\"report\"\n FOR EACH ROW\n EXECUTE FUNCTION insert_public_report_into_oplog_function();",
+ "DROP TRIGGER IF EXISTS update_public_report_into_oplog ON \"public\".\"report\";",
+ " CREATE OR REPLACE FUNCTION update_public_report_into_oplog_function()\n RETURNS TRIGGER AS $$\n BEGIN\n DECLARE\n flag_value INTEGER;\n BEGIN\n -- Get the flag value from _electric_trigger_settings\n SELECT flag INTO flag_value FROM \"public\"._electric_trigger_settings WHERE namespace = 'public' AND tablename = 'report';\n\n IF flag_value = 1 THEN\n -- Insert into _electric_oplog\n INSERT INTO \"public\"._electric_oplog (namespace, tablename, optype, \"primaryKey\", \"newRow\", \"oldRow\", timestamp)\n VALUES (\n 'public',\n 'report',\n 'UPDATE',\n json_strip_nulls(json_build_object('id', new.\"id\")),\n jsonb_build_object('applicantAddress', new.\"applicantAddress\", 'applicantEmail', new.\"applicantEmail\", 'applicantName', new.\"applicantName\", 'contacts', new.\"contacts\", 'createdAt', new.\"createdAt\", 'createdBy', new.\"createdBy\", 'decision', new.\"decision\", 'disabled', new.\"disabled\", 'furtherInformation', new.\"furtherInformation\", 'id', new.\"id\", 'meetDate', new.\"meetDate\", 'pdf', new.\"pdf\", 'precisions', new.\"precisions\", 'projectCadastralRef', new.\"projectCadastralRef\", 'projectDescription', new.\"projectDescription\", 'projectSpaceType', new.\"projectSpaceType\", 'redactedBy', new.\"redactedBy\", 'redactedById', new.\"redactedById\", 'serviceInstructeur', new.\"serviceInstructeur\", 'title', new.\"title\", 'udap_id', new.\"udap_id\"),\n jsonb_build_object('applicantAddress', old.\"applicantAddress\", 'applicantEmail', old.\"applicantEmail\", 'applicantName', old.\"applicantName\", 'contacts', old.\"contacts\", 'createdAt', old.\"createdAt\", 'createdBy', old.\"createdBy\", 'decision', old.\"decision\", 'disabled', old.\"disabled\", 'furtherInformation', old.\"furtherInformation\", 'id', old.\"id\", 'meetDate', old.\"meetDate\", 'pdf', old.\"pdf\", 'precisions', old.\"precisions\", 'projectCadastralRef', old.\"projectCadastralRef\", 'projectDescription', old.\"projectDescription\", 'projectSpaceType', old.\"projectSpaceType\", 'redactedBy', old.\"redactedBy\", 'redactedById', old.\"redactedById\", 'serviceInstructeur', old.\"serviceInstructeur\", 'title', old.\"title\", 'udap_id', old.\"udap_id\"),\n NULL\n );\n END IF;\n\n RETURN NEW;\n END;\n END;\n $$ LANGUAGE plpgsql;",
+ "CREATE TRIGGER update_public_report_into_oplog\n AFTER UPDATE ON \"public\".\"report\"\n FOR EACH ROW\n EXECUTE FUNCTION update_public_report_into_oplog_function();",
+ "DROP TRIGGER IF EXISTS delete_public_report_into_oplog ON \"public\".\"report\";",
+ " CREATE OR REPLACE FUNCTION delete_public_report_into_oplog_function()\n RETURNS TRIGGER AS $$\n BEGIN\n DECLARE\n flag_value INTEGER;\n BEGIN\n -- Get the flag value from _electric_trigger_settings\n SELECT flag INTO flag_value FROM \"public\"._electric_trigger_settings WHERE namespace = 'public' AND tablename = 'report';\n\n IF flag_value = 1 THEN\n -- Insert into _electric_oplog\n INSERT INTO \"public\"._electric_oplog (namespace, tablename, optype, \"primaryKey\", \"newRow\", \"oldRow\", timestamp)\n VALUES (\n 'public',\n 'report',\n 'DELETE',\n json_strip_nulls(json_build_object('id', old.\"id\")),\n NULL,\n jsonb_build_object('applicantAddress', old.\"applicantAddress\", 'applicantEmail', old.\"applicantEmail\", 'applicantName', old.\"applicantName\", 'contacts', old.\"contacts\", 'createdAt', old.\"createdAt\", 'createdBy', old.\"createdBy\", 'decision', old.\"decision\", 'disabled', old.\"disabled\", 'furtherInformation', old.\"furtherInformation\", 'id', old.\"id\", 'meetDate', old.\"meetDate\", 'pdf', old.\"pdf\", 'precisions', old.\"precisions\", 'projectCadastralRef', old.\"projectCadastralRef\", 'projectDescription', old.\"projectDescription\", 'projectSpaceType', old.\"projectSpaceType\", 'redactedBy', old.\"redactedBy\", 'redactedById', old.\"redactedById\", 'serviceInstructeur', old.\"serviceInstructeur\", 'title', old.\"title\", 'udap_id', old.\"udap_id\"),\n NULL\n );\n END IF;\n\n RETURN NEW;\n END;\n END;\n $$ LANGUAGE plpgsql;",
+ "CREATE TRIGGER delete_public_report_into_oplog\n AFTER DELETE ON \"public\".\"report\"\n FOR EACH ROW\n EXECUTE FUNCTION delete_public_report_into_oplog_function();",
+ "DROP TRIGGER IF EXISTS compensation_insert_public_report_createdBy_into_oplog ON \"public\".\"report\";",
+ " CREATE OR REPLACE FUNCTION compensation_insert_public_report_createdBy_into_oplog_function()\n RETURNS TRIGGER AS $$\n BEGIN\n DECLARE\n flag_value INTEGER;\n meta_value INTEGER;\n BEGIN\n SELECT flag INTO flag_value FROM \"public\"._electric_trigger_settings WHERE namespace = 'public' AND tablename = 'report';\n\n SELECT value INTO meta_value FROM \"public\"._electric_meta WHERE key = 'compensations';\n\n IF flag_value = 1 AND meta_value = 1 THEN\n INSERT INTO \"public\"._electric_oplog (namespace, tablename, optype, \"primaryKey\", \"newRow\", \"oldRow\", timestamp)\n SELECT\n 'public',\n 'user',\n 'COMPENSATION',\n json_strip_nulls(json_strip_nulls(json_build_object('id', \"id\"))),\n jsonb_build_object('id', \"id\"),\n NULL,\n NULL\n FROM \"public\".\"user\"\n WHERE \"id\" = NEW.\"createdBy\";\n END IF;\n\n RETURN NEW;\n END;\n END;\n $$ LANGUAGE plpgsql;",
+ "CREATE TRIGGER compensation_insert_public_report_createdBy_into_oplog\n AFTER INSERT ON \"public\".\"report\"\n FOR EACH ROW\n EXECUTE FUNCTION compensation_insert_public_report_createdBy_into_oplog_function();",
+ "DROP TRIGGER IF EXISTS compensation_update_public_report_createdBy_into_oplog ON \"public\".\"report\";",
+ " CREATE OR REPLACE FUNCTION compensation_update_public_report_createdBy_into_oplog_function()\n RETURNS TRIGGER AS $$\n BEGIN\n DECLARE\n flag_value INTEGER;\n meta_value INTEGER;\n BEGIN\n SELECT flag INTO flag_value FROM \"public\"._electric_trigger_settings WHERE namespace = 'public' AND tablename = 'report';\n\n SELECT value INTO meta_value FROM \"public\"._electric_meta WHERE key = 'compensations';\n\n IF flag_value = 1 AND meta_value = 1 THEN\n INSERT INTO \"public\"._electric_oplog (namespace, tablename, optype, \"primaryKey\", \"newRow\", \"oldRow\", timestamp)\n SELECT\n 'public',\n 'user',\n 'COMPENSATION',\n json_strip_nulls(json_strip_nulls(json_build_object('id', \"id\"))),\n jsonb_build_object('id', \"id\"),\n NULL,\n NULL\n FROM \"public\".\"user\"\n WHERE \"id\" = NEW.\"createdBy\";\n END IF;\n\n RETURN NEW;\n END;\n END;\n $$ LANGUAGE plpgsql;",
+ "CREATE TRIGGER compensation_update_public_report_createdBy_into_oplog\n AFTER UPDATE ON \"public\".\"report\"\n FOR EACH ROW\n EXECUTE FUNCTION compensation_update_public_report_createdBy_into_oplog_function();"
+ ],
+ "version": "901"
}
]
\ No newline at end of file
diff --git a/packages/electric-client/src/generated/client/prismaClient.d.ts b/packages/electric-client/src/generated/client/prismaClient.d.ts
index 0b2ee181..fc166f52 100644
--- a/packages/electric-client/src/generated/client/prismaClient.d.ts
+++ b/packages/electric-client/src/generated/client/prismaClient.d.ts
@@ -76,6 +76,7 @@ export type ReportPayload
composites: {}
}
@@ -3322,6 +3323,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled: boolean | null
udap_id: string | null
redactedById: string | null
+ applicantEmail: string | null
}
export type ReportMaxAggregateOutputType = {
@@ -3345,6 +3347,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled: boolean | null
udap_id: string | null
redactedById: string | null
+ applicantEmail: string | null
}
export type ReportCountAggregateOutputType = {
@@ -3368,6 +3371,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled: number
udap_id: number
redactedById: number
+ applicantEmail: number
_all: number
}
@@ -3401,6 +3405,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: true
udap_id?: true
redactedById?: true
+ applicantEmail?: true
}
export type ReportMaxAggregateInputType = {
@@ -3424,6 +3429,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: true
udap_id?: true
redactedById?: true
+ applicantEmail?: true
}
export type ReportCountAggregateInputType = {
@@ -3447,6 +3453,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: true
udap_id?: true
redactedById?: true
+ applicantEmail?: true
_all?: true
}
@@ -3558,6 +3565,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled: boolean | null
udap_id: string | null
redactedById: string | null
+ applicantEmail: string | null
_count: ReportCountAggregateOutputType | null
_avg: ReportAvgAggregateOutputType | null
_sum: ReportSumAggregateOutputType | null
@@ -3600,6 +3608,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: boolean
udap_id?: boolean
redactedById?: boolean
+ applicantEmail?: boolean
user?: boolean | UserArgs
}, ExtArgs["result"]["report"]>
@@ -3624,6 +3633,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: boolean
udap_id?: boolean
redactedById?: boolean
+ applicantEmail?: boolean
}
export type ReportInclude = {
@@ -7348,7 +7358,8 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
pdf: 'pdf',
disabled: 'disabled',
udap_id: 'udap_id',
- redactedById: 'redactedById'
+ redactedById: 'redactedById',
+ applicantEmail: 'applicantEmail'
};
export type ReportScalarFieldEnum = (typeof ReportScalarFieldEnum)[keyof typeof ReportScalarFieldEnum]
@@ -7525,6 +7536,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: BoolNullableFilter | boolean | null
udap_id?: StringNullableFilter | string | null
redactedById?: StringNullableFilter | string | null
+ applicantEmail?: StringNullableFilter | string | null
user?: XOR
}
@@ -7549,6 +7561,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: SortOrderInput | SortOrder
udap_id?: SortOrderInput | SortOrder
redactedById?: SortOrderInput | SortOrder
+ applicantEmail?: SortOrderInput | SortOrder
user?: UserOrderByWithRelationInput
}
@@ -7577,6 +7590,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: SortOrderInput | SortOrder
udap_id?: SortOrderInput | SortOrder
redactedById?: SortOrderInput | SortOrder
+ applicantEmail?: SortOrderInput | SortOrder
_count?: ReportCountOrderByAggregateInput
_avg?: ReportAvgOrderByAggregateInput
_max?: ReportMaxOrderByAggregateInput
@@ -7608,6 +7622,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: BoolNullableWithAggregatesFilter | boolean | null
udap_id?: StringNullableWithAggregatesFilter | string | null
redactedById?: StringNullableWithAggregatesFilter | string | null
+ applicantEmail?: StringNullableWithAggregatesFilter | string | null
}
export type Service_instructeursWhereInput = {
@@ -7888,6 +7903,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: boolean | null
udap_id?: string | null
redactedById?: string | null
+ applicantEmail?: string | null
user: UserCreateNestedOneWithoutReportInput
}
@@ -7912,6 +7928,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: boolean | null
udap_id?: string | null
redactedById?: string | null
+ applicantEmail?: string | null
}
export type ReportUpdateInput = {
@@ -7934,6 +7951,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
udap_id?: NullableStringFieldUpdateOperationsInput | string | null
redactedById?: NullableStringFieldUpdateOperationsInput | string | null
+ applicantEmail?: NullableStringFieldUpdateOperationsInput | string | null
user?: UserUpdateOneRequiredWithoutReportNestedInput
}
@@ -7958,6 +7976,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
udap_id?: NullableStringFieldUpdateOperationsInput | string | null
redactedById?: NullableStringFieldUpdateOperationsInput | string | null
+ applicantEmail?: NullableStringFieldUpdateOperationsInput | string | null
}
export type ReportCreateManyInput = {
@@ -7981,6 +8000,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: boolean | null
udap_id?: string | null
redactedById?: string | null
+ applicantEmail?: string | null
}
export type ReportUpdateManyMutationInput = {
@@ -8003,6 +8023,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
udap_id?: NullableStringFieldUpdateOperationsInput | string | null
redactedById?: NullableStringFieldUpdateOperationsInput | string | null
+ applicantEmail?: NullableStringFieldUpdateOperationsInput | string | null
}
export type ReportUncheckedUpdateManyInput = {
@@ -8026,6 +8047,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
udap_id?: NullableStringFieldUpdateOperationsInput | string | null
redactedById?: NullableStringFieldUpdateOperationsInput | string | null
+ applicantEmail?: NullableStringFieldUpdateOperationsInput | string | null
}
export type Service_instructeursCreateInput = {
@@ -8424,6 +8446,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: SortOrder
udap_id?: SortOrder
redactedById?: SortOrder
+ applicantEmail?: SortOrder
}
export type ReportAvgOrderByAggregateInput = {
@@ -8451,6 +8474,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: SortOrder
udap_id?: SortOrder
redactedById?: SortOrder
+ applicantEmail?: SortOrder
}
export type ReportMinOrderByAggregateInput = {
@@ -8474,6 +8498,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: SortOrder
udap_id?: SortOrder
redactedById?: SortOrder
+ applicantEmail?: SortOrder
}
export type ReportSumOrderByAggregateInput = {
@@ -9407,6 +9432,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: boolean | null
udap_id?: string | null
redactedById?: string | null
+ applicantEmail?: string | null
}
export type ReportUncheckedCreateWithoutUserInput = {
@@ -9429,6 +9455,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: boolean | null
udap_id?: string | null
redactedById?: string | null
+ applicantEmail?: string | null
}
export type ReportCreateOrConnectWithoutUserInput = {
@@ -9558,6 +9585,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: BoolNullableFilter | boolean | null
udap_id?: StringNullableFilter | string | null
redactedById?: StringNullableFilter | string | null
+ applicantEmail?: StringNullableFilter | string | null
}
export type UdapUpsertWithoutUserInput = {
@@ -9651,6 +9679,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: boolean | null
udap_id?: string | null
redactedById?: string | null
+ applicantEmail?: string | null
}
export type DelegationUpdateWithoutUser_delegation_createdByTouserInput = {
@@ -9697,6 +9726,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
udap_id?: NullableStringFieldUpdateOperationsInput | string | null
redactedById?: NullableStringFieldUpdateOperationsInput | string | null
+ applicantEmail?: NullableStringFieldUpdateOperationsInput | string | null
}
export type ReportUncheckedUpdateWithoutUserInput = {
@@ -9719,6 +9749,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
udap_id?: NullableStringFieldUpdateOperationsInput | string | null
redactedById?: NullableStringFieldUpdateOperationsInput | string | null
+ applicantEmail?: NullableStringFieldUpdateOperationsInput | string | null
}
export type ReportUncheckedUpdateManyWithoutReportInput = {
@@ -9741,6 +9772,7 @@ export type InputJsonValue = null | string | number | boolean | InputJsonObject
disabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
udap_id?: NullableStringFieldUpdateOperationsInput | string | null
redactedById?: NullableStringFieldUpdateOperationsInput | string | null
+ applicantEmail?: NullableStringFieldUpdateOperationsInput | string | null
}
diff --git a/packages/electric-client/src/generated/typebox/index.ts b/packages/electric-client/src/generated/typebox/index.ts
index eba9811c..86e800fc 100644
--- a/packages/electric-client/src/generated/typebox/index.ts
+++ b/packages/electric-client/src/generated/typebox/index.ts
@@ -16,3 +16,5 @@ export * from './whitelist';
export * from './whitelistInput';
export * from './internal_user';
export * from './internal_userInput';
+export * from './service_instructeurs';
+export * from './service_instructeursInput';
diff --git a/packages/electric-client/src/generated/typebox/report.ts b/packages/electric-client/src/generated/typebox/report.ts
index a4c0ead6..3c7277eb 100644
--- a/packages/electric-client/src/generated/typebox/report.ts
+++ b/packages/electric-client/src/generated/typebox/report.ts
@@ -20,6 +20,8 @@ export const report = Type.Object({
pdf: Type.Optional(Type.String()),
disabled: Type.Optional(Type.Boolean()),
udap_id: Type.Optional(Type.String()),
+ redactedById: Type.Optional(Type.String()),
+ applicantEmail: Type.Optional(Type.String()),
user: Type.Object({
id: Type.String(),
name: Type.String(),
diff --git a/packages/electric-client/src/generated/typebox/reportInput.ts b/packages/electric-client/src/generated/typebox/reportInput.ts
index 159bb121..3061e52f 100644
--- a/packages/electric-client/src/generated/typebox/reportInput.ts
+++ b/packages/electric-client/src/generated/typebox/reportInput.ts
@@ -20,6 +20,8 @@ export const reportInput = Type.Object({
pdf: Type.Optional(Type.String()),
disabled: Type.Optional(Type.Boolean()),
udap_id: Type.Optional(Type.String()),
+ redactedById: Type.Optional(Type.String()),
+ applicantEmail: Type.Optional(Type.String()),
user: Type.Object({
id: Type.String(),
name: Type.String(),
diff --git a/packages/electric-client/src/generated/typebox/service_instructeurs.ts b/packages/electric-client/src/generated/typebox/service_instructeurs.ts
new file mode 100644
index 00000000..0c5e7960
--- /dev/null
+++ b/packages/electric-client/src/generated/typebox/service_instructeurs.ts
@@ -0,0 +1,12 @@
+import { Type, Static } from "@sinclair/typebox";
+
+export const service_instructeurs = Type.Object({
+ id: Type.Number(),
+ full_name: Type.String(),
+ short_name: Type.String(),
+ email: Type.Optional(Type.String()),
+ tel: Type.Optional(Type.String()),
+ udap_id: Type.Optional(Type.String()),
+});
+
+export type service_instructeursType = Static;
diff --git a/packages/electric-client/src/generated/typebox/service_instructeursInput.ts b/packages/electric-client/src/generated/typebox/service_instructeursInput.ts
new file mode 100644
index 00000000..aa13d295
--- /dev/null
+++ b/packages/electric-client/src/generated/typebox/service_instructeursInput.ts
@@ -0,0 +1,14 @@
+import { Type, Static } from "@sinclair/typebox";
+
+export const service_instructeursInput = Type.Object({
+ id: Type.Number(),
+ full_name: Type.String(),
+ short_name: Type.String(),
+ email: Type.Optional(Type.String()),
+ tel: Type.Optional(Type.String()),
+ udap_id: Type.Optional(Type.String()),
+});
+
+export type service_instructeursInputType = Static<
+ typeof service_instructeursInput
+>;
diff --git a/packages/electric-client/src/generated/typebox/user.ts b/packages/electric-client/src/generated/typebox/user.ts
index 4e03873b..1f150aa9 100644
--- a/packages/electric-client/src/generated/typebox/user.ts
+++ b/packages/electric-client/src/generated/typebox/user.ts
@@ -48,6 +48,8 @@ export const user = Type.Object({
pdf: Type.Optional(Type.String()),
disabled: Type.Optional(Type.Boolean()),
udap_id: Type.Optional(Type.String()),
+ redactedById: Type.Optional(Type.String()),
+ applicantEmail: Type.Optional(Type.String()),
})
),
udap: Type.Object({
diff --git a/packages/electric-client/src/generated/typebox/userInput.ts b/packages/electric-client/src/generated/typebox/userInput.ts
index 66905d75..669fb214 100644
--- a/packages/electric-client/src/generated/typebox/userInput.ts
+++ b/packages/electric-client/src/generated/typebox/userInput.ts
@@ -48,6 +48,8 @@ export const userInput = Type.Object({
pdf: Type.Optional(Type.String()),
disabled: Type.Optional(Type.Boolean()),
udap_id: Type.Optional(Type.String()),
+ redactedById: Type.Optional(Type.String()),
+ applicantEmail: Type.Optional(Type.String()),
})
),
udap: Type.Object({
diff --git a/packages/frontend/package.json b/packages/frontend/package.json
index 314ce251..7363043a 100644
--- a/packages/frontend/package.json
+++ b/packages/frontend/package.json
@@ -47,7 +47,7 @@
"@ungap/with-resolvers": "^0.1.0",
"@xstate/store": "^0.0.5",
"date-fns": "^3.6.0",
- "electric-sql": "^0.12.0",
+ "electric-sql": "^0.12.1",
"install": "^0.13.0",
"npm": "^10.5.0",
"ofetch": "^1.3.4",
diff --git a/packages/frontend/src/features/InfoForm.tsx b/packages/frontend/src/features/InfoForm.tsx
index 5718fd30..ccb1a60d 100644
--- a/packages/frontend/src/features/InfoForm.tsx
+++ b/packages/frontend/src/features/InfoForm.tsx
@@ -82,9 +82,9 @@ export const InfoForm = () => {
return (
-
+
-
+
+
+
+
+
{
textArea
nativeTextAreaProps={{ ...form.register("projectDescription"), rows: 5 }}
/>
-
+
{
className={css({
flex: {
base: "none",
- sm: 1,
+ lg: 1,
},
})}
>
{/* */}
-
+
-
+
diff --git a/packages/frontend/src/routes/pdf.$reportId.tsx b/packages/frontend/src/routes/pdf.$reportId.tsx
index 64928e0a..644a78b2 100644
--- a/packages/frontend/src/routes/pdf.$reportId.tsx
+++ b/packages/frontend/src/routes/pdf.$reportId.tsx
@@ -6,7 +6,7 @@ import { css } from "#styled-system/css";
import { Center, Flex, Stack, styled } from "#styled-system/jsx";
import Button from "@codegouvfr/react-dsfr/Button";
import Input from "@codegouvfr/react-dsfr/Input";
-import type { Report, Udap } from "@cr-vif/electric-client/frontend";
+import type { Report, Service_instructeurs, Udap } from "@cr-vif/electric-client/frontend";
import { ReportPDFDocument, ReportPDFDocumentProps, getReportHtmlString } from "@cr-vif/pdf";
import { usePdf } from "@mikecousins/react-pdf";
import { pdf } from "@react-pdf/renderer";
@@ -123,36 +123,39 @@ export const PDF = () => {
);
}
+
return (
-
-
- {getModeTitle(mode)}
- {report?.title ? ` | ${report?.title}` : ""}
-
- }
- reportId={report?.id}
- buttons={buttons}
- />
-
-
- {report && chipOptions?.length && isServiceInstructeurLoaded ? (
-
- ) : null}
-
-
-
+ {report ? (
+
+
+ {getModeTitle(mode)}
+ {report?.title ? ` | ${report?.title}` : ""}
+
+ }
+ reportId={report?.id}
+ buttons={buttons}
+ />
+
+
+ {report && chipOptions?.length && isServiceInstructeurLoaded ? (
+
+ ) : null}
+
+
+
+ ) : null}
);
@@ -161,11 +164,22 @@ export const PDF = () => {
const SendForm = ({
children,
generatePdf,
-}: PropsWithChildren<{ generatePdf: (args: { htmlString: string; recipients: string }) => void }>) => {
+ report,
+}: PropsWithChildren<{ report: Report; generatePdf: (args: { htmlString: string; recipients: string }) => void }>) => {
const { editor } = useContext(TextEditorContext);
const form = useForm({ defaultValues: { recipients: "" } });
+ useQuery({
+ queryKey: ["service-instructeur", report.serviceInstructeur, report.applicantEmail],
+ queryFn: async () => {
+ const recipents = await getBaseRecipients(report);
+ if (!form.getValues("recipients")) {
+ form.setValue("recipients", recipents ?? "");
+ }
+ },
+ });
+
const send = (values: { recipients: string }) => {
const recipients = values.recipients
.split(/,|\s|;/)
@@ -182,6 +196,14 @@ const SendForm = ({
);
};
+const getBaseRecipients = async (report: Report) => {
+ const serviceEmail = report.serviceInstructeur
+ ? (await db.service_instructeurs.findFirst({ where: { id: report.serviceInstructeur } }))?.email
+ : null;
+ const recipients = [serviceEmail, report.applicantEmail].filter(Boolean).join(", ");
+ return recipients;
+};
+
const getModeTitle = (mode: Mode) => {
switch (mode) {
case "edit":
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7298a4a0..a3ded0e3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -29,8 +29,8 @@ importers:
specifier: ^20.11.28
version: 20.12.3
electric-sql:
- specifier: ^0.12.0
- version: 0.12.0(pg@8.11.5)(prisma@4.8.1)(zod@3.21.1)
+ specifier: ^0.12.1
+ version: 0.12.1(pg@8.11.5)(prisma@4.8.1)(zod@3.21.1)
prettier:
specifier: ^3.2.5
version: 3.2.5
@@ -186,8 +186,8 @@ importers:
specifier: ^0.32.20
version: 0.32.20
electric-sql:
- specifier: ^0.12.0
- version: 0.12.0(pg@8.11.5)(prisma@4.8.1)(react-dom@18.2.0)(react@18.2.0)(vue@2.7.16)(wa-sqlite@0.9.13)(zod@3.22.4)
+ specifier: ^0.12.1
+ version: 0.12.1(pg@8.11.5)(prisma@4.8.1)(react-dom@18.2.0)(react@18.2.0)(vue@2.7.16)(wa-sqlite@0.9.13)(zod@3.22.4)
zod:
specifier: ^3.22.4
version: 3.22.4
@@ -295,8 +295,8 @@ importers:
specifier: ^3.6.0
version: 3.6.0
electric-sql:
- specifier: ^0.12.0
- version: 0.12.0(pg@8.11.5)(prisma@4.8.1)(react-dom@18.2.0)(react@18.2.0)(vue@2.7.16)(wa-sqlite@0.9.13)(zod@3.22.4)
+ specifier: ^0.12.1
+ version: 0.12.1(pg@8.11.5)(prisma@4.8.1)(react-dom@18.2.0)(react@18.2.0)(vue@2.7.16)(wa-sqlite@0.9.13)(zod@3.22.4)
install:
specifier: ^0.13.0
version: 0.13.0
@@ -8615,8 +8615,8 @@ packages:
is-windows: 1.0.2
dev: true
- /better-sqlite3@8.7.0:
- resolution: {integrity: sha512-99jZU4le+f3G6aIl6PmmV0cxUIWqKieHxsiF7G34CVFiE+/UabpYqkU0NJIkY/96mQKikHeBjtR27vFfs5JpEw==}
+ /better-sqlite3@11.0.0:
+ resolution: {integrity: sha512-1NnNhmT3EZTsKtofJlMox1jkMxdedILury74PwUbQBjWgo4tL4kf7uTAjU55mgQwjdzqakSTjkf+E1imrFwjnA==}
requiresBuild: true
dependencies:
bindings: 1.5.0
@@ -9907,8 +9907,8 @@ packages:
jake: 10.9.1
dev: true
- /electric-sql@0.12.0(pg@8.11.5)(prisma@4.8.1)(react-dom@18.2.0)(react@18.2.0)(vue@2.7.16)(wa-sqlite@0.9.13)(zod@3.22.4):
- resolution: {integrity: sha512-nM2aHRnsgUgIX885CY6uEUajw1eawxwILLV6taEeWe14ddfkZ6zSaj21KEietp6aSvDXWIpXdyMEP71wg/aDHA==}
+ /electric-sql@0.12.1(pg@8.11.5)(prisma@4.8.1)(react-dom@18.2.0)(react@18.2.0)(vue@2.7.16)(wa-sqlite@0.9.13)(zod@3.22.4):
+ resolution: {integrity: sha512-d9THXiZSIX+B255uJwR1HFsD3RjZcQrZHAFdmIQvFSGzIrEXVhreMrrCOB+CcbETFZg1ARdZEhGSe4MBXGC6/g==}
hasBin: true
peerDependencies:
'@capacitor-community/sqlite': '>= 5.6.2'
@@ -9960,7 +9960,7 @@ packages:
'@prisma/client': 4.8.1(prisma@4.8.1)
async-mutex: 0.4.1
base-64: 1.0.0
- better-sqlite3: 8.7.0
+ better-sqlite3: 11.0.0
commander: 11.1.0
cross-fetch: 3.1.8
decompress: 4.2.1
@@ -10004,8 +10004,8 @@ packages:
- utf-8-validate
dev: false
- /electric-sql@0.12.0(pg@8.11.5)(prisma@4.8.1)(zod@3.21.1):
- resolution: {integrity: sha512-nM2aHRnsgUgIX885CY6uEUajw1eawxwILLV6taEeWe14ddfkZ6zSaj21KEietp6aSvDXWIpXdyMEP71wg/aDHA==}
+ /electric-sql@0.12.1(pg@8.11.5)(prisma@4.8.1)(zod@3.21.1):
+ resolution: {integrity: sha512-d9THXiZSIX+B255uJwR1HFsD3RjZcQrZHAFdmIQvFSGzIrEXVhreMrrCOB+CcbETFZg1ARdZEhGSe4MBXGC6/g==}
hasBin: true
peerDependencies:
'@capacitor-community/sqlite': '>= 5.6.2'
@@ -10057,7 +10057,7 @@ packages:
'@prisma/client': 4.8.1(prisma@4.8.1)
async-mutex: 0.4.1
base-64: 1.0.0
- better-sqlite3: 8.7.0
+ better-sqlite3: 11.0.0
commander: 11.1.0
cross-fetch: 3.1.8
decompress: 4.2.1
diff --git a/src/generated/client/index.ts b/src/generated/client/index.ts
deleted file mode 100644
index ec90a25e..00000000
--- a/src/generated/client/index.ts
+++ /dev/null
@@ -1,2802 +0,0 @@
-import { z } from 'zod';
-import type { Prisma } from './prismaClient';
-import { type TableSchema, DbSchema, Relation, ElectricClient, type HKT } from 'electric-sql/client/model';
-import migrations from './migrations';
-
-/////////////////////////////////////////
-// HELPER FUNCTIONS
-/////////////////////////////////////////
-
-
-/////////////////////////////////////////
-// ENUMS
-/////////////////////////////////////////
-
-export const ChipScalarFieldEnumSchema = z.enum(['id','label','value']);
-
-export const ClauseScalarFieldEnumSchema = z.enum(['id','label','value']);
-
-export const QueryModeSchema = z.enum(['default','insensitive']);
-
-export const ReportScalarFieldEnumSchema = z.enum(['id','title','project_description','redacted_by','meet_date','applicant_name','applicant_address','project_cadastral_ref','project_space_type','decision','precisions','contacts','further_information','created_by_id','created_by_username','created_at','service_instructeur']);
-
-export const Report_to_chipScalarFieldEnumSchema = z.enum(['id','report_id','chip_id']);
-
-export const Report_to_clauseScalarFieldEnumSchema = z.enum(['id','report_id','clause_id']);
-
-export const SortOrderSchema = z.enum(['asc','desc']);
-
-export const TransactionIsolationLevelSchema = z.enum(['ReadUncommitted','ReadCommitted','RepeatableRead','Serializable']);
-/////////////////////////////////////////
-// MODELS
-/////////////////////////////////////////
-
-/////////////////////////////////////////
-// CHIP SCHEMA
-/////////////////////////////////////////
-
-export const ChipSchema = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string(),
-})
-
-export type Chip = z.infer
-
-/////////////////////////////////////////
-// CLAUSE SCHEMA
-/////////////////////////////////////////
-
-export const ClauseSchema = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string(),
-})
-
-export type Clause = z.infer
-
-/////////////////////////////////////////
-// REPORT SCHEMA
-/////////////////////////////////////////
-
-export const ReportSchema = z.object({
- id: z.string(),
- title: z.string().nullable(),
- project_description: z.string().nullable(),
- redacted_by: z.string().nullable(),
- meet_date: z.coerce.date().nullable(),
- applicant_name: z.string().nullable(),
- applicant_address: z.string().nullable(),
- project_cadastral_ref: z.string().nullable(),
- project_space_type: z.string().nullable(),
- decision: z.string().nullable(),
- precisions: z.string().nullable(),
- contacts: z.string().nullable(),
- further_information: z.string().nullable(),
- created_by_id: z.string(),
- created_by_username: z.string(),
- created_at: z.coerce.date(),
- service_instructeur: z.string().nullable(),
-})
-
-export type Report = z.infer
-
-/////////////////////////////////////////
-// REPORT TO CHIP SCHEMA
-/////////////////////////////////////////
-
-export const Report_to_chipSchema = z.object({
- id: z.string(),
- report_id: z.string(),
- chip_id: z.string(),
-})
-
-export type Report_to_chip = z.infer
-
-/////////////////////////////////////////
-// REPORT TO CLAUSE SCHEMA
-/////////////////////////////////////////
-
-export const Report_to_clauseSchema = z.object({
- id: z.string(),
- report_id: z.string(),
- clause_id: z.string(),
-})
-
-export type Report_to_clause = z.infer
-
-/////////////////////////////////////////
-// SELECT & INCLUDE
-/////////////////////////////////////////
-
-// CHIP
-//------------------------------------------------------
-
-export const ChipIncludeSchema: z.ZodType = z.object({
- report_to_chip: z.union([z.boolean(),z.lazy(() => Report_to_chipFindManyArgsSchema)]).optional(),
- _count: z.union([z.boolean(),z.lazy(() => ChipCountOutputTypeArgsSchema)]).optional(),
-}).strict()
-
-export const ChipArgsSchema: z.ZodType = z.object({
- select: z.lazy(() => ChipSelectSchema).optional(),
- include: z.lazy(() => ChipIncludeSchema).optional(),
-}).strict();
-
-export const ChipCountOutputTypeArgsSchema: z.ZodType = z.object({
- select: z.lazy(() => ChipCountOutputTypeSelectSchema).nullish(),
-}).strict();
-
-export const ChipCountOutputTypeSelectSchema: z.ZodType = z.object({
- report_to_chip: z.boolean().optional(),
-}).strict();
-
-export const ChipSelectSchema: z.ZodType = z.object({
- id: z.boolean().optional(),
- label: z.boolean().optional(),
- value: z.boolean().optional(),
- report_to_chip: z.union([z.boolean(),z.lazy(() => Report_to_chipFindManyArgsSchema)]).optional(),
- _count: z.union([z.boolean(),z.lazy(() => ChipCountOutputTypeArgsSchema)]).optional(),
-}).strict()
-
-// CLAUSE
-//------------------------------------------------------
-
-export const ClauseIncludeSchema: z.ZodType = z.object({
- report_to_clause: z.union([z.boolean(),z.lazy(() => Report_to_clauseFindManyArgsSchema)]).optional(),
- _count: z.union([z.boolean(),z.lazy(() => ClauseCountOutputTypeArgsSchema)]).optional(),
-}).strict()
-
-export const ClauseArgsSchema: z.ZodType = z.object({
- select: z.lazy(() => ClauseSelectSchema).optional(),
- include: z.lazy(() => ClauseIncludeSchema).optional(),
-}).strict();
-
-export const ClauseCountOutputTypeArgsSchema: z.ZodType = z.object({
- select: z.lazy(() => ClauseCountOutputTypeSelectSchema).nullish(),
-}).strict();
-
-export const ClauseCountOutputTypeSelectSchema: z.ZodType = z.object({
- report_to_clause: z.boolean().optional(),
-}).strict();
-
-export const ClauseSelectSchema: z.ZodType = z.object({
- id: z.boolean().optional(),
- label: z.boolean().optional(),
- value: z.boolean().optional(),
- report_to_clause: z.union([z.boolean(),z.lazy(() => Report_to_clauseFindManyArgsSchema)]).optional(),
- _count: z.union([z.boolean(),z.lazy(() => ClauseCountOutputTypeArgsSchema)]).optional(),
-}).strict()
-
-// REPORT
-//------------------------------------------------------
-
-export const ReportIncludeSchema: z.ZodType = z.object({
- report_to_chip: z.union([z.boolean(),z.lazy(() => Report_to_chipFindManyArgsSchema)]).optional(),
- report_to_clause: z.union([z.boolean(),z.lazy(() => Report_to_clauseFindManyArgsSchema)]).optional(),
- _count: z.union([z.boolean(),z.lazy(() => ReportCountOutputTypeArgsSchema)]).optional(),
-}).strict()
-
-export const ReportArgsSchema: z.ZodType = z.object({
- select: z.lazy(() => ReportSelectSchema).optional(),
- include: z.lazy(() => ReportIncludeSchema).optional(),
-}).strict();
-
-export const ReportCountOutputTypeArgsSchema: z.ZodType = z.object({
- select: z.lazy(() => ReportCountOutputTypeSelectSchema).nullish(),
-}).strict();
-
-export const ReportCountOutputTypeSelectSchema: z.ZodType = z.object({
- report_to_chip: z.boolean().optional(),
- report_to_clause: z.boolean().optional(),
-}).strict();
-
-export const ReportSelectSchema: z.ZodType = z.object({
- id: z.boolean().optional(),
- title: z.boolean().optional(),
- project_description: z.boolean().optional(),
- redacted_by: z.boolean().optional(),
- meet_date: z.boolean().optional(),
- applicant_name: z.boolean().optional(),
- applicant_address: z.boolean().optional(),
- project_cadastral_ref: z.boolean().optional(),
- project_space_type: z.boolean().optional(),
- decision: z.boolean().optional(),
- precisions: z.boolean().optional(),
- contacts: z.boolean().optional(),
- further_information: z.boolean().optional(),
- created_by_id: z.boolean().optional(),
- created_by_username: z.boolean().optional(),
- created_at: z.boolean().optional(),
- service_instructeur: z.boolean().optional(),
- report_to_chip: z.union([z.boolean(),z.lazy(() => Report_to_chipFindManyArgsSchema)]).optional(),
- report_to_clause: z.union([z.boolean(),z.lazy(() => Report_to_clauseFindManyArgsSchema)]).optional(),
- _count: z.union([z.boolean(),z.lazy(() => ReportCountOutputTypeArgsSchema)]).optional(),
-}).strict()
-
-// REPORT TO CHIP
-//------------------------------------------------------
-
-export const Report_to_chipIncludeSchema: z.ZodType = z.object({
- chip: z.union([z.boolean(),z.lazy(() => ChipArgsSchema)]).optional(),
- report: z.union([z.boolean(),z.lazy(() => ReportArgsSchema)]).optional(),
-}).strict()
-
-export const Report_to_chipArgsSchema: z.ZodType = z.object({
- select: z.lazy(() => Report_to_chipSelectSchema).optional(),
- include: z.lazy(() => Report_to_chipIncludeSchema).optional(),
-}).strict();
-
-export const Report_to_chipSelectSchema: z.ZodType = z.object({
- id: z.boolean().optional(),
- report_id: z.boolean().optional(),
- chip_id: z.boolean().optional(),
- chip: z.union([z.boolean(),z.lazy(() => ChipArgsSchema)]).optional(),
- report: z.union([z.boolean(),z.lazy(() => ReportArgsSchema)]).optional(),
-}).strict()
-
-// REPORT TO CLAUSE
-//------------------------------------------------------
-
-export const Report_to_clauseIncludeSchema: z.ZodType = z.object({
- clause: z.union([z.boolean(),z.lazy(() => ClauseArgsSchema)]).optional(),
- report: z.union([z.boolean(),z.lazy(() => ReportArgsSchema)]).optional(),
-}).strict()
-
-export const Report_to_clauseArgsSchema: z.ZodType = z.object({
- select: z.lazy(() => Report_to_clauseSelectSchema).optional(),
- include: z.lazy(() => Report_to_clauseIncludeSchema).optional(),
-}).strict();
-
-export const Report_to_clauseSelectSchema: z.ZodType = z.object({
- id: z.boolean().optional(),
- report_id: z.boolean().optional(),
- clause_id: z.boolean().optional(),
- clause: z.union([z.boolean(),z.lazy(() => ClauseArgsSchema)]).optional(),
- report: z.union([z.boolean(),z.lazy(() => ReportArgsSchema)]).optional(),
-}).strict()
-
-
-/////////////////////////////////////////
-// INPUT TYPES
-/////////////////////////////////////////
-
-export const ChipWhereInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => ChipWhereInputSchema),z.lazy(() => ChipWhereInputSchema).array() ]).optional(),
- OR: z.lazy(() => ChipWhereInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => ChipWhereInputSchema),z.lazy(() => ChipWhereInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- label: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- value: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- report_to_chip: z.lazy(() => Report_to_chipListRelationFilterSchema).optional()
-}).strict();
-
-export const ChipOrderByWithRelationInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- label: z.lazy(() => SortOrderSchema).optional(),
- value: z.lazy(() => SortOrderSchema).optional(),
- report_to_chip: z.lazy(() => Report_to_chipOrderByRelationAggregateInputSchema).optional()
-}).strict();
-
-export const ChipWhereUniqueInputSchema: z.ZodType = z.object({
- id: z.string().optional()
-}).strict();
-
-export const ChipOrderByWithAggregationInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- label: z.lazy(() => SortOrderSchema).optional(),
- value: z.lazy(() => SortOrderSchema).optional(),
- _count: z.lazy(() => ChipCountOrderByAggregateInputSchema).optional(),
- _max: z.lazy(() => ChipMaxOrderByAggregateInputSchema).optional(),
- _min: z.lazy(() => ChipMinOrderByAggregateInputSchema).optional()
-}).strict();
-
-export const ChipScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => ChipScalarWhereWithAggregatesInputSchema),z.lazy(() => ChipScalarWhereWithAggregatesInputSchema).array() ]).optional(),
- OR: z.lazy(() => ChipScalarWhereWithAggregatesInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => ChipScalarWhereWithAggregatesInputSchema),z.lazy(() => ChipScalarWhereWithAggregatesInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- label: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- value: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
-}).strict();
-
-export const ClauseWhereInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => ClauseWhereInputSchema),z.lazy(() => ClauseWhereInputSchema).array() ]).optional(),
- OR: z.lazy(() => ClauseWhereInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => ClauseWhereInputSchema),z.lazy(() => ClauseWhereInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- label: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- value: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseListRelationFilterSchema).optional()
-}).strict();
-
-export const ClauseOrderByWithRelationInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- label: z.lazy(() => SortOrderSchema).optional(),
- value: z.lazy(() => SortOrderSchema).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseOrderByRelationAggregateInputSchema).optional()
-}).strict();
-
-export const ClauseWhereUniqueInputSchema: z.ZodType = z.object({
- id: z.string().optional()
-}).strict();
-
-export const ClauseOrderByWithAggregationInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- label: z.lazy(() => SortOrderSchema).optional(),
- value: z.lazy(() => SortOrderSchema).optional(),
- _count: z.lazy(() => ClauseCountOrderByAggregateInputSchema).optional(),
- _max: z.lazy(() => ClauseMaxOrderByAggregateInputSchema).optional(),
- _min: z.lazy(() => ClauseMinOrderByAggregateInputSchema).optional()
-}).strict();
-
-export const ClauseScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => ClauseScalarWhereWithAggregatesInputSchema),z.lazy(() => ClauseScalarWhereWithAggregatesInputSchema).array() ]).optional(),
- OR: z.lazy(() => ClauseScalarWhereWithAggregatesInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => ClauseScalarWhereWithAggregatesInputSchema),z.lazy(() => ClauseScalarWhereWithAggregatesInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- label: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- value: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
-}).strict();
-
-export const ReportWhereInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => ReportWhereInputSchema),z.lazy(() => ReportWhereInputSchema).array() ]).optional(),
- OR: z.lazy(() => ReportWhereInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => ReportWhereInputSchema),z.lazy(() => ReportWhereInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- title: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- project_description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- redacted_by: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- meet_date: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(),
- applicant_name: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- applicant_address: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- project_cadastral_ref: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- project_space_type: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- decision: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- precisions: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- contacts: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- further_information: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- created_by_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- created_by_username: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- created_at: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(),
- service_instructeur: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(),
- report_to_chip: z.lazy(() => Report_to_chipListRelationFilterSchema).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseListRelationFilterSchema).optional()
-}).strict();
-
-export const ReportOrderByWithRelationInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- title: z.lazy(() => SortOrderSchema).optional(),
- project_description: z.lazy(() => SortOrderSchema).optional(),
- redacted_by: z.lazy(() => SortOrderSchema).optional(),
- meet_date: z.lazy(() => SortOrderSchema).optional(),
- applicant_name: z.lazy(() => SortOrderSchema).optional(),
- applicant_address: z.lazy(() => SortOrderSchema).optional(),
- project_cadastral_ref: z.lazy(() => SortOrderSchema).optional(),
- project_space_type: z.lazy(() => SortOrderSchema).optional(),
- decision: z.lazy(() => SortOrderSchema).optional(),
- precisions: z.lazy(() => SortOrderSchema).optional(),
- contacts: z.lazy(() => SortOrderSchema).optional(),
- further_information: z.lazy(() => SortOrderSchema).optional(),
- created_by_id: z.lazy(() => SortOrderSchema).optional(),
- created_by_username: z.lazy(() => SortOrderSchema).optional(),
- created_at: z.lazy(() => SortOrderSchema).optional(),
- service_instructeur: z.lazy(() => SortOrderSchema).optional(),
- report_to_chip: z.lazy(() => Report_to_chipOrderByRelationAggregateInputSchema).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseOrderByRelationAggregateInputSchema).optional()
-}).strict();
-
-export const ReportWhereUniqueInputSchema: z.ZodType = z.object({
- id: z.string().optional()
-}).strict();
-
-export const ReportOrderByWithAggregationInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- title: z.lazy(() => SortOrderSchema).optional(),
- project_description: z.lazy(() => SortOrderSchema).optional(),
- redacted_by: z.lazy(() => SortOrderSchema).optional(),
- meet_date: z.lazy(() => SortOrderSchema).optional(),
- applicant_name: z.lazy(() => SortOrderSchema).optional(),
- applicant_address: z.lazy(() => SortOrderSchema).optional(),
- project_cadastral_ref: z.lazy(() => SortOrderSchema).optional(),
- project_space_type: z.lazy(() => SortOrderSchema).optional(),
- decision: z.lazy(() => SortOrderSchema).optional(),
- precisions: z.lazy(() => SortOrderSchema).optional(),
- contacts: z.lazy(() => SortOrderSchema).optional(),
- further_information: z.lazy(() => SortOrderSchema).optional(),
- created_by_id: z.lazy(() => SortOrderSchema).optional(),
- created_by_username: z.lazy(() => SortOrderSchema).optional(),
- created_at: z.lazy(() => SortOrderSchema).optional(),
- service_instructeur: z.lazy(() => SortOrderSchema).optional(),
- _count: z.lazy(() => ReportCountOrderByAggregateInputSchema).optional(),
- _max: z.lazy(() => ReportMaxOrderByAggregateInputSchema).optional(),
- _min: z.lazy(() => ReportMinOrderByAggregateInputSchema).optional()
-}).strict();
-
-export const ReportScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => ReportScalarWhereWithAggregatesInputSchema),z.lazy(() => ReportScalarWhereWithAggregatesInputSchema).array() ]).optional(),
- OR: z.lazy(() => ReportScalarWhereWithAggregatesInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => ReportScalarWhereWithAggregatesInputSchema),z.lazy(() => ReportScalarWhereWithAggregatesInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- title: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- project_description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- redacted_by: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- meet_date: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(),
- applicant_name: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- applicant_address: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- project_cadastral_ref: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- project_space_type: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- decision: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- precisions: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- contacts: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- further_information: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
- created_by_id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- created_by_username: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- created_at: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(),
- service_instructeur: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
-}).strict();
-
-export const Report_to_chipWhereInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => Report_to_chipWhereInputSchema),z.lazy(() => Report_to_chipWhereInputSchema).array() ]).optional(),
- OR: z.lazy(() => Report_to_chipWhereInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => Report_to_chipWhereInputSchema),z.lazy(() => Report_to_chipWhereInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- report_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- chip_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- chip: z.union([ z.lazy(() => ChipRelationFilterSchema),z.lazy(() => ChipWhereInputSchema) ]).optional(),
- report: z.union([ z.lazy(() => ReportRelationFilterSchema),z.lazy(() => ReportWhereInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_chipOrderByWithRelationInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- report_id: z.lazy(() => SortOrderSchema).optional(),
- chip_id: z.lazy(() => SortOrderSchema).optional(),
- chip: z.lazy(() => ChipOrderByWithRelationInputSchema).optional(),
- report: z.lazy(() => ReportOrderByWithRelationInputSchema).optional()
-}).strict();
-
-export const Report_to_chipWhereUniqueInputSchema: z.ZodType = z.object({
- id: z.string().optional()
-}).strict();
-
-export const Report_to_chipOrderByWithAggregationInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- report_id: z.lazy(() => SortOrderSchema).optional(),
- chip_id: z.lazy(() => SortOrderSchema).optional(),
- _count: z.lazy(() => Report_to_chipCountOrderByAggregateInputSchema).optional(),
- _max: z.lazy(() => Report_to_chipMaxOrderByAggregateInputSchema).optional(),
- _min: z.lazy(() => Report_to_chipMinOrderByAggregateInputSchema).optional()
-}).strict();
-
-export const Report_to_chipScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => Report_to_chipScalarWhereWithAggregatesInputSchema),z.lazy(() => Report_to_chipScalarWhereWithAggregatesInputSchema).array() ]).optional(),
- OR: z.lazy(() => Report_to_chipScalarWhereWithAggregatesInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => Report_to_chipScalarWhereWithAggregatesInputSchema),z.lazy(() => Report_to_chipScalarWhereWithAggregatesInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- report_id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- chip_id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
-}).strict();
-
-export const Report_to_clauseWhereInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => Report_to_clauseWhereInputSchema),z.lazy(() => Report_to_clauseWhereInputSchema).array() ]).optional(),
- OR: z.lazy(() => Report_to_clauseWhereInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => Report_to_clauseWhereInputSchema),z.lazy(() => Report_to_clauseWhereInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- report_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- clause_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- clause: z.union([ z.lazy(() => ClauseRelationFilterSchema),z.lazy(() => ClauseWhereInputSchema) ]).optional(),
- report: z.union([ z.lazy(() => ReportRelationFilterSchema),z.lazy(() => ReportWhereInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_clauseOrderByWithRelationInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- report_id: z.lazy(() => SortOrderSchema).optional(),
- clause_id: z.lazy(() => SortOrderSchema).optional(),
- clause: z.lazy(() => ClauseOrderByWithRelationInputSchema).optional(),
- report: z.lazy(() => ReportOrderByWithRelationInputSchema).optional()
-}).strict();
-
-export const Report_to_clauseWhereUniqueInputSchema: z.ZodType = z.object({
- id: z.string().optional()
-}).strict();
-
-export const Report_to_clauseOrderByWithAggregationInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- report_id: z.lazy(() => SortOrderSchema).optional(),
- clause_id: z.lazy(() => SortOrderSchema).optional(),
- _count: z.lazy(() => Report_to_clauseCountOrderByAggregateInputSchema).optional(),
- _max: z.lazy(() => Report_to_clauseMaxOrderByAggregateInputSchema).optional(),
- _min: z.lazy(() => Report_to_clauseMinOrderByAggregateInputSchema).optional()
-}).strict();
-
-export const Report_to_clauseScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => Report_to_clauseScalarWhereWithAggregatesInputSchema),z.lazy(() => Report_to_clauseScalarWhereWithAggregatesInputSchema).array() ]).optional(),
- OR: z.lazy(() => Report_to_clauseScalarWhereWithAggregatesInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => Report_to_clauseScalarWhereWithAggregatesInputSchema),z.lazy(() => Report_to_clauseScalarWhereWithAggregatesInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- report_id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- clause_id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
-}).strict();
-
-export const ChipCreateInputSchema: z.ZodType = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string(),
- report_to_chip: z.lazy(() => Report_to_chipCreateNestedManyWithoutChipInputSchema).optional()
-}).strict();
-
-export const ChipUncheckedCreateInputSchema: z.ZodType = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string(),
- report_to_chip: z.lazy(() => Report_to_chipUncheckedCreateNestedManyWithoutChipInputSchema).optional()
-}).strict();
-
-export const ChipUpdateInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_to_chip: z.lazy(() => Report_to_chipUpdateManyWithoutChipNestedInputSchema).optional()
-}).strict();
-
-export const ChipUncheckedUpdateInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_to_chip: z.lazy(() => Report_to_chipUncheckedUpdateManyWithoutChipNestedInputSchema).optional()
-}).strict();
-
-export const ChipCreateManyInputSchema: z.ZodType = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string()
-}).strict();
-
-export const ChipUpdateManyMutationInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const ChipUncheckedUpdateManyInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const ClauseCreateInputSchema: z.ZodType = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string(),
- report_to_clause: z.lazy(() => Report_to_clauseCreateNestedManyWithoutClauseInputSchema).optional()
-}).strict();
-
-export const ClauseUncheckedCreateInputSchema: z.ZodType = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string(),
- report_to_clause: z.lazy(() => Report_to_clauseUncheckedCreateNestedManyWithoutClauseInputSchema).optional()
-}).strict();
-
-export const ClauseUpdateInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseUpdateManyWithoutClauseNestedInputSchema).optional()
-}).strict();
-
-export const ClauseUncheckedUpdateInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseUncheckedUpdateManyWithoutClauseNestedInputSchema).optional()
-}).strict();
-
-export const ClauseCreateManyInputSchema: z.ZodType = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string()
-}).strict();
-
-export const ClauseUpdateManyMutationInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const ClauseUncheckedUpdateManyInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const ReportCreateInputSchema: z.ZodType = z.object({
- id: z.string(),
- title: z.string().optional().nullable(),
- project_description: z.string().optional().nullable(),
- redacted_by: z.string().optional().nullable(),
- meet_date: z.coerce.date().optional().nullable(),
- applicant_name: z.string().optional().nullable(),
- applicant_address: z.string().optional().nullable(),
- project_cadastral_ref: z.string().optional().nullable(),
- project_space_type: z.string().optional().nullable(),
- decision: z.string().optional().nullable(),
- precisions: z.string().optional().nullable(),
- contacts: z.string().optional().nullable(),
- further_information: z.string().optional().nullable(),
- created_by_id: z.string(),
- created_by_username: z.string(),
- created_at: z.coerce.date(),
- service_instructeur: z.string().optional().nullable(),
- report_to_chip: z.lazy(() => Report_to_chipCreateNestedManyWithoutReportInputSchema).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseCreateNestedManyWithoutReportInputSchema).optional()
-}).strict();
-
-export const ReportUncheckedCreateInputSchema: z.ZodType = z.object({
- id: z.string(),
- title: z.string().optional().nullable(),
- project_description: z.string().optional().nullable(),
- redacted_by: z.string().optional().nullable(),
- meet_date: z.coerce.date().optional().nullable(),
- applicant_name: z.string().optional().nullable(),
- applicant_address: z.string().optional().nullable(),
- project_cadastral_ref: z.string().optional().nullable(),
- project_space_type: z.string().optional().nullable(),
- decision: z.string().optional().nullable(),
- precisions: z.string().optional().nullable(),
- contacts: z.string().optional().nullable(),
- further_information: z.string().optional().nullable(),
- created_by_id: z.string(),
- created_by_username: z.string(),
- created_at: z.coerce.date(),
- service_instructeur: z.string().optional().nullable(),
- report_to_chip: z.lazy(() => Report_to_chipUncheckedCreateNestedManyWithoutReportInputSchema).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseUncheckedCreateNestedManyWithoutReportInputSchema).optional()
-}).strict();
-
-export const ReportUpdateInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- title: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- redacted_by: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- meet_date: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_cadastral_ref: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_space_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- decision: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- precisions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- contacts: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- further_information: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- created_by_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_by_username: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_at: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
- service_instructeur: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- report_to_chip: z.lazy(() => Report_to_chipUpdateManyWithoutReportNestedInputSchema).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseUpdateManyWithoutReportNestedInputSchema).optional()
-}).strict();
-
-export const ReportUncheckedUpdateInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- title: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- redacted_by: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- meet_date: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_cadastral_ref: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_space_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- decision: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- precisions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- contacts: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- further_information: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- created_by_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_by_username: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_at: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
- service_instructeur: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- report_to_chip: z.lazy(() => Report_to_chipUncheckedUpdateManyWithoutReportNestedInputSchema).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseUncheckedUpdateManyWithoutReportNestedInputSchema).optional()
-}).strict();
-
-export const ReportCreateManyInputSchema: z.ZodType = z.object({
- id: z.string(),
- title: z.string().optional().nullable(),
- project_description: z.string().optional().nullable(),
- redacted_by: z.string().optional().nullable(),
- meet_date: z.coerce.date().optional().nullable(),
- applicant_name: z.string().optional().nullable(),
- applicant_address: z.string().optional().nullable(),
- project_cadastral_ref: z.string().optional().nullable(),
- project_space_type: z.string().optional().nullable(),
- decision: z.string().optional().nullable(),
- precisions: z.string().optional().nullable(),
- contacts: z.string().optional().nullable(),
- further_information: z.string().optional().nullable(),
- created_by_id: z.string(),
- created_by_username: z.string(),
- created_at: z.coerce.date(),
- service_instructeur: z.string().optional().nullable()
-}).strict();
-
-export const ReportUpdateManyMutationInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- title: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- redacted_by: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- meet_date: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_cadastral_ref: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_space_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- decision: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- precisions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- contacts: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- further_information: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- created_by_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_by_username: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_at: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
- service_instructeur: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
-}).strict();
-
-export const ReportUncheckedUpdateManyInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- title: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- redacted_by: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- meet_date: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_cadastral_ref: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_space_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- decision: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- precisions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- contacts: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- further_information: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- created_by_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_by_username: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_at: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
- service_instructeur: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
-}).strict();
-
-export const Report_to_chipCreateInputSchema: z.ZodType = z.object({
- id: z.string(),
- chip: z.lazy(() => ChipCreateNestedOneWithoutReport_to_chipInputSchema),
- report: z.lazy(() => ReportCreateNestedOneWithoutReport_to_chipInputSchema)
-}).strict();
-
-export const Report_to_chipUncheckedCreateInputSchema: z.ZodType = z.object({
- id: z.string(),
- report_id: z.string(),
- chip_id: z.string()
-}).strict();
-
-export const Report_to_chipUpdateInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- chip: z.lazy(() => ChipUpdateOneRequiredWithoutReport_to_chipNestedInputSchema).optional(),
- report: z.lazy(() => ReportUpdateOneRequiredWithoutReport_to_chipNestedInputSchema).optional()
-}).strict();
-
-export const Report_to_chipUncheckedUpdateInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- chip_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_chipCreateManyInputSchema: z.ZodType = z.object({
- id: z.string(),
- report_id: z.string(),
- chip_id: z.string()
-}).strict();
-
-export const Report_to_chipUpdateManyMutationInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_chipUncheckedUpdateManyInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- chip_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_clauseCreateInputSchema: z.ZodType = z.object({
- id: z.string(),
- clause: z.lazy(() => ClauseCreateNestedOneWithoutReport_to_clauseInputSchema),
- report: z.lazy(() => ReportCreateNestedOneWithoutReport_to_clauseInputSchema)
-}).strict();
-
-export const Report_to_clauseUncheckedCreateInputSchema: z.ZodType = z.object({
- id: z.string(),
- report_id: z.string(),
- clause_id: z.string()
-}).strict();
-
-export const Report_to_clauseUpdateInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- clause: z.lazy(() => ClauseUpdateOneRequiredWithoutReport_to_clauseNestedInputSchema).optional(),
- report: z.lazy(() => ReportUpdateOneRequiredWithoutReport_to_clauseNestedInputSchema).optional()
-}).strict();
-
-export const Report_to_clauseUncheckedUpdateInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- clause_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_clauseCreateManyInputSchema: z.ZodType = z.object({
- id: z.string(),
- report_id: z.string(),
- clause_id: z.string()
-}).strict();
-
-export const Report_to_clauseUpdateManyMutationInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_clauseUncheckedUpdateManyInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- clause_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const StringFilterSchema: z.ZodType = z.object({
- equals: z.string().optional(),
- in: z.string().array().optional(),
- notIn: z.string().array().optional(),
- lt: z.string().optional(),
- lte: z.string().optional(),
- gt: z.string().optional(),
- gte: z.string().optional(),
- contains: z.string().optional(),
- startsWith: z.string().optional(),
- endsWith: z.string().optional(),
- mode: z.lazy(() => QueryModeSchema).optional(),
- not: z.union([ z.string(),z.lazy(() => NestedStringFilterSchema) ]).optional(),
-}).strict();
-
-export const Report_to_chipListRelationFilterSchema: z.ZodType = z.object({
- every: z.lazy(() => Report_to_chipWhereInputSchema).optional(),
- some: z.lazy(() => Report_to_chipWhereInputSchema).optional(),
- none: z.lazy(() => Report_to_chipWhereInputSchema).optional()
-}).strict();
-
-export const Report_to_chipOrderByRelationAggregateInputSchema: z.ZodType = z.object({
- _count: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const ChipCountOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- label: z.lazy(() => SortOrderSchema).optional(),
- value: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const ChipMaxOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- label: z.lazy(() => SortOrderSchema).optional(),
- value: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const ChipMinOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- label: z.lazy(() => SortOrderSchema).optional(),
- value: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const StringWithAggregatesFilterSchema: z.ZodType = z.object({
- equals: z.string().optional(),
- in: z.string().array().optional(),
- notIn: z.string().array().optional(),
- lt: z.string().optional(),
- lte: z.string().optional(),
- gt: z.string().optional(),
- gte: z.string().optional(),
- contains: z.string().optional(),
- startsWith: z.string().optional(),
- endsWith: z.string().optional(),
- mode: z.lazy(() => QueryModeSchema).optional(),
- not: z.union([ z.string(),z.lazy(() => NestedStringWithAggregatesFilterSchema) ]).optional(),
- _count: z.lazy(() => NestedIntFilterSchema).optional(),
- _min: z.lazy(() => NestedStringFilterSchema).optional(),
- _max: z.lazy(() => NestedStringFilterSchema).optional()
-}).strict();
-
-export const Report_to_clauseListRelationFilterSchema: z.ZodType = z.object({
- every: z.lazy(() => Report_to_clauseWhereInputSchema).optional(),
- some: z.lazy(() => Report_to_clauseWhereInputSchema).optional(),
- none: z.lazy(() => Report_to_clauseWhereInputSchema).optional()
-}).strict();
-
-export const Report_to_clauseOrderByRelationAggregateInputSchema: z.ZodType = z.object({
- _count: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const ClauseCountOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- label: z.lazy(() => SortOrderSchema).optional(),
- value: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const ClauseMaxOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- label: z.lazy(() => SortOrderSchema).optional(),
- value: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const ClauseMinOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- label: z.lazy(() => SortOrderSchema).optional(),
- value: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const StringNullableFilterSchema: z.ZodType = z.object({
- equals: z.string().optional().nullable(),
- in: z.string().array().optional().nullable(),
- notIn: z.string().array().optional().nullable(),
- lt: z.string().optional(),
- lte: z.string().optional(),
- gt: z.string().optional(),
- gte: z.string().optional(),
- contains: z.string().optional(),
- startsWith: z.string().optional(),
- endsWith: z.string().optional(),
- mode: z.lazy(() => QueryModeSchema).optional(),
- not: z.union([ z.string(),z.lazy(() => NestedStringNullableFilterSchema) ]).optional().nullable(),
-}).strict();
-
-export const DateTimeNullableFilterSchema: z.ZodType = z.object({
- equals: z.coerce.date().optional().nullable(),
- in: z.coerce.date().array().optional().nullable(),
- notIn: z.coerce.date().array().optional().nullable(),
- lt: z.coerce.date().optional(),
- lte: z.coerce.date().optional(),
- gt: z.coerce.date().optional(),
- gte: z.coerce.date().optional(),
- not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableFilterSchema) ]).optional().nullable(),
-}).strict();
-
-export const DateTimeFilterSchema: z.ZodType = z.object({
- equals: z.coerce.date().optional(),
- in: z.coerce.date().array().optional(),
- notIn: z.coerce.date().array().optional(),
- lt: z.coerce.date().optional(),
- lte: z.coerce.date().optional(),
- gt: z.coerce.date().optional(),
- gte: z.coerce.date().optional(),
- not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeFilterSchema) ]).optional(),
-}).strict();
-
-export const ReportCountOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- title: z.lazy(() => SortOrderSchema).optional(),
- project_description: z.lazy(() => SortOrderSchema).optional(),
- redacted_by: z.lazy(() => SortOrderSchema).optional(),
- meet_date: z.lazy(() => SortOrderSchema).optional(),
- applicant_name: z.lazy(() => SortOrderSchema).optional(),
- applicant_address: z.lazy(() => SortOrderSchema).optional(),
- project_cadastral_ref: z.lazy(() => SortOrderSchema).optional(),
- project_space_type: z.lazy(() => SortOrderSchema).optional(),
- decision: z.lazy(() => SortOrderSchema).optional(),
- precisions: z.lazy(() => SortOrderSchema).optional(),
- contacts: z.lazy(() => SortOrderSchema).optional(),
- further_information: z.lazy(() => SortOrderSchema).optional(),
- created_by_id: z.lazy(() => SortOrderSchema).optional(),
- created_by_username: z.lazy(() => SortOrderSchema).optional(),
- created_at: z.lazy(() => SortOrderSchema).optional(),
- service_instructeur: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const ReportMaxOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- title: z.lazy(() => SortOrderSchema).optional(),
- project_description: z.lazy(() => SortOrderSchema).optional(),
- redacted_by: z.lazy(() => SortOrderSchema).optional(),
- meet_date: z.lazy(() => SortOrderSchema).optional(),
- applicant_name: z.lazy(() => SortOrderSchema).optional(),
- applicant_address: z.lazy(() => SortOrderSchema).optional(),
- project_cadastral_ref: z.lazy(() => SortOrderSchema).optional(),
- project_space_type: z.lazy(() => SortOrderSchema).optional(),
- decision: z.lazy(() => SortOrderSchema).optional(),
- precisions: z.lazy(() => SortOrderSchema).optional(),
- contacts: z.lazy(() => SortOrderSchema).optional(),
- further_information: z.lazy(() => SortOrderSchema).optional(),
- created_by_id: z.lazy(() => SortOrderSchema).optional(),
- created_by_username: z.lazy(() => SortOrderSchema).optional(),
- created_at: z.lazy(() => SortOrderSchema).optional(),
- service_instructeur: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const ReportMinOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- title: z.lazy(() => SortOrderSchema).optional(),
- project_description: z.lazy(() => SortOrderSchema).optional(),
- redacted_by: z.lazy(() => SortOrderSchema).optional(),
- meet_date: z.lazy(() => SortOrderSchema).optional(),
- applicant_name: z.lazy(() => SortOrderSchema).optional(),
- applicant_address: z.lazy(() => SortOrderSchema).optional(),
- project_cadastral_ref: z.lazy(() => SortOrderSchema).optional(),
- project_space_type: z.lazy(() => SortOrderSchema).optional(),
- decision: z.lazy(() => SortOrderSchema).optional(),
- precisions: z.lazy(() => SortOrderSchema).optional(),
- contacts: z.lazy(() => SortOrderSchema).optional(),
- further_information: z.lazy(() => SortOrderSchema).optional(),
- created_by_id: z.lazy(() => SortOrderSchema).optional(),
- created_by_username: z.lazy(() => SortOrderSchema).optional(),
- created_at: z.lazy(() => SortOrderSchema).optional(),
- service_instructeur: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const StringNullableWithAggregatesFilterSchema: z.ZodType = z.object({
- equals: z.string().optional().nullable(),
- in: z.string().array().optional().nullable(),
- notIn: z.string().array().optional().nullable(),
- lt: z.string().optional(),
- lte: z.string().optional(),
- gt: z.string().optional(),
- gte: z.string().optional(),
- contains: z.string().optional(),
- startsWith: z.string().optional(),
- endsWith: z.string().optional(),
- mode: z.lazy(() => QueryModeSchema).optional(),
- not: z.union([ z.string(),z.lazy(() => NestedStringNullableWithAggregatesFilterSchema) ]).optional().nullable(),
- _count: z.lazy(() => NestedIntNullableFilterSchema).optional(),
- _min: z.lazy(() => NestedStringNullableFilterSchema).optional(),
- _max: z.lazy(() => NestedStringNullableFilterSchema).optional()
-}).strict();
-
-export const DateTimeNullableWithAggregatesFilterSchema: z.ZodType = z.object({
- equals: z.coerce.date().optional().nullable(),
- in: z.coerce.date().array().optional().nullable(),
- notIn: z.coerce.date().array().optional().nullable(),
- lt: z.coerce.date().optional(),
- lte: z.coerce.date().optional(),
- gt: z.coerce.date().optional(),
- gte: z.coerce.date().optional(),
- not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableWithAggregatesFilterSchema) ]).optional().nullable(),
- _count: z.lazy(() => NestedIntNullableFilterSchema).optional(),
- _min: z.lazy(() => NestedDateTimeNullableFilterSchema).optional(),
- _max: z.lazy(() => NestedDateTimeNullableFilterSchema).optional()
-}).strict();
-
-export const DateTimeWithAggregatesFilterSchema: z.ZodType = z.object({
- equals: z.coerce.date().optional(),
- in: z.coerce.date().array().optional(),
- notIn: z.coerce.date().array().optional(),
- lt: z.coerce.date().optional(),
- lte: z.coerce.date().optional(),
- gt: z.coerce.date().optional(),
- gte: z.coerce.date().optional(),
- not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeWithAggregatesFilterSchema) ]).optional(),
- _count: z.lazy(() => NestedIntFilterSchema).optional(),
- _min: z.lazy(() => NestedDateTimeFilterSchema).optional(),
- _max: z.lazy(() => NestedDateTimeFilterSchema).optional()
-}).strict();
-
-export const ChipRelationFilterSchema: z.ZodType = z.object({
- is: z.lazy(() => ChipWhereInputSchema).optional(),
- isNot: z.lazy(() => ChipWhereInputSchema).optional()
-}).strict();
-
-export const ReportRelationFilterSchema: z.ZodType = z.object({
- is: z.lazy(() => ReportWhereInputSchema).optional(),
- isNot: z.lazy(() => ReportWhereInputSchema).optional()
-}).strict();
-
-export const Report_to_chipCountOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- report_id: z.lazy(() => SortOrderSchema).optional(),
- chip_id: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const Report_to_chipMaxOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- report_id: z.lazy(() => SortOrderSchema).optional(),
- chip_id: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const Report_to_chipMinOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- report_id: z.lazy(() => SortOrderSchema).optional(),
- chip_id: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const ClauseRelationFilterSchema: z.ZodType = z.object({
- is: z.lazy(() => ClauseWhereInputSchema).optional(),
- isNot: z.lazy(() => ClauseWhereInputSchema).optional()
-}).strict();
-
-export const Report_to_clauseCountOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- report_id: z.lazy(() => SortOrderSchema).optional(),
- clause_id: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const Report_to_clauseMaxOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- report_id: z.lazy(() => SortOrderSchema).optional(),
- clause_id: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const Report_to_clauseMinOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- report_id: z.lazy(() => SortOrderSchema).optional(),
- clause_id: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const Report_to_chipCreateNestedManyWithoutChipInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutChipInputSchema),z.lazy(() => Report_to_chipCreateWithoutChipInputSchema).array(),z.lazy(() => Report_to_chipUncheckedCreateWithoutChipInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutChipInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_chipCreateOrConnectWithoutChipInputSchema),z.lazy(() => Report_to_chipCreateOrConnectWithoutChipInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_chipCreateManyChipInputEnvelopeSchema).optional(),
- connect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_chipUncheckedCreateNestedManyWithoutChipInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutChipInputSchema),z.lazy(() => Report_to_chipCreateWithoutChipInputSchema).array(),z.lazy(() => Report_to_chipUncheckedCreateWithoutChipInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutChipInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_chipCreateOrConnectWithoutChipInputSchema),z.lazy(() => Report_to_chipCreateOrConnectWithoutChipInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_chipCreateManyChipInputEnvelopeSchema).optional(),
- connect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
-}).strict();
-
-export const StringFieldUpdateOperationsInputSchema: z.ZodType = z.object({
- set: z.string().optional()
-}).strict();
-
-export const Report_to_chipUpdateManyWithoutChipNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutChipInputSchema),z.lazy(() => Report_to_chipCreateWithoutChipInputSchema).array(),z.lazy(() => Report_to_chipUncheckedCreateWithoutChipInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutChipInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_chipCreateOrConnectWithoutChipInputSchema),z.lazy(() => Report_to_chipCreateOrConnectWithoutChipInputSchema).array() ]).optional(),
- upsert: z.union([ z.lazy(() => Report_to_chipUpsertWithWhereUniqueWithoutChipInputSchema),z.lazy(() => Report_to_chipUpsertWithWhereUniqueWithoutChipInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_chipCreateManyChipInputEnvelopeSchema).optional(),
- set: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- disconnect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- delete: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- connect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- update: z.union([ z.lazy(() => Report_to_chipUpdateWithWhereUniqueWithoutChipInputSchema),z.lazy(() => Report_to_chipUpdateWithWhereUniqueWithoutChipInputSchema).array() ]).optional(),
- updateMany: z.union([ z.lazy(() => Report_to_chipUpdateManyWithWhereWithoutChipInputSchema),z.lazy(() => Report_to_chipUpdateManyWithWhereWithoutChipInputSchema).array() ]).optional(),
- deleteMany: z.union([ z.lazy(() => Report_to_chipScalarWhereInputSchema),z.lazy(() => Report_to_chipScalarWhereInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_chipUncheckedUpdateManyWithoutChipNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutChipInputSchema),z.lazy(() => Report_to_chipCreateWithoutChipInputSchema).array(),z.lazy(() => Report_to_chipUncheckedCreateWithoutChipInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutChipInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_chipCreateOrConnectWithoutChipInputSchema),z.lazy(() => Report_to_chipCreateOrConnectWithoutChipInputSchema).array() ]).optional(),
- upsert: z.union([ z.lazy(() => Report_to_chipUpsertWithWhereUniqueWithoutChipInputSchema),z.lazy(() => Report_to_chipUpsertWithWhereUniqueWithoutChipInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_chipCreateManyChipInputEnvelopeSchema).optional(),
- set: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- disconnect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- delete: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- connect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- update: z.union([ z.lazy(() => Report_to_chipUpdateWithWhereUniqueWithoutChipInputSchema),z.lazy(() => Report_to_chipUpdateWithWhereUniqueWithoutChipInputSchema).array() ]).optional(),
- updateMany: z.union([ z.lazy(() => Report_to_chipUpdateManyWithWhereWithoutChipInputSchema),z.lazy(() => Report_to_chipUpdateManyWithWhereWithoutChipInputSchema).array() ]).optional(),
- deleteMany: z.union([ z.lazy(() => Report_to_chipScalarWhereInputSchema),z.lazy(() => Report_to_chipScalarWhereInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_clauseCreateNestedManyWithoutClauseInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseCreateWithoutClauseInputSchema).array(),z.lazy(() => Report_to_clauseUncheckedCreateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutClauseInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_clauseCreateOrConnectWithoutClauseInputSchema),z.lazy(() => Report_to_clauseCreateOrConnectWithoutClauseInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_clauseCreateManyClauseInputEnvelopeSchema).optional(),
- connect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_clauseUncheckedCreateNestedManyWithoutClauseInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseCreateWithoutClauseInputSchema).array(),z.lazy(() => Report_to_clauseUncheckedCreateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutClauseInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_clauseCreateOrConnectWithoutClauseInputSchema),z.lazy(() => Report_to_clauseCreateOrConnectWithoutClauseInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_clauseCreateManyClauseInputEnvelopeSchema).optional(),
- connect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_clauseUpdateManyWithoutClauseNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseCreateWithoutClauseInputSchema).array(),z.lazy(() => Report_to_clauseUncheckedCreateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutClauseInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_clauseCreateOrConnectWithoutClauseInputSchema),z.lazy(() => Report_to_clauseCreateOrConnectWithoutClauseInputSchema).array() ]).optional(),
- upsert: z.union([ z.lazy(() => Report_to_clauseUpsertWithWhereUniqueWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUpsertWithWhereUniqueWithoutClauseInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_clauseCreateManyClauseInputEnvelopeSchema).optional(),
- set: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- disconnect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- delete: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- connect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- update: z.union([ z.lazy(() => Report_to_clauseUpdateWithWhereUniqueWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUpdateWithWhereUniqueWithoutClauseInputSchema).array() ]).optional(),
- updateMany: z.union([ z.lazy(() => Report_to_clauseUpdateManyWithWhereWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUpdateManyWithWhereWithoutClauseInputSchema).array() ]).optional(),
- deleteMany: z.union([ z.lazy(() => Report_to_clauseScalarWhereInputSchema),z.lazy(() => Report_to_clauseScalarWhereInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_clauseUncheckedUpdateManyWithoutClauseNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseCreateWithoutClauseInputSchema).array(),z.lazy(() => Report_to_clauseUncheckedCreateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutClauseInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_clauseCreateOrConnectWithoutClauseInputSchema),z.lazy(() => Report_to_clauseCreateOrConnectWithoutClauseInputSchema).array() ]).optional(),
- upsert: z.union([ z.lazy(() => Report_to_clauseUpsertWithWhereUniqueWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUpsertWithWhereUniqueWithoutClauseInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_clauseCreateManyClauseInputEnvelopeSchema).optional(),
- set: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- disconnect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- delete: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- connect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- update: z.union([ z.lazy(() => Report_to_clauseUpdateWithWhereUniqueWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUpdateWithWhereUniqueWithoutClauseInputSchema).array() ]).optional(),
- updateMany: z.union([ z.lazy(() => Report_to_clauseUpdateManyWithWhereWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUpdateManyWithWhereWithoutClauseInputSchema).array() ]).optional(),
- deleteMany: z.union([ z.lazy(() => Report_to_clauseScalarWhereInputSchema),z.lazy(() => Report_to_clauseScalarWhereInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_chipCreateNestedManyWithoutReportInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutReportInputSchema),z.lazy(() => Report_to_chipCreateWithoutReportInputSchema).array(),z.lazy(() => Report_to_chipUncheckedCreateWithoutReportInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutReportInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_chipCreateOrConnectWithoutReportInputSchema),z.lazy(() => Report_to_chipCreateOrConnectWithoutReportInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_chipCreateManyReportInputEnvelopeSchema).optional(),
- connect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_clauseCreateNestedManyWithoutReportInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutReportInputSchema),z.lazy(() => Report_to_clauseCreateWithoutReportInputSchema).array(),z.lazy(() => Report_to_clauseUncheckedCreateWithoutReportInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutReportInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_clauseCreateOrConnectWithoutReportInputSchema),z.lazy(() => Report_to_clauseCreateOrConnectWithoutReportInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_clauseCreateManyReportInputEnvelopeSchema).optional(),
- connect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_chipUncheckedCreateNestedManyWithoutReportInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutReportInputSchema),z.lazy(() => Report_to_chipCreateWithoutReportInputSchema).array(),z.lazy(() => Report_to_chipUncheckedCreateWithoutReportInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutReportInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_chipCreateOrConnectWithoutReportInputSchema),z.lazy(() => Report_to_chipCreateOrConnectWithoutReportInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_chipCreateManyReportInputEnvelopeSchema).optional(),
- connect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_clauseUncheckedCreateNestedManyWithoutReportInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutReportInputSchema),z.lazy(() => Report_to_clauseCreateWithoutReportInputSchema).array(),z.lazy(() => Report_to_clauseUncheckedCreateWithoutReportInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutReportInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_clauseCreateOrConnectWithoutReportInputSchema),z.lazy(() => Report_to_clauseCreateOrConnectWithoutReportInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_clauseCreateManyReportInputEnvelopeSchema).optional(),
- connect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
-}).strict();
-
-export const NullableStringFieldUpdateOperationsInputSchema: z.ZodType = z.object({
- set: z.string().optional().nullable()
-}).strict();
-
-export const NullableDateTimeFieldUpdateOperationsInputSchema: z.ZodType = z.object({
- set: z.coerce.date().optional().nullable()
-}).strict();
-
-export const DateTimeFieldUpdateOperationsInputSchema: z.ZodType = z.object({
- set: z.coerce.date().optional()
-}).strict();
-
-export const Report_to_chipUpdateManyWithoutReportNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutReportInputSchema),z.lazy(() => Report_to_chipCreateWithoutReportInputSchema).array(),z.lazy(() => Report_to_chipUncheckedCreateWithoutReportInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutReportInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_chipCreateOrConnectWithoutReportInputSchema),z.lazy(() => Report_to_chipCreateOrConnectWithoutReportInputSchema).array() ]).optional(),
- upsert: z.union([ z.lazy(() => Report_to_chipUpsertWithWhereUniqueWithoutReportInputSchema),z.lazy(() => Report_to_chipUpsertWithWhereUniqueWithoutReportInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_chipCreateManyReportInputEnvelopeSchema).optional(),
- set: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- disconnect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- delete: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- connect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- update: z.union([ z.lazy(() => Report_to_chipUpdateWithWhereUniqueWithoutReportInputSchema),z.lazy(() => Report_to_chipUpdateWithWhereUniqueWithoutReportInputSchema).array() ]).optional(),
- updateMany: z.union([ z.lazy(() => Report_to_chipUpdateManyWithWhereWithoutReportInputSchema),z.lazy(() => Report_to_chipUpdateManyWithWhereWithoutReportInputSchema).array() ]).optional(),
- deleteMany: z.union([ z.lazy(() => Report_to_chipScalarWhereInputSchema),z.lazy(() => Report_to_chipScalarWhereInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_clauseUpdateManyWithoutReportNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutReportInputSchema),z.lazy(() => Report_to_clauseCreateWithoutReportInputSchema).array(),z.lazy(() => Report_to_clauseUncheckedCreateWithoutReportInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutReportInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_clauseCreateOrConnectWithoutReportInputSchema),z.lazy(() => Report_to_clauseCreateOrConnectWithoutReportInputSchema).array() ]).optional(),
- upsert: z.union([ z.lazy(() => Report_to_clauseUpsertWithWhereUniqueWithoutReportInputSchema),z.lazy(() => Report_to_clauseUpsertWithWhereUniqueWithoutReportInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_clauseCreateManyReportInputEnvelopeSchema).optional(),
- set: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- disconnect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- delete: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- connect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- update: z.union([ z.lazy(() => Report_to_clauseUpdateWithWhereUniqueWithoutReportInputSchema),z.lazy(() => Report_to_clauseUpdateWithWhereUniqueWithoutReportInputSchema).array() ]).optional(),
- updateMany: z.union([ z.lazy(() => Report_to_clauseUpdateManyWithWhereWithoutReportInputSchema),z.lazy(() => Report_to_clauseUpdateManyWithWhereWithoutReportInputSchema).array() ]).optional(),
- deleteMany: z.union([ z.lazy(() => Report_to_clauseScalarWhereInputSchema),z.lazy(() => Report_to_clauseScalarWhereInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_chipUncheckedUpdateManyWithoutReportNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutReportInputSchema),z.lazy(() => Report_to_chipCreateWithoutReportInputSchema).array(),z.lazy(() => Report_to_chipUncheckedCreateWithoutReportInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutReportInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_chipCreateOrConnectWithoutReportInputSchema),z.lazy(() => Report_to_chipCreateOrConnectWithoutReportInputSchema).array() ]).optional(),
- upsert: z.union([ z.lazy(() => Report_to_chipUpsertWithWhereUniqueWithoutReportInputSchema),z.lazy(() => Report_to_chipUpsertWithWhereUniqueWithoutReportInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_chipCreateManyReportInputEnvelopeSchema).optional(),
- set: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- disconnect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- delete: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- connect: z.union([ z.lazy(() => Report_to_chipWhereUniqueInputSchema),z.lazy(() => Report_to_chipWhereUniqueInputSchema).array() ]).optional(),
- update: z.union([ z.lazy(() => Report_to_chipUpdateWithWhereUniqueWithoutReportInputSchema),z.lazy(() => Report_to_chipUpdateWithWhereUniqueWithoutReportInputSchema).array() ]).optional(),
- updateMany: z.union([ z.lazy(() => Report_to_chipUpdateManyWithWhereWithoutReportInputSchema),z.lazy(() => Report_to_chipUpdateManyWithWhereWithoutReportInputSchema).array() ]).optional(),
- deleteMany: z.union([ z.lazy(() => Report_to_chipScalarWhereInputSchema),z.lazy(() => Report_to_chipScalarWhereInputSchema).array() ]).optional(),
-}).strict();
-
-export const Report_to_clauseUncheckedUpdateManyWithoutReportNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutReportInputSchema),z.lazy(() => Report_to_clauseCreateWithoutReportInputSchema).array(),z.lazy(() => Report_to_clauseUncheckedCreateWithoutReportInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutReportInputSchema).array() ]).optional(),
- connectOrCreate: z.union([ z.lazy(() => Report_to_clauseCreateOrConnectWithoutReportInputSchema),z.lazy(() => Report_to_clauseCreateOrConnectWithoutReportInputSchema).array() ]).optional(),
- upsert: z.union([ z.lazy(() => Report_to_clauseUpsertWithWhereUniqueWithoutReportInputSchema),z.lazy(() => Report_to_clauseUpsertWithWhereUniqueWithoutReportInputSchema).array() ]).optional(),
- createMany: z.lazy(() => Report_to_clauseCreateManyReportInputEnvelopeSchema).optional(),
- set: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- disconnect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- delete: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- connect: z.union([ z.lazy(() => Report_to_clauseWhereUniqueInputSchema),z.lazy(() => Report_to_clauseWhereUniqueInputSchema).array() ]).optional(),
- update: z.union([ z.lazy(() => Report_to_clauseUpdateWithWhereUniqueWithoutReportInputSchema),z.lazy(() => Report_to_clauseUpdateWithWhereUniqueWithoutReportInputSchema).array() ]).optional(),
- updateMany: z.union([ z.lazy(() => Report_to_clauseUpdateManyWithWhereWithoutReportInputSchema),z.lazy(() => Report_to_clauseUpdateManyWithWhereWithoutReportInputSchema).array() ]).optional(),
- deleteMany: z.union([ z.lazy(() => Report_to_clauseScalarWhereInputSchema),z.lazy(() => Report_to_clauseScalarWhereInputSchema).array() ]).optional(),
-}).strict();
-
-export const ChipCreateNestedOneWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => ChipCreateWithoutReport_to_chipInputSchema),z.lazy(() => ChipUncheckedCreateWithoutReport_to_chipInputSchema) ]).optional(),
- connectOrCreate: z.lazy(() => ChipCreateOrConnectWithoutReport_to_chipInputSchema).optional(),
- connect: z.lazy(() => ChipWhereUniqueInputSchema).optional()
-}).strict();
-
-export const ReportCreateNestedOneWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => ReportCreateWithoutReport_to_chipInputSchema),z.lazy(() => ReportUncheckedCreateWithoutReport_to_chipInputSchema) ]).optional(),
- connectOrCreate: z.lazy(() => ReportCreateOrConnectWithoutReport_to_chipInputSchema).optional(),
- connect: z.lazy(() => ReportWhereUniqueInputSchema).optional()
-}).strict();
-
-export const ChipUpdateOneRequiredWithoutReport_to_chipNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => ChipCreateWithoutReport_to_chipInputSchema),z.lazy(() => ChipUncheckedCreateWithoutReport_to_chipInputSchema) ]).optional(),
- connectOrCreate: z.lazy(() => ChipCreateOrConnectWithoutReport_to_chipInputSchema).optional(),
- upsert: z.lazy(() => ChipUpsertWithoutReport_to_chipInputSchema).optional(),
- connect: z.lazy(() => ChipWhereUniqueInputSchema).optional(),
- update: z.union([ z.lazy(() => ChipUpdateWithoutReport_to_chipInputSchema),z.lazy(() => ChipUncheckedUpdateWithoutReport_to_chipInputSchema) ]).optional(),
-}).strict();
-
-export const ReportUpdateOneRequiredWithoutReport_to_chipNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => ReportCreateWithoutReport_to_chipInputSchema),z.lazy(() => ReportUncheckedCreateWithoutReport_to_chipInputSchema) ]).optional(),
- connectOrCreate: z.lazy(() => ReportCreateOrConnectWithoutReport_to_chipInputSchema).optional(),
- upsert: z.lazy(() => ReportUpsertWithoutReport_to_chipInputSchema).optional(),
- connect: z.lazy(() => ReportWhereUniqueInputSchema).optional(),
- update: z.union([ z.lazy(() => ReportUpdateWithoutReport_to_chipInputSchema),z.lazy(() => ReportUncheckedUpdateWithoutReport_to_chipInputSchema) ]).optional(),
-}).strict();
-
-export const ClauseCreateNestedOneWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => ClauseCreateWithoutReport_to_clauseInputSchema),z.lazy(() => ClauseUncheckedCreateWithoutReport_to_clauseInputSchema) ]).optional(),
- connectOrCreate: z.lazy(() => ClauseCreateOrConnectWithoutReport_to_clauseInputSchema).optional(),
- connect: z.lazy(() => ClauseWhereUniqueInputSchema).optional()
-}).strict();
-
-export const ReportCreateNestedOneWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => ReportCreateWithoutReport_to_clauseInputSchema),z.lazy(() => ReportUncheckedCreateWithoutReport_to_clauseInputSchema) ]).optional(),
- connectOrCreate: z.lazy(() => ReportCreateOrConnectWithoutReport_to_clauseInputSchema).optional(),
- connect: z.lazy(() => ReportWhereUniqueInputSchema).optional()
-}).strict();
-
-export const ClauseUpdateOneRequiredWithoutReport_to_clauseNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => ClauseCreateWithoutReport_to_clauseInputSchema),z.lazy(() => ClauseUncheckedCreateWithoutReport_to_clauseInputSchema) ]).optional(),
- connectOrCreate: z.lazy(() => ClauseCreateOrConnectWithoutReport_to_clauseInputSchema).optional(),
- upsert: z.lazy(() => ClauseUpsertWithoutReport_to_clauseInputSchema).optional(),
- connect: z.lazy(() => ClauseWhereUniqueInputSchema).optional(),
- update: z.union([ z.lazy(() => ClauseUpdateWithoutReport_to_clauseInputSchema),z.lazy(() => ClauseUncheckedUpdateWithoutReport_to_clauseInputSchema) ]).optional(),
-}).strict();
-
-export const ReportUpdateOneRequiredWithoutReport_to_clauseNestedInputSchema: z.ZodType = z.object({
- create: z.union([ z.lazy(() => ReportCreateWithoutReport_to_clauseInputSchema),z.lazy(() => ReportUncheckedCreateWithoutReport_to_clauseInputSchema) ]).optional(),
- connectOrCreate: z.lazy(() => ReportCreateOrConnectWithoutReport_to_clauseInputSchema).optional(),
- upsert: z.lazy(() => ReportUpsertWithoutReport_to_clauseInputSchema).optional(),
- connect: z.lazy(() => ReportWhereUniqueInputSchema).optional(),
- update: z.union([ z.lazy(() => ReportUpdateWithoutReport_to_clauseInputSchema),z.lazy(() => ReportUncheckedUpdateWithoutReport_to_clauseInputSchema) ]).optional(),
-}).strict();
-
-export const NestedStringFilterSchema: z.ZodType = z.object({
- equals: z.string().optional(),
- in: z.string().array().optional(),
- notIn: z.string().array().optional(),
- lt: z.string().optional(),
- lte: z.string().optional(),
- gt: z.string().optional(),
- gte: z.string().optional(),
- contains: z.string().optional(),
- startsWith: z.string().optional(),
- endsWith: z.string().optional(),
- not: z.union([ z.string(),z.lazy(() => NestedStringFilterSchema) ]).optional(),
-}).strict();
-
-export const NestedStringWithAggregatesFilterSchema: z.ZodType = z.object({
- equals: z.string().optional(),
- in: z.string().array().optional(),
- notIn: z.string().array().optional(),
- lt: z.string().optional(),
- lte: z.string().optional(),
- gt: z.string().optional(),
- gte: z.string().optional(),
- contains: z.string().optional(),
- startsWith: z.string().optional(),
- endsWith: z.string().optional(),
- not: z.union([ z.string(),z.lazy(() => NestedStringWithAggregatesFilterSchema) ]).optional(),
- _count: z.lazy(() => NestedIntFilterSchema).optional(),
- _min: z.lazy(() => NestedStringFilterSchema).optional(),
- _max: z.lazy(() => NestedStringFilterSchema).optional()
-}).strict();
-
-export const NestedIntFilterSchema: z.ZodType = z.object({
- equals: z.number().optional(),
- in: z.number().array().optional(),
- notIn: z.number().array().optional(),
- lt: z.number().optional(),
- lte: z.number().optional(),
- gt: z.number().optional(),
- gte: z.number().optional(),
- not: z.union([ z.number(),z.lazy(() => NestedIntFilterSchema) ]).optional(),
-}).strict();
-
-export const NestedStringNullableFilterSchema: z.ZodType = z.object({
- equals: z.string().optional().nullable(),
- in: z.string().array().optional().nullable(),
- notIn: z.string().array().optional().nullable(),
- lt: z.string().optional(),
- lte: z.string().optional(),
- gt: z.string().optional(),
- gte: z.string().optional(),
- contains: z.string().optional(),
- startsWith: z.string().optional(),
- endsWith: z.string().optional(),
- not: z.union([ z.string(),z.lazy(() => NestedStringNullableFilterSchema) ]).optional().nullable(),
-}).strict();
-
-export const NestedDateTimeNullableFilterSchema: z.ZodType = z.object({
- equals: z.coerce.date().optional().nullable(),
- in: z.coerce.date().array().optional().nullable(),
- notIn: z.coerce.date().array().optional().nullable(),
- lt: z.coerce.date().optional(),
- lte: z.coerce.date().optional(),
- gt: z.coerce.date().optional(),
- gte: z.coerce.date().optional(),
- not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableFilterSchema) ]).optional().nullable(),
-}).strict();
-
-export const NestedDateTimeFilterSchema: z.ZodType = z.object({
- equals: z.coerce.date().optional(),
- in: z.coerce.date().array().optional(),
- notIn: z.coerce.date().array().optional(),
- lt: z.coerce.date().optional(),
- lte: z.coerce.date().optional(),
- gt: z.coerce.date().optional(),
- gte: z.coerce.date().optional(),
- not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeFilterSchema) ]).optional(),
-}).strict();
-
-export const NestedStringNullableWithAggregatesFilterSchema: z.ZodType = z.object({
- equals: z.string().optional().nullable(),
- in: z.string().array().optional().nullable(),
- notIn: z.string().array().optional().nullable(),
- lt: z.string().optional(),
- lte: z.string().optional(),
- gt: z.string().optional(),
- gte: z.string().optional(),
- contains: z.string().optional(),
- startsWith: z.string().optional(),
- endsWith: z.string().optional(),
- not: z.union([ z.string(),z.lazy(() => NestedStringNullableWithAggregatesFilterSchema) ]).optional().nullable(),
- _count: z.lazy(() => NestedIntNullableFilterSchema).optional(),
- _min: z.lazy(() => NestedStringNullableFilterSchema).optional(),
- _max: z.lazy(() => NestedStringNullableFilterSchema).optional()
-}).strict();
-
-export const NestedIntNullableFilterSchema: z.ZodType = z.object({
- equals: z.number().optional().nullable(),
- in: z.number().array().optional().nullable(),
- notIn: z.number().array().optional().nullable(),
- lt: z.number().optional(),
- lte: z.number().optional(),
- gt: z.number().optional(),
- gte: z.number().optional(),
- not: z.union([ z.number(),z.lazy(() => NestedIntNullableFilterSchema) ]).optional().nullable(),
-}).strict();
-
-export const NestedDateTimeNullableWithAggregatesFilterSchema: z.ZodType = z.object({
- equals: z.coerce.date().optional().nullable(),
- in: z.coerce.date().array().optional().nullable(),
- notIn: z.coerce.date().array().optional().nullable(),
- lt: z.coerce.date().optional(),
- lte: z.coerce.date().optional(),
- gt: z.coerce.date().optional(),
- gte: z.coerce.date().optional(),
- not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableWithAggregatesFilterSchema) ]).optional().nullable(),
- _count: z.lazy(() => NestedIntNullableFilterSchema).optional(),
- _min: z.lazy(() => NestedDateTimeNullableFilterSchema).optional(),
- _max: z.lazy(() => NestedDateTimeNullableFilterSchema).optional()
-}).strict();
-
-export const NestedDateTimeWithAggregatesFilterSchema: z.ZodType = z.object({
- equals: z.coerce.date().optional(),
- in: z.coerce.date().array().optional(),
- notIn: z.coerce.date().array().optional(),
- lt: z.coerce.date().optional(),
- lte: z.coerce.date().optional(),
- gt: z.coerce.date().optional(),
- gte: z.coerce.date().optional(),
- not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeWithAggregatesFilterSchema) ]).optional(),
- _count: z.lazy(() => NestedIntFilterSchema).optional(),
- _min: z.lazy(() => NestedDateTimeFilterSchema).optional(),
- _max: z.lazy(() => NestedDateTimeFilterSchema).optional()
-}).strict();
-
-export const Report_to_chipCreateWithoutChipInputSchema: z.ZodType = z.object({
- id: z.string(),
- report: z.lazy(() => ReportCreateNestedOneWithoutReport_to_chipInputSchema)
-}).strict();
-
-export const Report_to_chipUncheckedCreateWithoutChipInputSchema: z.ZodType = z.object({
- id: z.string(),
- report_id: z.string()
-}).strict();
-
-export const Report_to_chipCreateOrConnectWithoutChipInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_chipWhereUniqueInputSchema),
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutChipInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutChipInputSchema) ]),
-}).strict();
-
-export const Report_to_chipCreateManyChipInputEnvelopeSchema: z.ZodType = z.object({
- data: z.lazy(() => Report_to_chipCreateManyChipInputSchema).array(),
- skipDuplicates: z.boolean().optional()
-}).strict();
-
-export const Report_to_chipUpsertWithWhereUniqueWithoutChipInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_chipWhereUniqueInputSchema),
- update: z.union([ z.lazy(() => Report_to_chipUpdateWithoutChipInputSchema),z.lazy(() => Report_to_chipUncheckedUpdateWithoutChipInputSchema) ]),
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutChipInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutChipInputSchema) ]),
-}).strict();
-
-export const Report_to_chipUpdateWithWhereUniqueWithoutChipInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_chipWhereUniqueInputSchema),
- data: z.union([ z.lazy(() => Report_to_chipUpdateWithoutChipInputSchema),z.lazy(() => Report_to_chipUncheckedUpdateWithoutChipInputSchema) ]),
-}).strict();
-
-export const Report_to_chipUpdateManyWithWhereWithoutChipInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_chipScalarWhereInputSchema),
- data: z.union([ z.lazy(() => Report_to_chipUpdateManyMutationInputSchema),z.lazy(() => Report_to_chipUncheckedUpdateManyWithoutReport_to_chipInputSchema) ]),
-}).strict();
-
-export const Report_to_chipScalarWhereInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => Report_to_chipScalarWhereInputSchema),z.lazy(() => Report_to_chipScalarWhereInputSchema).array() ]).optional(),
- OR: z.lazy(() => Report_to_chipScalarWhereInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => Report_to_chipScalarWhereInputSchema),z.lazy(() => Report_to_chipScalarWhereInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- report_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- chip_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
-}).strict();
-
-export const Report_to_clauseCreateWithoutClauseInputSchema: z.ZodType = z.object({
- id: z.string(),
- report: z.lazy(() => ReportCreateNestedOneWithoutReport_to_clauseInputSchema)
-}).strict();
-
-export const Report_to_clauseUncheckedCreateWithoutClauseInputSchema: z.ZodType = z.object({
- id: z.string(),
- report_id: z.string()
-}).strict();
-
-export const Report_to_clauseCreateOrConnectWithoutClauseInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_clauseWhereUniqueInputSchema),
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutClauseInputSchema) ]),
-}).strict();
-
-export const Report_to_clauseCreateManyClauseInputEnvelopeSchema: z.ZodType = z.object({
- data: z.lazy(() => Report_to_clauseCreateManyClauseInputSchema).array(),
- skipDuplicates: z.boolean().optional()
-}).strict();
-
-export const Report_to_clauseUpsertWithWhereUniqueWithoutClauseInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_clauseWhereUniqueInputSchema),
- update: z.union([ z.lazy(() => Report_to_clauseUpdateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUncheckedUpdateWithoutClauseInputSchema) ]),
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutClauseInputSchema) ]),
-}).strict();
-
-export const Report_to_clauseUpdateWithWhereUniqueWithoutClauseInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_clauseWhereUniqueInputSchema),
- data: z.union([ z.lazy(() => Report_to_clauseUpdateWithoutClauseInputSchema),z.lazy(() => Report_to_clauseUncheckedUpdateWithoutClauseInputSchema) ]),
-}).strict();
-
-export const Report_to_clauseUpdateManyWithWhereWithoutClauseInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_clauseScalarWhereInputSchema),
- data: z.union([ z.lazy(() => Report_to_clauseUpdateManyMutationInputSchema),z.lazy(() => Report_to_clauseUncheckedUpdateManyWithoutReport_to_clauseInputSchema) ]),
-}).strict();
-
-export const Report_to_clauseScalarWhereInputSchema: z.ZodType = z.object({
- AND: z.union([ z.lazy(() => Report_to_clauseScalarWhereInputSchema),z.lazy(() => Report_to_clauseScalarWhereInputSchema).array() ]).optional(),
- OR: z.lazy(() => Report_to_clauseScalarWhereInputSchema).array().optional(),
- NOT: z.union([ z.lazy(() => Report_to_clauseScalarWhereInputSchema),z.lazy(() => Report_to_clauseScalarWhereInputSchema).array() ]).optional(),
- id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- report_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- clause_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
-}).strict();
-
-export const Report_to_chipCreateWithoutReportInputSchema: z.ZodType = z.object({
- id: z.string(),
- chip: z.lazy(() => ChipCreateNestedOneWithoutReport_to_chipInputSchema)
-}).strict();
-
-export const Report_to_chipUncheckedCreateWithoutReportInputSchema: z.ZodType = z.object({
- id: z.string(),
- chip_id: z.string()
-}).strict();
-
-export const Report_to_chipCreateOrConnectWithoutReportInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_chipWhereUniqueInputSchema),
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutReportInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutReportInputSchema) ]),
-}).strict();
-
-export const Report_to_chipCreateManyReportInputEnvelopeSchema: z.ZodType = z.object({
- data: z.lazy(() => Report_to_chipCreateManyReportInputSchema).array(),
- skipDuplicates: z.boolean().optional()
-}).strict();
-
-export const Report_to_clauseCreateWithoutReportInputSchema: z.ZodType = z.object({
- id: z.string(),
- clause: z.lazy(() => ClauseCreateNestedOneWithoutReport_to_clauseInputSchema)
-}).strict();
-
-export const Report_to_clauseUncheckedCreateWithoutReportInputSchema: z.ZodType = z.object({
- id: z.string(),
- clause_id: z.string()
-}).strict();
-
-export const Report_to_clauseCreateOrConnectWithoutReportInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_clauseWhereUniqueInputSchema),
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutReportInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutReportInputSchema) ]),
-}).strict();
-
-export const Report_to_clauseCreateManyReportInputEnvelopeSchema: z.ZodType = z.object({
- data: z.lazy(() => Report_to_clauseCreateManyReportInputSchema).array(),
- skipDuplicates: z.boolean().optional()
-}).strict();
-
-export const Report_to_chipUpsertWithWhereUniqueWithoutReportInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_chipWhereUniqueInputSchema),
- update: z.union([ z.lazy(() => Report_to_chipUpdateWithoutReportInputSchema),z.lazy(() => Report_to_chipUncheckedUpdateWithoutReportInputSchema) ]),
- create: z.union([ z.lazy(() => Report_to_chipCreateWithoutReportInputSchema),z.lazy(() => Report_to_chipUncheckedCreateWithoutReportInputSchema) ]),
-}).strict();
-
-export const Report_to_chipUpdateWithWhereUniqueWithoutReportInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_chipWhereUniqueInputSchema),
- data: z.union([ z.lazy(() => Report_to_chipUpdateWithoutReportInputSchema),z.lazy(() => Report_to_chipUncheckedUpdateWithoutReportInputSchema) ]),
-}).strict();
-
-export const Report_to_chipUpdateManyWithWhereWithoutReportInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_chipScalarWhereInputSchema),
- data: z.union([ z.lazy(() => Report_to_chipUpdateManyMutationInputSchema),z.lazy(() => Report_to_chipUncheckedUpdateManyWithoutReport_to_chipInputSchema) ]),
-}).strict();
-
-export const Report_to_clauseUpsertWithWhereUniqueWithoutReportInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_clauseWhereUniqueInputSchema),
- update: z.union([ z.lazy(() => Report_to_clauseUpdateWithoutReportInputSchema),z.lazy(() => Report_to_clauseUncheckedUpdateWithoutReportInputSchema) ]),
- create: z.union([ z.lazy(() => Report_to_clauseCreateWithoutReportInputSchema),z.lazy(() => Report_to_clauseUncheckedCreateWithoutReportInputSchema) ]),
-}).strict();
-
-export const Report_to_clauseUpdateWithWhereUniqueWithoutReportInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_clauseWhereUniqueInputSchema),
- data: z.union([ z.lazy(() => Report_to_clauseUpdateWithoutReportInputSchema),z.lazy(() => Report_to_clauseUncheckedUpdateWithoutReportInputSchema) ]),
-}).strict();
-
-export const Report_to_clauseUpdateManyWithWhereWithoutReportInputSchema: z.ZodType = z.object({
- where: z.lazy(() => Report_to_clauseScalarWhereInputSchema),
- data: z.union([ z.lazy(() => Report_to_clauseUpdateManyMutationInputSchema),z.lazy(() => Report_to_clauseUncheckedUpdateManyWithoutReport_to_clauseInputSchema) ]),
-}).strict();
-
-export const ChipCreateWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string()
-}).strict();
-
-export const ChipUncheckedCreateWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string()
-}).strict();
-
-export const ChipCreateOrConnectWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- where: z.lazy(() => ChipWhereUniqueInputSchema),
- create: z.union([ z.lazy(() => ChipCreateWithoutReport_to_chipInputSchema),z.lazy(() => ChipUncheckedCreateWithoutReport_to_chipInputSchema) ]),
-}).strict();
-
-export const ReportCreateWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- id: z.string(),
- title: z.string().optional().nullable(),
- project_description: z.string().optional().nullable(),
- redacted_by: z.string().optional().nullable(),
- meet_date: z.coerce.date().optional().nullable(),
- applicant_name: z.string().optional().nullable(),
- applicant_address: z.string().optional().nullable(),
- project_cadastral_ref: z.string().optional().nullable(),
- project_space_type: z.string().optional().nullable(),
- decision: z.string().optional().nullable(),
- precisions: z.string().optional().nullable(),
- contacts: z.string().optional().nullable(),
- further_information: z.string().optional().nullable(),
- created_by_id: z.string(),
- created_by_username: z.string(),
- created_at: z.coerce.date(),
- service_instructeur: z.string().optional().nullable(),
- report_to_clause: z.lazy(() => Report_to_clauseCreateNestedManyWithoutReportInputSchema).optional()
-}).strict();
-
-export const ReportUncheckedCreateWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- id: z.string(),
- title: z.string().optional().nullable(),
- project_description: z.string().optional().nullable(),
- redacted_by: z.string().optional().nullable(),
- meet_date: z.coerce.date().optional().nullable(),
- applicant_name: z.string().optional().nullable(),
- applicant_address: z.string().optional().nullable(),
- project_cadastral_ref: z.string().optional().nullable(),
- project_space_type: z.string().optional().nullable(),
- decision: z.string().optional().nullable(),
- precisions: z.string().optional().nullable(),
- contacts: z.string().optional().nullable(),
- further_information: z.string().optional().nullable(),
- created_by_id: z.string(),
- created_by_username: z.string(),
- created_at: z.coerce.date(),
- service_instructeur: z.string().optional().nullable(),
- report_to_clause: z.lazy(() => Report_to_clauseUncheckedCreateNestedManyWithoutReportInputSchema).optional()
-}).strict();
-
-export const ReportCreateOrConnectWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- where: z.lazy(() => ReportWhereUniqueInputSchema),
- create: z.union([ z.lazy(() => ReportCreateWithoutReport_to_chipInputSchema),z.lazy(() => ReportUncheckedCreateWithoutReport_to_chipInputSchema) ]),
-}).strict();
-
-export const ChipUpsertWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- update: z.union([ z.lazy(() => ChipUpdateWithoutReport_to_chipInputSchema),z.lazy(() => ChipUncheckedUpdateWithoutReport_to_chipInputSchema) ]),
- create: z.union([ z.lazy(() => ChipCreateWithoutReport_to_chipInputSchema),z.lazy(() => ChipUncheckedCreateWithoutReport_to_chipInputSchema) ]),
-}).strict();
-
-export const ChipUpdateWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const ChipUncheckedUpdateWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const ReportUpsertWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- update: z.union([ z.lazy(() => ReportUpdateWithoutReport_to_chipInputSchema),z.lazy(() => ReportUncheckedUpdateWithoutReport_to_chipInputSchema) ]),
- create: z.union([ z.lazy(() => ReportCreateWithoutReport_to_chipInputSchema),z.lazy(() => ReportUncheckedCreateWithoutReport_to_chipInputSchema) ]),
-}).strict();
-
-export const ReportUpdateWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- title: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- redacted_by: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- meet_date: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_cadastral_ref: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_space_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- decision: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- precisions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- contacts: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- further_information: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- created_by_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_by_username: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_at: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
- service_instructeur: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- report_to_clause: z.lazy(() => Report_to_clauseUpdateManyWithoutReportNestedInputSchema).optional()
-}).strict();
-
-export const ReportUncheckedUpdateWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- title: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- redacted_by: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- meet_date: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_cadastral_ref: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_space_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- decision: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- precisions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- contacts: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- further_information: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- created_by_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_by_username: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_at: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
- service_instructeur: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- report_to_clause: z.lazy(() => Report_to_clauseUncheckedUpdateManyWithoutReportNestedInputSchema).optional()
-}).strict();
-
-export const ClauseCreateWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string()
-}).strict();
-
-export const ClauseUncheckedCreateWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- id: z.string(),
- label: z.string(),
- value: z.string()
-}).strict();
-
-export const ClauseCreateOrConnectWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- where: z.lazy(() => ClauseWhereUniqueInputSchema),
- create: z.union([ z.lazy(() => ClauseCreateWithoutReport_to_clauseInputSchema),z.lazy(() => ClauseUncheckedCreateWithoutReport_to_clauseInputSchema) ]),
-}).strict();
-
-export const ReportCreateWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- id: z.string(),
- title: z.string().optional().nullable(),
- project_description: z.string().optional().nullable(),
- redacted_by: z.string().optional().nullable(),
- meet_date: z.coerce.date().optional().nullable(),
- applicant_name: z.string().optional().nullable(),
- applicant_address: z.string().optional().nullable(),
- project_cadastral_ref: z.string().optional().nullable(),
- project_space_type: z.string().optional().nullable(),
- decision: z.string().optional().nullable(),
- precisions: z.string().optional().nullable(),
- contacts: z.string().optional().nullable(),
- further_information: z.string().optional().nullable(),
- created_by_id: z.string(),
- created_by_username: z.string(),
- created_at: z.coerce.date(),
- service_instructeur: z.string().optional().nullable(),
- report_to_chip: z.lazy(() => Report_to_chipCreateNestedManyWithoutReportInputSchema).optional()
-}).strict();
-
-export const ReportUncheckedCreateWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- id: z.string(),
- title: z.string().optional().nullable(),
- project_description: z.string().optional().nullable(),
- redacted_by: z.string().optional().nullable(),
- meet_date: z.coerce.date().optional().nullable(),
- applicant_name: z.string().optional().nullable(),
- applicant_address: z.string().optional().nullable(),
- project_cadastral_ref: z.string().optional().nullable(),
- project_space_type: z.string().optional().nullable(),
- decision: z.string().optional().nullable(),
- precisions: z.string().optional().nullable(),
- contacts: z.string().optional().nullable(),
- further_information: z.string().optional().nullable(),
- created_by_id: z.string(),
- created_by_username: z.string(),
- created_at: z.coerce.date(),
- service_instructeur: z.string().optional().nullable(),
- report_to_chip: z.lazy(() => Report_to_chipUncheckedCreateNestedManyWithoutReportInputSchema).optional()
-}).strict();
-
-export const ReportCreateOrConnectWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- where: z.lazy(() => ReportWhereUniqueInputSchema),
- create: z.union([ z.lazy(() => ReportCreateWithoutReport_to_clauseInputSchema),z.lazy(() => ReportUncheckedCreateWithoutReport_to_clauseInputSchema) ]),
-}).strict();
-
-export const ClauseUpsertWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- update: z.union([ z.lazy(() => ClauseUpdateWithoutReport_to_clauseInputSchema),z.lazy(() => ClauseUncheckedUpdateWithoutReport_to_clauseInputSchema) ]),
- create: z.union([ z.lazy(() => ClauseCreateWithoutReport_to_clauseInputSchema),z.lazy(() => ClauseUncheckedCreateWithoutReport_to_clauseInputSchema) ]),
-}).strict();
-
-export const ClauseUpdateWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const ClauseUncheckedUpdateWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- label: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const ReportUpsertWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- update: z.union([ z.lazy(() => ReportUpdateWithoutReport_to_clauseInputSchema),z.lazy(() => ReportUncheckedUpdateWithoutReport_to_clauseInputSchema) ]),
- create: z.union([ z.lazy(() => ReportCreateWithoutReport_to_clauseInputSchema),z.lazy(() => ReportUncheckedCreateWithoutReport_to_clauseInputSchema) ]),
-}).strict();
-
-export const ReportUpdateWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- title: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- redacted_by: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- meet_date: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_cadastral_ref: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_space_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- decision: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- precisions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- contacts: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- further_information: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- created_by_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_by_username: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_at: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
- service_instructeur: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- report_to_chip: z.lazy(() => Report_to_chipUpdateManyWithoutReportNestedInputSchema).optional()
-}).strict();
-
-export const ReportUncheckedUpdateWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- title: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- redacted_by: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- meet_date: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicant_address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_cadastral_ref: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- project_space_type: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- decision: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- precisions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- contacts: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- further_information: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- created_by_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_by_username: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- created_at: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
- service_instructeur: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- report_to_chip: z.lazy(() => Report_to_chipUncheckedUpdateManyWithoutReportNestedInputSchema).optional()
-}).strict();
-
-export const Report_to_chipCreateManyChipInputSchema: z.ZodType = z.object({
- id: z.string(),
- report_id: z.string()
-}).strict();
-
-export const Report_to_chipUpdateWithoutChipInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report: z.lazy(() => ReportUpdateOneRequiredWithoutReport_to_chipNestedInputSchema).optional()
-}).strict();
-
-export const Report_to_chipUncheckedUpdateWithoutChipInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_chipUncheckedUpdateManyWithoutReport_to_chipInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_clauseCreateManyClauseInputSchema: z.ZodType = z.object({
- id: z.string(),
- report_id: z.string()
-}).strict();
-
-export const Report_to_clauseUpdateWithoutClauseInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report: z.lazy(() => ReportUpdateOneRequiredWithoutReport_to_clauseNestedInputSchema).optional()
-}).strict();
-
-export const Report_to_clauseUncheckedUpdateWithoutClauseInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_clauseUncheckedUpdateManyWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- report_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_chipCreateManyReportInputSchema: z.ZodType = z.object({
- id: z.string(),
- chip_id: z.string()
-}).strict();
-
-export const Report_to_clauseCreateManyReportInputSchema: z.ZodType = z.object({
- id: z.string(),
- clause_id: z.string()
-}).strict();
-
-export const Report_to_chipUpdateWithoutReportInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- chip: z.lazy(() => ChipUpdateOneRequiredWithoutReport_to_chipNestedInputSchema).optional()
-}).strict();
-
-export const Report_to_chipUncheckedUpdateWithoutReportInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- chip_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_clauseUpdateWithoutReportInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- clause: z.lazy(() => ClauseUpdateOneRequiredWithoutReport_to_clauseNestedInputSchema).optional()
-}).strict();
-
-export const Report_to_clauseUncheckedUpdateWithoutReportInputSchema: z.ZodType = z.object({
- id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- clause_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-/////////////////////////////////////////
-// ARGS
-/////////////////////////////////////////
-
-export const ChipFindFirstArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- include: ChipIncludeSchema.optional(),
- where: ChipWhereInputSchema.optional(),
- orderBy: z.union([ ChipOrderByWithRelationInputSchema.array(),ChipOrderByWithRelationInputSchema ]).optional(),
- cursor: ChipWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
- distinct: ChipScalarFieldEnumSchema.array().optional(),
-}).strict() as z.ZodType
-
-export const ChipFindFirstOrThrowArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- include: ChipIncludeSchema.optional(),
- where: ChipWhereInputSchema.optional(),
- orderBy: z.union([ ChipOrderByWithRelationInputSchema.array(),ChipOrderByWithRelationInputSchema ]).optional(),
- cursor: ChipWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
- distinct: ChipScalarFieldEnumSchema.array().optional(),
-}).strict() as z.ZodType
-
-export const ChipFindManyArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- include: ChipIncludeSchema.optional(),
- where: ChipWhereInputSchema.optional(),
- orderBy: z.union([ ChipOrderByWithRelationInputSchema.array(),ChipOrderByWithRelationInputSchema ]).optional(),
- cursor: ChipWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
- distinct: ChipScalarFieldEnumSchema.array().optional(),
-}).strict() as z.ZodType
-
-export const ChipAggregateArgsSchema: z.ZodType = z.object({
- where: ChipWhereInputSchema.optional(),
- orderBy: z.union([ ChipOrderByWithRelationInputSchema.array(),ChipOrderByWithRelationInputSchema ]).optional(),
- cursor: ChipWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
-}).strict() as z.ZodType
-
-export const ChipGroupByArgsSchema: z.ZodType = z.object({
- where: ChipWhereInputSchema.optional(),
- orderBy: z.union([ ChipOrderByWithAggregationInputSchema.array(),ChipOrderByWithAggregationInputSchema ]).optional(),
- by: ChipScalarFieldEnumSchema.array(),
- having: ChipScalarWhereWithAggregatesInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
-}).strict() as z.ZodType
-
-export const ChipFindUniqueArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- include: ChipIncludeSchema.optional(),
- where: ChipWhereUniqueInputSchema,
-}).strict() as z.ZodType
-
-export const ChipFindUniqueOrThrowArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- include: ChipIncludeSchema.optional(),
- where: ChipWhereUniqueInputSchema,
-}).strict() as z.ZodType
-
-export const ClauseFindFirstArgsSchema: z.ZodType = z.object({
- select: ClauseSelectSchema.optional(),
- include: ClauseIncludeSchema.optional(),
- where: ClauseWhereInputSchema.optional(),
- orderBy: z.union([ ClauseOrderByWithRelationInputSchema.array(),ClauseOrderByWithRelationInputSchema ]).optional(),
- cursor: ClauseWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
- distinct: ClauseScalarFieldEnumSchema.array().optional(),
-}).strict() as z.ZodType
-
-export const ClauseFindFirstOrThrowArgsSchema: z.ZodType = z.object({
- select: ClauseSelectSchema.optional(),
- include: ClauseIncludeSchema.optional(),
- where: ClauseWhereInputSchema.optional(),
- orderBy: z.union([ ClauseOrderByWithRelationInputSchema.array(),ClauseOrderByWithRelationInputSchema ]).optional(),
- cursor: ClauseWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
- distinct: ClauseScalarFieldEnumSchema.array().optional(),
-}).strict() as z.ZodType
-
-export const ClauseFindManyArgsSchema: z.ZodType = z.object({
- select: ClauseSelectSchema.optional(),
- include: ClauseIncludeSchema.optional(),
- where: ClauseWhereInputSchema.optional(),
- orderBy: z.union([ ClauseOrderByWithRelationInputSchema.array(),ClauseOrderByWithRelationInputSchema ]).optional(),
- cursor: ClauseWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
- distinct: ClauseScalarFieldEnumSchema.array().optional(),
-}).strict() as z.ZodType
-
-export const ClauseAggregateArgsSchema: z.ZodType = z.object({
- where: ClauseWhereInputSchema.optional(),
- orderBy: z.union([ ClauseOrderByWithRelationInputSchema.array(),ClauseOrderByWithRelationInputSchema ]).optional(),
- cursor: ClauseWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
-}).strict() as z.ZodType
-
-export const ClauseGroupByArgsSchema: z.ZodType = z.object({
- where: ClauseWhereInputSchema.optional(),
- orderBy: z.union([ ClauseOrderByWithAggregationInputSchema.array(),ClauseOrderByWithAggregationInputSchema ]).optional(),
- by: ClauseScalarFieldEnumSchema.array(),
- having: ClauseScalarWhereWithAggregatesInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
-}).strict() as z.ZodType
-
-export const ClauseFindUniqueArgsSchema: z.ZodType = z.object({
- select: ClauseSelectSchema.optional(),
- include: ClauseIncludeSchema.optional(),
- where: ClauseWhereUniqueInputSchema,
-}).strict() as z.ZodType